Let $X$ and $Y$ be two independent random variables with pdf's $f_X(x)=1, \ 0<x<1$ and $f_Y(x)=3x^2, \ 0<x<1.$ Compute $P(X<Y).$
Since $X,Y$ are independet their joint pdf is $f(x,y)=1\cdot 3x^2=3x^2, \ 0<x,y<1.$ So,
$$P(X<Y)=3\int_0^1\int_0^yx^2 \ dxdy=\frac{1}{4}.$$
My the exam solutions say the answer is $3/4$. Who is correct?
The exam solution is correct.
If $[x<y]$ denotes the function $\mathbb R^2\to\mathbb R$ taking value $1$ if $x<y$ and taking value $0$ otherwise then:$$P(X<Y)=\int_0^1\int_0^1[x<y]f_{X,Y}(x,y)dxdy=\int_0^1\int_0^1[x<y]f_{X}(x)f_{Y}(y)dxdy=$$$$\int_0^1\int_0^1[x<y]3y^2dxdy=3\int_0^1\int_0^yy^2dxdy=3\int_0^1y^2\int_0^ydxdy=3\int_0^1y^3dy=\frac34$$