$X\sim U (0,1)$.
The point $X$ divides $[0,1]$ to two parts.
$Y=\frac{\text{The big part}}{\text{The small part}}$. ($Y$ is the ratio... $Y\ge1$).
What is the density function of $Y$?
I'd like to get ideas how to prove it because I'm not sure that I'm do it right...
Thank you!
Let $ X_1=\max(X, 1-X). $ Then, $$ Y=\frac{X_1}{1-X_1}. $$ So what is the distribution of $X_1$? $$ F_{X_1}(x_1)=P(X_1\leq x_1)=P(\max(X, 1-X)\leq x_1)=P(X\leq x_1, 1-X\leq x_1)\\ =P(1-x_1\leq X\leq x_1)=\int_{1-x_1}^{x_1}dx=x_1-(1-x_1)=2x_1-1, \quad x_1\in[1/2, 1]. $$ Since $Y=X_1/(1-X_1)$, you have that $$ F_Y(y)=P(Y\leq y)=P\left(\frac{X_1}{1-X_1}\leq y\right)=P\left(X_1\leq y(1-X_1)\right)=P\left(X_1\leq\frac{y}{1+y}\right)\\ =\frac{2y}{1+y}-1=\frac{y-1}{y+1}, \quad y\in[1, \infty). $$ This is the cdf, and the pdf is $$ f_Y(y)=\frac{d}{dy}F_Y(y)=\frac{2}{(1+y)^2}. $$