Statistics Toolbox    
hygestat

Mean and variance for the hypergeometric distribution

Syntax

Description

[MN,V] = hygestat(M,K,N) returns the mean and variance for the hypergeometric distribution with parameters specified by M, K, and N. Vector or matrix inputs for M, K, and N must have the same size, which is also the size of MN and V. A scalar input for M, K, or N is expanded to a constant matrix with the same dimensions as the other inputs.

The mean of the hypergeometric distribution with parameters M, K, and N is NK/M, and the variance is

Examples

The hypergeometric distribution approaches the binomial distribution, where
p = M as M goes to infinity.

See Also

hygecdf, hygeinv, hygepdf, hygernd


  hygernd icdf