Example 17: Three boxes of coins: the other coin is also gold,
Given three identical boxes I, II and III, each containing two coins. In box I, both coins are gold coins, in box II, both are silver coins and in the box III, there is one gold and one silver coin. A person chooses a box at random and takes out a coin. If the coin is of gold, what is the probability that the other coin in the box is also of gold?
Let , , : boxes I, II, III are chosen, respectively, and : the coin drawn is of gold.
, and form a partition of the sample space (exactly one box is chosen).
The box is chosen at random, so .
, and .
The other coin is also of gold exactly when box I was chosen, so we need .
By the theorem of total probability,
By Bayes' theorem,
The probability that the other coin is also of gold is .
Want the reason behind every step, the basics and the checks?
"The other coin is gold" is the same event as "the box is box I". Box I is the only box with two gold coins, so the question really asks: given that a gold coin came out, which box was it? That is Bayes' theorem.
Box I gives a gold coin every time, box III only half the time. So a gold coin is twice as likely to have come from box I as from box III, and the answer is , not .
- Given
- Box I: gold, gold. Box II: silver, silver. Box III: gold, silver. A box is chosen at random and a coin taken out; it is gold.
- To find
- The probability that the other coin in that box is gold.
- Plan
- (1) Name the events and turn the question into . (2) Find and . (3) Total probability. (4) Bayes' theorem. (5) Check by listing the six equally likely coins.
Basics you need
A certain event has probability 1 (a gold coin from box I); an impossible one has probability 0 (a gold coin from box II). Basics: the classical definition
over a partition. Lesson: total probability and Bayes' theorem
Each of the 6 coins is equally likely to be the one taken out. Basics: multiply the choices
Solution
Name the events and restate the question
Let
- , , : boxes I, II, III are chosen, respectively;
- : the coin drawn is of gold.
, , form a partition of the sample space: exactly one box is chosen.
If the coin drawn is gold, the other coin is gold only in box I (in box III the other coin would be silver). So the required probability is .
The question asks about "the other coin", which is not one of our events. Translating it into an event about the box is the key move: the other coin is gold exactly when the box holds two gold coins, which is box I.Bayes' theorem finds the probability of a cause given the effect. Lesson: Bayes' theoremThe probabilities
"At random" with three identical boxes gives each box probability . Inside a box both coins are equally likely to be taken: box I has 2 gold of 2 coins, box II has 0 gold, box III has 1 gold of 2.The chance of a gold coin: total probability
By the theorem of total probability,
The tree for Example 17. A gold coin comes through box I (rose path, ) or box III (green path, ); box II can never give gold. The box I path is twice the box III path. The three paths to a gold coin are mutually exclusive, so they add. . This also makes sense: there are 3 gold and 3 silver coins in all, and every coin is equally likely to be drawn.Multiply along a path, add the paths. Basics: tree diagramsBox I, given gold: Bayes' theorem
By Bayes' theorem,
The top is the box I path, ; the bottom is all gold draws, . Dividing by is multiplying by 2. The book writes the same fraction with the three products in the denominator and gets .Dividing by a fraction is multiplying by its flip. Basics: working with fractionsCheck by listing the coins
Label the coins: box I has ; box II has ; box III has . Choosing a box at random and then a coin at random makes each of the 6 coins equally likely (each has probability ).
A gold coin was drawn, so it is , or , equally likely. The other coin in the box is gold for (the other is ) and for (the other is ), but not for . So the probability is .
Counting the actual coins shows why the tempting answer ("it is box I or box III") is wrong: the two boxes are not equally likely once a gold coin is seen, because box I has two gold coins that could have been drawn and box III only one.Equally likely outcomes: count. Basics: multiply the choices
The probability that the other coin in the box is also of gold is .
(Textbook answer: .)
Picture 600 tries. Each box is chosen about 200 times. Box I gives gold all 200 times; box II never; box III gives gold about 100 times. So about gold coins are drawn, and in 200 of those tries the other coin is gold: , the same as .
- Answering . "Box II is ruled out, so it is box I or box III, each with chance " ignores that box I produces a gold coin twice as often as box III. Bayes' theorem weights each box by .
- Answering . That is the chance of gold from box I, not the chance of box I given gold.
- Dropping box II from the total. Its term is , so leaving it out does not change the number, but write it: the theorem of total probability runs over the whole partition.
- Restate a question about "the other coin" (or any hidden detail) as a question about the cause; then use Bayes' theorem.
- Seeing an effect favours the causes that make it more likely, in proportion to .
- The same idea with coins that show heads: Exercise 13.3, Question 6.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Partition of the sample space | Step 1 | Section 13.5.1 (Lesson: Bayes' theorem) |
| Probabilities 1 and 0; | Step 2 | Class XI, Probability (Basics: the classical definition) |
| Theorem of total probability | Step 3 | Section 13.5.2 (Lesson: total probability) |
| Bayes' theorem | Step 4 | Section 13.5 (Examples 15 to 21) |
| Counting equally likely outcomes | Step 5 | Class XI, Probability (Basics: multiply the choices) |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →