Input Parameters
Calculated Statistics
Enter an F1 score and prevalence
What F1 leaves open
PPV and NPV across prevalence
Sensitivity and specificity, worked out from F1 where it was measured, are held fixed while prevalence changes. F1 itself falls with prevalence, so a test set enriched with disease flatters it.
Enter an F1 score and prevalence to draw the curves.
PPV and NPV by F1 score and prevalence
Each point is a test whose F1 (vertical axis) was measured in the test set, then used at the prevalence on the horizontal axis.
PPV
NPV
Enter an F1 score and prevalence to draw the maps.
Operating points with the same F1
Every sensitivity in the unshaded range pairs with a PPV that gives the same F1. Click the chart to use a different operating point.
Enter an F1 score and prevalence to draw the trade-off.
2×2 Contingency Table (per 10,000 people)
| Disease Present | Disease Absent | Total | |
|---|---|---|---|
| Test Positive | -- | -- | -- |
| Test Negative | -- | -- | -- |
| Total | -- | -- | 10,000 |
Report summary
Plain-language summary of the inputs, the assumption and the results, ready to paste into a note or a manuscript.
Enter an F1 score and prevalence to build the summary.
Key Formulas
References
- van Rijsbergen CJ. Information Retrieval. 2nd ed. London: Butterworths; 1979.
- Hand D, Christen P. A note on using the F-measure for evaluating record linkage algorithms. Stat Comput. 2018;28(3):539-547. doi:10.1007/s11222-017-9746-6
- Chicco D, Jurman G. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics. 2020;21:6. doi:10.1186/s12864-019-6413-7
Assumes the test's sensitivity and specificity are the same in your population as in the test set, which fails when case mix or disease spectrum differs. Results are point estimates without confidence intervals; for those, use the 2×2 counts in the Diagnostic Calculator.