The problem of a hidden product defect typically involves determining the likelihood that a product is defective based on imperfect testing or observed symptoms. Below is a step-by-step solution using a common scenario, followed by key insights for broader application.
- Defect Prevalence: 1% of products are defective.
- Test Accuracy:
- Correctly identifies a defective product 90% of the time (true positive rate).
- Correctly identifies a non-defective product 95% of the time (true negative rate).
- Question: If a test result is positive (defective), what is the probability the product is actually defective?
Solution Using Bayes' Theorem:
-
Define Events:
- (D): Product is defective.
- (T): Test is positive (defective).
- Given:
- (P(D) = 0.01) (prior probability of defect).
- (P(\neg D) = 0.99) (probability of no defect).
- (P(T|D) = 0.90) (true positive rate).
- (P(\neg T|\neg D) = 0.95) (true negative rate).
-
Calculate False Positive Rate:
(P(T|\neg D) = 1 - P(\neg T|\neg D) = 1 - 0.95 = 0.05).
-
Apply Law of Total Probability:
- (P(T) = P(T|D) \cdot P(D) + P(T|\neg D) \cdot P(\neg D))
- (P(T) = (0.90 \times 0.01) + (0.05 \times 0.99) = 0.009 + 0.0495 = 0.0585).
-
Apply Bayes' Theorem:
(P(D|T) = \frac{P(T|D) \cdot P(D)}{P(T)} = \frac{0.90 \times 0.01}{0.0585} = \frac{0.009}{0.0585} \approx 0.1538).
Result: The probability that a product is actually defective given a positive test is 38%.
Key Insights:
-
Base Rate Fallacy:
- Low defect prevalence (1%) dominates the result. Even with a 90% accurate test, most positives are false alarms (84.62% false positives in this case).
- Implication: High test accuracy alone is insufficient; base rates matter critically.
-
Test Optimization:
- To reduce false positives, improve true negative rates or use sequential testing.
- Example: If true negative rate improves to 99%, (P(D|T)) rises to ~47.6%.
-
Broader Applications:
- Medical Diagnostics: Low-prevalence diseases yield high false positives even with accurate tests.
- Quality Control: For rare defects, focus on reducing false negatives (missed defects) or use multiple tests.
- Decision-Making: Always incorporate prior probabilities into risk assessments.
Practical Recommendations:
- For Manufacturers:
- Use multi-stage testing if defects are rare.
- Prioritize improving true negative rates to reduce false positives.
- For Consumers:
A positive test result for a rare defect may not confirm the defect; seek secondary verification.
This approach ensures rigorous handling of uncertainty in defect detection. Adjust parameters based on specific problem constraints.
Request an On-site Audit / Inquiry