<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.formulasearchengine.com/w/index.php?action=history&amp;feed=atom&amp;title=Simon%27s_problem</id>
	<title>Simon&#039;s problem - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.formulasearchengine.com/w/index.php?action=history&amp;feed=atom&amp;title=Simon%27s_problem"/>
	<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Simon%27s_problem&amp;action=history"/>
	<updated>2026-07-15T10:53:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.47.0-wmf.7</generator>
	<entry>
		<id>https://en.formulasearchengine.com/w/index.php?title=Simon%27s_problem&amp;diff=17398&amp;oldid=prev</id>
		<title>en&gt;Addbot: Bot: Migrating 2 interwiki links, now provided by Wikidata on d:q5763587</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Simon%27s_problem&amp;diff=17398&amp;oldid=prev"/>
		<updated>2013-03-17T04:19:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/w/index.php?title=User:Addbot&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:Addbot (page does not exist)&quot;&gt;Bot:&lt;/a&gt; Migrating 2 interwiki links, now provided by &lt;a href=&quot;https://en.wikipedia.org/wiki/Wikidata&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Wikidata&quot;&gt;Wikidata&lt;/a&gt; on &lt;a href=&quot;/w/index.php?title=D:q5763587&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;D:q5763587 (page does not exist)&quot;&gt;d:q5763587&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- EDITORS! Please see [[Wikipedia:WikiProject Probability#Standards]] for a discussion&lt;br /&gt;
of standards used for probability distribution articles such as this one. --&amp;gt;&lt;br /&gt;
{{nobots|deny=AWB}}&lt;br /&gt;
[[Image:WalleniusNoncentralHypergeometric1.png|right|thumb|300px|Probability mass function for Wallenius&amp;#039; Noncentral Hypergeometric Distribution for different values of the odds ratio ω.&amp;lt;br&amp;gt;m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = 80, m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = 60, n = 100, ω = 0.1 ... 20]]&lt;br /&gt;
&lt;br /&gt;
In [[probability theory]] and [[statistics]], &amp;#039;&amp;#039;&amp;#039;Wallenius&amp;#039; noncentral hypergeometric distribution&amp;#039;&amp;#039;&amp;#039; (named after Kenneth Ted Wallenius) is a generalization of the [[hypergeometric distribution]] where items are sampled with [[biased sample|bias]].&lt;br /&gt;
&lt;br /&gt;
This distribution can be illustrated as an [[Urn problem|urn model]] with bias. Assume, for example, that an urn contains &amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; red balls and &amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; white balls, totalling &amp;#039;&amp;#039;N&amp;#039;&amp;#039; = &amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; + &amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; balls. Each red ball has the weight ω&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and each white ball has the weight ω&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;. We will say that the odds ratio is ω = ω&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; / ω&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;. Now we are taking &amp;#039;&amp;#039;n&amp;#039;&amp;#039; 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 &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; that we get in this experiment is a random variable with Wallenius&amp;#039; noncentral hypergeometric distribution.&lt;br /&gt;
&lt;br /&gt;
The matter is complicated by the fact that there is more than one noncentral hypergeometric distribution. Wallenius&amp;#039; noncentral hypergeometric distribution is obtained if balls are sampled one by one in such a way that there is [[competition]] between the balls. [[Fisher&amp;#039;s noncentral hypergeometric distribution]] is obtained if the balls are sampled simultaneously or independently of each other. Unfortunately, both distributions are known in the literature as &amp;quot;the&amp;quot; noncentral hypergeometric distribution. It is important to be specific about which distribution is meant when using this name.&lt;br /&gt;
&lt;br /&gt;
The two distributions are both equal to the (central) [[hypergeometric distribution]] when the odds ratio is 1.&lt;br /&gt;
&lt;br /&gt;
It is far from obvious why these two distributions are different. See the Wikipedia entry on [[noncentral hypergeometric distributions]] for a more detailed explanation of the difference between these two probability distributions.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both;&amp;quot; /&amp;gt;&amp;lt;!-- Looks terrible in Firefox without this break --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Univariate distribution==&lt;br /&gt;
{{Probability distribution |&lt;br /&gt;
  name       =Univariate Wallenius&amp;#039; Noncentral Hypergeometric Distribution|&lt;br /&gt;
  type       =mass|&lt;br /&gt;
  pdf_image  =|&lt;br /&gt;
  cdf_image  =|&lt;br /&gt;
  parameters =&amp;lt;math&amp;gt;m_1, m_2 \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;N = m_1 + m_2&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;n \in [0,N)&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;\omega \in \mathbb{R}_+&amp;lt;/math&amp;gt;|&lt;br /&gt;
  support    =&amp;lt;math&amp;gt;x \in [x_{min},x_{max}]&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;x_{min}=\max(0,n-m_2)&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;x_{max}=\min(n,m_1)&amp;lt;/math&amp;gt;|&lt;br /&gt;
  pdf        =&amp;lt;math&amp;gt;\binom{m_1}{x_1} \binom{m_2}{x_2} \int_0^1 (1-t^{\omega/D})^{x_1} (1-t^{1/D})^{x_2} \operatorname{d}t&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;where &amp;lt;math&amp;gt; D=\omega(m_1-x_1)+(m_2-x_2)&amp;lt;/math&amp;gt;|&lt;br /&gt;
  cdf        =|&lt;br /&gt;
  mean       =Approximated by solution &amp;lt;math&amp;gt;\mu&amp;lt;/math&amp;gt; to &amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;\frac{\mu}{m_1} + \left(1-\frac{n-\mu}{m_2}\right)^{\omega} = 1&amp;lt;/math&amp;gt;|&lt;br /&gt;
  median     =|&lt;br /&gt;
  mode       =|&lt;br /&gt;
  variance   =&amp;lt;math&amp;gt;\approx \frac{Nab}{(N-1)(m_1 b + m_2 a)}\,&amp;lt;/math&amp;gt;, &amp;amp;nbsp; where&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;a=\mu(m_1-\mu),\; b=(n-\mu)(\mu+m_2-n)&amp;lt;/math&amp;gt;|&lt;br /&gt;
  skewness   =|&lt;br /&gt;
  kurtosis   =|&lt;br /&gt;
  entropy    =|&lt;br /&gt;
  mgf        =|&lt;br /&gt;
  char       =&lt;br /&gt;
}}&lt;br /&gt;
[[Image:WalleniusNoncentralHypergeometricRecursion1.png|frame|right|| Recursive calculation of probability f(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;,&amp;#039;&amp;#039;n&amp;#039;&amp;#039;) in Wallenius&amp;#039; distribution. The light grey fields are possible points on the way to the final point. The arrows indicate an arbitrary trajectory.]]&lt;br /&gt;
&lt;br /&gt;
Wallenius&amp;#039; 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.&lt;br /&gt;
&lt;br /&gt;
This recursive dependency gives rise to a [[difference equation]] with a solution that is given in [[Closed-form expression|open form]] by the integral in the expression of the probability mass function in the table above.&lt;br /&gt;
&lt;br /&gt;
[[Closed-form expression|Closed form expressions]] for the probability mass function exist (Lyons, 1980), but they are not very useful for practical calculations because of extreme [[Numerical stability|numerical instability]], except in degenerate cases.&lt;br /&gt;
&lt;br /&gt;
Several other calculation methods are used, including [[recursion]], [[Taylor series|Taylor expansion]] and [[numerical integration]] (Fog, 2007, 2008).&lt;br /&gt;
&lt;br /&gt;
The most reliable calculation method is recursive calculation of f(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;,&amp;#039;&amp;#039;n&amp;#039;&amp;#039;) from f(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;,&amp;#039;&amp;#039;n&amp;#039;&amp;#039;-1) and f(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;-1,&amp;#039;&amp;#039;n&amp;#039;&amp;#039;-1) using the recursion formula given below under properties. The probabilities of all (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;,&amp;#039;&amp;#039;n&amp;#039;&amp;#039;) combinations on all possible [[trajectory|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 &amp;#039;&amp;#039;n&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;+1)-&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. Other calculation methods must be used when &amp;#039;&amp;#039;n&amp;#039;&amp;#039; and &amp;#039;&amp;#039;x&amp;#039;&amp;#039; are so big that this method is too inefficient.&lt;br /&gt;
&lt;br /&gt;
The probability that all balls have the same color is easier to calculate. See the formula below under multivariate distribution.&lt;br /&gt;
&lt;br /&gt;
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&amp;#039;s method|Newton-Raphson iteration]]. The same equation can  be used for estimating the odds from an experimentally obtained value of the mean.&lt;br /&gt;
&lt;br /&gt;
===Properties of the univariate distribution===&lt;br /&gt;
Wallenius&amp;#039; distribution has fewer symmetry relations than [[Fisher&amp;#039;s noncentral hypergeometric distribution]] has. The only symmetry relates to the swapping of colors:&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{wnchypg}(x;n,m_1,m_2,\omega) = \operatorname{wnchypg}(n-x;n,m_2,m_1,1/\omega)\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
Unlike Fisher&amp;#039;s distribution, Wallenius&amp;#039; distribution has no symmetry relating to the number of balls &amp;#039;&amp;#039;not&amp;#039;&amp;#039; taken.&lt;br /&gt;
&lt;br /&gt;
The following recursion formula is useful for calculating probabilities:&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{wnchypg}(x;n,m_1,m_2,\omega) = &amp;lt;/math&amp;gt;&lt;br /&gt;
::&amp;lt;math&amp;gt;\operatorname{wnchypg}(x-1;n-1,m_1,m_2,\omega) \frac{(m_1-x+1)\omega}{(m_1-x+1)\omega+m_2+x-n} + &amp;lt;/math&amp;gt;&lt;br /&gt;
::&amp;lt;math&amp;gt;\operatorname{wnchypg}(x;n-1,m_1,m_2,\omega) \frac{m_2+x-n+1}{(m_1-x)\omega+m_2+x-n+1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another recursion formula is also known:&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{wnchypg}(x;n,m_1,m_2,\omega) = &amp;lt;/math&amp;gt;&lt;br /&gt;
::&amp;lt;math&amp;gt;\operatorname{wnchypg}(x-1;n-1,m_1-1,m_2,\omega) \frac{m_1\omega}{m_1\omega+m_2} + &amp;lt;/math&amp;gt;&lt;br /&gt;
::&amp;lt;math&amp;gt;\operatorname{wnchypg}(x;n-1,m_1,m_2-1,\omega) \frac{m_2}{m_1\omega+m_2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The probability is limited by&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{f}_1(x) \le \operatorname{wnchypg}(x;n,m_1,m_2,\omega) \le \operatorname{f}_2(x)\,,\,\,\text{for}\,\, \omega &amp;lt; 1\,,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{f}_1(x) \ge \operatorname{wnchypg}(x;n,m_1,m_2,\omega) \ge \operatorname{f}_2(x)\,,\,\,\text{for}\,\, \omega &amp;gt; 1\,,\text{where}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{f}_1(x)=\binom{m_1}{x}\binom{m_2}{n-x} \frac{n!}{(m_1+m_2/\omega)^{\underline{x}}\, (m_2+\omega(m_1-x))^{\underline{n-x}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{f}_2(x)=\binom{m_1}{x}\binom{m_2}{n-x} \frac{n!}{(m_1+(m_2-x_2)/\omega)^{\underline{x}}\, (m_2+\omega m_1)^{\underline{n-x}}}\, ,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the underlined superscript indicates the [[Pochhammer symbol|falling factorial]] &amp;lt;math&amp;gt;a^{\underline{b}} = a(a-1)\ldots(a-b+1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both;&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Multivariate distribution==&lt;br /&gt;
The distribution can be expanded to any number of colors &amp;#039;&amp;#039;c&amp;#039;&amp;#039; of balls in the urn. The multivariate distribution is used when there are more than two colors.&lt;br /&gt;
&lt;br /&gt;
{{Probability distribution |&lt;br /&gt;
  name       =Multivariate Wallenius&amp;#039; Noncentral Hypergeometric Distribution|&lt;br /&gt;
  type       =mass|&lt;br /&gt;
  pdf_image  =|&lt;br /&gt;
  cdf_image  =|&lt;br /&gt;
  parameters =&amp;lt;math&amp;gt;c \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;\mathbf{m}=(m_1,\ldots,m_c) \in \mathbb{N}^c&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;N = \sum_{i=1}^c m_i&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;n \in [0,N)&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;\boldsymbol{\omega} = (\omega_1,\ldots,\omega_c) \in \mathbb{R}_+^c&amp;lt;/math&amp;gt;|&lt;br /&gt;
  support    =&amp;lt;math&amp;gt;\mathrm{S} = \left\{ \mathbf{x} \in \mathbb{Z}_{0+}^c \, : \, \sum_{i=1}^{c} x_i = n \right\}&amp;lt;/math&amp;gt;|&lt;br /&gt;
  pdf        =&amp;lt;math&amp;gt;\left(\prod_{i=1}^c \binom{m_i}{x_i} \right) \int_0^1 \prod_{i=1}^c (1-t^{\omega_i/D})^{x_i} \operatorname{d}t\,,&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;where &amp;lt;math&amp;gt; D=\boldsymbol{\omega}\cdot (\mathbf{m}-\mathbf{x}) = \sum_{i=1}^c \omega_i(m_i-x_i)&amp;lt;/math&amp;gt;|&lt;br /&gt;
  cdf        =|&lt;br /&gt;
  mean       =Approximated by solution &amp;lt;math&amp;gt;\mu_1,\ldots,\mu_c&amp;lt;/math&amp;gt; to &amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;\left(1-\frac{\mu_1}{m_1}\right)^{1/\omega_1} = \left(1-\frac{\mu_2}{m_2}\right)^{1/\omega_2} = \ldots = \left(1-\frac{\mu_c}{m_c}\right)^{1/\omega_c}&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;math&amp;gt;\wedge \, \sum_{i=1}^c \mu_i = n \, \wedge \, \forall\, i \in [0,c]\, :\, 0 \le \mu_i \le m_i\,.&amp;lt;/math&amp;gt;|&lt;br /&gt;
  median     =|&lt;br /&gt;
  mode       =|&lt;br /&gt;
  variance   =Approximated by variance of [[Fisher&amp;#039;s noncentral hypergeometric distribution]] with same mean.|&lt;br /&gt;
  skewness   =|&lt;br /&gt;
  kurtosis   =|&lt;br /&gt;
  entropy    =|&lt;br /&gt;
  mgf        =|&lt;br /&gt;
  char       =&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The probability mass function can be calculated by various [[Taylor series|Taylor expansion]] methods or by [[numerical integration]] (Fog, 2008).&lt;br /&gt;
&lt;br /&gt;
The probability that all balls have the same color, &amp;#039;&amp;#039;j&amp;#039;&amp;#039;, can be calculated as:&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{mwnchypg}((0,\ldots,0,x_j,0,\ldots);n,\mathbf{m}, \boldsymbol{\omega}) = \frac{m_j^{\,\,\underline{n}}} {\left( \frac{1}{\omega_j}\sum_{i=1}^{c}m_i\omega_i \right) ^{\underline{n}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
for &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; = &amp;#039;&amp;#039;n&amp;#039;&amp;#039; &amp;amp;le; &amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt;, where the underlined superscript denotes the [[Pochhammer symbol|falling factorial]].&lt;br /&gt;
&lt;br /&gt;
A reasonably good approximation to the mean can be calculated using the equation given above. The equation can be solved by defining θ so that&lt;br /&gt;
:&amp;lt;math&amp;gt;\mu_i = m_i(1-e^{\omega_i\theta})&amp;lt;/math&amp;gt;&lt;br /&gt;
and solving&lt;br /&gt;
:&amp;lt;math&amp;gt;\sum_{i=1}^c \mu_i = n&amp;lt;/math&amp;gt;&lt;br /&gt;
for θ by [[Newton&amp;#039;s method|Newton-Raphson iteration]].&lt;br /&gt;
&lt;br /&gt;
The equation for the mean is also useful for estimating the odds from experimentally obtained values for the mean.&lt;br /&gt;
&lt;br /&gt;
No good way of calculating the variance is known. The best known method is to approximate the multivariate Wallenius distribution by a multivariate [[Fisher&amp;#039;s noncentral hypergeometric distribution]] with the same mean, and insert the mean as calculated above in the approximate formula for the variance of the latter distribution.&lt;br /&gt;
&lt;br /&gt;
===Properties of the multivariate distribution===&lt;br /&gt;
The order of the colors is arbitrary so that any colors can be swapped.&lt;br /&gt;
&lt;br /&gt;
The weights can be arbitrarily scaled:&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{mwnchypg}(\mathbf{x};n,\mathbf{m}, \boldsymbol{\omega}) = \operatorname{mwnchypg}(\mathbf{x};n,\mathbf{m}, r\boldsymbol{\omega})\,\,&amp;lt;/math&amp;gt; for all &amp;lt;math&amp;gt;r \in \mathbb{R}_+&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Colors with zero number (&amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; = 0) or zero weight (ω&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; = 0) can be omitted from the equations.&lt;br /&gt;
&lt;br /&gt;
Colors with the same weight can be joined:&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{mwnchypg}\left(\mathbf{x};n,\mathbf{m}, (\omega_1,\ldots,\omega_{c-1},\omega_{c-1})\right)\, =&amp;lt;/math&amp;gt;&lt;br /&gt;
::&amp;lt;math&amp;gt;\operatorname{mwnchypg}\left((x_1,\ldots,x_{c-1}+x_c); n,(m_1,\ldots,m_{c-1}+m_c), (\omega_1,\ldots,\omega_{c-1})\right)\, \cdot&amp;lt;/math&amp;gt;&lt;br /&gt;
::&amp;lt;math&amp;gt;\operatorname{hypg}(x_c; x_{c-1}+x_c, m_c, m_{c-1}+m_c)\,,&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\operatorname{hypg}(x;n,m,N)&amp;lt;/math&amp;gt; is the (univariate, central) hypergeometric distribution probability.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both;&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Complementary Wallenius&amp;#039; noncentral hypergeometric distribution==&lt;br /&gt;
[[Image:ComplementaryWalleniusNoncentralHypergeometric1.png|right|thumb|300px|Probability mass function for the Complementary Wallenius&amp;#039; Noncentral Hypergeometric Distribution for different values of the odds ratio ω.&amp;lt;br&amp;gt;m&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = 80, m&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = 60, n = 40, ω = 0.05 ... 10]]&lt;br /&gt;
&lt;br /&gt;
The balls that are &amp;#039;&amp;#039;not&amp;#039;&amp;#039; taken in the urn experiment have a distribution that is different from Wallenius&amp;#039; noncentral hypergeometric distribution, due to a lack of symmetry. The distribution of the balls not taken can be called the &amp;#039;&amp;#039;&amp;#039;complementary Wallenius&amp;#039; noncentral hypergeometric distribution&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Probabilities in the complementary distribution are calculated from Wallenius&amp;#039; distribution by replacing &amp;#039;&amp;#039;n&amp;#039;&amp;#039; with &amp;#039;&amp;#039;N&amp;#039;&amp;#039;-&amp;#039;&amp;#039;n&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; with &amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; - &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;, and ω&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; with 1/ω&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Software available==&lt;br /&gt;
* [http://reference.wolfram.com/mathematica/ref/WalleniusHypergeometricDistribution.html WalleniusHypergeometricDistribution] in [[Mathematica]].&lt;br /&gt;
* An implementation for the [[R (programming language)|R programming language]] is available as the package named [http://cran.stat.ucla.edu/web/packages/BiasedUrn/index.html BiasedUrn]. Includes univariate and multivariate probability mass functions, distribution functions, [[quantile]]s, [[random variable]] generating functions, mean and variance.&lt;br /&gt;
* Implementation in [[C++]] is available from [http://www.agner.org/random/ www.agner.org].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Noncentral hypergeometric distributions]]&lt;br /&gt;
* [[Fisher&amp;#039;s noncentral hypergeometric distribution]]&lt;br /&gt;
* [[Hypergeometric distribution]]&lt;br /&gt;
* [[Urn problem|Urn models]]&lt;br /&gt;
* [[Biased sample]]&lt;br /&gt;
* [[Bias (statistics)|Bias]]&lt;br /&gt;
* [[Population genetics]]&lt;br /&gt;
* [[Fisher&amp;#039;s exact test]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
{{Citation&lt;br /&gt;
 | last=Chesson&lt;br /&gt;
 | first=J.&lt;br /&gt;
 | year=1976&lt;br /&gt;
 | title=A non-central multivariate hypergeometric distribution arising from biased sampling with application to selective predation&lt;br /&gt;
 | periodical=Journal of Applied Probability&lt;br /&gt;
 | volume=13&lt;br /&gt;
 | pages=795–797&lt;br /&gt;
 | doi=10.2307/3212535&lt;br /&gt;
 | issue=4&lt;br /&gt;
 | publisher=Applied Probability Trust&lt;br /&gt;
 | jstor=3212535&lt;br /&gt;
}}.&lt;br /&gt;
&lt;br /&gt;
{{Citation&lt;br /&gt;
 | last=Fog&lt;br /&gt;
 | first=A.&lt;br /&gt;
 | year=2007&lt;br /&gt;
 | title=Random number theory&lt;br /&gt;
 | url=http://www.agner.org/random/theory/&lt;br /&gt;
}}.&lt;br /&gt;
&lt;br /&gt;
{{Citation&lt;br /&gt;
 | last=Fog&lt;br /&gt;
 | first=A.&lt;br /&gt;
 | year=2008&lt;br /&gt;
 | title=Calculation Methods for Wallenius&amp;#039; Noncentral Hypergeometric Distribution&lt;br /&gt;
 | periodical=Communications in statictics, Simulation and Computation&lt;br /&gt;
 | volume=37&lt;br /&gt;
 | issue=2&lt;br /&gt;
 | pages=258–273&lt;br /&gt;
 | doi=10.1080/03610910701790269&lt;br /&gt;
}}.&lt;br /&gt;
&lt;br /&gt;
{{Citation&lt;br /&gt;
 | last=Johnson&lt;br /&gt;
 | first=N. L.&lt;br /&gt;
 | last2=Kemp&lt;br /&gt;
 | first2=A. W.&lt;br /&gt;
 | last3=Kotz&lt;br /&gt;
 | first3=S.&lt;br /&gt;
 | author-link=&lt;br /&gt;
 | year=2005&lt;br /&gt;
 | title=Univariate Discrete Distributions&lt;br /&gt;
 | publisher=Wiley and Sons&lt;br /&gt;
 | place=Hoboken, New Jersey&lt;br /&gt;
}}.&lt;br /&gt;
&lt;br /&gt;
{{Citation&lt;br /&gt;
 | last=Lyons&lt;br /&gt;
 | first=N. I.&lt;br /&gt;
 | year=1980&lt;br /&gt;
 | title=Closed Expressions for Noncentral Hypergeometric Probabilities&lt;br /&gt;
 | periodical=Communications in statictics, B&lt;br /&gt;
 | volume=9&lt;br /&gt;
 | pages=313–314&lt;br /&gt;
}}.&lt;br /&gt;
&lt;br /&gt;
{{Citation&lt;br /&gt;
 | last=Manly&lt;br /&gt;
 | first=B. F. J.&lt;br /&gt;
 | year=1974&lt;br /&gt;
 | title=A Model for Certain Types of Selection Experiments&lt;br /&gt;
 | periodical=Biometrics&lt;br /&gt;
 | volume=30&lt;br /&gt;
 | pages=281–294&lt;br /&gt;
 | doi=10.2307/2529649&lt;br /&gt;
 | issue=2&lt;br /&gt;
 | publisher=International Biometric Society&lt;br /&gt;
 | jstor=2529649&lt;br /&gt;
}}.&lt;br /&gt;
&lt;br /&gt;
{{Citation&lt;br /&gt;
 | last=Wallenius&lt;br /&gt;
 | first=K. T.&lt;br /&gt;
 | year=1963&lt;br /&gt;
 | title=Biased Sampling: The Non-central Hypergeometric Probability Distribution. Ph.D. Thesis&lt;br /&gt;
 | publisher=Stanford University, Department of Statistics&lt;br /&gt;
}}.&lt;br /&gt;
{{ProbDistributions|discrete-finite}}&lt;br /&gt;
{{DEFAULTSORT:Wallenius Noncentral Hypergeometric Distribution}}&lt;br /&gt;
[[Category:Discrete distributions]]&lt;br /&gt;
[[Category:Multivariate discrete distributions]]&lt;br /&gt;
[[Category:Probability distributions]]&lt;/div&gt;</summary>
		<author><name>en&gt;Addbot</name></author>
	</entry>
</feed>