Analysis of Diagnostic Accuracy Measures

This Demonstration shows plots of various accuracy measures for diagnostic tests on normally distributed healthy and diseased populations. This is done for differing prevalence of the disease, taking into account mean and standard deviations of the populations. The mean and standard deviations are expressed in arbitrary units. The measures considered are the positive prognostic value ("PPV"), the negative prognostic value ("NPV"), the (diagnostic) odds ratio ("OR"), the likelihood ratio for a positive result ("LR+"), and the likelihood ratio for a negative result ("LR-"). The measures are plotted against the sensitivity or the specificity of the test, which can be selected by clicking the respective button.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


The measures that are used in the evaluation of the clinical accuracy of a diagnostic test applied to a diseased or nondiseased population can be calculated as functions of the sensitivity or the specificity of the test. Sensitivity is the fraction of the diseased population with a positive test result, while specificity is the fraction of the nondiseased population with a negative test result. If we denote by the sensitivity, the specificity, and the prevalence, we have:
, , , , .
In the thumbnail and the snapshots, the population data describes a bimodal distribution of serum glucose measurements in nondiabetic and diabetic populations [2].
This Demonstration is a simplified version of another Demonstration [1], and is appropriate as an educational tool for medical students.
[1] A. T. Hatjimihail, "Uncertainty of Measurement and Diagnostic Accuracy Measures", Wolfram Demonstrations Project, 2009.
[2] T. O. Lim, R. Bakri, Z. Morad, and M. A. Hamid, "Bimodality in Blood Glucose Distribution: Is It Universal?", Diabetes Care, 25(12), 2002 pp. 2212–2217.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.