Quant interview prep guides

Bayes’ rule, for quant interviews

Everyone can recite P(A∣B)=P(B∣A) P(A)/P(B)P(A\mid B) = P(B\mid A)\,P(A)/P(B)P(A∣B)=P(B∣A)P(A)/P(B). The interview is testing whether you can resist the reflex that makes a “90% accurate” test feel like 90% — whether you reach for the base rate before you reach for the formula.

For candidates practicing base rates, likelihoods, and posterior updates · Updated July 21, 2026

What the interviewer is actually testing

Bayes questions look like arithmetic and are actually a trap for one specific instinct: confusing the test’s accuracy with the answer you want. The interviewer hands you a “90% accurate” test and a rare condition and waits to see whether you blurt out a number near 90% — the classic base-rate neglect.

Say the two quantities out loud so you can’t conflate them. The test’s sensitivity is P(+∣sick)P(+\mid \text{sick})P(+∣sick) — the chance a sick person tests positive. What the question asks for is P(sick∣+)P(\text{sick}\mid +)P(sick∣+) — the chance a positive person is sick. These are different conditionals, and Bayes’ rule is exactly the machine that swaps one for the other. The gap between them is the base rate, and in a rare-disease problem that gap is enormous.

The formula, and the version you should actually use

Written formally, for hypothesis HHH and evidence EEE:

P(H∣E)=P(E∣H) P(H)P(E∣H) P(H)+P(E∣¬H) P(¬H)\Prob(H \mid E) = \dfrac{\Prob(E \mid H)\,\Prob(H)}{\Prob(E \mid H)\,\Prob(H) + \Prob(E \mid \neg H)\,\Prob(\neg H)}P(H∣E)=P(E∣H)P(H)+P(E∣¬H)P(¬H)P(E∣H)P(H)​

The denominator is the whole population of the evidence — every way EEE can happen, weighted by how likely it was. Most candidates lose the plot in that denominator. So don’t compute it in probabilities; compute it in people. Pick a round population, push it through the tree as counts, and read the answer off the leaves. Interviewers respect the natural-frequency move because it is exactly how you avoid the mistake they set for you: you literally see the false positives pile up.

A worked example, in people

Standard setup: a disease with a 1% base rate, a test with 90% sensitivity (P(+∣sick)=0.90P(+\mid\text{sick}) = 0.90P(+∣sick)=0.90) and a 9% false-positive rate (P(+∣healthy)=0.09P(+\mid\text{healthy}) = 0.09P(+∣healthy)=0.09, i.e. 91% specificity). You test positive. What’s the chance you’re sick?

Take 10,000 people so everything stays an integer:

  • 1% are sick: 100 sick, 9,900 healthy.
  • Of the 100 sick, 90% test positive → 90 true positives (10 missed).
  • Of the 9,900 healthy, 9% test positive → 9,900×0.09=9{,}900 \times 0.09 =9,900×0.09= 891 false positives.
  • Everyone who tests positive: 90+891=90 + 891 =90+891= 981 positives.
  • Of those, only 90 are actually sick: 90/981=0.0917≈90 / 981 = 0.0917 \approx90/981=0.0917≈ 9.2%.
Bayes disease test as a natural-frequency treeTen thousand people divide into 100 sick and 9,900 healthy; the sick branch yields 90 true positives and the healthy branch yields 891 false positives, so 981 positives contain only 90 truly sick.10,000 people1%99%sick · 100healthy · 9,90090%10%9%91%test + · 90test − · 10test + · 891test − · 9,009981 positives→ 90 sick= 9.2%
Push 10,000 people through the tree as counts. Ninety true positives are buried under 891 false positives, so a positive result means 90/981≈9.2%90/981 \approx 9.2\%90/981≈9.2% — the low base rate, made visible.

A positive result on this “90% accurate” test moves you from a 1% chance of being sick to about a 9% chance. It multiplied your risk roughly ninefold — and still left you more than 90% likely to be fine.

Composition of the 981 positive resultsA single bar of all 981 people who test positive: a thin emerald slice of 90 truly sick against a wide slate slice of 891 false alarms, so only 9.2% of positives are real.EVERYONE WHO TESTS POSITIVE (981 PEOPLE)90 truly sick891 false alarms9.2%
Fewer than 1 in 10 positives is a real case. The test is 90% sensitive, but when the disease is rare the false alarms dominate the people who test positive.

Deriving it with the odds form

The count table is the answer; the odds form is the elegant version, and it’s what to reach for when the interviewer says “now second-guess the result with another test.” Bayes in odds form is just:

P(H∣E)P(¬H∣E)⏟posterior odds=P(H)P(¬H)⏟prior odds×P(E∣H)P(E∣¬H)⏟likelihood ratio\underbrace{\frac{\Prob(H\mid E)}{\Prob(\neg H\mid E)}}_{\text{posterior odds}} = \underbrace{\frac{\Prob(H)}{\Prob(\neg H)}}_{\text{prior odds}} \times \underbrace{\frac{\Prob(E\mid H)}{\Prob(E\mid \neg H)}}_{\text{likelihood ratio}}posterior oddsP(¬H∣E)P(H∣E)​​​=prior oddsP(¬H)P(H)​​​×likelihood ratioP(E∣¬H)P(E∣H)​​​

The likelihood ratio of a positive is LR+=0.90/0.09=10\text{LR}^{+} = 0.90 / 0.09 = 10LR+=0.90/0.09=10. Prior odds of being sick are 0.01/0.99=1/990.01 / 0.99 = 1/990.01/0.99=1/99. So the posterior odds after one positive are 199×10=10/99\tfrac{1}{99}\times 10 = 10/99991​×10=10/99, and the posterior probability is 10/991+10/99=10/109=0.0917\tfrac{10/99}{1 + 10/99} = 10/109 = 0.09171+10/9910/99​=10/109=0.0917 — the same 9.2%, in one line. The virtue shows up on a second, independent positive: just multiply by 10 again. Posterior odds become 199×10×10=100/99\tfrac{1}{99}\times 10 \times 10 = 100/99991​×10×10=100/99, so the probability jumps to 100/991+100/99=100/199=0.502\tfrac{100/99}{1+100/99} = 100/199 = 0.5021+100/99100/99​=100/199=0.502, about 50%. Evidence accumulates by multiplying likelihood ratios — that is the whole trick.

Base rates are the whole game

The reason the answer felt wrong is that it barely depends on the test and almost entirely on the base rate. Hold the test fixed at LR+=10\text{LR}^{+} = 10LR+=10 and slide the prevalence: the posterior is 10p9p+1\dfrac{10p}{9p + 1}9p+110p​ for base rate ppp.

Posterior probability rises steeply with the base rateThe posterior P(sick | positive) as a function of the base rate for a fixed test with likelihood ratio 10: about 9.2% at a 1% base rate and 52.6% at a 10% base rate.SAME TEST (LR⁺ = 10), POSTERIOR vs BASE RATE0%50%100%0%5%10%15%20%base rate p1% base rate → 9.2%10% → 52.6%
Hold the test fixed and only the base rate moves the answer. The same positive result means 9.2% in a rare population and 52.6% when the disease is ten times as common — the prior does most of the work.

At a 1% base rate the posterior is 9.2%; at 10% it is 1.01.9=52.6%\tfrac{1.0}{1.9} = 52.6\%1.91.0​=52.6%; at 50% it is 55.5=90.9%\tfrac{5}{5.5} = 90.9\%5.55​=90.9%. Same test, wildly different answers. This is the punchline to carry into every Bayes question and, more importantly, into trading: your prior is not a formality you set once and forget — it dominates the update whenever the evidence is anything short of overwhelming.

Variants that change the answer

  • The base rate moves. If the disease is ten times more common (10% prevalence), the identical positive test now means 52.6%, not 9.2%. Always ask for — or state your assumption about — the prior before touching the likelihood.
  • A second, independent test. Two positives on independent tests multiply the likelihood ratios: LR=10×10=100\text{LR} = 10 \times 10 = 100LR=10×10=100, taking you to ~50%. But independence is a real assumption; if the tests share a failure mode (same reagent, same operator error) the second positive carries far less than another factor of 10, and blindly multiplying overstates your confidence.
  • The prosecutor’s fallacy. “There’s a 1-in-a-million chance the DNA matches by chance, so there’s a 1-in-a-million chance he’s innocent” swaps P(match∣innocent)P(\text{match}\mid \text{innocent})P(match∣innocent) for P(innocent∣match)P(\text{innocent}\mid \text{match})P(innocent∣match). In a city of a million, that tiny per-person rate still expects ~1 innocent match, and ignoring that base rate is the exact error the disease problem drills.
  • Unknown base rate. If the interviewer refuses to give a prior, that’s the question: the answer is a function of ppp, not a number. Give the formula 10p9p+1\tfrac{10p}{9p+1}9p+110p​ and note it’s near-useless when ppp is tiny.

Common mistakes

  • Answering ~90%. Reporting the sensitivity as if it were the posterior — reading P(+∣sick)P(+\mid\text{sick})P(+∣sick) when asked for P(sick∣+)P(\text{sick}\mid +)P(sick∣+). This is the entire trap.
  • Dropping the false-positive term. Forgetting the 891 healthy-but-positive people, i.e. computing 90/10090/10090/100 instead of 90/98190/98190/981. The denominator is everyone who tests positive, not everyone who is sick.
  • Ignoring the base rate entirely. Treating the test’s accuracy as the answer and never asking how rare the condition is. When the prior is extreme, it dominates the update.
  • Multiplying dependent evidence. Stacking likelihood ratios for tests that aren’t actually independent, and manufacturing false confidence.

Practice the pattern

Bayes is one instance of a reflex quant interviews test relentlessly: the answer lives in the base rate and how the evidence was generated, not in the headline accuracy number. Drill conditional-probability and base-rate questions in the LeetQuidity curriculum, or take the free calibration to see where your updates break under time.

Take the calibrationView the curriculum

On this page

What’s being testedThe formulaWorked in peopleOdds formBase ratesVariantsMistakes

Related guides

Monty Hall Quant Interview GuideBayes Theorem Quant Interview QuestionsBase Rate Fallacy Quant Interview QuestionsConditional Probability Tree DiagramsBest Quant Interview Prep Platforms in 2026: An Honest ComparisonBest QuantGuide Alternatives in 2026
LeetQuidity

The complete quant interview course.

InstitutionsCurriculumPricingFAQCalibrationDemoGuides
XLinkedInInstagramYouTube

© 2026 LeetQuidity — a W Interior company. All rights reserved.

Privacy PolicyTerms of ServiceTrust & Security