Check that N
, K
, and n
are positive Integers, with K ≤ N, n ≤ N.
TODO: generate: function (n) { var randomVariables = []; return randomVariables; }
Iterate over the domain, calculating the probability mass and cumulative distribution functions.
Mix in the convenience methods for p(x) and F(x).
Hypergeometric Distribution
The Hypergeometric Distribution describes the probability of
k
successes inn
draws without replacement from a finite population of sizeN
containing exactlyK
successes. It's commonly used in statistical quality control.Assumptions
N
,K
, andn
are positive Integers with K ≤ N, n ≤ K.Use
mctad.hypergeometric(N, K, n)
Inline Comments