Conditional expectation "substitution rule" \[E[g(X,Y)|Y=y] = E[g(X, y)|Y=y]\]. How can I prove this?
@reemii
I tried writing the LHS as:
\[\int_{-\infty}^{\infty}g(x,y)~f_{X|Y}(x|y)~dx\]
that is correctly done at the moment.
and I ended up writing the same thing for the RHS ... so, that means both are true? It seems a bit trivial to me :S
sorry, what you wrote is actually the RHS.
This is an intuitive result: If P(Y=y)>0 (denominator issue), then \[E[G|Y=y] = \frac{E[G 1\!\!\!1(Y=y)]}{P(Y=y)}\] Take your time to consider this. It is quite intuitive.
\(1\!\!\!1(A)\)) is the indicator variable of the set A.
what it says is that the average value of G given that Y=y, is the average value of G, restricted to the set of possibilities for which Y=y, then scaled by the right factor. (to understand the scaling, consider a constant function for G)
With this, the LHS is \(\frac{E[g(X,Y)1(Y=y)]}{P(Y=y)}\). The RHS is \(\frac{E[g(X,y)1(Y=y)]}{P(Y=y)}\). And now you notice that if \(Y\neq y\), then the indicator variable \(1(Y=y)\) is equal to zero. Therefore, only the \(Y=y\) is counted in this expectation, and so you can replace \(g(X,Y)\) by \(g(X,y)\).
Sorry for the delay. I didn't log in for a while. Omg thank you sooo much though :D
:)
Join our real-time social learning platform and learn together with your friends!