Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

hygecdf - Hypergeometric cumulative distribution function

Syntax

hygecdf(X,M,K,N)

Description

hygecdf(X,M,K,N) computes the hypergeometric cdf at each of the values in X using the corresponding size of the population, M, number of items with the desired characteristic in the population, K, and number of samples drawn, 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 hypergeometric cdf is

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

p = hygecdf(2,100,20,10)
p =
  0.6812

See Also

cdf, hygepdf, hygeinv, hygestat, hygernd

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS