0
$\begingroup$

I'm having some difficulties with working with integrals. I stumbled upon the following exercise in my probability book:

Let $X$ and $Y$ be independent random variables having, respectively, the gamma distribution with parameters $s$ and $\lambda$, and the gamma distribution with parameters $t$ and $\lambda$. Then $Z=X+Y$ has density function

$\begin{aligned} f_Z(z)=&\int_{-\infty}^\infty f_X(x)f_Y(z-x)\,\mathrm{d}x\\ =&\begin{cases}\int_0^zf_X(x)f_Y(z-x)\,\mathrm{d}x&\text{if }z>0,\\ 0&\text{otherwise.} \end{cases} \end{aligned}$

Right, so far so good. But then they plug in the density functions for $X$ and $Y$, and I don't understand how they do the substitution $y=x/z$.

For $z>0$,

$\begin{align}f_Z(z)=\frac{1}{\Gamma (s)\Gamma (t)}\lambda^{s+t}e^{-\lambda z}\int_0^z x^{s-1}(z-x)^{t-1}\,\mathrm{d}x\end{align}$.

Substitue $y=x/z$ in the last integral to obtain

$\begin{align}f_Z(z)=\frac{1}{\Gamma (s)\Gamma (t)}\lambda^{s+t}\left[\int_0^1y^{s-1}(1-y)^{t-1}\,\mathrm{d}y\right]z^{s+t-1}e^{-\lambda z}.\end{align}$

So I have two questions:

1) How did they come up with $y=x/z$?

2) How does this substitution work? Can I just replace all $x$ by $yz$ and that's it? Or should I apply integration by substitution, in the sense of

$\begin{aligned}\int_{\phi(a)}^{\phi(b)}f(x)\,\mathrm{d}x=\int_a^b f(\phi(t))\phi '(t)\,\mathrm{d}t\end{aligned}.$

$\endgroup$
6
  • 1
    $\begingroup$ what is your background in calculus? this is one of the most basic substitutions one could imagine so you should be familiar with such stuff if you want to succesfully study something so much more complicated like probability theory... $\endgroup$
    – tired
    Jan 26, 2017 at 18:21
  • $\begingroup$ @tired I should apply 'integration by substitution'? And I don't know. I haven't had Calculus, I've had Analysis. $\endgroup$
    – Sha Vuklia
    Jan 26, 2017 at 18:23
  • $\begingroup$ The last integral (the one that forces the substitution you see) is a well known one. $\endgroup$
    – Chinny84
    Jan 26, 2017 at 18:23
  • $\begingroup$ @Chinny84 What do you mean by "the one that forces the substitution"? $\endgroup$
    – Sha Vuklia
    Jan 26, 2017 at 18:26
  • $\begingroup$ @ShaVuklia Look at Beta function and Beta Distribution and compare with the first integral that you are trying to transform with that sub. $\endgroup$
    – Chinny84
    Jan 26, 2017 at 18:29

1 Answer 1

1
$\begingroup$

$$ \int_0^z x^{s-1}(z-x)^{t-1}dx = \int_0^z x^{s-1}z^{t-1}\left(1-\frac{x}{z}\right)^{t-1}dx = z^{t-1}z^{s-1} \int_0^z \left(\frac{x}{z}\right)^{s-1}\left(1-\frac{x}{z}\right)^{t-1}dx $$ let $y = \frac{x}{z}$ with the limits transforming like so - $(0,z)\to(0, z/z) = (0,1)$ Then we have $$ dx = zdy $$ so we have $$ \int_0^z x^{s-1}(z-x)^{t-1}dx = z^{t-1}z^{s-1}z \int_0^1 y^{s-1}\left(1-y\right)^{t-1}dy = z^{t+s-1}\int_0^1 y^{s-1}\left(1-y\right)^{t-1}dy $$

$\endgroup$
1
  • $\begingroup$ Ohhh, now I understand where $y=x/z$ comes from. Thank you for working it out, that is exactly what I needed, because I haven't seen many examples yet, and this helps a lot. $\endgroup$
    – Sha Vuklia
    Jan 26, 2017 at 18:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .