Epidemiology and diagnostic testing
Diagnostic test statistics from a 2 × 2 table
Case calculation
Example case loaded — edit any field to calculate live
Example problem. Against a reference standard, a test yields 80 true positives, 10 false positives, 20 false negatives and 90 true negatives. Calculate sensitivity, specificity, predictive values and likelihood ratios.
Example result
Updates as you typeSensitivity
How to work it out
- 80 true positives ÷ (80 true positives + 20 false negatives) × 100.
Specificity
How to work it out
- 90 true negatives ÷ (90 true negatives + 10 false positives) × 100.
Positive predictive value
How to work it out
- 80 true positives ÷ (80 true positives + 10 false positives) × 100.
Negative predictive value
How to work it out
- 90 true negatives ÷ (90 true negatives + 20 false negatives) × 100.
Positive likelihood ratio
How to work it out
- Divide the positive-test rate in affected people (80/100) by that in unaffected people (10/100).
Negative likelihood ratio
How to work it out
- Divide the negative-test rate in affected people (20/100) by that in unaffected people (90/100).
Method and reference
Enter test outcomes against an independent reference standard. Sensitivity and specificity use reference-positive and reference-negative groups. Predictive values use test-positive and test-negative groups and depend on the sampled population. Likelihood ratios compare the same test outcome across reference groups.
For learning and exam practice only. For real patient care, verify the order, drug reference and facility policy with a qualified clinician.