TextbookPublic Health & EpidemiologySensitivity and Specificity

Sensitivity and Specificity

Sensitivity and specificity are intrinsic properties of diagnostic tests that measure the ability to correctly identify individuals with and without disease respectively, with predictive values additionally dependent on disease prevalence in the tested population.

PLAB 1UKMLA0 questions

Key Facts

Sensitivity = TP / (TP + FN) — proportion of diseased individuals correctly identified as positive; a sensitive test rules OUT disease when negative (SnNOUT) Specificity = TN / (TN + FP) — proportion of non-diseased individuals correctly identified as negative; a specific test rules IN disease when positive (SpPIN) PPV = TP / (TP + FP) — proportion of positive results that are true positives; increases with higher prevalence NPV = TN / (TN + FN) — proportion of negative results that are true negatives; decreases with higher prevalence Likelihood ratio (+) = sensitivity / (1 − specificity); LR+ >10 strongly increases post-test probability Likelihood ratio (−) = (1 − sensitivity) / specificity; LR− <0.1 strongly decreases post-test probability ROC curve: plots sensitivity (y) vs 1−specificity (x); AUC >0.9 = excellent test, 0.7-0.9 = good, <0.7 = poor Pre-test probability × likelihood ratio → post-test probability (Fagan nomogram)

Overview

Key Facts

Sensitivity and specificity are fundamental to understanding diagnostic test performance. They are intrinsic properties of a test (fixed regardless of prevalence), while predictive values vary with disease prevalence in the tested population.

2×2 Table

Disease PresentDisease Absent
Test PositiveTrue Positive (a)False Positive (b)
Test NegativeFalse Negative (c)True Negative (d)

Formulae

  • Sensitivity = a / (a + c)
  • Specificity = d / (b + d)
  • PPV = a / (a + b)
  • NPV = d / (c + d)
  • Prevalence = (a + c) / (a + b + c + d)
  • Accuracy = (a + d) / (a + b + c + d)

Clinical Mnemonics

  • SnNOUT: if a test has high Sensitivity, a Negative result rules OUT disease
  • SpPIN: if a test has high Specificity, a Positive result rules IN disease

Trade-off Between Sensitivity and Specificity

  • Adjusting the test cut-off point affects both: increasing sensitivity decreases specificity and vice versa
  • The optimal cut-off depends on the clinical context (consequences of false positives vs false negatives)
  • Screening tests prioritise high sensitivity (don't miss disease)
  • Confirmatory tests prioritise high specificity (don't falsely diagnose)

Clinical Presentation

Clinical Examples

  • D-dimer for PE: highly sensitive (~95%) but poorly specific (~40%); negative D-dimer rules out PE (SnNOUT)
  • Troponin for MI: highly sensitive and specific with hs-troponin assays
  • Anti-CCP for RA: highly specific (~96%) but less sensitive (~67%); positive result strongly supports RA (SpPIN)
  • RADT for GAS pharyngitis: high specificity (~95%) but moderate sensitivity (~70-90%)

Effect of Prevalence on Predictive Values

  • In high-prevalence settings: PPV increases, NPV may decrease
  • In low-prevalence settings: PPV decreases (more false positives), NPV increases
  • This is why screening in low-prevalence populations produces many false positives
  • Pre-test probability (clinical suspicion + prevalence) is essential for interpreting test results

Differential Diagnosis

MeasureFormulaDepends on Prevalence?Clinical Use
SensitivityTP/(TP+FN)NoRule out when negative
SpecificityTN/(TN+FP)NoRule in when positive
PPVTP/(TP+FP)Yes (increases with prevalence)Probability of disease if positive
NPVTN/(TN+FP)Yes (decreases with prevalence)Probability of no disease if negative
LR+Sens/(1-Spec)NoHow much positive result increases odds
LR−(1-Sens)/SpecNoHow much negative result decreases odds

Diagnosis / Investigation

ROC Curve Analysis

  • Receiver Operating Characteristic curve
  • Plots sensitivity (true positive rate) on y-axis against 1−specificity (false positive rate) on x-axis
  • Each point on the curve represents a different cut-off value
  • AUC (area under the curve) summarises overall test performance
  • AUC interpretation: 1.0 = perfect, 0.5 = no discriminatory value (diagonal line)
  • Optimal cut-off: point nearest top-left corner (maximises both sensitivity and specificity)

Likelihood Ratios

  • Convert pre-test probability to post-test probability
  • LR+ >10: large and often conclusive increase in probability
  • LR+ 5-10: moderate increase
  • LR+ 2-5: small increase
  • LR− <0.1: large and often conclusive decrease in probability
  • LR− 0.1-0.2: moderate decrease
  • LR− 0.2-0.5: small decrease
  • Can be used with Fagan nomogram for bedside estimation

Management

Choosing the Right Test

  • Screening: choose high sensitivity (minimise false negatives; don't miss disease)
  • Confirmation: choose high specificity (minimise false positives; don't falsely diagnose)
  • Sequential testing: screen with sensitive test → confirm with specific test

Clinical Application

  • Always consider pre-test probability before ordering tests
  • A test is most useful when pre-test probability is intermediate (50%)
  • Tests add little information when pre-test probability is very high or very low
  • Order of testing: history (pre-test probability) → sensitive screening test → specific confirmatory test
  • Bayesian reasoning: update probability with each piece of information

Prognosis

  • Understanding sensitivity and specificity is fundamental to evidence-based test interpretation
  • Predictive values change dramatically with disease prevalence
  • In rare diseases, even highly specific tests produce many false positives in population screening
  • Point-of-care testing with known sensitivity/specificity allows bedside probability estimation
  • AI-assisted diagnostics increasingly assessed using ROC analysis and AUC metrics

Other Relevant Information

Effect of Prevalence on PPV (Example)

PrevalenceSensitivitySpecificityPPVNPV
1%99%99%50%99.99%
10%99%99%92%99.9%
50%99%99%99%99%

LR Interpretation Guide

LR+LR−Interpretation
>10<0.1Large change in probability
5-100.1-0.2Moderate change
2-50.2-0.5Small change
11No change (useless test)