Urn Sampling with or without Replacement

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

Drawing balls from an urn with or without replacement is a classical problem in probability. Several elementary statistics textbooks use it to introduce the binomial and hypergeometric distributions.


Consider drawing two balls with or without replacement from an urn containing blue and red balls. Let the random variable represent the number of red balls. Then the possible values of correspond to the events . This Demonstration calculates the probabilities of these three events and shows the probability tree diagram that represents the set of all possible outcomes of the experiment . The probability of each outcome is shown on its branch.


Contributed by: Enis Siniksaran and Merve Samioglu (August 2011)
Open content licensed under CC BY-NC-SA




Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.