Lably
Skip to content

Gamma distribution

Probability distribution

  • 17 min read
  • 6 chapters
  • 1 lab on Lably

Learn it on Lably

  1. With a shape parameter α and a scale parameter θ
  2. 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.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Statistics and probability