Professional Documents
Culture Documents
Table of Contents
Introduction
Covariance
Mathematical Expectation
Example
A roulette wheel has 38 equally likely outcomes. A winning bet
placed on a single number pays 35 to 1 (35 times your bet, and
your bet is returned too). Then the expected value of the profit
resulting from a dollar bet is:
IE 231 - Chapter 4 - Mathematical Expectation
Introduction
Example
The expected value from the roll of a die is:
µ = E (X )
Sometimes we use µX , µY , etc. in order to specify the random
variable.
µX = E (X )
µY = E (Y )
The expected value of a random variable is also referred to as the
mean of the random variable.
IE 231 - Chapter 4 - Mathematical Expectation
The Expected Value of a Random Variable
Example
Let X have p.m.f.
x/6 x = 1, 2, 3
f (x) = .
0 otherwise
E (X ) =
E (X 3 ) =
IE 231 - Chapter 4 - Mathematical Expectation
The Expected Value of a Random Variable
Example
Let X have p.d.f.
2(1 − x) 0 < x < 1
f (x) = .
0 otherwise
E (X ) =
E (X 2 ) =
E (6X + 3X 2 ) =
IE 231 - Chapter 4 - Mathematical Expectation
The Expected Value of a Random Variable
Theorem (Linearity)
If a and b are constants, then
E (aX + b) = aE (X ) + b.
Proof.
Corollary
Theorem
If c1 , c2 , ..., cn are constants, then
" n # n
X X
E ci gi (X ) = ci E [gi (X )] .
i=1 i=1
Proof.
IE 231 - Chapter 4 - Mathematical Expectation
The Expected Value of a Random Variable
Example
A bowl contains 5 chips, 3 of which are marked $1, remaining are
marked $4.
The player is paid the amount of the two chips he/she draws.
Solution
IE 231 - Chapter 4 - Mathematical Expectation
The Expected Value of a Random Variable
Theorem
Let X and Y be two discrete r.v.’s and let f (x, y ) be their joint
p.m.f.
The expected value of g (X , Y ) is
XX
E [g (X , Y )] = g (x, y )f (x, y ).
x y
Example
Let X and Y have joint p.d.f.
x +y 0<x <1 0<y <1
f (x, y ) = .
0 otherwise
Find E (XY 2 ).
Solution
IE 231 - Chapter 4 - Mathematical Expectation
The Variance of a Random Variable
σ 2 = Var (X ) = E [X − µ]2 ,
where µ = E (X ).
σ 2 = E (X 2 ) − µ2 .
Proof.
IE 231 - Chapter 4 - Mathematical Expectation
The Variance of a Random Variable
Example
Let X have p.d.f.
1
2 (x + 1) −1 < x < 1
f (x) = .
0 otherwise
E(X)=
Var(X)=
IE 231 - Chapter 4 - Mathematical Expectation
The Variance of a Random Variable
Theorem
If X has variance σ 2 , then
Var (aX + b) = a2 σ 2 .
Proof.
IE 231 - Chapter 4 - Mathematical Expectation
Covariance
Covariance
Definition
The covariance of two random variables X and Y , denoted by
σXY , or Cov (X , Y ), is defined as
Cov(X,Y)>0
- +
+ -
IE 231 - Chapter 4 - Mathematical Expectation
Covariance
Cov (X , Y ) = E (XY ) − E (X )E (Y ).
Proof.
IE 231 - Chapter 4 - Mathematical Expectation
Covariance
Definition
The correlation coefficient of X and Y is defined by
Cov (X , Y )
ρXY = .
σX σY
Example
Let r.v.’s X and Y have joint p.d.f.
x +y 0<x <1 0<y <1
f (x, y ) = .
0 otherwise
Compute ρXY .
IE 231 - Chapter 4 - Mathematical Expectation
Covariance
Solution
IE 231 - Chapter 4 - Mathematical Expectation
Covariance
Theorem
If X and Y are independent, then E (XY ) = E (X )E (Y ), and
Cov (X , Y ) = ρXY = 0.
Proof.
IE 231 - Chapter 4 - Mathematical Expectation
Covariance
Note:
If two r.v.’s are independent, then they are uncorrelated. The
converse is not true in general.
Example
X ∼ U[−1, 1], Y = X 2 → Cov (X , Y ) = 0.
Theorem
If X1 , X2 , ..., Xn are independent, then
E (X1 X2 · · · Xn ) = E (X1 )E (X2 ) · · · E (Xn ).
IE 231 - Chapter 4 - Mathematical Expectation
Expected Values of Linear Combinations of Random Variables
Proof.