VLSI DV Interview Puzzles · All levels
Bayes on Failing Test Alerts
A silicon issue occurs in 1% of chips. A screening test has 99% sensitivity and 95% specificity. If a chip tests positive, what is P(issue is real)?
Puzzle
Difficulty: Hard · Puzzle 6 of 6 · Topic: Probability Puzzles
A silicon issue occurs in 1% of chips. A screening test has 99% sensitivity and 95% specificity. If a chip tests positive, what is P(issue is real)?
Hint
Use Bayes with prevalence, not just test accuracy.
Step-by-step solution
diagram
1) Let D be real defect, + be positive test.
2) Given: P(D)=0.01, P(+|D)=0.99, P(+|~D)=0.05 (from 95% specificity).
3) Bayes: P(D|+) = P(+|D)P(D) / [P(+|D)P(D) + P(+|~D)P(~D)].
4) Numerator = 0.99*0.01 = 0.0099.
5) Denominator = 0.0099 + 0.05*0.99 = 0.0099 + 0.0495 = 0.0594.
6) P(D|+) = 0.0099/0.0594 = 1/6 approx 0.1667.Answer
Answer: Only about 16.67% of positive results are true defects in this setup.
Why candidates get it wrong
Confusing P(+|D)=99% with P(D|+).
Interviewer follow-up
If prevalence rises to 10%, what does P(D|+) become?