Correlation of Positive and Negative Prognostic Values

This Demonstration examines the correlation of the negative prognostic value (NPV) and the positive prognostic value (PPV) of a diagnostic test for normally distributed healthy and diseased populations. Differing levels of prevalence of the disease are considered. The mean and standard deviation of the populations, measured in arbitrary units, are used.


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


The PPV and NPV that are used in the evaluation of the clinical accuracy of a diagnostic test applied to a diseased or nondiseased population can be calculated given the sensitivity and specificity of the test. Sensitivity is the fraction of the diseased population with a positive test, while specificity is the fraction of the nondiseased population with a negative test. If we denote by the sensitivity, the specificity, and the prevalence, then:
, .
Given a diseased and a nondiseased population, the specificity can be defined as a function of sensitivity; therefore, we can plot PPV versus NPV (a parametric plot).
In the snapshots the population data describes a bimodal distribution of serum glucose measurements in nondiabetic and diabetic populations [1].
This Demonstration is based on [2].
[1] 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.
[2] A. T. Hatjimihail, "Uncertainty of Measurement and Diagnostic Accuracy Measures", Wolfram Demonstrations Project, 2009. demonstrations.wolfram.com/UncertaintyOfMeasurementAndDiagnosticAccuracyMeasures
    • 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+