Question
A factory has three machines , , and that produce 30%, 45%, and 25% of total output respectively. The defective rates for each machine are 2%, 3%, and 5%. A randomly selected item is found to be defective. Find the probability that it was produced by machine .
(JEE Main 2023, similar pattern — uses both total probability and Bayes’ theorem)
Solution — Step by Step
Let = event that the item comes from machine , and = event that item is defective.
, ,
, ,
The machines form a partition of the sample space (every item comes from exactly one machine). By the total probability theorem:
The probability that the defective item came from is .
Why This Works
The total probability theorem breaks a complex probability into simpler conditional pieces. We do not know directly, but we know the defect rate for each machine. The theorem sums up the contributions from all sources.
Bayes’ theorem then “reverses” the conditioning: given that the item IS defective, which machine most likely produced it? Even though has the highest defect rate (5%), is more likely to be the source because it produces the most items (45% of output).
This “prior times likelihood” reasoning is the foundation of Bayesian statistics — a scoring topic in JEE.
Alternative Method
Work with actual numbers instead of probabilities. Assume 10,000 items produced:
- : 3,000 items, 60 defective
- : 4,500 items, 135 defective
- : 2,500 items, 125 defective
- Total defective: 320
. Same answer, and the counting approach is more intuitive.
For JEE and CBSE, Bayes’ theorem problems almost always follow this factory/machine template. Identify the “sources” (machines, bags, boxes), their proportions, and their conditional probabilities. The calculation is mechanical after that.
Common Mistake
Students confuse with . The first is the probability of a defect given it came from (= 0.03, given). The second is the probability it came from given it is defective (= 27/64, computed). These are very different numbers. Bayes’ theorem exists precisely to convert one into the other.