Skip to content

Beta¤

distreqx.distributions.Beta(distreqx.distributions.AbstractSampleLogProbDistribution, distreqx.distributions.AbstractSTDDistribution, distreqx.distributions.AbstractProbDistribution, distreqx.distributions.AbstractSurvivalDistribution) ¤

Beta distribution with parameters alpha and beta.

The PDF of a Beta-distributed random variable \(X\) is defined on the interval \(0 \le X \le 1\) and has the form:

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

where \(B(\alpha, \beta)\) is the beta function, and \(\alpha, \beta > 0\) are the shape parameters.

Note that the support of the distribution does not include \(x = 0\) or \(x = 1\) if \(\alpha < 1\) or \(\beta < 1\), respectively.

__init__(alpha: float | Float[Array, '...'], beta: float | Float[Array, '...']) ¤

Initializes a Beta distribution.

Arguments:

  • alpha: Shape parameter alpha of the distribution. Must be positive.
  • beta: Shape parameter beta of the distribution. Must be positive.