Skip to content

Beta¤

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

Beta distribution with parameters alpha and beta.

The PDF of a Beta distributed random variable X is defined on the interval 0 <= X <= 1 and has the form:

p(x; alpha, beta) = x ** {alpha - 1} * (1 - x) ** (beta - 1) / B(alpha, beta)
where B(alpha, beta) is the beta function, and the 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__(self, alpha: Union[float, Array], beta: Union[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.