The story
One Exponential wait is the time until the next event; add up independent Exponential waits, each with mean , and you get the time until the -th event. That sum is . The definition extends smoothly to non-integer , which makes the Gamma a general-purpose model for positive, skewed quantities.
The mean is and the variance is . The shape controls the form: below 1 the density shoots up towards infinity at zero, at exactly 1 it is the Exponential, and above 1 it rises to a peak at before tailing off. As grows, the skew fades and the curve looks more and more Normal. The scale simply stretches the horizontal axis.
Formulas
Support
CDF
Expectation
Variance
Mode
Parameters
| Parameter | What it controls |
|---|---|
| The shape: roughly, how many Exponential waits are being added up. Larger means a less skewed, more bell-like curve. | |
| The scale: the mean of each underlying Exponential wait. Doubling doubles the mean and quadruples the variance. |
Where it shows up
- The total time to serve the next three customers in a queue.
- Monthly rainfall totals, which are positive and right-skewed.
- Insurance claim sizes.
- A prior for a Poisson rate or a Normal precision in Bayesian statistics.
Try this
- Fix and sweep from 0.5 to 10. Watch the curve go from a spike at zero, through the Exponential at , to an almost symmetric hump with its mode at .
- Set and , then open the Chi-squared page with . The two curves are the same, because Chi-squared(3) is .
- Choose , , press Draw 1000 and check the sample mean against and the sample variance against .
Related distributions
- The Exponential with rate is Gamma with and .
- Chi-squared with degrees of freedom is .
- Independent Gammas with the same add: is .
- For large it is approximately Normal with mean and variance .