Name
hypg_cdf — hypergeometric cumulative distribution
CALLING SEQUENCE
[p]=hypg_cdf(k,n,K,N)
PARAMETERS
- Input
k,n,K,N are the parameters as described above or matrix of parameters with the same size (pxq)
- Output
p = a (pxq) matrix of cumulative probabilities from the distribution
DESCRIPTION
Calculates the hypergeometric cdf function where the hypergeometric distribution corresponds to the probability of having k elements belonging to a class of size K in a random draw of n elements chosen among N.
EXAMPLE
p=hypg_pdf(5,15,20,30)