Question
Question: There are two bags , bag I and bag II . Bag I contains 4 white and 3 red balls while another bag II ...
There are two bags , bag I and bag II . Bag I contains 4 white and 3 red balls while another bag II contains 3 white and 7 red balls . One ball is drawn at random from one of the bags and it is found to be white . Find the probability that it was drawn from Bag I .
Solution
Let us consider A to be the event that the ball drawn is white, E1 to be the event that it is drawn from bag II and E2 to be the event that it is drawn from bag II. We have to find P(E1/A) . We know that according to Bayes theorem, P(Ei/A)=k=1∑nP(Ek)P(A/Ek)P(Ei)P(A/Ei) . Thus, P(E1/A)=P(E1)P(A/E1)+P(E2)P(A/E2)P(E1)P(A/E1) , where P(E1) is the probability that bag I is chosen, P(E2) is the probability that bag II is chosen, P(A/E1) is the probability that of white ball in bag I and P(A/E2) is the probability of white balls in bag II.
Complete step-by-step answer:
We need to find the probability that white ball is drawn from bag I out of two bags. Let us consider A to be the event that the ball drawn is white, E1 to be the event that it is drawn from bag II and E2 to be the event that it is drawn from bag II.
We have to find P(E1/A) , that is, probability that white ball is drawn from bag I out of two bags.
We know that according to Bayes theorem, P(Ei/A)=k=1∑nP(Ek)P(A/Ek)P(Ei)P(A/Ei) .
⇒P(E1/A)=k=1∑2P(Ek)P(A/Ek)P(E1)P(A/E1)
Let us expand the summation. We will get
⇒P(E1/A)=P(E1)P(A/E1)+P(E2)P(A/E2)P(E1)P(A/E1)...(i)
We have to first find P(E1),P(A/E1),P(E2) and P(A/E2) .
We know that Probability of an event =Total number of outcomesNumber of favourable outcomes
We are given that there are two bags. Hence, the probability that bag I is taken is given by
P(E1)=21
We will get the probability that bag II is taken in similar way.
P(E2)=21
Now, we have to find P(A/E1) which is the probability that white balls in bag I. We are given that there are 4 white balls and 3 red balls. Hence,
Number of favourable outcomes =4
Total number of outcomes =4+3=7
Hence, P(A/E1)=74
Now, let us find P(A/E2) which is the probability that white balls in bag II.
We are given that there are 3 white balls and 7 red balls. Hence,
Number of favourable outcomes =3
Total number of outcomes =3+7=10
Hence, P(A/E2)=103
Now, let’s substitute these values in (i). We will get
P(E1/A)=21×74+21×10321×74
Let us solve this by first cancelling the common factors. We will get
P(E1/A)=72+21×10372
Let us simplify the denominator. We will get
P(E1/A)=72+20372
We will get the LCM of the 7 and 20 as 140. Hence,
P(E1/A)=7×202×20+20×73×772⇒P(E1/A)=14040+1402172⇒P(E1/A)=14040+2172⇒P(E1/A)=1406172
We can write this as
P(E1/A)=72×61140
Let us cancel the common factors.
P(E1/A)=612×20=6140
Hence, the probability that the white balls are drawn from bag I out of two bags is 6140 .
Note: You may make mistake by using Bayes theorem in the form P(A/B)=P(B)P(B/A)P(A) . This cannot be used in this solution as there are multiple events. There can be a chance of error by finding P(A/E1) instead of P(E1/A) . You may make mistakes in the probability formula by writing it as Probability of an event =Number of favourable outcomesTotal number of outcomes .