Visualize an 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 this situation.

    
In[89]:=
Click for copyable input
In[90]:=
Click for copyable input
In[91]:=
Click for copyable input
Out[91]=
New to Mathematica? Find your learning path »
Have a question? Ask support »