The Mystery of the Two Bags
A Journey into Bayes' Theorem
Imagine you are standing in a room with two bags, Bag A and Bag B. You don't know what's inside Bag B, but you know Bag A has 2 white, 1 black, and 3 red balls.
You reach in, pick a bag at random, and draw two balls. To your surprise, you pull out exactly 1 red and 1 black ball.
Now, the question is: what is the probability that these balls came from Bag A? And more importantly, if we know that probability is 116, can we figure out how many white balls were in Bag B?
This is the essence of Bayes' Theorem—a powerful tool that allows us to update our beliefs based on new evidence.
Phase 1
Setting the Stage
First, let's define our universe. We have two events: E1 (choosing Bag A) and E2 (choosing Bag B).
Since the bag is chosen at random, the probability of picking either is equal:
P(E1)=P(E2)=21
Now, let's look at the contents. Bag A has a total of 2+1+3=6 balls. Bag B has 3 black, 2 red, and n white balls, for a total of n+5 balls.
We define Event A as the outcome: drawing 1 red and 1 black ball.
Phase 2
Calculating the Conditional Probabilities
To use Bayes' Theorem, we need to know the probability of drawing our specific balls from each bag individually.
For Bag A, the probability
P(A∣E1) is the number of ways to pick 1 red and 1 black divided by the total ways to pick 2 balls from 6:
P(A∣E1)=6C23C1×1C1=153×1=51
For Bag B, the probability
P(A∣E2) is slightly more complex because of the variable
n:
P(A∣E2)=n+5C22C1×3C1=2(n+5)(n+4)2×3=(n+5)(n+4)12
Phase 3
The Bayes' Bridge
Bayes' Theorem tells us that the probability of having chosen Bag A, given that we observed Event
A, is:
P(E1∣A)=P(E1)P(A∣E1)+P(E2)P(A∣E2)P(E1)P(A∣E1)
We know
P(E1∣A)=116. Substituting our values, we get:
21⋅51+21⋅(n+5)(n+4)1221⋅51=116
Phase 4
The Algebraic Dance
This looks intimidating, but notice the beauty of the symmetry! The
21 term appears in every single part of the expression. We can factor it out and cancel it entirely:
51+(n+5)(n+4)1251=116
To simplify further, multiply the numerator and denominator by 5:
1+(n+5)(n+4)601=116
Now, take the reciprocal of both sides:
1+(n+5)(n+4)60=611
Subtracting 1 from both sides gives:
(n+5)(n+4)60=65
Phase 5
The Final Resolution
Cross-multiplying, we find:
(n+5)(n+4)=560×6=72
Expanding the left side:
n2+9n+20=72⇒n2+9n−52=0
Factoring this quadratic equation, we look for two numbers that multiply to
−52 and add to
9. Those numbers are
13 and
−4:
(n+13)(n−4)=0
This gives us two possible values: n=−13 or n=4. Since n represents the number of balls, it must be positive.
Thus, we reject −13 and conclude that n=4. We have successfully solved the mystery of the bags!