Skip to content

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 type

Sensitivity

80%

How to work it out
  1. 80 true positives ÷ (80 true positives + 20 false negatives) × 100.

Specificity

90%

How to work it out
  1. 90 true negatives ÷ (90 true negatives + 10 false positives) × 100.

Positive predictive value

88.888889%

How to work it out
  1. 80 true positives ÷ (80 true positives + 10 false positives) × 100.

Negative predictive value

81.818182%

How to work it out
  1. 90 true negatives ÷ (90 true negatives + 20 false negatives) × 100.

Positive likelihood ratio

8

How to work it out
  1. Divide the positive-test rate in affected people (80/100) by that in unaffected people (10/100).

Negative likelihood ratio

0.22222222

How to work it out
  1. 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.