In probability theory and statistics, the gamma distribution is a versatile two-parameter family of continuous probability distributions. The exponential distribution, Erlang distribution, and chi-squared distribution are special cases of the gamma distribution. There are two equivalent parameterizations in common use:
With a shape parameter α and a scale parameter θ With a shape parameter α and a rate parameter β=1/θ In each of these forms, both parameters are positive real numbers. The distribution has important applications in various fields, including econometrics, Bayesian statistics, and life testing. In econometrics, the (α, θ) parameterization is common for modeling waiting times, such as the time until death, where it often takes the form of an Erlang distribution for integer α values. Bayesian statisticians prefer the (α,β) parameterization, utilizing the gamma distribution as a conjugate prior for several inverse scale parameters, facilitating analytical tractability in posterior distribution computations. The gamma distribution is the maximum entropy probability distribution (both with respect to a uniform base measure and a 1/x base measure) for a random variable X for which E[X] = αθ = α/β is fixed and greater than zero, and E[ln X] = ψ(α) + ln θ = ψ(α) − ln β is fixed (ψ is the digamma function).
Definitions The parameterization with α and θ appears to be more common in econometrics and other applied fields, where the gamma distribution is frequently used to model waiting times. For instance, in life testing, the waiting time until death is a random variable that is frequently modeled with a gamma distribution. See Hogg and Craig for an explicit motivation. The parameterization with α and β is more common in Bayesian statistics, where the gamma distribution is used as a conjugate prior distribution for various types of inverse scale (rate) parameters, such as the λ of an exponential distribution or a Poisson distribution – or for that matter, the β of the gamma distribution itself. The closely related inverse-gamma distribution is used as a conjugate prior for scale parameters, such as the variance of a normal distribution. If α is a positive integer, then the distribution represents an Erlang distribution; i.e., the sum of α independent exponentially distributed random variables, each of which has a mean of θ.
Characterization using shape α and rate β The gamma distribution can be parameterized in terms of a shape parameter α and an inverse scale parameter β = 1/θ, called a rate parameter. A random variable X that is gamma-distributed with shape α and rate β is denoted X∼Γ(α,β)≡Gamma(α,β) The corresponding probability density function in the shape-rate parameterization is f(x;α,β)=xα−1e−βxβαΓ(α) for x>0α,β>0, where Γ(α) is the gamma function. For all positive integers, Γ(α)=(α−1)!. The cumulative distribution function is the regularized gamma function: F(x;α,β)=∫0xf(u;α,β)du=γ(α,βx)Γ(α), where γ(α,βx) is the lower incomplete gamma function. If α is a positive integer (i.e., the distribution is an Erlang distribution), the cumulative distribution function has the following series expansion: F(x;α,β)=1−∑i=0α−1(βx)ii!e−βx=e−βx∑i=α∞(βx)ii!.
Characterization using shape α and scale θ A random variable X that is gamma-distributed with shape α and scale θ is denoted by X∼Γ(α,θ)≡Gamma(α,θ)
The probability density function using the shape-scale parametrization is f(x;α,θ)=xα−1e−x/θθαΓ(α) for x>0 and α,θ>0. Here Γ(α) is the gamma function evaluated at α. The cumulative distribution function is the regularized gamma function: F(x;α,θ)=∫0xf(u;α,θ)du=γ(α,xθ)Γ(α), where γ(α,xθ) is the lower incomplete gamma function. It can also be expressed as follows, if α is a positive integer (i.e., the distribution is an Erlang distribution): F(x;α,θ)=1−∑i=0α−11i!(xθ)ie−x/θ=e−x/θ∑i=α∞1i!(xθ)i. Both parametrizations are common because either can be more convenient depending on the situation.
Properties
Mean and variance The mean of gamma distribution is given by the product of its shape and scale parameters: μ=αθ=α/β The variance is: σ2=αθ2=α/β2 The square root of the inverse shape parameter gives the coefficient of variation: σ/μ=α−0.5=1/α
Skewness The skewness of the gamma distribution only depends on its shape parameter, α, and it is equal to 2/α.
Higher moments The r-th raw moment is given by:
E[Xr]=θrΓ(α+r)Γ(α)=θrαr‾ with αr‾ the rising factorial.
Cumulants The r-th cumulant is given by:
κr=θrα(r−1)!=θrαΓ(r).
Median approximations and bounds
Unlike the mode and the mean, which have readily calculable formulas based on the parameters, the median does not have a closed-form equation. The median for this distribution is the value ν such that 1Γ(α)θα∫0νxα−1e−x/θdx=12. A rigorous treatment of the problem of determining an asymptotic expansion and bounds for the median of the gamma distribution was handled first by Chen and Rubin, who proved that (for θ=1) α−13<ν(α)<α, where μ(α)=α is the mean and ν(α) is the median of the Gamma(α,1) distribution. For other values of the scale parameter, the mean scales to μ=αθ, and the median bounds and approximations would be similarly scaled by θ. K. P. Choi found the first five terms in a Laurent series asymptotic approximation of the median by comparing the median to Ramanujan's θ function. Berg and Pedersen found more terms: ν(α)=α−13+8405α−1+18425515α−2+22483444525α−3−1900640815345358875α−4−𝒪(α−5)+⋯
… excerpt ends here. Continue reading the full article.





