# Thread: Joint Density expected values

1. ## Joint Density expected values

Let X and Y be random variables with $\displaystyle p(x,y)=e^ {-y}$ for $\displaystyle 0<x<y<+ \infty$

Compute $\displaystyle E[X | Y ]$ and $\displaystyle E[Y | X ]$

My solution:

For $\displaystyle E[X | Y ]$, I have $\displaystyle \int x p(x | y) dx = \int x \frac {p(x,y)}{p(y)} dx$

$\displaystyle = \int x \frac {e^{-y}}{p(y)} dx$

But I'm stuck here because I don't know what p(y) is.

Any help is appreciated, thank you!

2. ## Re: Joint Density expected values

Let X and Y be random variables with $\displaystyle p(x,y)=e^ {-y}$ for $\displaystyle 0<x<y<+ \infty$
Is that even a density?

CB

3. ## Re: Joint Density expected values

$\displaystyle p(x,y)=e^ {-y} for 0<x<y<+ \infty$ is the joint pdf, nothing else is given. Is $\displaystyle p(y) = \int ^y _0 p(x,y) dy$ then?

4. ## Re: Joint Density expected values

$\displaystyle p(x,y)=e^ {-y} for 0<x<y<+ \infty$ is the joint pdf, nothing else is given. Is $\displaystyle p(y) = \int ^y _0 p(x,y) dy$ then?
I meant is the integral over the 1st quadrant 1? Checking it now the answer appears to be yes.

$\displaystyle p(y)$ is a marginal and so:

$\displaystyle p(y)=\int_0^y e^{-y} \; dx=ye^{-y}$

CB

5. ## Re: Joint Density expected values

Thank you! Now to find p(x), should I do this:

$\displaystyle \int ^ x _ 0 e^{-y} dy = -e^{-x}-1$?

6. ## Re: Joint Density expected values

Thank you! Now to find p(x), should I do this:

$\displaystyle \int ^ x _ 0 e^{-y} dy = -e^{-x}-1$?
Except:

$\displaystyle \int ^ x _ 0 e^{-y}\; dy = \biggl[-e^{-x}\biggr]_0^x=1-e^{-x}$

CB

7. ## Re: Joint Density expected values

$\displaystyle f_X(x)=e^{-x}$ an exponential

$\displaystyle f_Y(y)=ye^{-y}$ a gamma

$\displaystyle f_{X|Y}(x,y)=1/y$ but where 0<x<y, which is a uniform

$\displaystyle E(X|Y)=\int_0^y{x\over y}dx={y\over 2}$ the center of that uniform

$\displaystyle E(Y|X)=\int_x^{\infty}ye^{-y}e^xdy=e^x\int_x^{\infty}ye^{-y}dy$