Statistics Toolbox | ![]() ![]() |
Hypergeometric cumulative distribution function (cdf)
Syntax
Description
hygecdf(X,M,K,N)
computes the hypergeometric cdf 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 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?
See Also
cdf
, hygeinv
, hygepdf
, hygernd
, hygestat
![]() | hougen | hygeinv | ![]() |