E[f(X)] - Expectation of function of rand. var.

Apteronotus
Messages
201
Reaction score
0
Hi quick question:

Suppose you have a function of random variables given in the following way

Z=X if condition A
Z=Y if condition B

where both X and Y are random variables, and conditions A & B are disjoint.

Then would the expectation of Z be

E[Z]=E[X]*Pr(A)+E[Y]*Pr(B)?

Thanks in advance.
 
Last edited:
Physics news on Phys.org
No you need independence for that, what you really mean is
Z=X\mathbf{1}_A+Y\mathbf{1}_B
where 1 is the indicator function. Now take the expectation
\mathbb{E}[Z]=\mathbb{E}[X\mathbf{1}_A]+\mathbb{E}[Y\mathbf{1}_B].

Now you know that \mathbb{E}[\mathbf{1}_A]=\mathbb{P}(A), but to separate the expectations, you need independence between X and A, also between Y and B.
 
Thank you Focus for your reply. I see my error.
 
Last edited:
You can use
\mathbb{E}[f(X)]=\int_{\mathbb{F}}f(x)F(dx)
where F is the law of X. This may be somewhat abstract so if you are working over the reals and have a pdf f_X then
\mathbb{E}[f(X)]=\int_{\mathbb{R}}f(x)f_X(x)dx.
 
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...

Similar threads

Back
Top