New in Wolfram Mathematica 8: Parametric Probability Distributions  previous  |  next 

Core Algorithms

Urn Model with Weighted Balls 

An urn contains 10 red balls of weight 1 and 15 blue balls of weight 2. With 12 balls drawn independently, the probability of drawing a red or blue ball depends on its weight. The number of red balls drawn has a FisherHypergeometricDistribution. The red/blue chart represents 20 simulations of such drawn.
In[1]:=
Click for copyable input
X
In[2]:=
Click for copyable input
X
In[3]:=
Click for copyable input
X
Out[3]=