A factory has two machines A and B. Past record shows that machine A produced 60% of the item of output and machine B produced 40% of the items. Further, 2% of the items produced by machine A and 1% produced by machine B were defective. All the items are put into one stockpile and then one item is chosen at random from this and is found to be defective. What is the probability that it was prodcued by machine B?
Let E1 the event that the item is produced by machine A and E2 the event that the item is produced by machine B.
Then E1 and E2 are mutually exclusive and exhaustive events Moreover,
P(E1)=60 and P(E2)=40.
Let E the event that the item chosen is defective,
∴ P(E1E) = P(machine A produced defective items)=2%=2100
P(E2E) = P(machine A produced defective items)=1%=1100
The probability that the randomly selected item was from machine B, given that it is defective, is given by P(E2E)
By using Bay'e theorem, we obtain
P(E2E)=P(EE2)P(E2)P(EE1)P(E1)+P(EE2)P(E2)=1100×252100×35+1100×25=25006500+2500=26+2=14