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.
Parameters
Section titled “Parameters”population
Section titled “population”number
Total size N; a non-negative integer.
successes
Section titled “successes”number
Successes in the population K; in [0, N].
number
Number drawn n; in [0, N].
Returns
Section titled “Returns”The distribution.
Throws
Section titled “Throws”When any argument is not an integer in range.