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}\)

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

References

Rice, J.A. (2006). Mathematical Statistics and Data Analysis. Cengage Learning.

See also

Examples

mhyper(m = 20, n = 30, k = 10)
#> $mean
#> [1] 4
#> 
#> $variance
#> [1] 1.96
#>