ArticleslgStudy

mathematics

Gamma distribution

Gamma distribution is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Gamma distribution rather than just read about it. In short: 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.

Gamma distribution — main illustration
Gamma distribution — illustration

Key takeaways

  • Gamma distribution belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Gamma distribution to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Gamma distribution from memory before moving on to harder problems.

Reference excerpt

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.

Illustrations

Gamma distribution illustration
Gamma distribution illustration
Gamma distribution: Illustration of the gamma PDF for parameter values over α and x with θ set to 1, 2, 3, 4, 5, and 6. One can see each θ layer by itself here  as well as by α  and x. .
Illustration of the gamma PDF for parameter values over α and x with θ set to 1, 2, 3, 4, 5, and 6. One can see each θ layer by itself here as well as by α and x. .
Gamma distribution: Bounds and asymptotic approximations to the median of the gamma distribution.  The cyan-colored region indicates the large gap between published lower and upper bounds before 2021.
Bounds and asymptotic approximations to the median of the gamma distribution. The cyan-colored region indicates the large gap between published lower and upper bounds before 2021.
Gamma distribution: Two gamma distribution median asymptotes which were proved in 2023 to be bounds (upper solid red and lower dashed red), of the from ν(α)≈2−1/α(A+α), and an interpolation between them that makes an approximation (dotted red) that is exact at α = 1 and has maximum relative error of about 0.6%. The cyan shaded region is the remaining gap between upper and lower bounds (or conjectured bounds), including these new bounds and the bounds in the previous figure.
Two gamma distribution median asymptotes which were proved in 2023 to be bounds (upper solid red and lower dashed red), of the from ν(α)≈2−1/α(A+α), and an interpolation between them that makes an approximation (dotted red) that is exact at α = 1 and has maximum relative error of about 0.6%. The cyan shaded region is the remaining gap between upper and lower bounds (or conjectured bounds), including these new bounds and the bounds in the previous figure.

Worked examples

Example 1 — a first encounter with Gamma distribution

Start with the simplest possible case. Write down what Gamma distribution claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Gamma distribution before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Gamma distribution ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Gamma distribution

In research
Gamma distribution appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Gamma distribution in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Gamma distribution is common in secondary-school and first-year university syllabi. It links to neighbouring topics Conjugate prior distributions, Continuous distributions, Exponential family distributions, so understanding it makes those chapters shorter.
In everyday life
Look for Gamma distribution outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Gamma distribution” →

How to study Gamma distribution in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Gamma distribution means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Gamma distribution out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Gamma distribution in simple terms?

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.

Why does Gamma distribution matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Gamma distribution?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Gamma distribution.

Tags

  • Conjugate prior distributions
  • Continuous distributions
  • Exponential family distributions
  • Factorial and binomial topics
  • Gamma and related functions
  • Infinitely divisible probability distributions
  • Survival analysis

Keep exploring