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. demonstrations.wolfram.com/UncertaintyOfMeasurementAndDiagnosticAccuracyMeasures.
[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.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2017 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+