# Thread: Joint Density expected values

1. ## Joint Density expected values

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

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

My solution:

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

$= \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 $p(x,y)=e^ {-y}$ for $0
Is that even a density?

CB

3. ## Re: Joint Density expected values

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

4. ## Re: Joint Density expected values

$p(x,y)=e^ {-y} for 0 is the joint pdf, nothing else is given. Is $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.

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

$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:

$\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:

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

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

CB

7. ## Re: Joint Density expected values

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

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

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

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

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