Skip to content

Gamma¤

distreqx.distributions.Gamma ¤

Gamma distribution with parameters concentration and rate.

The PDF of a Gamma distributed random variable \(X\) is defined on the interval \(X > 0\) and has the form:

\[p(x; \alpha, \beta) = \frac{\beta^\alpha}{\Gamma(\alpha)} x^{\alpha - 1} e^{-\beta x}\]

where \(\alpha > 0\) is the concentration (shape) parameter and \(\beta > 0\) is the rate (inverse scale) parameter.

__init__(concentration: typing.Union[float, Float[Array, ...]], rate: typing.Union[float, Float[Array, ...]]) ¤

Initializes a Gamma distribution.

Arguments:

  • concentration: Concentration (shape) parameter. Must be positive.
  • rate: Rate (inverse scale) parameter. Must be positive.