Example 1 — Selecting balls from two boxes
Two boxes contain colored balls:
- Box 1: 4 red, 2 green
- Box 2: 4 green, 2 red
The boxes are selected with \( P(\text{Box 1}) = \tfrac{1}{3} \), \( P(\text{Box 2}) = \tfrac{2}{3} \), then a ball is drawn at random from the chosen box.
- Given the ball is red, what is the probability it came from Box 1?
- Given the ball is red, what is the probability it came from Box 2?
- Compare and interpret the two probabilities.
View solution
Let \( B_1 \) = select Box 1, \( B_2 \) = select Box 2, \( R \) = select red.
Given:
\[ P(B_1) = \tfrac{1}{3}, \quad P(B_2) = \tfrac{2}{3} \] \[ P(R \mid B_1) = \tfrac{4}{6} = \tfrac{2}{3}, \quad P(R \mid B_2) = \tfrac{2}{6} = \tfrac{1}{3} \]So the total probability of red is:
\[ P(R) = \tfrac{2}{3}\cdot\tfrac{1}{3} + \tfrac{1}{3}\cdot\tfrac{2}{3} = \tfrac{4}{9} \](a) By Bayes' Theorem:
\[ P(B_1 \mid R) = \frac{P(R \mid B_1)\,P(B_1)}{P(R)} = \frac{\tfrac{2}{9}}{\tfrac{4}{9}} = \frac{1}{2} \](b) Similarly:
\[ P(B_2 \mid R) = \frac{P(R \mid B_2)\,P(B_2)}{P(R)} = \frac{\tfrac{2}{9}}{\tfrac{4}{9}} = \frac{1}{2} \](c) Interpretation. The posterior probabilities are equal (each \( \tfrac{1}{2} \)) despite Box 1 containing proportionally more red balls. Bayes' Theorem explains why: Box 2 is initially twice as likely, and that prior exactly balances Box 1's richer red ratio.