Hypergeometric Distribution
y = hypergeom(n1,n2,t,k,c)
output
number of elements of type-1 in the population
number of elements of type-2 in the population
number of samples and t<=(n1+n2)
number of elements of type-1 in t samples. The domain of k is max(0,t-n2)....,min(t,n1).
It will allow the user to generate a hypergeometric random variate. In this case the function is independent of k and hence any value of k can be set.
It will allow the user to compute the probability p(k) of obtaining k from a hypergeometric distribution with parameters n1, n2, t.
It will allow the user to compute hypergeometric cdf P(k)
It will allow the user to compute hypergeometric cdf Q(k)
This function is used to calculate hypergeometric random variate, probability p(k) of obtaining k from a hypergeometric distribution and cumulative distribution functions P(k), Q(k).
// probability p(k) of obtaining k=1 from hypergeometric distribution with n1=5, n2=20 and t=3 n1=5 n2=20 t=3 k=1 c=2 y = hypergeom(n1,n2,t,k,c) disp(y) | ![]() | ![]() |