Skip to content

betaDistribution

betaDistribution(alpha, beta): Distribution

Defined in: beta-distribution.ts:23

The beta distribution over [0, 1] — the conjugate prior of a proportion, and the reference distribution behind the t and F families.

survival uses the exact reflection 1 − Iₓ(a, b) = I₁₋ₓ(b, a) rather than the subtraction it is written as, so the upper tail keeps its digits.

number

First shape parameter; must be positive.

number

Second shape parameter; must be positive.

Distribution

The distribution.

When either shape is not positive.