represents a hypergeometric distribution.
- A hypergeometric distribution gives the distribution of the number of successes in n draws from a population of size ntot containing nsucc successes.
- HypergeometricDistribution allows n, nsucc, and ntot to be any integers such that 0<n≤ntot and 0≤nsucc≤ntot.
- HypergeometricDistribution can be used with such functions as Mean, CDF, and RandomVariate. »
Background & Context
- HypergeometricDistribution[n,nsucc,ntot] represents a discrete statistical distribution defined for integer values contained in and determined by the integer parameters n, nsucc, and ntot that satisfy 0<n≤ntot and 0≤nsucc≤ntot and that represent the number of draws of the experiment, the number of successes within that population, and the size of the population drawn from, respectively. The hypergeometric distribution has a probability density function (PDF) that is discrete and unimodal. The distribution is sometimes also referred to as the central or classic hypergeometric distribution to differentiate it from the related and qualitatively-similar distributions of Wallenius (WalleniusHypergeometricDistribution) and Fisher (FisherHypergeometricDistribution).
- The hypergeometric distribution gives the distribution of the number of successes in n draws (without replacement) from a population of size ntot containing nsucc successes and can be visualized as an urn model whereby n balls are drawn without replacement from an urn containing nsucc blue balls and ntot-nsucc green balls. The hypergeometric distribution dates back to the 1710s work of de Moivre, who obtained it as a solution to an urn problem proposed even earlier by Huygens and related to the urn problem described above. The name of the hypergeometric distribution derives from the fact that its PDF can be expressed in terms of the generalized hypergeometric function (Hypergeometric2F1), and the distribution itself is used to model a number of quantities across various fields. In particular, the hypergeometric distribution has been used as a tool in the study of queueing models, manufacturing systems, population dynamics, contingency table analysis, and quantum cryptography.
- RandomVariate can be used to give one or more machine- or arbitrary-precision (the latter via the WorkingPrecision option) pseudorandom variates from a hypergeometric distribution. Distributed[x,HypergeometricDistribution[n,nsucc,ntot]], written more concisely as xHypergeometricDistribution[n,nsucc,ntot], can be used to assert that a random variable x is distributed according to a hypergeometric distribution. Such an assertion can then be used in functions such as Probability, NProbability, Expectation, and NExpectation.
- The probability density and cumulative distribution functions may be given using PDF[HypergeometricDistribution[n,nsucc,ntot],x] and CDF[HypergeometricDistribution[n,nsucc,ntot],x], though one should note that there is no closed-form expression for its PDF. The mean, median, variance, raw moments, and central moments may be computed using Mean, Median, Variance, Moment, and CentralMoment, respectively. These quantities can be visualized using DiscretePlot.
- DistributionFitTest can be used to test if a given dataset is consistent with a hypergeometric distribution, EstimatedDistribution to estimate a hypergeometric parametric distribution from given data, and FindDistributionParameters to fit data to a hypergeometric distribution. ProbabilityPlot can be used to generate a plot of the CDF of given data against the CDF of a symbolic hypergeometric distribution and QuantilePlot to generate a plot of the quantiles of given data against the quantiles of a symbolic hypergeometric distribution.
- TransformedDistribution can be used to represent a transformed hypergeometric distribution, CensoredDistribution to represent the distribution of values censored between upper and lower values, and TruncatedDistribution to represent the distribution of values truncated between upper and lower values. CopulaDistribution can be used to build higher-dimensional distributions that contain a hypergeometric distribution, and ProductDistribution can be used to compute a joint distribution with independent component distributions involving hypergeometric distributions.
- HypergeometricDistribution is related to a number of other statistical distributions. For example, HypergeometricDistribution is generalized by both FisherHypergeometricDistribution and WalleniusHypergeometricDistribution in the sense that HypergeometricDistribution[n,nsucc,ntot] has the same PDF as both FisherHypergeometricDistribution[n,nsucc,ntot,1] and WalleniusHypergeometricDistribution[n,nsucc,ntot,1]. As , HypergeometricDistribution limits to BinomialDistribution, and MultivariateHypergeometricDistribution is an obvious higher-dimensional generalization of HypergeometricDistribution. HypergeometricDistribution is also related to GeometricDistribution, NormalDistribution, PoissonDistribution, PearsonDistribution, and BetaBinomialDistribution.
Examplesopen allclose all
An urn contains white balls and 1 blue ball. Two players draw balls from the urn without replacement until the blue ball is drawn. The player who draws the blue ball wins. Find the chance of winning for the player who draws the first ball. Assuming the first player wins at the draw, the probability that the previous draws were all white follows HypergeometricDistribution:
Properties & Relations (8)
The characteristic function of the hypergeometric distribution is defined in terms of Hypergeometric2F1:
Hypergeometric distribution is a special case of FisherHypergeometricDistribution:
Hypergeometric distribution is a special case of WalleniusHypergeometricDistribution:
Hypergeometric distribution is equivalent to a bivariate MultivariateHypergeometricDistribution:
HypergeometricDistribution can be obtained from two independent binomial variates conditioning of their total:
Possible Issues (4)
Wolfram Research (2007), HypergeometricDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/HypergeometricDistribution.html.
Wolfram Language. 2007. "HypergeometricDistribution." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/HypergeometricDistribution.html.
Wolfram Language. (2007). HypergeometricDistribution. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HypergeometricDistribution.html