Statistics Toolbox    
hygepdf

Hypergeometric probability density function (pdf)

Syntax

Description

Y = hygecdf(X,M,K,N) computes the hypergeometric pdf at each of the values in X using the corresponding parameters in M, K, and N. Vector or matrix inputs for X, M, K, and N must all have the same size. A scalar input is expanded to a constant matrix with the same dimensions as the other inputs.

The parameters in M, K, and N must all be positive integers, with N  M. The values in X must be less than or equal to all the parameter values.

The hypergeometric pdf is

The result, y, is the probability of drawing exactly x of a possible K items in n drawings without replacement from a group of M objects.

Examples

Suppose you have a lot of 100 floppy disks and you know that 20 of them are defective. What is the probability of drawing 0 through 5 defective floppy disks if you select 10 at random?

See Also

hygecdf, hygeinv, hygernd, hygestat, pdf


  hygeinv hygernd