Gamma Distribution#
Univariate, Continuous, Asymmetric, Non-Negative, Light-tailed
The gamma distribution is a continuous probability distribution that describes the time until a specified number of events occur in a Poisson process, in which \(\alpha\) events occur continuously and independently at a constant average rate \(\beta\). The gamma distribution is characterized by two parameters: the shape parameter \(\alpha\) and the rate parameter \(\beta\).
The gamma distribution is widely used in many settings, including modeling the time until a specified number of decays of a radioactive atom, the time until a specified number of seizures in patients with epilepsy, the time until a specified number of failures of a machine, and the time until a specified number of changes in the price of a stock.
The gamma distribution is used as a conjugate prior for the exponential distribution and for the precision of the normal distribution. It can also used as prior for scale parameters, in particular when there is interest in avoiding values close to zero or one wants to include more information than with other prior commonly used for scale parameter like the halfnormal or the exponential.
Key properties and parameters#
Support |
\(x \in (0, \infty)\) |
Mean |
\(\frac{\alpha}{\beta}\) |
Variance |
\(\frac{\alpha}{\beta^2}\) |
Parameters:
\(\alpha\) : (float) Shape parameter, \(\alpha > 0\).
\(\beta\) : (float) Rate parameter, \(\beta > 0\).
\(\mu\) : (float) Mean of the distribution.
\(\sigma\) : (float) Standard deviation of the distribution.
Alternative parametrization
The gamma distribution has two alternative parameterizations. In terms of \(\alpha\) and \(\beta\), and \(\mu\) and \(\sigma\).
The link between the 2 alternatives is given by:
where \(\mu\) is the mean of the distribution and \(\sigma\) is the standard deviation.
Probability Density Function (PDF)#
where \(\Gamma\) is the gamma function.
Cumulative Distribution Function (CDF)#
where \(\gamma\) is the lower incomplete gamma function.
See also
Common Alternatives:
Exponential Distribution - A special case of the Gamma distribution with the shape parameter \(\alpha = 1\).
Chi-Squared Distribution - A special case of the Gamma distribution with the shape parameter \(\alpha = \nu/2\) and the scale parameter \(\beta = 1/2\).
Related Distributions:
Inverse Gamma Distribution - The reciprocal of a gamma-distributed random variable.
Poisson Distribution - While the Gamma distribution models the time until a specified number of events occur in a Poisson process, the Poisson distribution models the number of events in fixed intervals of time or space.
Negative Binomial Distribution - The discrete counterpart of the Gamma distribution, modeling the number of trials needed to achieve a specified number of successes in a sequence of Bernoulli trials.