Question
Question: Three bags contain 2 silver, 5 copper coins and 3 silver, 4 copper coins and 5 silver, 2 copper coin...
Three bags contain 2 silver, 5 copper coins and 3 silver, 4 copper coins and 5 silver, 2 copper coins respectively. A bag is chosen at random and a coin is drawn from it which happens to be silver. What is the probability that it has come from the third bag?
Solution
To do this question, we will make use of bayes’ theorem. For that, we will first find the probability of choosing all the bags out of the three bags. Then we will find the probability of choosing a silver coin from that particular bag. Then we will use the bayes’ theorem given as:
If E1,E2,...,En are events which constitute a partition of sample space S, i.e. E1,E2,...,En are pairwise disjoint and E1∪E2∪...∪En=S and A be any event with nonzero probability, then:
P(Ei∣A)=j=1∑nP(Ej)P(A∣Ej)P(Ei)P(A∣Ei)
Then we will assume the following:
Event A = the event of choosing a silver coin out of the three bags
Event Ej= the event in which the silver coin chosen is from bag-j
Event Ei= the event in which the silver coin chosen is from bag-i
Then we will find the probability for i=3 and hence we will have our answer.
Complete step by step answer:
Here, we have been given 3 bags and we have been told that one bag is chosen at random.
Since, choosing one bag out of the three bags is unbiased, the probability of choosing any one bag out of the 3 bags is equally likely for all three bags. Thus, let us first assume the probability of choosing bag-1 out of the three bags to be ‘x’. Since, all the bags have the same probability to be chosen, the probability of choosing bag-2 and bag-3 will also be equal to x.
Now, these are elementary events and we know that the sum of probabilities of all the elementary events is 1.
Thus, we can say that:
x+x+x=1
From this, we get the value of x as:
3x=1⇒x=31
Now, if we consider bag-1, the probability of getting a silver coin out of it will be given as follows.
The bag-1 contains 2 silver and 5 copper coins. Thus, the total coins in bag-1 are 2+5=7 out of which 2 are silver.
We know that the probability of any event is given as Probability=total outcomesfavourable outcomes. Hence, the probability of getting a silver coin out of bag-1 is given as:
total no. of coins in bag-1no. of silver coins in bag-1⇒72
Similarly, if we consider bag-2, it has 3 silver and 4 copper coins. Thus, the probability of getting a silver coin out of bag-2 is given as:
3+43⇒73
Now similarly, if we consider bag-3 it has 5 silver and 2 copper coins. Thus, the probability of getting a silver coin out of bag-3 is given as:
5+25⇒75
Now, we know that according to Bayes’ theorem, if E1,E2,...,En are events which constitute a partition of sample space S, i.e. E1,E2,...,En are pairwise disjoint and E1∪E2∪...∪En=S and A be any event with nonzero probability, then:
P(Ei∣A)=j=1∑nP(Ej)P(A∣Ej)P(Ei)P(A∣Ei)
Here, let us assume the following:
Event A = the event of choosing a silver coin out of the three bags
Event Ej= the event in which the silver coin chosen is from bag-j
Event Ei= the event in which the silver coin chosen is from bag-i
Now, for different values of j, we will get:
P(E1)=31P(E2)=31P(E3)=31
Similarly, as established above, we get for different values of j:
P(A∣E1)=72P(A∣E2)=73P(A∣E3)=75
Now, if we take i=3, we will get:
P(E3∣A)=j=1∑3P(Ej)P(A∣Ej)P(E3)P(A∣E3)⇒P(E3∣A)=31.72+31.73+31.7531.75
Now, solving this we get:
P(E3∣A)=31.72+31.73+31.7531.75⇒P(E3∣A)=212+213+215215⇒P(E3∣A)=2110215∴P(E3∣A)=21
Hence, the required probability is 21.
Note: There are different kinds of events while doing probability we should know the meaning of. They are given as follows:
1. Independent events: An event A is said to be independent of another event B if the probability of occurrence of one of them is not affected by the occurrence of the other. This is characterized as:
P(A∣B)=P(A)
2. Mutually exclusive events: Two events are said to be mutually exclusive if they cannot occur at the same time or simultaneously. They are also known as disjoint events. They are characterized as:
P(A∪B)=P(A)+P(B)
3. Exhaustive events: When a sample space is distributed down into some mutually exclusive events such that their union forms the sample space itself, then such events are called exhaustive events.
4. Sure events: When an event is sure to happen it is known as a sure event. Its probability is always 1.
5. Impossible events: When an event is impossible to happen, it is known as an impossible event. Its probability is always 0.