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.

Click for copyable input
Click for copyable input
Click for copyable input
New to Mathematica? Find your learning path »
Have a question? Ask support »