Professional Documents
Culture Documents
E[X | Y = y ] =
xpX |Y (x | y )
(integral in continuous case) Lecture outline Conditional expectation Law of iterated expectations Law of total variance Sum of a random number of independent r.v.s mean, variance Law of iterated expectations: Stick example: stick of length break at uniformly chosen point Y break again at uniformly chosen point X E[X | Y = y ] = y (number) 2
E[X | Y ] =
Y 2
(r.v.)
E[E[X | Y ]] =
var(X | Y ) and its expectation var(X | Y = y ) = E (X E[X | Y = y ])2 | Y = y var(X | Y ): a r.v. with value var(X | Y = y ) when Y = y Law of total variance: var(X ) = E[var(X | Y )] + var(E[X | Y ])
Section means and variances Two sections: y = 1 (10 students); y = 2 (20 students) y=1: 1 10 xi = 90 10 i=1 y=2: 1 30 xi = 60 20 i=11
E[X ] =
1 30 90 10 + 60 20 xi = = 70 30 30 i=1
Proof: (a) Recall: var(X ) = E[X 2] (E[X ])2 (b) var(X | Y ) = E[X 2 | Y ] (E[X | Y ])2 (c) E[var(X | Y )] = E[X 2] E[ (E[X | Y ])2 ] (d) var(E[X | Y ]) = E[ (E[X | Y ])2 ](E[X ])2 Sum of right-hand sides of (c), (d): E[X 2] (E[X ])2 = var(X )
E[X | Y = 2] = 60
90, 60,
1 90 + 2 60 = 70 = 3 3
E[X ]
var(E[X | Y ]) =
var(X | Y = 1) = 10
10, 20,
var(X | Y = 2) = 20
1/3
Y=1
Y=2
var(X | Y ) =
E[var(X | Y )] =
1 10 + 2 20 = 50 3 3 3
E[X | Y = 1] =
var(X | Y = 1) =
E[X | Y = 2] =
var(X | Y = 2) =
var(X ) = E[var(X | Y )] + var(E[X | Y ]) 50 = + 200 3 = (average variability within sections) + (variability between sections)
E[X ] =
var(E[X | Y ]) =
Sum of a random number of independent r.v.s N : number of stores visited (N is a nonnegative integer r.v.) Xi: money spent in store i Xi assumed i.i.d. independent of N Let Y = X1 + + XN
Variance of sum of a random number of independent r.v.s var(Y ) = E[var(Y | N )] + var(E[Y | N ]) E[Y | N ] = N E[X ] var(E[Y | N ]) = (E[X ])2 var(N ) var(Y | N = n) = n var(X ) var(Y | N ) = N var(X ) E[var(Y | N )] = E[N ] var(X )
E[Y | N = n] = = = =
E[Y | N ] = N E[X ]
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.