Bag contains 2 white and 3 red balls and bag contains 4 white and 5 red balls. One ball is drawn at random from one of the bags and is found to be red. Find the probability that it was drawn from bag .
Bayes' Theorem and Probability Distribution · Question 1 of 49
Bag A contains 2 white and 3 red balls and bag B contains 4 white and 5 red balls.
Solution:
Key idea: Bayes' theorem. If the events are mutually exclusive, together cover every possibility, and an event is known to have happened, then , where the theorem of total probability gives . Here a bag is chosen first and the colour of the ball is seen afterwards, so the two bags are the hypotheses and the red ball is the observed result.
Step 1 — Name the events.
We name the possible causes (the hypotheses) and the observed result, so that each probability has a clear meaning.
- : the ball is drawn from bag
- : the ball is drawn from bag
- : the ball drawn is red
Step 2 — Write the probability of each hypothesis.
Each bag is equally likely to be the one used, because a bag is picked at random.
Step 3 — Write the probability of under each hypothesis.
Bag has 3 red balls among its 5 balls (2 white, 3 red), and bag has 5 red balls among its 9 balls (4 white, 5 red).
Step 4 — Find the total probability of .
By the theorem of total probability, we multiply the probability of each hypothesis by the chance of under it and add the results.
Step 5 — Apply Bayes' theorem.
Bayes' theorem divides the term of the sum above by the total probability .
Check: The other hypothesis has , and the two posterior probabilities add to 1, as they must.
Therefore, the probability that the red ball was drawn from bag is .
