Skip to content
DenseChip
Learn
PracticeCode labInterview

DenseChip

Navigate

Menu

LearnPracticeCode labInterview

Tools

All toolsSV editorCode repoResume
DenseChip

Practice, courses, and chip-design tools in one focused workspace.

LearnPracticeCode labInterviewToolsLearning paths

© 2026 DenseChip

AboutContactPrivacyTerms
Skip to lesson

Course contents

  • How to Use This Puzzle Bank
  • SystemVerilog Language Puzzles25
  • Difficulty Guide
  • Full Topic Map
  • Interview-Day Tips
  • OOP & Testbench Puzzles25
  • Concurrency & Timing Puzzles25
  • Randomization & Constraint Puzzles25
  • SVA Assertion Puzzles25
  • Functional Coverage Puzzles25
  • Logic & Aptitude Puzzles25
    • Classic Brain Teasers
    • Probability Puzzles
      • Biased Coin to Fair Bit (Von Neumann)
      • Expected Tosses Until First HH
      • Two Children, At Least One Boy
      • Monty Hall Switching Odds
      • Birthday Collision Threshold
      • Bayes on Failing Test Alerts
    • Digital Logic Puzzles
    • Debugging Riddles
    • Logic & Aptitude Puzzles: Tricky Q&A
  • Scenario & Debug Puzzles25
  • Interview Prep: Puzzle Rounds5
  • DV Puzzle Cheatsheet
Loading lesson

‹Probability Puzzles
  1. Topics
  2. DV Interview Puzzles
  3. Logic & Aptitude Puzzles
  4. Probability Puzzles
  5. Bayes on Failing Test Alerts

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)?

On this page

    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?

    Related topics

    • Back to Probability Puzzles

    • Logic & Aptitude Puzzles section

    Previous

    166 / 210

    Next: Digital Logic Puzzles

    Up next

    Up nextDigital Logic Puzzles

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • Biased Coin to Fair Bit (Von Neumann)
    • Expected Tosses Until First HH
    • Two Children, At Least One Boy