Look from the test result towards reference status
Each denominator must be positive. D denotes the specified reference status and T the test result. All four cells must come from the same dataset.[1][2]
TP and TN are positive and negative tests agreeing with the reference; FP and FN are the two kinds of disagreement. PPV and NPV do not sum to 1 because they condition on different groups. A high NPV also does not mean that a test detects almost every affected person; that is sensitivity’s question. An imperfect or incomplete reference assessment can influence every cell assignment.[2]
Understand prevalence and Bayes
p is target-population prevalence, Se sensitivity and Sp specificity, all as fractions 0…1. The model assumes that Se and Sp apply to this population and threshold.[2][1]
Imagine N people: Np are reference-positive and N(1−p) reference-negative. Expected cells are TP=NpSe, FN=Np(1−Se), TN=N(1−p)Sp and FP=N(1−p)(1−Sp). Substituting these into the cell ratios cancels N. With fixed Se and Sp, increasing prevalence raises PPV and lowers NPV wherever both ratios are defined. These are model expectations, not automatically integer observed counts.[2]
Bayes’ theorem explains the reversal. Diagnostic sensitivity and specificity instead condition on an already known reference status. Both questions are useful but different. A raw predictive value from a case-control study with an artificially selected case fraction cannot be transferred directly to a target population without a suitable prevalence assumption.[2]
Same test, different starting prevalence
A hypothetical test at 2% prevalence
- Given
- N=10000,p=0.02,Se=0.90,Sp=0.95, using hypothetical teaching values.
- Find
- Calculate all four expected counts, PPV and NPV.
There are 200 reference-positive and 9800 reference-negative people. Apply Se and Sp to their correct groups.
Now divide within each test-result group, not each reference group.
Result: PPV is about 26.87% and NPV about 99.79%. More than half the positive tests would be false positives here.
Check: The cells sum to 10000. High NPV for a rare target condition is not the same as high PPV.
Work backwards from a target in a 20%-prevalence population
- Given
- Keep N=10000,Se=0.90,Sp=0.95, changing only p to 0.20.
- Find
- Compare predictive values and find the specificity needed for PPV≥90%, if Se can be held fixed.
The 2000 reference-positive and 8000 reference-negative people give new cells.
Calculate the conditional fractions again.
For at least 90% PPV,1800 true positives permit at most 200 false positives. Among 8000 reference-negative people, that allows at most 2.5% false positives.
Result: Current PPV is 81.82% and NPV 97.44%. The hypothetical 90% target requires Sp≥97.5% at fixed Se and prevalence.
Check: With FP 200 and TP 1800,1800/2000=90%. A real threshold change may alter Se too; the inverse requirement is not a promise of an achievable test.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Practise denominators and prevalence
Calculate · Foundation
Given TP=45,FP=15,TN=135,FN=5, find PPV and NPV.
Show hint
Group by positive and negative tests.
Learning goal: Form the correct test-conditioned groups.
Show solution and calculation
PPV=45/60=75%; NPV=135/140≈96.43%.
The denominators are 60 and 140, not 50 and 150.
Rearrange · Application
A teaching dataset has PPV=0.8 and TP=40. How many false positives are consistent?
Show hint
Rearrange PPV=TP/(TP+FP).
Learning goal: Recover an unknown cell count.
Show solution and calculation
FP=TP(1/PPV−1)=40·0.25=10.
Check 40/(40+10)=0.8.
Interpret · Foundation
Does NPV=99% mean 99% of reference-positive people are detected?
Show hint
Identify the conditioning group.
Learning goal: Read conditional probabilities correctly.
Show solution and calculation
No.99% of negative tests are reference-negative in this dataset.
Detection among reference-positive people is Se=TP/(TP+FN).
Error analysis · Application
A study deliberately selects equal numbers of cases and controls. Can its PPV be transferred directly to a population with 2% prevalence?
Show hint
The study’s case fraction was set artificially.
Learning goal: Distinguish study design from the target population.
Show solution and calculation
No.
Its raw PPV refers to the study’s 50% case fraction.
A 2%-prevalence population needs justified transport of Se and Sp and a Bayes recalculation using target prevalence.
Transfer · Challenge
With p=0 and Sp=1, the model produces no positive tests. Is PPV then 0 or 1?
Show hint
Check the denominator before interpretation.
Learning goal: Handle empty conditioning groups correctly.
Show solution and calculation
TP=FP=0, so PPV=0/0 is undefined.
With no positive tests there is no observable fraction among positive tests.
Check your understanding with the formula’s reference test.
8 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Transportability and uncertainty
State prevalence, threshold, target condition, reference standard and study population. Se and Sp are not invariant under every change of population either. Finite studies yield estimates with uncertainty. These hypothetical calculations illustrate the relationships; they do not establish a diagnosis or a decision for an individual.[1][2]
Sources for this explanation
Quanta · Updated November 8, 2026
- Parikh et al. (2008): Understanding and using sensitivity, specificity and predictive values
- University of Hamburg, EpiBioManual: diagnostic tests, diagnostic measures and a derivation using Bayes’ theorem (translated source label)
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Added a DE/EN article with verified sources, prevalence comparisons, denominator limits and exercises.
Cite this reference page
Quanta. Positive and negative predictive values. Updated November 8, 2026. https://quanta-study.de/en/formula-sheet/positiver-negativer-vorhersagewert
When citing a specific scientific statement, also cite the specialist source linked to that statement.