Four cells and two reference groups
The corresponding reference-positive or reference-negative group must be present. Cell counts are nonnegative integer observations.[1][2]
- TP: positive test, positive reference. FN: negative test, positive reference.
- TN: negative test, negative reference. FP: positive test, negative reference.
- Report Se and Sp as fractions 0…1 or percentages and state the convention.
A reference standard defines the target condition for evaluation. It can itself be imperfect, so “true” initially means agreement with that reference. Verifying only selected test results or excluding indeterminate findings can bias estimates. Build the table from a clearly evaluated group, rather than combining unrelated denominators.[1][2]
Understand error rates and thresholds
Se and FNR complement each other within reference-positive people, while Sp and FPR do so within reference-negative people. Se+Sp need not equal 1.[2]
For the same continuous score, lowering the threshold for a positive result may detect more reference-positive people while also marking more reference-negative people positive. This creates a threshold trade-off, not a mathematical inverse proportionality. A better-discriminating test may improve both measures. Case mix, disease spectrum and measurement procedures can also influence observed values.[2]
An ROC curve plots Se against 1−Sp across thresholds. Positive and negative predictive values instead ask about reference status given a test result and depend on the target group’s composition. Recall has the same binary ratio as Se, while this article specifically addresses reference-based diagnostics, thresholds and study design.[2]
One study and a changed threshold
Evaluate a hypothetical 200-person study
- Given
- TP=32,FN=8,TN=144,FP=16. All 200 people have reference status.
- Find
- Find Se,Sp and both error rates.
Reference-positive total 32+8=40; reference-negative total 144+16=160.
Take complements within those same groups.
Result: Se 80%,Sp 90%,FNR 20%,FPR 10%.
Check: The cells total 200. Within each reference group, correct and incorrect classifications sum to 100%.
Compare a lower positive threshold
- Given
- Use the same 40 reference-positive and 160 reference-negative people; new cells TP 36,FN 4,TN 128,FP 32.
- Find
- Which measure rises and which falls?
Keep the reference denominators and calculate new fractions.
Compare the cell changes.
Result: Se rises from 80% to 90%, while Sp falls from 90% to 80%. Four fewer missed cases come with 16 additional false positives.
Check: The reference totals remain 40 and 160. Choosing a threshold requires considering consequences, not just one percentage.
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.
Ask the correct test question
Calculate · Foundation
Given TP 45,FN 5,TN 180,FP 20, find Se and Sp.
Show hint
First total the reference groups.
Learning goal: Calculate reference-conditioned fractions.
Show solution and calculation
Se=45/50=90%; Sp=180/200=90%.
Equal percentages may come from different denominator sizes.
Rearrange · Application
FN=20 and Se=0.8 are reported. Find the compatible TP count.
Show hint
Solve TP/(TP+20)=0.8.
Learning goal: Recover a missing cell count from a ratio.
Show solution and calculation
TP=80: TP=0.8TP+16 gives 0.2TP=16.
Check 80/100=0.8.
Interpret · Foundation
Does Sp=95% mean a person with a negative test is 95% likely to be reference-negative?
Show hint
Check the direction of conditioning.
Learning goal: Avoid presenting specificity as a predictive value.
Show solution and calculation
No.
Sp describes negative tests among reference-negative people.
The reversed question is NPV and also depends on the target population’s composition.
Error analysis · Application
A study has no reference-positive participants and reports Se=100% because FN=0. Is this correct?
Show hint
TP must also be 0.
Learning goal: Do not treat absent groups as perfect performance.
Show solution and calculation
No.
Se=0/0 is undefined.
Detection within a reference-positive group cannot be estimated without that group.
Sp may still be estimable if reference-negative people are present.
Transfer · Challenge
In the threshold comparison FN falls from 8 to 4 and FP rises from 16 to 32. Is “four fewer errors” a complete assessment?
Show hint
Consider both error types and their consequences.
Learning goal: Understand threshold selection as a consequence trade-off.
Show solution and calculation
No.
Total misclassifications rise from 24 to 36, although fewer reference-positive people are missed.
A meaningful decision weighs both error types, their consequences and the intended use.
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.
An estimate is not a universal test certificate
Sensitivity and specificity are estimated from finite samples. Their uncertainty and the suitability of the study group matter. Identical formulas do not guarantee transportability across all ages, disease spectra or laboratory procedures. These ratios explain diagnostic test questions; an individual diagnosis requires additional information and appropriate assessment.[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 reference groups, threshold comparison, uncertainty limits and exercises.
Cite this reference page
Quanta. Diagnostic Test Sensitivity and Specificity. Updated November 8, 2026. https://quanta-study.de/en/formula-sheet/diagnostische-sensitivitaet-spezifitaet
When citing a specific scientific statement, also cite the specialist source linked to that statement.