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

AboutRoadmapCareersInternshipsFAQContactPrivacyTerms
Skip to lesson

Course contents

  • How to Use This Puzzle Bank
  • SystemVerilog Language Puzzles25
  • Difficulty Guide
  • Full Topic Map
  • Interview-Day Tips
  • Study Route: One Week Before the Interview
  • Study Route: Two Weeks
  • Study Route: Four Weeks (Full Course)4
  • 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
  • UVM Testbench Puzzles25
  • Clock, Reset & CDC Puzzles25
  • Bus and Interface Protocol Puzzles25
  • Interview Prep: Puzzle Rounds7
  • 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
On this page

    VLSI DV Interview PuzzlesAll 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: Medium · 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.

    How this was checked

    Checked by running a model of the rule in a Python model. A computational check: exact Bayes arithmetic with fractions gives 1/6 at 1% prevalence and 11/16 at 10% prevalence.

    Why candidates get it wrong

    Reading the 99% sensitivity as P(defect | positive). With 1% prevalence the 5% false positives from the 99% good chips (4.95 per 100) swamp the 0.99 true positives per 100 chips.

    Interviewer follow-up

    If prevalence rises to 10%, what does P(D|+) become? Model answer: 0.099 / (0.099 + 0.05*0.9) = 0.099/0.144 = 11/16 = 0.6875, about 69%. The same test, a much more trustworthy positive.

    Say it out loud

    I use Bayes with the defect rate at one percent, sensitivity 99 percent, and a false positive rate of 5 percent from the 95 percent specificity. Out of 10,000 chips, 100 are defective and 99 of those test positive, while about 495 of the good chips also test positive. So the true positives are 99 out of 594, which is one sixth, about 16.7 percent. The trap is reading the 99 percent sensitivity as the chance that a positive is a real defect.

    Related topics

    • Back to Probability Puzzles

    • Logic & Aptitude Puzzles section

    Previous

    172 / 293

    Next: Digital Logic Puzzles

    Up next

    Up nextDigital Logic Puzzles

    Sign in to save progress

    Practice this lessonPrevious lessonReport an error

    See also

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