Is the formula for conditional expectation valid for multiple random variables?

jimmy1
Messages
60
Reaction score
0
[SOLVED] Conditional Expectation

I'm trying to understand the following proof I saw in a book. It says that:
E[Xg(Y)|Y] = g(Y)E[X|Y] where X and Y are discrete random variables and g(Y) is a function of the random variable Y.

Now they give the following proof:

E[Xg(Y)|Y] = \sum_{x}x g(Y) f_{x|y}(x|y)
= g(Y)\sum_{x}x f_{x|y}(x|y)
= g(Y)E[X|Y]

Now, the proof is very simple as they are just using the definition of conditional expectation (ie. E[X|Y]= \sum_{x}x f_{x|y}(x|y)).

But, would this formula also work for say 3 variables? That is, E[Xg(Z)|Y] = g(Z)E[X|Y], where Z is another discrete random variable.

It probably isn't right, but from the above proof I can't immediatley see what's wrong with it, as I'll be just switching the g(Y) with a g(Z), and as the summation in the proof is over x, I can take g(Z) out of the summation and similarly get the result E[Xg(Z)|Y] = g(Z)E[X|Y] ??
 
Last edited:
Physics news on Phys.org
No, the proof works because the event {Xg(Y)|Y=y} = {Xg(y)|y} = g(y){X|y}; but the event {Xg(Z)|y} cannot be written similarly, in general.

In general, V = Xg(Z) is a new random variable and has its own distribution and conditional distribution; so the sum is over v.

If X and Z are independent then E[Xg(Z)|y] = E[X|y]E[g(Z)|y].

If Z = h(Y) then E[Xg(h(y))|y] = g(h(y))E[X|y].
 
Ah yes, that clears things up. Cheers, you've been great help once again!
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Back
Top