Diagnostic test performance
Enter a test's results and read sensitivity, specificity and predictive values — then move prevalence and watch the predictive values change.
Sensitivity
—
95% CI —
Specificity
—
95% CI —
PPV
—
95% CI —
NPV
—
95% CI —
LR+
—
LR−
—
Accuracy
—
PPV and NPV move with the prevalence slider below; Sensitivity, Specificity, LR+, LR− and Accuracy are fixed properties of the test.
Set to your sample's prevalence — drag to ask what happens in another population.
Enter the test results to see performance.
SnNout — a highly Sensitive test, when Negative, rules out. SpPin — a highly Specific test, when Positive, rules in.
Confusion matrix
Figures per 10,000 people at the reference prevalence.
PPV / NPV vs prevalence
Sensitivity and specificity stay fixed — only the predictive values move with prevalence.
ROC space Youden's J = —
Build a full ROC curve
| Threshold | Sensitivity (%) | Specificity (%) |
|---|---|---|
| Threshold 1 | ||
| Threshold 2 | ||
| Threshold 3 | ||
| Threshold 4 | ||
| Threshold 5 | ||
| Threshold 6 | ||
| Threshold 7 |
Add at least two thresholds to draw a curve.
AUC ≈ – (–). 0.5 = no better than chance.
How it's computed
Show confidence-interval maths (Wilson)
Show AUC calculation
Points (FPR, TPR), sorted: –
AUC = Σ trapezoids between consecutive points, anchored at (0,0) and (1,1) = –