Hypergeometric mean and variance
MN = distfun_hygestat(M,k,N) [MN,V] = distfun_hygestat(M,k,N)
a matrix of doubles, the size of total population. M belongs to the set {0,1,2,3........}
a matrix of doubles, the number of success states in the population. k belongs to the set {0,1,2,3,.......M-1,M}
a matrix of doubles, the total number of draws in the experiment. N belongs to the set {0,1,2,3.......M-1,M}
a matrix of doubles, the mean
a matrix of doubles, the variance
Computes statistics from the Hypergeometric distribution.
Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.
The Mean and Variance of the Hypergeometric Distribution are
The expression (M-N)/(M-1) is called the correction factor. This comes from the comparison with the variance of the binomial distribution with parameters N and pr=k/M.
http://en.wikipedia.org/wiki/Hypergeometric_distribution