Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Statistical Data Analysis > Probability & Statistics > Parametric Statistical Distributions > Discrete Univariate Distributions > Urn Model Distributions > WalleniusHypergeometricDistribution >
Mathematica > Mathematics and Algorithms > Statistical Data Analysis > Probability & Statistics > Parametric Statistical Distributions > Discrete Univariate Distributions > Urn Model Distributions > WalleniusHypergeometricDistribution >

WalleniusHypergeometricDistribution

WalleniusHypergeometricDistribution
represents a Wallenius noncentral hypergeometric distribution.
  • A Wallenius hypergeometric distribution gives the distribution of the number of successes in n dependent draws from a population of size containing successes with the odds ratio w.
  • The probability for integer value in a Wallenius hypergeometric distribution is equal to where .
Probability density function:
Cumulative distribution function:
Mean does not have closed form but can be obtained numerically:
Variance does not have closed form but can be obtained numerically:
Probability density function:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Cumulative distribution function:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Mean does not have closed form but can be obtained numerically:
In[1]:=
Click for copyable input
Out[1]=
 
Variance does not have closed form but can be obtained numerically:
In[1]:=
Click for copyable input
Out[1]=
Generate a set of pseudorandom numbers that are hypergeometrically distributed:
Compare its histogram to the PDF:
Distribution parameters estimation:
Estimate the distribution parameters from sample data:
Compare the density histogram of the sample with the PDF of the estimated distribution:
Hazard function:
Quantile function:
The CDF of WalleniusHypergeometricDistribution is an example of a right-continuous function:
An urn contains red balls of weight and blue balls of weight . With balls drawn one by one, the probability of drawing a particular ball is equal to the proportion of the total weight of all balls remaining in the urn at that moment. If , , , , and , find the distribution of the number of red balls drawn:
Find the probability that at least 3 red balls were drawn:
Find the average number of red balls:
Simulate the number of red balls in 30 consecutive samples of 12:
Urn sampling leading to WalleniusHypergeometricDistribution can be simulated using RandomSample:
Relationships to other distributions:
HypergeometricDistribution is a special case of Wallenius noncentral hypergeometric distribution:
New in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF