0

$X$ and $Y$ are continuous random variables. Find $E(X\vert Y=y)$ given $f_{X,Y}(x,y)=1$ for $0<x<1$ and $2x<y<2$ and $0$ otherwise.

I have computed $f_X(x)=\int_{2x}^{2} 1dy=2-2x$

and $f_Y(y)=\int_0^{y/2} 1dx=\frac{y}{2}$

then $E(X\vert Y=y)=\int_0^1 xf_{X\vert Y}(x\vert y)dx$

$$\int_0^1 x\frac{f_{X,Y}(x,y)}{f_Y(y)}dx$$

$$=\int_0^1 x \frac{1}{\frac{y}{2}} dx$$ $$=\int_0^1 \frac{2x}{y}dx$$ $$=\frac{1}{y}\int_0^1 2x dx$$ $$=\frac{1}{y}(x^2)\vert^1_0$$ $$=\frac{1}{y}$$

Answer is supposed to be $\frac{y}{4}$

StubbornAtom
  • 17,052
  • @StubbornAtom Yeah I see my mistake is the bounds on the integral $\int_0^1$. Could you explain how to determine the bounds? For instance when computing $\mu_x=\int\limits_0^1 x\cdot (2-2x) , dx$ I use $\int_0^1$ when integrating with $x$. Why in one case should I use the given bounds $0<x<1$ and the other I use $0<x<y/2$? – AColoredReptile Dec 02 '19 at 17:19
  • Because in the conditional density, support of $X$ given $Y=y$ is $0<x<y/2$. – StubbornAtom Dec 02 '19 at 17:45

0 Answers0