Function File: [mn, v] = hygestat (t, m, n)

Compute mean and variance of the hypergeometric distribution.

Arguments

  • t is the total size of the population of the hypergeometric distribution. The elements of t must be positive natural numbers
  • m is the number of marked items of the hypergeometric distribution. The elements of m must be natural numbers
  • n is the size of the drawn sample of the hypergeometric distribution. The elements of n must be positive natural numbers

t, m, and n must be of common size or scalar

Return values

  • mn is the mean of the hypergeometric distribution
  • v is the variance of the hypergeometric distribution

Examples

t = 4:9;
m = 0:5;
n = 1:6;
[mn, v] = hygestat (t, m, n)

[mn, v] = hygestat (t, m, 2)

References

  1. Wendy L. Martinez and Angel R. Martinez. Computational Statistics Handbook with MATLAB. Appendix E, pages 547-557, Chapman & Hall/CRC, 2001.
  2. Athanasios Papoulis. Probability, Random Variables, and Stochastic Processes. McGraw-Hill, New York, second edition, 1984.

Package: statistics