Gamma Distribution — Definition, Formula & Examples
The gamma distribution is a continuous probability distribution that models the time you must wait for a certain number of events to occur in a Poisson process. It is defined by two parameters — shape () and rate () — and produces only positive values, making it useful for modeling waiting times, lifespans, and other non-negative quantities.
A continuous random variable follows a gamma distribution with shape parameter and rate parameter , written , if its probability density function is for , where is the gamma function. Its mean is and its variance is .
Key Formula
Where:
- = Shape parameter (number of events), must be positive
- = Rate parameter (events per unit time), must be positive
- = Gamma function; if α is a positive integer, Γ(α) = (α − 1)!
- = Value of the random variable (must be positive)
How It Works
The shape parameter controls the form of the distribution: when , the gamma reduces to an exponential distribution; as increases, the distribution becomes more symmetric and bell-shaped. The rate parameter controls how quickly the density decays. To find probabilities, you integrate the PDF over the desired interval, which typically requires software or gamma distribution tables. The gamma distribution generalizes naturally from the exponential: if each event's waiting time is , then the total wait for events is .
Worked Example
Problem: A call center receives calls at a rate of 2 per minute (Poisson process). Find the mean and variance of the waiting time until the 5th call arrives.
Identify parameters: We are waiting for α = 5 events with a rate of β = 2 per minute, so the waiting time follows Gamma(5, 2).
Compute the mean: The mean of a gamma distribution is α / β.
Compute the variance: The variance is α / β².
Answer: The expected waiting time until the 5th call is 2.5 minutes, with a variance of 1.25 minutes².
Why It Matters
The gamma distribution appears throughout reliability engineering, queueing theory, and Bayesian statistics (where it serves as the conjugate prior for the Poisson rate parameter). If you take a course in mathematical statistics or stochastic processes, you will use it repeatedly to model waiting times and aggregate event counts.
Common Mistakes
Mistake: Confusing the rate parameterization (β as rate) with the scale parameterization (θ = 1/β as scale).
Correction: Always check which parameterization your textbook or software uses. With rate β, the mean is α/β; with scale θ, the mean is αθ. Mixing them up inverts your answers.
