Question
Question: Assume that a factory has two machines A and B. Past records show that machine A produces 60% of the...
Assume that a factory has two machines A and B. Past records show that machine A produces 60% of the items of output and machine B produces 40% of the items. Further, 2% of the items produced by machine A were defective and only 1% produced by machine B were defective. If a defective item is drawn at random, what is the probability that it was produced by machine A?
Solution
We solve this problem by first assuming that the items produced by machine A and B are E1 and E2 respectively. Then we can find the probabilities of those events from given information. Then we assume that the event that the item is defective is D. Then we can write the values of P(D/E1) and P(D/E2) from the given information. Then we consider the formula for Bayes Theorem, P(A)=P(B1)P(A/B1)+P(B2)P(A/B2) and find the value of P(D). Then we find the required probability, that is probability that item is from A given it is defective, that is P(E1/D) by using the formula for probability P(B/A)=P(A)P(B∩A) and modifying it as P(B/A)=P(A)P(A/B)×P(B) and substituting the values.
Complete step by step answer:
Let E1 be the event for producing items produced by machine A.
Let E2 be the event for producing items produced by machine B.
According to the question, we have been given the probabilities of items produced by machine A and machine B.
Therefore, the probability of items produced by machine A is
⇒P(E1)=10060=53
The probability of items produced by machine B is
⇒P(E2)=10040=52
Let the event of producing defective pieces be D.
So, the probability of producing defective pieces can be given as P(D).
We are given the probabilities of defective pieces provided it is produced by machine A and B separately.
Therefore, we can say that the probability of defective pieces by machine A, that is probability that machine produced by A is defective is
⇒P(D/E1)=1002
The probability of defective pieces by machine B, that is probability that item produced by B is defective
⇒P(D/E2)=1001
We need to find the probability that a defective item is made by machine A.
It can be shown by P(E1/D).
Now let us consider the formula for Bayes Theorem.
P(A)=P(B1)P(A/B1)+P(B2)P(A/B2)
Using this we can write the probability of defective machines as,
P(D)=P(E1)P(D/E1)+P(E2)P(D/E2)
Substituting all the values we get,
P(D)=52×1001+53×1002
Solving this further, we get,
P(D)=1252 .
Now let us consider the formula for conditional probability.
P(B/A)=P(A)P(B∩A)
Which can be modified again as,
P(B/A)=P(A)P(A/B)×P(B)
Using this we get,
⇒P(E1/D)=P(D)P(D/E1)×P(E1)
Substituting all the values we get,
P(E1/D)=125253×1002
Solving this equation, we get,
P(E1/D)=43
Hence, the probability that the defective item is produced by machine A is 43.
Hence the answer is 43.
Note: In this problem, we need to understand the method to find the probability by the condition on it. We need to multiply the probabilities of the event and the condition acting upon it. Also, we can cross-check by seeing the probabilities of an event is never greater than 1. Also, the percentage can be written as the number divided by 100.