Statistics Toolbox
  Go to function:
    Search    Help Desk 
hygepdf    Examples

Hypergeometric probability density function (pdf).

Syntax

Description

hygecdf(X,M,K,N) computes the hypergeometric pdf with parameters M, K, and N at the values in X. The arguments X, M, K, and N must all be the same size except that scalar arguments function as constant matrices of the common size of the other arguments.

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

The hypergeometric pdf is:


The result, y, is the probability of drawing exactly x items of a possible K in n drawings without replacement from 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?



[ Previous | Help Desk | Next ]