(statistics) A normal distribution whose frequency function involves a gamma function. Also known as Erlang distribution.
| Sci-Tech Dictionary: gamma distribution |
(statistics) A normal distribution whose frequency function involves a gamma function. Also known as Erlang distribution.
| 5min Related Video: Gamma distribution |
| Wikipedia: Gamma distribution |
| Probability density function |
|
| Cumulative distribution function |
|
| Parameters | shape scale |
|---|---|
| Support | ![]() |
| Probability density function (pdf) | ![]() |
| Cumulative distribution function (cdf) | ![]() |
| Mean | ![]() |
| Median | no simple closed form |
| Mode | ![]() |
| Variance | ![]() |
| Skewness | ![]() |
| Excess kurtosis | ![]() |
| Entropy | ![]() ![]() |
| Moment-generating function (mgf) | ![]() |
| Characteristic function | ![]() |
In probability theory and statistics, the gamma distribution is a two-parameter family of continuous probability distributions. It has a scale parameter θ and a shape parameter k. If k is an integer then the distribution represents the sum of k independent exponentially distributed random variables, each of which has a mean of θ (which is equivalent to a rate parameter of θ −1) .
The gamma distribution is frequently a probability model for waiting times; for instance, in life testing, the waiting time until death is a random variable that is frequently modeled with a gamma distribution.[1]
Contents |
A random variable X that is gamma-distributed with scale θ and shape k is denoted

The probability density function of the gamma distribution can be expressed in terms of the gamma function parameterized in terms of a shape parameter k and scale parameter θ. Both k and θ will be positive values.
The equation defining the probability density function of a gamma-distributed random variable x is

(This parameterization is used in the infobox and the plots.)
Alternatively, the gamma distribution can be parameterized in terms of a shape parameter α = k and an inverse scale parameter β = 1/θ, called a rate parameter:

If α is a positive integer, then

Both parameterizations are common because either can be more convenient depending on the situation.
The cumulative distribution function is the regularized gamma function:

where γ(k,x / θ) is the lower incomplete gamma function.
It can also be expressed as follows, if k is an integer (i.e., the distribution is an Erlang distribution)[2]:

where β = 1/θ.
If Xi has a Γ(ki, θ) distribution for i = 1, 2, ..., N, then

provided all Xi' are independent.
The gamma distribution exhibits infinite divisibility.
If

then for any α > 0,
.The Gamma distribution is a two-parameter exponential family with natural parameters k − 1 and −1/θ, and natural statistics X and ln (X).
The information entropy is given by
![\frac{-1}{\theta^k \Gamma(k)} \int_0^{\infty} \frac{x^{k-1}}{e^{x/\theta}} \left[ (k-1)\ln x - x/\theta - k \ln\theta - \ln\Gamma(k) \right] \,dx \!](http://wpcontent.answers.com/math/a/d/8/ad87ea855f71036f04a153cac1f6fb12.png)
![= -\left[ (k-1) (\ln\theta + \psi(k)) - k - k \ln\theta - \ln\Gamma(k) \right] \!](http://wpcontent.answers.com/math/3/f/c/3fc6387b0016359b5150ea2a11b18df4.png)

where ψ(k) is the digamma function.
One can also show that (if we use the shape parameter k and the inverse scale parameter β),
![\mathbb{E}[\ln(x)] = \psi(k) - \ln(\beta)](http://wpcontent.answers.com/math/3/7/9/379447ae81736f73345f2948ba9fa565.png)
The directed Kullback–Leibler divergence between Γ(α0, β0) ('true' distribution) and Γ(α, β) ('approximating' distribution) is given by

The Laplace transform of the gamma PDF is

The likelihood function for N iid observations (x1, ..., xN) is

from which we calculate the log-likelihood function

Finding the maximum with respect to θ by taking the derivative and setting it equal to zero yields the maximum likelihood estimator of the θ parameter:

Substituting this into the log-likelihood function gives

Finding the maximum with respect to k by taking the derivative and setting it equal to zero yields

where

is the digamma function.
There is no closed-form solution for k. The function is numerically very well behaved, so if a numerical solution is desired, it can be found using, for example, Newton's method. An initial value of k can be found either using the method of moments, or using the approximation

If we let

then k is approximately

which is within 1.5% of the correct value.[citation needed] An explicit form for the Newton-Raphson update of this initial guess is given by Choi and Wette (1969) as the following expression:

where
denotes the trigamma function (the derivative of the digamma function).
The digamma and trigamma functions can be difficult to calculate with high precision. However, approximations known to be good to several significant figures can be computed using the following approximation formulae:

and

For details, see Choi and Wette (1969).
With known k and unknown θ, the posterior PDF for theta (using the standard scale-invariant prior for θ) is

Denoting

Integration over θ can be carried out using a change of variables, revealing that 1/θ is gamma-distributed with parameters
.

The moments can be computed by taking the ratio (m by m = 0)

which shows that the mean +/- standard deviation estimate of the posterior distribution for theta is
+/- 
Given the scaling property above, it is enough to generate gamma variables with θ = 1 as we can later convert to any value of β with simple division.
Using the fact that a Γ(1, 1) distribution is the same as an Exp(1) distribution, and noting the method of generating exponential variables, we conclude that if U is uniformly distributed on (0, 1], then −ln(U) is distributed Γ(1, 1). Now, using the "α-addition" property of gamma distribution, we expand this result:

where Uk are all uniformly distributed on (0, 1] and independent.
All that is left now is to generate a variable distributed as Γ(δ, 1) for 0 < δ < 1 and apply the "α-addition" property once more. This is the most difficult part.
We provide an algorithm without proof. It is an instance of the acceptance-rejection method:
, where
, then go to step 4, else go to step 5.
. Go to step 6.
.
, then increment m and go to step 2.Now, to summarize,
![\theta \left( \xi - \sum _{i=1} ^{[k]} {\ln U_i} \right) \sim \Gamma (k, \theta),](http://wpcontent.answers.com/math/c/4/e/c4ed98f33c39f06dc39ba1b97641876f.png)
where [k] is the integral part of k, and ξ has been generated using the algorithm above with δ = {k} (the fractional part of k), Uk and Vl are distributed as explained above and are all independent.
, then X has an exponential distribution with rate parameter λ.
, then X is identical to χ2(ν), the chi-square distribution with ν degrees of freedom. Conversely, if
and c is a positive constant, then
.
, then X has a Maxwell-Boltzmann distribution with parameter a.
, then 
In Bayesian inference, the gamma distribution is the conjugate prior to many likelihood distributions: the Poisson, exponential, normal (with known mean), Pareto, gamma with known shape σ, and inverse gamma with known shape parameter.
| This section requires expansion. |
The gamma distribution has been used to model the size of insurance claims and rainfalls. This means aggregate insurance claims and the amount of rainfall accumulated in a dam are modelled by a Gamma process.
| The Wikibook Statistics has a page on the topic of |
|
|||||||||||
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)
| Best of the Web: Gamma distribution |
Some good "Gamma distribution" pages on the web:
Math mathworld.wolfram.com |
| gamma random variable (mathematics) | |
| Anscombe residual | |
| nearest-neighbour methods |
| What can a gamma ray do to you? Read answer... | |
| What does a gamma ray do? Read answer... | |
| What is gamma diversity? Read answer... |
| What is the difference between Gamma distribution and Central limit theorem? | |
| If X is a gamma rv what is the distribution of x squared? | |
| How do you calculate mean of inverse gamma distribution? |
Copyrights:
![]() | Sci-Tech Dictionary. McGraw-Hill Dictionary of Scientific and Technical Terms. Copyright © 2003, 1994, 1989, 1984, 1978, 1976, 1974 by McGraw-Hill Companies, Inc. All rights reserved. Read more | |
![]() | Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Gamma distribution". Read more |
Mentioned in