Skip to content

hypergeometricDistribution

hypergeometricDistribution(population, successes, draws): Distribution

Defined in: hypergeometric-distribution.ts:24

The hypergeometric distribution — successes drawn without replacement.

The only family here with no closed form for its tails: unlike the binomial, whose sampling-with-replacement counterpart collapses into an incomplete beta, this one has to be summed. Each tail is summed from its own end inward, so every term is positive and nothing is reached by subtracting a near-one value from one.

number

Total size N; a non-negative integer.

number

Successes in the population K; in [0, N].

number

Number drawn n; in [0, N].

Distribution

The distribution.

When any argument is not an integer in range.