Question
Question: In a shop X, 30 tin pure ghee and 40 tin adulterated ghee are kept for sale while in shop Y, 50 tin ...
In a shop X, 30 tin pure ghee and 40 tin adulterated ghee are kept for sale while in shop Y, 50 tin pure ghee and 60 tin adulterated ghee are there. One tin of ghee is purchased from one of the shops randomly and it is found to be adulterated. Find the probability that it is purchased from shop Y.
Solution
Hint:First calculate the probability of purchasing ghee from shop X and shop Y. The probability of purchasing ghee from shop X, P(X) will be 21 and from shop Y, P(Y) will be 21 . In a shop X, 30 tin pure ghee and 40 tin adulterated ghee are there. Now, calculate P(A∣X) , the probability of shop X containing adulterated ghee. After calculation we get,
P(A∣X)=7040 . In a shop Y, 50 tin pure ghee and 60 tin adulterated ghee are there. Now, calculate P(A∣Y) , the probability of shop Y containing adulterated ghee. After calculation we get, P(A∣Y)=11060 . Then, calculate the total probability of adulterated ghee using the formula, P(A)=P(X).P(A∣X)+P(Y).P(A∣Y) . Now, we have to find the probability that the adulterated ghee is purchased from shop Y. It means we have to find the probability, P(Y∣A) . Using Bayes theorem, we can write it as P(Y∣A)=P(A)P(A∣Y).P(Y) . Now, put the values of P(X) , P(Y) , P(A∣X) , and P(A∣Y) in the Bayes theorem formula, and solve it further.
Complete step-by-step answer:
According to the question, it is given that we have two shops which are shop X and shop Y.
The total number of shops = 2.
The probability of purchasing ghee from shop X, P(X) = 21 ……………….(1)
The probability of purchasing ghee from shop Y, P(Y) = 21 …………………(2)
It is given that in shop X we have 30 tin pure ghee and 40 tin adulterated ghee.
The number of tins of pure ghee = 30 tins.
The number of tins of adulterated ghee = 40 tins.
The total number of tins of ghee = 30 tins + 40 tins = 70 tins.
In shop X, the probability of adulterated ghee, P(A∣X) = 7040=74 …………..(3)
It is given that in shop Y we have 50 tin pure ghee and 60 tin adulterated ghee.
The number of tins of pure ghee = 50 tins.
The number of tins of adulterated ghee = 60 tins.
The total number of tins of ghee = 50 tins + 60 tins = 110 tins.
In shop Y, the probability of adulterated ghee, P(A∣Y) = 11060=116 ……………(4)
The tin of adulterated ghee can be either from shop X or shop Y.
The total probability of adulterated ghee,
P(A)=P(X).P(A∣X)+P(Y).P(A∣Y)
Putting the values of P(X) , P(Y) , P(A∣X) , and P(A∣Y) in the above equation, we get,
P(A)=P(X).P(A∣X)+P(Y).P(A∣Y)
⇒P(A)=21(74)+21(116) ………………(5)
We know the Bayes theorem, P(A∣B)=P(B)P(B∣A).P(A) .
Now, we have to find the probability that the adulterated ghee is purchased from shop Y. It means we have to find the probability, P(Y∣A) .
Now, using Bayes theorem, we can write P(Y∣A) as,
P(Y∣A)=P(A)P(A∣Y).P(Y) ……………………(6)
Now, from equation (1), equation (2), equation (4), and equation (5), we have
P(Y) = 21 , and P(A∣Y) = 116 ,and P(A)=21(74)+21(116) .
Puuting these values in equation (6), we get