Let $X,Y$ be independent Uniform$(0,1)$ random variables. Set $Z = \frac{\min\{X,Y\}}{\max\{X,Y\}}$. Find the distribution of $Z$.
So I need to calculate $\mathbb{P}(Z \le z)$. I wasn't sure if I should use:
$\max\{X,Y\} = \frac{1}{2}(X+Y + \lvert X -Y \rvert)$ and $\min \{X,Y\} = \frac{1}{2}(X+Y - \lvert X -Y \rvert)$.
If I do this is seems to make it more complicated than maybe it should be. I haven't done any problems with a ratio or min and max yet.