Sensitivity, Specificity, and Incidence

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

Testing, whether done in the medical field or elsewhere, generally has what is known as sensitivity and specificity. Sensitivity is the fraction of tested subjects who truly have some characteristic that the test will say they have. Specificity is the fraction of tested subjects who truly do not have some characteristic that the test will say they do not have. This Demonstration shows how the number of true positives, false positives, false negatives, and true negatives can be calculated by using data regarding sensitivity, specificity, and the incidence in the tested population of a particular characteristic.

Contributed by: Seth J. Chandler (March 2011)
Open content licensed under CC BY-NC-SA


Snapshots


Details

If the grid is represented as , then sensitivity is and specificity is Incidence is .

The sliders do not have a linear response since it is often important to control fine levels of detail at the upper levels of sensitivity and specificity and at the lower levels of incidence.

Snapshot 1: With low incidence conditions, a positive result on even a very sensitive test does not suggest by any means that a subject is truly positive.

Snapshot 2: With high incidence conditions, a positive result on a very sensitive test strongly suggests that a subject is truly positive.

Snapshot 3: With very high incidence conditions, even not highly specific or sensitive tests are rather good predictors.



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send