I know that similar questions have been posted before but I don't understand how to solve them, especially because this very type of question is never explained in our textbook.
Assume that we are given
$f_x(x) = xe^{-x}$
$f_y(y) = \frac{1}{6}y^{3}e^{-y}$
And have to compute $U = X/Y$
I am not directly interested in this specific result, I am looking for an explanation on how it is done. I also appreciate a link to somewhere this type of operation is explained step by step.
Also it does not have to be this specific operation. It can also be $U = X+Y$ or similar, as I suspect them all to be solvable in a similar manner.
Thank you.
Edit: I am given the distribution $f(x,y) = x(y-x)e^{-y}$ for $0<x<y<\infty$ and calculated the marginal distributions.
When transforming random variables, it's usualy a lot easier to argue when working with CDFs rather than PDFs.
So, we want the CDF of $U$. Clearly, $U$ lies between $0$ and $1$ with probability $1$, so we don't have to worry about any values outside of that.
Consider $U\leq u$ for some $u\in [0,1]$. This means that $X/Y\leq u$, or that $Y\geq X/u$, which is to say that the point $(X, Y)$ lies in the first quadrant, above the line $Y = X/u$. The probability of this happening is given by $$ \int_0^\infty\left(\int_{x/u}^\infty x(y-x)e^{-y}dy\right)dx\\ = \int_0^\infty xe^{-x/u}\left(\frac xu - x + 1\right)dx\\ = 3u^2-2u^3 $$ The pdf of $U$ is gotten by differentiating this. We get $f_U(u) = 6u(1-u)$ for $0\leq u\leq 1$ and $0$ otherwise.