Urn problems in 3D

A standing sign compares sampling from an urn with replacement (binomial) and without replacement (hypergeometric).Drag to turn

An urn problem models random draws of coloured balls from a container called an urn. Sampling with replacement returns each ball after it is drawn, so every draw has the same probabilities.

The urn as a model of random selection

An urn is an imagined container holding balls that differ only in some label, usually colour. Each draw picks one ball at random, so every ball is equally likely to be chosen. The urn stands in for many real settings, such as a batch of items that are defective or sound, or a population of voters who favour one option or another.

If an urn holds r red balls and b blue balls, the probability that one draw is red is r divided by (r + b). Probabilities of this kind rest on the assumption that all balls are equally likely.

How replacement changes the draws

In sampling with replacement, the drawn ball is put back and the urn is mixed before the next draw. The composition never changes, so the draws are independent. The probability of a sequence is then the product of the single-draw probabilities.

In sampling without replacement, the ball stays out. The composition shifts after each draw, so the draws are dependent. Counting then usually uses combinations, and the number of red balls in a sample follows the hypergeometric distribution.

With replacement, the number of red balls in n draws follows the binomial distribution with n trials and success probability p = r / (r + b).

Worked example with 3 red and 2 blue balls

An urn holds 3 red and 2 blue balls, so 5 in total. Draw twice with replacement. The probability of red on each draw is 3/5. The probability of two reds is 3/5 x 3/5 = 9/25, which is 0.36.

Now find the probability of exactly one red in two draws. The sequences red then blue and blue then red each have probability 3/5 x 2/5 = 6/25. Adding both gives 12/25, which is 0.48.

Without replacement, two reds would have probability 3/5 x 2/4 = 6/20, which is 0.30. The change from 0.36 to 0.30 comes from the smaller number of reds left after the first draw.

Common misconceptions

Some people think a colour is due after a run of the other colour. With replacement the urn is unchanged, so past draws do not affect the next one. Without replacement the composition does change, but the effect comes from the removed balls, not from any pull toward balance.

Another error is to treat the two schemes as equal. They give similar results only when the urn is very large compared with the sample, because removing a few balls then barely changes the proportions.

Where urn models appear

Quality control uses urn models when inspectors draw items from a batch. Polling resembles drawing from an urn of voters, and with replacement is a standard approximation when the population is large. Resampling methods such as the bootstrap draw with replacement from the observed data. Genetics and probability theory also use urn schemes as simple models for chance processes.

Key terms

Urn
An imagined container of objects, such as coloured balls, used to model random selection.
Sampling with replacement
Drawing in which each selected item is returned before the next draw.
Independent draws
Draws where the outcome of one does not change the probabilities of another.
Binomial distribution
The distribution of the number of successes in n independent trials with the same success probability.
Hypergeometric distribution
The distribution of the number of successes in a sample drawn without replacement from a finite population.
Sample space
The set of all possible outcomes of an experiment.

Common questions

Does the order of draws matter in an urn problem?

For finding the probability of a specific sequence, yes. For the count of balls of one colour, order does not matter, and the different orderings are added together or counted with a binomial coefficient.

When can without replacement be treated as with replacement?

When the sample is small compared with the urn, usually under about a tenth of it. The proportions then change very little between draws, so the binomial gives a close approximation.

What is the probability of at least one red in n draws with replacement?

Use the complement. It is 1 minus the probability of no red, which is 1 - (1 - p)^n. With p = 3/5 and n = 2, this is 1 - (2/5)^2 = 1 - 4/25 = 21/25.

Learn this with a tutor

Sidechair's AI tutor will teach this topic in 3D. Join the waitlist for early access.

We'll only email you about Sidechair. Read our privacy policy.