Suppose $X$ and $Y$ are two independent uniform variables in the intervals $(0,2)$ and $(1,3)$ respectively. I need to find $P(X < Y)$.
I've tried in this way: $$ \begin{eqnarray} P(X < Y) &=& \int_1^3 \left\{\int_0^y f_X(x) dx\right\}g_Y(y) dy\\ &=& \frac{1}{4} \int_1^3 \int_0^y dx dy\\ &=& \frac{1}{4} \int_1^3 y dy\\ &=& \frac{1}{8} [y^2]_1^3\\ &=& 1 \end{eqnarray} $$ But I'm suspicious about this result. It implies that $X<Y$ is a sure event, which is not at all true.