Statistics/Distributions/Gamma
Contents |
Gamma Distribution[edit]
| Probability density function |
|
| Cumulative distribution function |
|
| Parameters | |
|---|---|
| Support | ![]() |
![]() |
|
| CDF | ![]() |
| Mean | ![]() ![]() (see digamma function) |
| Median | No simple closed form |
| Mode | ![]() |
| Variance | ![]() ![]() (see trigamma function ) |
| Skewness | ![]() |
| Ex. kurtosis | ![]() |
| Entropy | ![]() |
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
and an inverse scale parameter
, called a rate parameter:
where the
constant can be calculated setting the integral of the density function as 1:
following:
and, with change of variable
:

following:
Probability Density Function[edit]
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
Mean[edit]
Now we let y=x/a which means that dy=dx/a.
We now use the fact that 
Variance[edit]
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



![\scriptstyle \operatorname{E}[ X] = k \theta \!](http://upload.wikimedia.org/math/b/b/e/bbe4eff99b90beb9535ddf272ff9f27c.png)
![\scriptstyle \operatorname{E}[\ln X] = \psi(k) +\ln(\theta)\!](http://upload.wikimedia.org/math/5/c/a/5cadebc20ca3f53de3add54ca52d91ef.png)

![\scriptstyle\operatorname{Var}[ X] = k \theta^2\,\!](http://upload.wikimedia.org/math/4/6/6/466d87e67db1449777cf12ded1979e84.png)
![\scriptstyle\operatorname{Var}[\ln X] = \psi_1(k)\!](http://upload.wikimedia.org/math/7/8/5/78548a3bd922bc42e8c4a4c279054c27.png)


![\scriptstyle \begin{align}
\scriptstyle k &\scriptstyle \,+\, \ln\theta \,+\, \ln[\Gamma(k)]\\
\scriptstyle &\scriptstyle \,+\, (1 \,-\, k)\psi(k)
\end{align}](http://upload.wikimedia.org/math/4/3/9/439ae7b561921950377e3858363abdfd.png)








![\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/math/2/5/5/255efc62f552ead8c235236bc821e014.png)
![\operatorname{E}[X]=\int^\infin_{0}ay \cdot \frac{1}{\Gamma (p)} y^{p-1} e^{-y}dy](http://upload.wikimedia.org/math/9/3/1/93173e472ff87c4db15ea7aea2e40220.png)
![\operatorname{E}[X]=\frac{a}{\Gamma (p)}\int^\infin_{0}y^{p} e^{-y}dy](http://upload.wikimedia.org/math/e/5/9/e59b4449f46b328b57afa0352bb82b00.png)
![\operatorname{E}[X]=\frac{a}{\Gamma (p)}\Gamma (p+1)](http://upload.wikimedia.org/math/2/9/0/290eccf6170a979f4cba404843b72ff7.png)
![\operatorname{E}[X]=\frac{a}{\Gamma (p)}p\Gamma (p)=ap](http://upload.wikimedia.org/math/f/8/7/f87b8fb33fdd9ba54badca69e6b06032.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/math/7/7/1/771b429ba352f6646de09938091f4847.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/math/3/8/9/389f90881b4d8e604c9a3b4c1452b10f.png)
![\operatorname{E}[X^2]=\frac{a^2}{ \Gamma (p)}\int^\infin_0 y^{p+1} e^{-y}dy](http://upload.wikimedia.org/math/1/9/6/1962323ecf487e678f18c39a253123c8.png)
![\operatorname{E}[X^2]=\frac{a^2}{ \Gamma (p)}\Gamma (p+2) =pa^2(p+1)](http://upload.wikimedia.org/math/b/0/e/b0ee3e3c8a30b4127e3196df4cab9864.png)
![\operatorname{Var}(X)=\operatorname{E}[X^2]-(\operatorname{E}[X])^2](http://upload.wikimedia.org/math/7/6/b/76bef2f1b28bbe71338f12e68e5c50b6.png)
