Module utils

Source
Expand description

Hypergeometric distribution.

Much of the code here is adapted from the implementation in statrs.

Functionsยง

binomial
Returns the binomial coefficient.
harmonic
Returns the sum of the first n - 1 terms of the harmonic series
hypergeometric_pmf
Returns the PMF of the hypergeometric distribution.
p_harmonic
Returns the sum of the first n - 1 terms of the p-harmonic series