hygepmf
The hygepmf function calculates the hypergeometric probability mass function.
Synopsis
hygepmf(x,m,n,k)
Summary
The hypergeometric probability mass function has the following parameters:
x number of white marbles drawn without replacement from a jar containing both black and white marbles.
m number of white marbles in the jar.
n number of black marbles in the jar.
k number of marbles drawn from the jar.
Examples
To shows the hypergeometric probabilty mass function, create and populate the array, then calculate the hypergeometric probability mass function, all within a single AFL statement:
AFL% apply(apply(build(<x:int64>[i=0:0],3),m,4,n,4,k,4),pmf,hygepmf(x,m,n,k));
The output is:
{i} x,m,n,k,pmf {0} 3,4,4,4,0.228571
Â
Â