Skip to content

Methods and checksMethods

How every result is reached and what it was checked against, app by app.

Methods and checks pages

Sensitivity, specificity, likelihood ratios, diagnostic odds ratio and predictive values from a 2 × 2 table

stats-diagnostic-accuracy is a method that Drybench's tools and apps run. This page gives each version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, what was not checked, and what changed.

What this page can and cannot show

Level: Tested, not reference-checked; Clopper–Pearson, Katz and Woolf papers not read: rest on statsmodels' code; epiR agrees; no PPV or NPV interval. Reference kind: an outside program, statsmodels, 0.15.0; a published dataset, Hajian-Tilaki 2013 Table 2; statsmodels, Caspian J Intern Med 4:627-635; statsmodels 0.15.0; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-24, mpmath 1.4.1 at 60 significant digits; every root bracketed to a relative width below 1e-45; each output rounded once to the nearest double; not an outside program.

Tested by this project, not reference-checked and not independently reviewed. Every method on this page has its equations, constants, sources and cases on record, and its cases agree with this project's own expected values within the stated tolerance. That tests the code against our own working, not against an outside reference. A reader can follow each method's worked example by hand; that shows the stated method gives the stated answer for one set of inputs, and does not test the code. The other cases and their values are not printed, so a reader cannot re-run these tests. No independent scientist has yet reviewed them.

Every method · What the levels mean · How cases are checked

Versions

  • Version 1.1.0 · stats-diagnostic-accuracy@1.1.0 · Tested, not reference-checked

Tools that use it