<< hypg_inv Supplementary distibution functions hypg_rnd >>

Grocer >> Supplementary distibution functions > hypg_pdf

hypg_pdf

hypergeometric probability distribution

CALLING SEQUENCE

[pdf]=hypg_pdf(k,n,K,N)

PARAMETERS

Input

* k,n,K,N = the parameters of the distibution (probability of k successes in n draws, without replacement, from a finite population of size N that contains exactly K successes, or matrix of parameters with the same size (pxq)

 

Output

* pdf = (pxq) vector containing pdf for each x

DESCRIPTION

Calculates the hypergeometric pdf 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)

AUTHOR

Eric Dubois 2002

Report an issue
<< hypg_inv Supplementary distibution functions hypg_rnd >>