{ } Raw JSON

bundles / scipy latest / docs

Doc

Negative Hypergeometric Distribution

docs/tutorial:stats:discrete_nhypergeom

Consider a box containing balls: red and blue. We randomly sample balls from the box, one at a time and without replacement, until we have picked blue balls. nhypergeom is the distribution of the number of red balls we have picked.

for , where the binomial coefficients are defined as,

The cumulative distribution, survivor function, hazard function, cumulative hazard function, inverse distribution function, moment generating function, and characteristic function on the support of are mathematically intractable.

Implementation: scipy.stats.nhypergeom