Assume that $X,Y$ are two independent exponential random variables with mean $\lambda$. How can I calculate the probability density function of $W=\frac{Y}{\max(X,Y)}$?
I know how to calculate the probability density function or $\max(X,Y)$ of $\min(X,Y)$, which has been asked before here many times. But when I wanted to use the same way for this, I got confuses at the beginning.
Is it a good way to condition on $X\geq Y$?
Another question is how to compute the probability density function of $Z=\frac{X}{\min(X,2Y)}$?
Hints: $W=1$ if $X \leq Y$ and $W=\frac Y X$ if $X>Y$. To find $P(W\leq w)$ split this into $P(W\leq w, X \leq Y)$ and $P(W\leq w, X>Y)$.
Similarly, $Z=1$ if $X \leq 2Y$ and $Z=\frac X{2Y}$ if $X>2Y$.