Gamma distribution

The gamma distribution is a probability distribution that takes two parameters. The Erlang distribution and chi-squared distribution are both special cases of the gamma distribution.

Like the Erlang distribution, the gamma distribution's parameters are a shape parameter and a rate parameter . Unlike the Erlang distribution, does not need to be an integer, because the gamma distribution is defined using the gamma function instead of the factorial.

The probability density function of the gamma distribution is