FINAL TOOLBOX
02 // Visual Math & Finance SolversP(A | +) = [P(+ | A)·P(A)] / [P(+ | A)·P(A) + P(+ | ¬A)·P(¬A)]

Visual Bayes' Theorem & Diagnostic Decision Tree Solver

Bayes' Theorem updates prior belief $P(A)$ given evidence $B$ via $P(A \mid B) = \frac{P(B \mid A)P(A)}{P(B \mid A)P(A) + P(B \mid \neg A)P(\neg A)}$, dividing the True Positive branch by the sum of all positive paths.

P(A | +) = [P(+ | A)·P(A)] / [P(+ | A)·P(A) + P(+ | ¬A)·P(¬A)]

Inputs & Parameters (3)

%
0.5%±0.599%
%
1%±0.599.9%
%
0.5%±0.550%
STARTA (5.0%)¬A (95.0%)True Pos (+|A): 4.75%False Neg (−|A): 0.25%False Pos (+|¬A): 7.60%True Neg (−|¬A): 87.40%BAYES POSTERIOR P(A | +) = 38.46%
Posterior P(A | +) [PPV]
38.46%
True Positives / All Positives (4.75% / 12.35%)
Negative Predictive P(¬A | −)
99.71%
Specificity = 92%
Joint True Positive P(A ∩ +)
4.75%
Joint False Positive P(¬A ∩ +) = 7.6%
Likelihood Ratio (LR+)
11.88×
Total Positive Rate P(+) = 12.35%

20-Row Comparison Table

Compare across:
#Prior Base Rate P(A) (%)Posterior PPV P(A | +)Total P(+)False Pos Share
010.5 %5.631 %8.44%94.4%
025.5 %40.868 %12.78%59.1%
0311 %59.476 %17.57%40.5%
0416 %69.343 %21.92%30.7%
0521 %75.942 %26.27%24.1%
0626.5 %81.066 %31.05%18.9%
0731.5 %84.522 %35.41%15.5%
0837 %87.46 %40.19%12.5%
0942 %89.582 %44.54%10.4%
1047 %91.327 %48.89%8.7%
1152.5 %92.92 %53.67%7.1%
1257.5 %94.14 %58.02%5.9%
1362.5 %95.19 %62.38%4.8%
1468 %96.188 %67.16%3.8%
1573 %96.979 %71.51%3%
1678.5 %97.746 %76.3%2.3%
1783.5 %98.363 %80.64%1.6%
1888.5 %98.918 %85%1.1%
1994 %99.465 %89.78%0.5%
2099 %99.915 %94.13%0.1%
Was this tool helpful?

Key Analytical Takeaways

  • 01Even with a $95\%$ sensitive test and only an $8\%$ false-positive rate, a $5\%$ base rate yields a Posterior Positive Predictive Value $P(A \mid +)$ of just $38.5\%$!
  • 02This happens because the $8\%$ false-positive rate acts on the huge $95\%$ healthy population ($7.6\%$ of total), outweighing true positives ($4.75\%$ of total).
  • 03The 4 terminal leaves of the probability tree always sum to exactly $100.0\%$ of the population.

Frequently Asked Questions

What is the Base-Rate Fallacy in medical testing and spam filtering?+

People intuitively confuse P(+ | Disease) with P(Disease | +). When a condition is rare (low prior P(A)), false positives from the large negative population can easily outnumber true positives.

How is Specificity related to the False Positive Rate?+

Specificity (True Negative Rate, P(− | ¬A)) is the exact complement of the False Positive Rate: Specificity = 100% − False_Positive_Rate.

What is the base-rate fallacy in diagnostic testing?+

Even with 99% sensitivity and 99% specificity, testing a population where prevalence P(A) is 0.1% produces roughly 10 false positives for every 1 true positive, leaving positive predictive value P(A|+) below 10%.