A stick of length 1 is broken at a uniformly random point, yielding two pieces. Let X and Y be the lengths of the shorter and longer pieces, respectively, and let R = X/Y be the ratio of the lengths X and Y . (a) Find the CDF and PDF of R. (b) Find the expected value of R (if it exists). (c) Find the expected value of 1/R (if it exists)
I'm stuck on finding a PMF and CDF of R - how would I set this up?
Hints: let $Z$ have uniform distribution on $(0,1)$, $X=\min \{Z,1-Z\}$ and $Y=\max \{Z,1-Z\}$. Also $R=\frac X Y=\frac Z {1-Z}$ if $Z <\frac 1 2$ and $R=\frac {1-Z} Z$ otherwise. Can you now do the computations?.