Statistics/Distributions/Gamma
The Gamma distribution is very important for technical reasons, since it is the parent of the exponential distribution and can explain many other distributions.
The probability distribution function is:

Where
is the Gamma function. The cumulative distribution function cannot be found unless p=1, in which case the Gamma distribution becomes the exponential distribution. The Gamma distribution of the stochastic variable X is denoted as
.
Alternatively, the gamma distribution can be parameterized in terms of a shape parameter α = k and an inverse scale parameter β = 1 / θ, called a rate parameter:
where the K constant can be calculated setting the integral of the density function as 1:
following:
and, with change of variable y = βx :

following:
Contents |
[edit] Probability Density Function
We first check that the total integral of the probability density function is 1.
Now we let y=x/a which means that dy=dx/a
[edit] Mean
Now we let y=x/a which means that dy=dx/a.
We now use the fact that Γ(z + 1) = zΓ(z)
[edit] Variance
We first calculate E[X^2]
Now we let y=x/a which means that dy=dx/a.
Now we use calculate the variance
This page may need to be 







![\operatorname{E}[X]=\int^\infin_{-\infin}x \cdot \frac{1}{a^p \Gamma (p)} x^{p-1} e^{-x/a}dx](http://upload.wikimedia.org/wikibooks/en/math/9/4/6/9465557230b46854c86d4cfa3714429a.png)
![\operatorname{E}[X]=\int^\infin_{0}ay \cdot \frac{1}{\Gamma (p)} y^{p-1} e^{-y}dy](http://upload.wikimedia.org/wikibooks/en/math/f/9/6/f96ea6a0a1b513115f71be3b49d79490.png)
![\operatorname{E}[X]=\frac{a}{\Gamma (p)}\int^\infin_{0}y^{p} e^{-y}dy](http://upload.wikimedia.org/wikibooks/en/math/2/0/f/20f69dcbfb77bd8a7eab97bf5c0537ea.png)
![\operatorname{E}[X]=\frac{a}{\Gamma (p)}\Gamma (p+1)](http://upload.wikimedia.org/wikibooks/en/math/8/0/2/802de8a9b6fc3c4815a9551b766047ed.png)
![\operatorname{E}[X]=\frac{a}{\Gamma (p)}p\Gamma (p)=ap](http://upload.wikimedia.org/wikibooks/en/math/3/3/f/33f9751b4451ab94fe168433d99f0baf.png)
![\operatorname{E}[X^2]=\int^\infin_{-\infin}x^2 \cdot \frac{1}{a^p \Gamma (p)} x^{p-1} e^{-x/a}dx](http://upload.wikimedia.org/wikibooks/en/math/d/0/e/d0e871966b2883bd6dce63a609380bb8.png)
![\operatorname{E}[X^2]=\int^\infin_0 a^2 y^2 \cdot \frac{1}{a \Gamma (p)} y^{p-1} e^{-y}ady](http://upload.wikimedia.org/wikibooks/en/math/b/c/4/bc42c003c737fde18af82a27fd776d20.png)
![\operatorname{E}[X^2]=\frac{a^2}{ \Gamma (p)}\int^\infin_0 y^{p+1} e^{-y}dy](http://upload.wikimedia.org/wikibooks/en/math/b/3/a/b3a23f4e031432b95b65dd3be75c82e7.png)
![\operatorname{E}[X^2]=\frac{a^2}{ \Gamma (p)}\Gamma (p+2) =pa^2(p+1)](http://upload.wikimedia.org/wikibooks/en/math/5/b/d/5bdda13a55797eb8e14bf391e9cfe902.png)
![\operatorname{Var}(X)=\operatorname{E}[X^2]-(\operatorname{E}[X])^2](http://upload.wikimedia.org/wikibooks/en/math/9/b/3/9b378396bbe129d303e578bca2d762c3.png)
