Stats - Conditional Expectation

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
Ted123
Messages
428
Reaction score
0

Homework Statement



[PLAIN]http://img222.imageshack.us/img222/2781/statsqk.jpg

Homework Equations



[itex]f_{X} (x) = \int^{\infty}_{-\infty} f_{X,Y} (x,y)\;dy[/itex]

[itex]f_{Y} (y) = \int^{\infty}_{-\infty} f_{X,Y} (x,y)\;dx[/itex]

[itex]f_{X|Y} (x|y) = \frac{f_{X,Y} (x,y)}{f_Y (y)}[/itex]

[itex]f_{Y|X} (y|x) = \frac{f_{X,Y} (x,y)}{f_X (x)}[/itex]

[itex]\mathbb{E}\;[X|Y] = \int^{\infty}_{-\infty} x f_{X|Y} (x|y)\;dx[/itex]

[itex]\mathbb{E}\;[Y|X] = \int^{\infty}_{-\infty} y f_{Y|X} (y|x)\;dy[/itex]

The Attempt at a Solution



Can anyone check that I've done this correctly (specifically check the limits)?

[itex]\displaystyle f_X (x) = \int^{\infty}_x x(y-x)e^{-y}\;dy = xe^{-x} \;\; \text{for} \; x\in [0,y][/itex]

[itex]\displaystyle f_Y (y) = \int^y_0 x(y-x)e^{-y}\;dx = \frac{y^3}{6} e^{-y} \;\; \text{for} \; y\in [x,\infty )[/itex]

[itex]\displaystyle f_{X|Y} (x|y) = \frac{x(y-x)e^{-y}}{\frac{y^3}{6} e^{-y}} = \frac{6x(y-x)}{y^3}\;\; \text{for} \; x\in [0,y][/itex]

[itex]\displaystyle f_{Y|X} (y|x) = \frac{x(y-x)e^{-y}}{xe^{-x}} = e^{x-y} (y-x)\;\; \text{for} \; y\in [x,\infty )[/itex]

[itex]\displaystyle\mathbb{E}\;[X|Y]= \int^{\infty}_x ye^{x-y} (y-x)\;dy = x+2[/itex]

[itex]\displaystyle\mathbb{E}\;[Y|X]=\int^{y}_0 \frac{6x^2 (y-x)}{y^3} \;dx = \frac{y}{2}[/itex]
 
Last edited by a moderator:
Physics news on Phys.org
Ted123 said:

Homework Statement



[PLAIN]http://img222.imageshack.us/img222/2781/statsqk.jpg

Homework Equations



[itex]f_{X} (x) = \int^{\infty}_{-\infty} f_{X,Y} (x,y)\;dy[/itex]

[itex]f_{Y} (y) = \int^{\infty}_{-\infty} f_{X,Y} (x,y)\;dx[/itex]

[itex]f_{X|Y} (x|y) = \frac{f_{X,Y} (x,y)}{f_Y (y)}[/itex]

[itex]f_{Y|X} (y|x) = \frac{f_{X,Y} (x,y)}{f_X (x)}[/itex]

[itex]\mathbb{E}\;[X|Y] = \int^{\infty}_{-\infty} x f_{X|Y} (x|y)\;dx[/itex]

[itex]\mathbb{E}\;[Y|X] = \int^{\infty}_{-\infty} y f_{Y|X} (y|x)\;dy[/itex]

The Attempt at a Solution



Can anyone check that I've done this correctly (specifically check the limits)?

[itex]\displaystyle f_X (x) = \int^{\infty}_x x(y-x)e^{-y}\;dy = xe^{-x} \;\; \text{for} \; x\in [0,y][/itex]

[itex]\displaystyle f_Y (y) = \int^y_0 x(y-x)e^{-y}\;dx = \frac{y^3}{6} e^{-y} \;\; \text{for} \; y\in [x,\infty )[/itex]

[itex]\displaystyle f_{X|Y} (x|y) = \frac{x(y-x)e^{-y}}{\frac{y^3}{6} e^{-y}} = \frac{6x(y-x)}{y^3}\;\; \text{for} \; x\in [0,y][/itex]

[itex]\displaystyle f_{Y|X} (y|x) = \frac{x(y-x)e^{-y}}{xe^{-x}} = e^{x-y} (y-x)\;\; \text{for} \; y\in [x,\infty )[/itex]

[itex]\displaystyle\mathbb{E}\;[X|Y]= \int^{\infty}_x ye^{x-y} (y-x)\;dy = x+2[/itex]

[itex]\displaystyle\mathbb{E}\;[Y|X]=\int^{y}_0 \frac{6x^2 (y-x)}{y^3} \;dx = \frac{y}{2}[/itex]

The domains for the marginal distributions aren't correct: think about [tex]f_x(x)[/tex] to have a specific topic. You obtain this distribution by integrating out [tex]y[/tex]
from the joint distribution, so [tex]y[/tex] shouldn't be in the domain of definition. you can see this the following way: for your answer,

[tex] \int_0^y f_X(x) \, dx \ne 1[/tex]

You seem to have the other quantities correct.
 
Last edited by a moderator:
statdad said:
The domains for the marginal distributions aren't correct: think about [tex]f_x(x)[/tex] to have a specific topic. You obtain this distribution by integrating out [tex]y[/tex]
from the joint distribution, so [tex]y[/tex] shouldn't be in the domain of definition. you can see this the following way: for your answer,

[tex] \int_0^y f_X(x) \, dx \ne 1[/tex]

You seem to have the other quantities correct.

So should it be [itex]f_X (x)\;\text{for}\;x\geq 0[/itex] (or [itex]x\in [0,\infty )[/itex] )?

and [itex]f_Y (y)\;\text{for}\;y\geq 0[/itex] (or [itex]y\in [0,\infty )[/itex] )?

Are the conditional density domains correct?
 
statdad said:
Integrate them out - if the domains are correct the integrals should equal 1.

which they do :cool: