Negative hypergeometric distribution

mpsci.distributions.negative_hypergeometric.cdf(k, ntotal, ngood, untilnbad)

Cumulative distribution function of the negative hypergeometric distr.

mpsci.distributions.negative_hypergeometric.logpmf(k, ntotal, ngood, untilnbad)

Logarithm of the prob. mass function of the negative hypergeometric distr.

mpsci.distributions.negative_hypergeometric.mean(ntotal, ngood, untilnbad)

Mean of the negative hypergeometric distribution.

mpsci.distributions.negative_hypergeometric.pmf(k, ntotal, ngood, untilnbad)

Probability mass function of the negative hypergeometric distribution.

mpsci.distributions.negative_hypergeometric.sf(k, ntotal, ngood, untilnbad)

Survival function of the negative hypergeometric distribution.

mpsci.distributions.negative_hypergeometric.support_pmf(ntotal, ngood, untilnbad)

Support and PMF of the negative hypergeometric distribution.

Returns:

  • sup (range) – The range of integers in the support. (In Python 3, use list(sup) to get the list of integers in the support.)

  • p (sequence of mpmath floats) – The probability of each integer in the support.

mpsci.distributions.negative_hypergeometric.var(ntotal, ngood, untilnbad)

Variance of the negative hypergeometric distribution.