Example 1
Question: Box I contains 4 white and 5 blue balls, while Box II contains 6 white and 3 blue balls, and Box III contains 2 white and 8 blue balls. One box is chosen at random and one ball is drawn from it. The ball drawn is white. Find the probability that the ball was drawn from Box II.
Solution: Let \( E_1 \), \( E_2 \), and \( E_3 \) denote the events of selecting Box I, Box II, and Box III respectively, and let \( W \) denote the event that the drawn ball is white. Since one box is chosen at random: \[ P(E_1) = P(E_2) = P(E_3) = \frac{1}{3} \] Now we find the conditional probabilities of drawing a white ball from each box. Box I has 4 white and 5 blue balls, so 9 total: \[ P(W \mid E_1) = \frac{4}{9} \] Box II has 6 white and 3 blue balls, so 9 total: \[ P(W \mid E_2) = \frac{6}{9} = \frac{2}{3} \] Box III has 2 white and 8 blue balls, so 10 total: \[ P(W \mid E_3) = \frac{2}{10} = \frac{1}{5} \] By the law of total probability, the denominator in Bayes' theorem is: \[ P(W) = P(E_1)\cdot P(W \mid E_1) + P(E_2)\cdot P(W \mid E_2) + P(E_3)\cdot P(W \mid E_3) \] Substituting the values: \[ P(W) = \frac{1}{3} \cdot \frac{4}{9} + \frac{1}{3} \cdot \frac{2}{3} + \frac{1}{3} \cdot \frac{1}{5} \] \[ P(W) = \frac{1}{3}\left(\frac{4}{9} + \frac{6}{9} + \frac{1}{5}\right) \] \[ P(W) = \frac{1}{3}\left(\frac{10}{9} + \frac{1}{5}\right) \] \[ P(W) = \frac{1}{3} \cdot \frac{50 + 9}{45} = \frac{1}{3} \cdot \frac{59}{45} = \frac{59}{135} \] By Bayes' theorem, the probability that the white ball came from Box II is: \[ P(E_2 \mid W) = \frac{P(E_2) \cdot P(W \mid E_2)}{P(W)} \] \[ P(E_2 \mid W) = \frac{\dfrac{1}{3} \cdot \dfrac{2}{3}}{\dfrac{59}{135}} = \frac{\dfrac{2}{9}}{\dfrac{59}{135}} \] \[ P(E_2 \mid W) = \frac{2}{9} \times \frac{135}{59} = \frac{2 \times 15}{59} = \frac{30}{59} \]
Answer: \( P(E_2 \mid W) = \dfrac{30}{59} \)
Example 2
Question: An urn A contains 2 red and 7 black balls, and an urn B contains 6 red and 4 black balls. One of the urns is selected at random with equal probability, and one ball is drawn from it. The drawn ball turns out to be black. Find the probability that it was drawn from urn A.
Solution: Let \( A \) and \( B \) denote the events of selecting Urn A and Urn B respectively, and let \( Bk \) denote the event that the drawn ball is black. Since each urn is equally likely to be chosen: \[ P(A) = P(B) = \frac{1}{2} \] Urn A has 2 red and 7 black balls, so 9 total: \[ P(Bk \mid A) = \frac{7}{9} \] Urn B has 6 red and 4 black balls, so 10 total: \[ P(Bk \mid B) = \frac{4}{10} = \frac{2}{5} \] By the law of total probability: \[ P(Bk) = P(A) \cdot P(Bk \mid A) + P(B) \cdot P(Bk \mid B) \] Substituting: \[ P(Bk) = \frac{1}{2} \cdot \frac{7}{9} + \frac{1}{2} \cdot \frac{2}{5} \] \[ P(Bk) = \frac{7}{18} + \frac{1}{5} = \frac{35}{90} + \frac{18}{90} = \frac{53}{90} \] Applying Bayes' theorem to find the probability that the black ball came from Urn A: \[ P(A \mid Bk) = \frac{P(A) \cdot P(Bk \mid A)}{P(Bk)} \] \[ P(A \mid Bk) = \frac{\dfrac{1}{2} \cdot \dfrac{7}{9}}{\dfrac{53}{90}} = \frac{\dfrac{7}{18}}{\dfrac{53}{90}} \] \[ P(A \mid Bk) = \frac{7}{18} \times \frac{90}{53} = \frac{7 \times 5}{53} = \frac{35}{53} \]
Answer: \( P(A \mid Bk) = \dfrac{35}{53} \)