False Positive Paradox Calculator

False Positive Paradox Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

PPV=Sens·PrevSens·Prev+(1−Spec)(1−Prev)×100%where{Prev=Prevalence (%)100Sens=Sensitivity (%)100Spec=Specificity (%)100\begin{gathered} \text{PPV} = \frac{\text{Sens} \cdot \text{Prev}}{\text{Sens} \cdot \text{Prev} + (1 - \text{Spec})(1 - \text{Prev})} \times 100\% \\[1.5em] \text{where}\quad \left\{ \begin{aligned} \text{Prev} &= \dfrac{\text{Prevalence (\%)}}{100} \\ \text{Sens} &= \dfrac{\text{Sensitivity (\%)}}{100} \\ \text{Spec} &= \dfrac{\text{Specificity (\%)}}{100} \end{aligned} \right. \end{gathered}
Usage stats

Advertisement

Results

Probability of Disease Given a Positive Test (PPV)
16.67%
positive predictive value
False discovery rate 83.33%
True positives (share of population) 0.99%
False positives (share of population) 4.95%

Report an error on this page

What is the False Positive Paradox?

The false positive paradox describes a counter‑intuitive truth in medical testing and screening: even a highly accurate test can produce mostly false alarms when the condition it screens for is rare. This calculator applies Bayes' theorem to reveal the actual probability that you have a disease after testing positive — the positive predictive value (PPV) — which is often far lower than the test's headline accuracy suggests.

Grid of 1000 squares showing a small group of true positives versus a larger group of false positives among healthy people
A population grid: with low prevalence, false positives can outnumber true positives even with an accurate test.

How to use it

Enter three percentages: the prevalence (how common the condition is in the tested population), the sensitivity (the chance a sick person tests positive, i.e. the true positive rate), and the specificity (the chance a healthy person tests negative, i.e. the true negative rate). The calculator returns the probability that a positive result is genuine, plus the false discovery rate.

The formula explained

Bayes' theorem combines how likely sick people are to test positive with how likely healthy people are to test positive by mistake:

$$P(D|+) = \frac{\text{sens} \times \text{prev}}{\text{sens} \times \text{prev} + (1 - \text{spec}) \times (1 - \text{prev})}$$

The numerator is the fraction of the population that is both sick and correctly flagged. The denominator adds the false positives — healthy people incorrectly flagged. When prevalence is tiny, that false‑positive term dominates.

Advertisement
Tree diagram splitting a population into diseased and healthy branches, then into positive and negative test results
A probability tree showing how prevalence, sensitivity and specificity combine to produce true and false positives.

Worked example

Suppose a disease affects 1% of people (prevalence = 0.01), the test has 99% sensitivity and 95% specificity. True positives = \(0.99 \times 0.01 = 0.0099\). False positives = \(0.05 \times 0.99 = 0.0495\). PPV = \(0.0099 \div (0.0099 + 0.0495) = 0.0099 \div 0.0594 \approx 16.7\%\). So despite a "99% accurate" test, only about 1 in 6 positive results is real.

How Prevalence Changes the Positive Predictive Value

The table below holds sensitivity at 99% and specificity at 95% and varies only prevalence. Each row uses \(\text{PPV} = \frac{ \text{Sens} \cdot \text{Prev} }{ \text{Sens} \cdot \text{Prev} + (1-\text{Spec})(1-\text{Prev}) }\), and the false discovery rate (FDR) is \(1-\text{PPV}\).

Prevalence PPV False discovery rate
0.1% 1.94% 98.06%
1% 16.67% 83.33%
5% 51.03% 48.97%
10% 68.75% 31.25%
25% 86.84% 13.16%
50% 95.19% 4.81%

Worked check for the 1% row: \(\text{PPV} = \frac{0.99 \times 0.01}{0.99 \times 0.01 + 0.05 \times 0.99} = \frac{0.0099}{0.0594} \approx 0.1667\), or about 16.7%. Even with a seemingly accurate test, about five in six positives are false when the condition is rare. This is the false positive paradox.

Effect of Specificity at 1% Prevalence

Sensitivity stays at 99% and prevalence at 1%.

Specificity PPV False discovery rate
95% 16.67% 83.33%
99% 50.00% 50.00%
99.9% 90.91% 9.09%

At low prevalence, specificity has a very large effect on PPV because false positives come from the large healthy group.

Advertisement

Key Terms: Sensitivity, Specificity, PPV and More

  • Prevalence: the proportion of the tested population that truly has the condition.
  • Base rate: another name for prevalence, or the prior probability of the condition before any test result is known.
  • Sensitivity (true positive rate): the proportion of people with the condition who test positive.
  • Specificity (true negative rate): the proportion of people without the condition who test negative.
  • False positive rate: the proportion of people without the condition who test positive, equal to \(1-\text{specificity}\).
  • False negative rate: the proportion of people with the condition who test negative, equal to \(1-\text{sensitivity}\).
  • Positive predictive value (PPV): the proportion of positive results that are true positives.
  • False discovery rate (FDR): the proportion of positive results that are false positives, equal to \(1-\text{PPV}\).
  • Negative predictive value (NPV): the proportion of negative results that are true negatives.

Sensitivity and specificity are properties of the test and do not depend on prevalence. PPV and NPV do depend on prevalence, so the same test gives different predictive values in different populations.

FAQ

Why is the probability so low? Because rare conditions mean there are far more healthy people, so even a small false‑positive rate generates many more false alarms than true positives.

How can I increase the PPV? Test higher‑risk groups (higher prevalence), use more specific tests, or confirm with a second independent test.

Is this only for medical tests? No — the same Bayesian logic applies to spam filters, fraud detection, drug screening and any rare‑event classifier.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators