Class 12 Maths, Worked in Full Past papersGet updates
Chapter 13 · Probability

Example 17: Three boxes of coins: the other coin is also gold, P=23P = \frac23

ExamplesBayes' theorem · Section 13.5
The question

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?

Exam answer

Let E1E_1⁠, E2E_2⁠, E3E_3⁠: boxes I, II, III are chosen, respectively, and AA⁠: the coin drawn is of gold.

E1E_1⁠, E2E_2 and E3E_3 form a partition of the sample space (exactly one box is chosen).

The box is chosen at random, so P(E1)=P(E2)=P(E3)=13P(E_1) = P(E_2) = P(E_3) = \frac13⁠.

P(A∣E1)=22=1P(A|E_1) = \frac22 = 1⁠, P(A∣E2)=0P(A|E_2) = 0 and P(A∣E3)=12P(A|E_3) = \frac12⁠.

The other coin is also of gold exactly when box I was chosen, so we need P(E1∣A)P(E_1|A)⁠.

By the theorem of total probability,

P(A)=P(E1)P(A∣E1)+P(E2)P(A∣E2)+P(E3)P(A∣E3)=13⋅1+13⋅0+13⋅12=13+0+16=12\begin{aligned} P(A) &= P(E_1)P(A|E_1) \\ &\quad + P(E_2)P(A|E_2) \\ &\quad + P(E_3)P(A|E_3) \\ &= \frac13\cdot 1 + \frac13\cdot 0 + \frac13\cdot\frac12 \\ &= \frac13 + 0 + \frac16 = \frac12 \end{aligned}

By Bayes' theorem,

P(E1∣A)=P(E1)P(A∣E1)P(A)=13÷12=13×2\begin{aligned} P(E_1|A) &= \frac{P(E_1)P(A|E_1)}{P(A)} \\ &= \frac13 \div \frac12 \\ &= \frac13 \times 2 \end{aligned}

∴\therefore The probability that the other coin is also of gold is 23\dfrac23⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

"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 23\frac23⁠, not 12\frac12⁠.

Given, to find, and the plan
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 P(E1∣A)P(E_1|A)⁠. (2) Find P(Ei)P(E_i) and P(A∣Ei)P(A|E_i)⁠. (3) Total probability. (4) Bayes' theorem. (5) Check by listing the six equally likely coins.

Basics you need

1Probability 1 and 0

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

2Theorem of total probability (Section 13.5.2)

P(A)=∑P(Ei)P(A∣Ei)P(A) = \sum P(E_i)P(A|E_i) over a partition. Lesson: total probability and Bayes' theorem

3Bayes' theorem (Section 13.5)

P(E1∣A)=P(E1)P(A∣E1)P(A)P(E_1|A) = \frac{P(E_1)P(A|E_1)}{P(A)}⁠. Lesson: Bayes' theorem

4Counting equally likely outcomes

Each of the 6 coins is equally likely to be the one taken out. Basics: multiply the choices

Solution

  1. Name the events and restate the question

    Let

    • E1E_1⁠, E2E_2⁠, E3E_3⁠: boxes I, II, III are chosen, respectively;
    • AA⁠: the coin drawn is of gold.

    E1E_1⁠, E2E_2⁠, E3E_3 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 P(E1∣A)P(E_1|A)⁠.

    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' theorem
  2. The probabilities

    P(E1)=P(E2)=P(E3)=13.P(E_1) = P(E_2) = P(E_3) = \frac13. P(A∣E1)=22=1,P(A∣E2)=0,P(A∣E3)=12.\begin{aligned} P(A|E_1) &= \frac22 = 1, \\ P(A|E_2) &= 0, \\ P(A|E_3) &= \frac12. \end{aligned}
    "At random" with three identical boxes gives each box probability 13\frac13⁠. 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.
    P=favourabletotalP = \frac{\text{favourable}}{\text{total}}⁠. Basics: the classical definition
  3. The chance of a gold coin: total probability

    By the theorem of total probability,

    P(A)=P(E1)P(A∣E1)+P(E2)P(A∣E2)+P(E3)P(A∣E3)=13⋅1+13⋅0+13⋅12=13+0+16=12.\begin{aligned} P(A) &= P(E_1)P(A|E_1) \\ &\quad + P(E_2)P(A|E_2) \\ &\quad + P(E_3)P(A|E_3) \\ &= \frac13\cdot 1 + \frac13\cdot 0 + \frac13\cdot\frac12 \\ &= \frac13 + 0 + \frac16 = \frac12. \end{aligned}
    start box coin drawn multiply along the path box E₁: box I A: gold 1/3 × 1 = 1/3 A′: silver 1/3 × 0 E₂: box II A: gold 1/3 × 0 = 0 A′: silver 1/3 × 1 E₃: box III A: gold 1/3 × 1/2 = 1/6 A′: silver 1/3 × 1/2 1/3 1 0 1/3 0 1 1/3 1/2 1/2
    The tree for Example 17. A gold coin comes through box I (rose path, 13\frac13⁠) or box III (green path, 16\frac16⁠); 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. 13+16=26+16=36=12\frac13 + \frac16 = \frac26 + \frac16 = \frac36 = \frac12⁠. 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 diagrams
  4. Box I, given gold: Bayes' theorem

    By Bayes' theorem,

    P(E1∣A)=P(E1)P(A∣E1)P(A)=13÷12=13×2=23.\begin{aligned} P(E_1|A) &= \frac{P(E_1)P(A|E_1)}{P(A)} \\ &= \frac13 \div \frac12 = \frac13 \times 2 = \frac23. \end{aligned}
    The top is the box I path, 13⋅1=13\frac13 \cdot 1 = \frac13⁠; the bottom is all gold draws, 12\frac12⁠. Dividing by 12\frac12 is multiplying by 2. The book writes the same fraction with the three products in the denominator and gets 23\frac23⁠.
    Dividing by a fraction is multiplying by its flip. Basics: working with fractions
  5. Check by listing the coins

    Label the coins: box I has g1,g2g_1, g_2⁠; box II has s1,s2s_1, s_2⁠; box III has g3,s3g_3, s_3⁠. Choosing a box at random and then a coin at random makes each of the 6 coins equally likely (each has probability 13⋅12=16\frac13 \cdot \frac12 = \frac16⁠).

    A gold coin was drawn, so it is g1g_1⁠, g2g_2 or g3g_3⁠, equally likely. The other coin in the box is gold for g1g_1 (the other is g2g_2⁠) and for g2g_2 (the other is g1g_1⁠), but not for g3g_3⁠. So the probability is 23\frac23⁠.

    Counting the actual coins shows why the tempting answer 12\frac12 ("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
Result

The probability that the other coin in the box is also of gold is 23\frac23⁠.

(Textbook answer: 23\frac{2}{3}⁠.)

Check it with numbers

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 200+100=300200 + 100 = 300 gold coins are drawn, and in 200 of those tries the other coin is gold: 200300≈0.6667\frac{200}{300} \approx 0.6667⁠, the same as 23≈0.6667\frac23 \approx 0.6667⁠.

Common mistakes
  1. Answering 12\frac12⁠. "Box II is ruled out, so it is box I or box III, each with chance 12\frac12" ignores that box I produces a gold coin twice as often as box III. Bayes' theorem weights each box by P(A∣Ei)P(A|E_i)⁠.
  2. Answering P(A∣E1)=1P(A|E_1) = 1⁠. That is the chance of gold from box I, not the chance of box I given gold.
  3. Dropping box II from the total. Its term is 13⋅0=0\frac13 \cdot 0 = 0⁠, so leaving it out does not change the number, but write it: the theorem of total probability runs over the whole partition.
What to take away
  1. Restate a question about "the other coin" (or any hidden detail) as a question about the cause; then use Bayes' theorem.
  2. Seeing an effect favours the causes that make it more likely, in proportion to P(Ei)P(A∣Ei)P(E_i)P(A|E_i)⁠.
  3. The same idea with coins that show heads: Exercise 13.3, Question 6.

Every fact used, and where it comes from

FactUsed inSource
Partition of the sample spaceStep 1Section 13.5.1 (Lesson: Bayes' theorem)
Probabilities 1 and 0; P=favourabletotalP = \frac{\text{favourable}}{\text{total}}Step 2Class XI, Probability (Basics: the classical definition)
Theorem of total probabilityStep 3Section 13.5.2 (Lesson: total probability)
Bayes' theoremStep 4Section 13.5 (Examples 15 to 21)
Counting equally likely outcomesStep 5Class XI, Probability (Basics: multiply the choices)
Found an error, or want more?

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 →