You are here: Symbol Reference > Probabilities Namespace > Functions > Probabilities.HypGeometricPDF Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Probabilities.HypGeometricPDF Function

Hypergeometric probability density function (PDF).

Pascal
function HypGeometricPDF(x: Integer; M: Integer; K: Integer; N: Integer): double; overload;
Parameters 
Description 
Distribution domain, integer on closed interval [0,N]. 
Defines total number of elements, valid values ae integers on closed interval [0,X]. 
Defines number of elements with certain traits, valid values are integers on closed interval [X,M]. 
Defines number of samples, valid values are integers on closed interval [X,M]. 

the hypergeometric probability density function (PDF) for value x using the integer parameters M (total number of elements), K (number of elements with a certain trait) and N (number of samples).

Calculates the hypergeometric distribution probability density function. The hypergeometric probability density function is defined by the following equation: 

 

where M is the total size of elements, K is the number of elements with desired trait and N is the number of samples drawn.The function returns the probability of drawing exactly x elements of a possible K in N drawings without replacement from group of M elements. 

Sampling from a finite population can be done in one of two ways. An item can be selected, examined, and returned to the population for possible reselection; or it can be selected, examined, and kept, thus preventing its reselection in subsequent draws. The former is called sampling with replacement, whereas the later is called sampling without replacement. 

Sampling with replacement guarantees that the draws are independent. In sampling without the replacement the draws are not independent. Thus if we sample without replacement, the random variable x, the number of successes in N draws, is no longer binomial. Rather, it follows a hypergeometric distribution. 

If the number of items sampled (N) is small relative to the number of objects from which the sample is drawn (M), then the BinomPDF distribution can be used to approximate hypergeometric probability.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!