Question
A factory has two machines. Machine A produces 60% of items and Machine B produces 40%. Defective rates are 2% for A and 5% for B. If a randomly selected item is found defective, what is the probability it came from Machine A?
(Bayes’ theorem — CBSE 12 Board favourite, JEE Main 2022 pattern)
Which Theorem to Use?
flowchart TD
A["Probability Problem"] --> B{What type?}
B -->|"P(A or B)"| C["Addition Theorem"]
B -->|"P(A and B)"| D["Multiplication Theorem"]
B -->|"Given outcome, find cause"| E["Bayes' Theorem"]
C --> C1{"Mutually exclusive?"}
C1 -->|Yes| C2["P(A or B) = P(A) + P(B)"]
C1 -->|No| C3["P(A or B) = P(A) + P(B) - P(A and B)"]
D --> D1{"Independent?"}
D1 -->|Yes| D2["P(A and B) = P(A) x P(B)"]
D1 -->|No| D3["P(A and B) = P(A) x P(B|A)"]
E --> E1["P(cause|effect) = P(effect|cause) x P(cause) / P(effect)"]
Solution — Step by Step
We observe the effect (item is defective) and want the cause (which machine made it). Whenever the problem gives you conditional probabilities and asks you to “reverse” the conditioning, that is Bayes’ theorem.
Let = item from Machine A, = item from Machine B, = item is defective.
- ,
- ,
Even though Machine A produces more items, it has a lower defective rate. So only 37.5% of defective items come from A.
Why This Works
Bayes’ theorem is just conditional probability written backwards. We know (probability of defect given Machine A), but we want (probability of Machine A given defect). The formula connects the two using the total probability in the denominator.
The denominator acts as a normalising constant — it ensures the posterior probabilities .
Alternative Method — Tree Diagram Approach
Draw a probability tree: first branch into A (0.6) and B (0.4), then each branches into Defective and Not Defective.
- Branch A-Defective:
- Branch B-Defective:
In CBSE boards, Bayes’ theorem appears every single year — usually as a 4-6 mark question. The setup is always the same: two or three “causes” with known conditional probabilities, and you reverse the conditioning. Practice 10 such problems and the pattern becomes automatic.
Common Mistake
The most common error: confusing with . Students write directly, thinking “defect rate of A” answers the question. But 0.02 is the probability that an item from A is defective, not the probability that a defective item came from A. These are fundamentally different — Bayes’ theorem bridges the gap.
Another mistake: forgetting to include all causes in the denominator. If there were three machines, .