- Wallenius' noncentral hypergeometric distribution
Probability mass function for Wallenius' Noncentral Hypergeometric Distribution for different values of the odds ratio ω.
m1 = 80, m2 = 60, n = 100, ω = 0.1 ... 20
probability theoryand statistics, Wallenius' noncentral hypergeometric distribution is a generalization of the hypergeometric distributionwhere items are sampled with bias.
This distribution can be illustrated as an urn model with bias. Assume, for example, that an urn contains "m"1 red balls and "m"2 white balls, totalling "N" = "m"1 + "m"2 balls. Each red ball has the weight ω1 and each white ball has the weight ω2. We will say that the odds ratio is ω = ω1 / ω2. Now we are taking "n" balls, one by one, in such a way that the probability of taking a particular ball at a particular draw is equal to its proportion of the total weight of all balls that lie in the urn at that moment. The number of red balls "x"1 that we get in this experiment is a random variable with Wallenius' noncentral hypergeometric distribution.
The matter is complicated by the fact that there is more than one noncentral hypergeometric distribution. Wallenius' noncentral hypergeometric distribution is obtained if balls are sampled one by one in such a way that there is
competitionbetween the balls. Fisher's noncentral hypergeometric distributionis obtained if the balls are sampled simultaneously or independently of each other. Unfortunately, both distributions are known in the literature as "the" noncentral hypergeometric distribution. It is important to be specific about which distribution is meant when using this name.
The two distributions are both equal to the (central)
hypergeometric distributionwhen the odds ratio is 1.
It is far from obvious why these two distributions are different. See the Wikipedia entry on
noncentral hypergeometric distributionsfor a more detailed explanation of the difference between these two probability distributions.
name =Univariate Wallenius' Noncentral Hypergeometric Distribution
mean =Approximated by solution to
variance =, where
Wallenius' distribution is particularly complicated because each ball has a probability of being taken that depends not only on its weight, but also on the total weight of its competitors. And the weight of the competing balls depends on the outcomes of all preceding draws.
This recursive dependency gives rise to a
difference equationwith a solution that is given in open form by the integral in the expression of the probability mass function in the table above.
Closed form expressions for the probability mass function exist (Lyons, 1980), but they are not very useful for practical calculations because of extreme numerical instability, except in degenerate cases.
Several other calculation methods are used, including
recursion, Taylor expansion and numerical integration(Fog, 2007, 2008).
The most reliable calculation method is recursive calculation of f("x","n") from f("x","n"-1) and f("x"-1,"n"-1) using the recursion formula given below under properties. The probabilities of all ("x","n") combinations on all possible trajectories leading to the desired point are calculated, starting with f(0,0) = 1 as shown on the figure to the right. The total number of probabilities to calculate is "n"("x"+1)-"x"2. Other calculation methods must be used when "n" and "x" are so big that this method is too inefficient.
The probability that all balls have the same color is easier to calculate. See the formula below under multivariate distribution.
No exact formula for the mean is known (short of complete enumeration of all probabilities). The equation given above is reasonably accurate. This equation can be solved for μ by Newton-Raphson iteration. The same equation can be used for estimating the odds from an experimentally obtained value of the mean.
The distribution can be expanded to any number of colors "c" of balls in the urn. The multivariate distribution is used when there are more than two colors.
name =Multivariate Wallenius' Noncentral Hypergeometric Distribution
mean =Approximated by solution to
variance =Approximated by variance of
Fisher's noncentral hypergeometric distributionwith same mean.
The probability mass function can be calculated by various Taylor expansion methods or by
numerical integration(Fog, 2008).
The probability that all balls have the same color, "j", can be calculated as::for "x"j = "n" ≤ "m"j, where the underlined superscript denotes the falling factorial as defined above.
A reasonably good approximation to the mean can be calculated using the equation given above. The equation can be solved by defining θ so that:and solving:for θ by Newton-Raphson iteration.
The equation for the mean is also useful for estimating the odds from experimentally obtained values for the mean.
No good way of calculating the variance is known. The best known method is to approximate the multivariate Wallenius distribution by a multivariate
Fisher's noncentral hypergeometric distributionwith the same mean, and insert the mean as calculated above in the approximate formula for the variance of the latter distribution.
The order of the colors is arbitrary so that any colors can be swapped.
The weights can be arbitrarily scaled:: for all .
Colors with zero number ("m"i = 0) or zero weight (ωi = 0) can be omitted from the equations.
Colors with the same weight can be joined::::::where is the (univariate, central) hypergeometric distribution probability.
Complementary Wallenius' noncentral hypergeometric distribution
Probability mass function for the Complementary Wallenius' Noncentral Hypergeometric Distribution for different values of the odds ratio ω.
m1 = 80, m2 = 60, n = 40, ω = 0.05 ... 10
The balls that are "not" taken in the urn experiment have a distribution that is different from Wallenius' noncentral hypergeometric distribution, due to a lack of symmetry. The distribution of the balls not taken can be called the complementary Wallenius' noncentral hypergeometric distribution.
Probabilities in the complementary distribution are calculated from Wallenius' distribution by replacing "n" with "N"-"n", "x"i with "m"i - "x"i, and ωi with 1/ωi.
* An implementation for the R programming language is available as the package named [http://cran.stat.ucla.edu/src/contrib/Descriptions/BiasedUrn.html BiasedUrn] . Includes univariate and multivariate probability mass functions, distribution functions, quantiles,
random variablegenerating functions, mean and variance.
* Implementation in
C++is available from [http://www.agner.org/random/ www.agner.org] .
title=A non-central multivariate hypergeometric distribution arising from biased sampling with application to selective predation
periodical=Journal of Applied Probability
title=Random number theory
title=Calculation Methods for Wallenius' Noncentral Hypergeometric Distribution
periodical=Communications In statictics, Simulation and Computation
title=Univariate Discrete Distributions
publisher=Wiley and Sons
place=Hoboken, New Jersey.
title=Closed Expressions for Noncentral Hypergeometric Probabilities
periodical=Communications In statictics, B
first=B. F. J.
title=A Model for Certain Types of Selection Experiments
title=Biased Sampling: The Non-central Hypergeometric Probability Distribution. Ph.D. Thesis
publisher=Stanford University, Department of Statistics.
Wikimedia Foundation. 2010.
Look at other dictionaries:
Fisher's noncentral hypergeometric distribution — Probability mass function for Fisher s noncentral hypergeometric distribution for different values of the odds ratio ω. m 1 = 80, m 2 = 60, n = 100, ω = 0.01, ..., 1000In probability theory and statistics, Fisher s noncentral hypergeometric… … Wikipedia
Noncentral hypergeometric distributions — In statistics, the hypergeometric distribution is the discrete probability distribution generated by picking colored balls at random from an urn without replacement. Various generalizations to this distribution exist for cases where the picking… … Wikipedia
List of statistics topics — Please add any Wikipedia articles related to statistics that are not already on this list.The Related changes link in the margin of this page (below search) leads to a list of the most recent changes to the articles listed below. To see the most… … Wikipedia
List of probability distributions — Many probability distributions are so important in theory or applications that they have been given specific names.Discrete distributionsWith finite support* The Bernoulli distribution, which takes value 1 with probability p and value 0 with… … Wikipedia
List of mathematics articles (W) — NOTOC Wad Wadge hierarchy Wagstaff prime Wald test Wald Wolfowitz runs test Wald s equation Waldhausen category Wall Sun Sun prime Wallenius noncentral hypergeometric distribution Wallis product Wallman compactification Wallpaper group Walrasian… … Wikipedia