Miscellaneous · Q6: Four boxes of marbles: a red marble came from box A, B or C,
Suppose we have four boxes A,B,C and D containing coloured marbles as given below:
| Box | Marble colour | ||
|---|---|---|---|
| Red | White | Black | |
| A | 1 | 6 | 3 |
| B | 6 | 2 | 2 |
| C | 8 | 1 | 1 |
| D | 0 | 6 | 4 |
Let : box A, B, C, D is selected, and : the marble drawn is red.
form a partition of the sample space (exactly one box is selected).
The box is selected at random, so , .
Each box has 10 marbles, so , , and .
By the theorem of total probability,
By Bayes' theorem,
P(box A | red) , P(box B | red) and P(box C | red) .
Want the reason behind every step, the basics and the checks?
One of the boxes has been selected at random and a single marble is drawn from it. If the marble is red, what is the probability that it was drawn from box A?, box B?, box C?
The boxes are equally likely to be chosen and each holds 10 marbles, so every one of the 40 marbles is equally likely to be the one drawn. Given that it is red, it is one of the red marbles, and box A holds 1 of them, box B 6 and box C 8. Bayes' theorem gives exactly these shares: , , .
- Given
- Four boxes with the marbles in the table; a box is selected at random (each with probability ) and one marble is drawn from it at random; the marble is red.
- To find
- P(box A | red), P(box B | red), P(box C | red).
- Plan
- (1) Name the events; check the partition. (2) Read from the table. (3) Total probability for . (4) Bayes' theorem for each box. (5) Sense check.
Basics you need
A marble drawn at random from a box of 10 is red with probability . Basics: P(E) = n(E)/n(S)
"Red, if box B was chosen" is : the box is already known. Lesson: conditional probability
and . Lesson: Bayes' theorem
One branch per box, then red or not red; multiply along each path. Basics: tree diagrams
Solution
Name the events
Let be the events that box A, B, C, D is selected, and let be the event that the marble drawn is red.
form a partition of the sample space: exactly one box is selected, and each has probability .
The box is the hidden cause; the colour is what we see. The question asks which box is likely, given the colour.Partition of a sample space (Section 13.5.1). Lesson: Bayes' theoremThe probabilities from the table
Each box is selected with probability
Each box holds 10 marbles (, , , ), so
Once the box is known, the chance of red is the number of red marbles in that box out of its 10. Box D has no red marble, so a red marble cannot come from it.The chance of a red marble: total probability
Since form a partition, by the theorem of total probability
The tree for Question 6. The red paths (green) have products , , and 0; together . A red marble comes from exactly one of the four boxes, so the four red paths add. Keeping the denominator 40 (rather than reducing to ) makes the next step easy.Multiply along a path, add the paths. Basics: tree diagramsEach box, given red: Bayes' theorem
By Bayes' theorem, . So
Each top is that box's red path from the tree; the bottom is all the red paths together. Dividing by is multiplying by , so the 40s cancel.Bayes' theorem (Section 13.5). Examples 15 to 21A quick sense check
Box D gets , and . The answers are in the ratio , the numbers of red marbles in A, B and C.
The boxes are equally likely and equally full, so every marble is equally likely to be drawn; given red, the marble is one of 15 equally likely red marbles. That is why the answers are simply , , .for a partition. Lesson: Bayes' theorem
P(box A | red) , P(box B | red) , P(box C | red) . (Textbook answer: .)
Picture 400 rounds, 100 with each box. Red marbles drawn: 10 from A, 60 from B, 80 from C and 0 from D, so red marbles in all. Shares: , , , the same as , and .
- Answering , , . Those are P(red | box), the reverse of what is asked.
- Leaving box D out of the partition. D can still be selected; it just contributes 0 to . The partition must cover every box.
- Dividing by 4 instead of by . The bottom of Bayes' theorem is the total probability of red, .
- When the causes are equally likely and the boxes equally full, Bayes' theorem reduces to "the share of the red marbles in each box".
- Keep a common denominator (here 40) in the total probability; the division in Bayes' theorem then cancels it.
- Book Example 22 is the same set-up with four boxes of different sizes; there the shortcut does not apply.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Partition of a sample space | Step 1 | Section 13.5.1 (Lesson: Bayes' theorem) |
| for a random draw | Step 2 | Class XI, Probability (Basics: classical probability) |
| Conditional probability | Step 2 | Section 13.2 (Lesson: conditional probability) |
| Theorem of total probability | Step 3 | Section 13.5.2 (Lesson: Bayes' theorem) |
| Bayes' theorem | Steps 4, 5 | Section 13.5 (Examples 15 to 21) |
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 →