mhyper {DescTools} | R Documentation |
Mean and Variance of the Hypergeometric Distribution
Description
Formula:
\mu = k \cdot \frac{m}{m + n}
\mathrm{Var}(X) = k \cdot \frac{m}{m + n} \cdot \frac{n}{m + n} \cdot \frac{m + n - k}{m + n - 1}
Usage
mhyper(m, n, k)
Arguments
m |
Number of successes in the population |
n |
Number of failures in the population |
k |
Sample size |
Value
List with mean and variance
See Also
Examples
mhyper(m = 20, n = 30, k = 10)
[Package DescTools version 0.99.60 Index]