Professional Documents
Culture Documents
Week 3
Week 3
2 Moments
Expectation
Variance
Definition
A random variable X is a function defined on a sample space, S, that
associates a real number, X (ω) = x , with each outcome ω in S.
2 Moments
Expectation
Variance
Definition
A random variable X is said to be discrete if it can assume only a finite or
countably infinite number of distinct values.
Definition
The discrete probability mass function of a discrete random variable X or
the probability function is:
p (xi ) = p (X = xi )
where i = 1, 2, 3, . . .
Definition
The cumulative distribution function F of the random variable X or simply
the distribution function is defined by:
F (x ) = P (X ≤ x )
X
= p (y ) , −∞ < x < ∞
∀y ≤x
I Find P (X = 2)
I Find P (X > 0)
2 Moments
Expectation
Variance
Definition
Let X be a random variable. Suppose that there exists a non-negative
real-valued function: f : R → [0, ∞) such that for any interval [a, b],
Z b
P (X ∈ [a, b]) = f (t) dt.
a
Furthermore:
I P (x = a) = 0
I P (a ≤ X ≤ b) = P (a < X ≤ b) = P (a ≤ X < b) = P (a < X < b)
Definition
The cumulative distribution function is given by:
Z x
F (x ) = P (X ≤ x ) = f (t) dt.
−∞
0 ≤ F (x ) ≤ 1
limx →−∞ F (x ) = 0 and limx →∞ F (x ) = 1
F is a non-decreasing function, and right continuous.
Recall that: Z b
P (a ≤ X ≤ b) = f (x ) dx
a
We can also obtain P (a ≤ X ≤ b) using the cdf F :
P (a ≤ X ≤ b) = F (b) − F (a)
2 Moments
Expectation
Variance
Definition
Let X be a discrete random variable with pmf p (x ). Then, the expected
value of X is: X
µ = E [X ] = xp (x )
∀x
x −1 0 1 2 3 4 5
p (x ) 17 71 1
14
2
7
1
14
1
7
1
7
I Find µ
Definition
The expected value of a continuous random variable X with pdf f (x ) is:
Z ∞
µ = E [X ] = xf (x ) dx
−∞
Theorem
Let g (X ) be a function of X , then the expected value of g (X ) is:
(P
g (x ) p (x )
x if X is discrete
E [g (X )] = R∞
−∞ g (x ) f (x ) dx if X is continuous
Theorem
Let c be a constant and let g (X ) , g1 (X ) , . . . , gn (X ) be functions of a
random variable X such that E [g (X )] and E [gi (X )] for i = 1, 2, . . . , n
exist. Then:
E (c) = c
E [cg (X )] = cE [g (X )]
P P
E[ i gi (X )] = i E [gi (X )]
2 Moments
Expectation
Variance
Definition
The variance of a random variable X is:
σ 2 = Var (X ) = E (X − µ)2 .
x2
Try find the variance if f (x ) = 3 and 0 ≤ x ≤ 1
Theorem
Let b be a constant:
Var (aX + b) = a2 Var (X )
Var (X ) = E X 2 − µ2