• We are pleased to announce that the winner of our Feedback Prize Draw for the Winter 2024-25 session and winning £150 of gift vouchers is Zhao Liang Tay. Congratulations to Zhao Liang. If you fancy winning £150 worth of gift vouchers (from a major UK store) for the Summer 2025 exam sitting for just a few minutes of your time throughout the session, please see our website at https://www.acted.co.uk/further-info.html?pat=feedback#feedback-prize for more information on how you can make sure your name is included in the draw at the end of the session.
  • Please be advised that the SP1, SP5 and SP7 X1 deadline is the 14th July and not the 17th June as first stated. Please accept out apologies for any confusion caused.

E[E[Y|X]]

ykai

Ton up Member
Why E[E[Y|X]]=sum E[Y|X]*p(x)?

When we calculate E[Y|X], we calculate sum y*p(x,y)/p(x).
It means y multiply conditional probability p(x|y).

Why E[E[Y|X]] not E[Y|X]*p(y)?
Why the probability of E[Y|X] is p(x)?
I think it should be p(y), because the object of expected value should be Y like E[Y|X],shouldn't it?
How can it become X?
 
Last edited:
Perhaps notation is getting you bogged down a bit here.

When you write E[E[Y|X]], the two expectations are being taken over different variables. The inner expected value E[Y|X] is being taken over Y, and the outer expected value is being taken over X.

This is because E[Y|X] is a random variable in terms of X. i.e. we can write the expected value of Y for a particular value of X as E[Y|X=x], which is clearly a function of x. Indeed we can define f(x)=E[Y|X=x]. Then the random variable E[Y|X] is f(X). So when we write E[E[Y|X]] this is E[f(X)], which is clearly an expectation with respect to different values X can take.

Hope that clears things up.
 
Back
Top