Statistics Toolbox
  Go to function:
    Search    Help Desk 
hygecdf    Examples

Hypergeometric cumulative distribution function (cdf).

Syntax

Description

hygecdf(X,M,K,N) computes the hypergeometric cdf 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 hypergeometric cdf is:


The result, p, is the probability of drawing up to x items of a possible K 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 zero to two defective floppies if you select 10 at random?



[ Previous | Help Desk | Next ]