As an exam review question, I have two independently distributed random variables $X$ and $Y$ which are both $\text{Gamma} \sim (2,\frac{1}{2})$ distributed. How do I find the probability density function of the random variable $Z$, defined as $\sqrt{X+Y}$?
I'm not sure what the simplest approach to this question is, but my first thought was to use moment generating functions, to try and find the moment generating function of $Z$. However this doesn't seem to help much when it comes to determining the p.d.f. anyways. Am I thinking about this all wrong?
The following solution might be a bit cumbersome, but it is rather straightforward. We make use of the ''change of variable'' formula, i.e. $$f_{U,V}(u,v) = f_{X,Y}(x(u,v),y(u,v))\vert J \vert$$ where $J$ denotes the determinant of the jacobian matrix. Set $$ U = \sqrt{X+Y},\quad V = X$$ We find that $$ X = V,\quad Y = U^2 - V$$ The jacobian determinant is easily calculated to be equal to $2U$. Since $X$ and $Y$ are independent, it follows from the above forumla that $$f_{U,V}(u,v) = f_{X,Y}(x,y)\cdot 2u = f_X(x)f_Y(y)\cdot 2u$$ The above calculations are formal; considering the domain we have that, since $x,y > 0$ for the gamma distribution, $u^2 > v > 0$. It follows that $$f_{U,V}(u,v) = \begin{cases} 32uv(u^2-v)e^{-2u^2}, \mbox{if } u^2>v>0 \\ 0, \mbox{otherwise} \end{cases}$$ The get our result, we integrate the above with respect to $v$: $$f_U(u) = 32ue^{-2u^2}\int_0^{u^2}(vu^2 - v^2)dv = \frac{16}{3}u^7e^{-2u^2}$$