There are 2 trees that their heights (X,Y) distribute as follows $X$~$U(1,2)$ , $Y$~$U(1,3)$ (both continuous). X and Y are independent. The question is to find P(X>Y).
My solution is as follows:
$P(X>Y) = \int _1^3\:P\left(X>Y|Y=y\right)f_Y\left(y\right)dy=\int _1^3\:P\left(X>y\right)f_Y\left(y\right)dy=\int _1^3\frac{\left(1-\frac{y-1}{2}\right)}{2}dy=\frac{1}{2}$
The solution doesn't really makes sense to me , because one tree is clearly taller , but I can't really find a mistake.
One thing that I thought about was the boundaries of the integral , but I'm not sure if that's the mistake.
You can give a very simple graphical proof:
Due to independence, this issue amounts to consider ratio of areas (favorable area over total area).
The total area is the area "covered" by a random point $(X,Y) \in [1,2] \times [1,3]$ rectangle ($X,Y$ being the respective heights) which is $2$.
The favorable part is the subset of points situated below the line with equation $y=x$ whose area is $1/2$.
The ratio is $1/2$ divided by the total area $2$, giving the final probability $1/4$.