Bayes’ Law

Using Bayes’ Law

The Problem

Let us concern ourselves with Disease X. In the United States, the disease prevalence is 5.5 per 100,000 people. This is 0.0055% of the population. There is a new test for this disease, called the Blackbird Test. To determine how good this new test is, a clinical trial was held using 72 subjects with the disease and 53 subjects without the disease. All 125 subjects were tested for the disease using the Blackbird Test. Some tested positive; some tested negative. The following table (confusion matrix) summarizes these clinical results:

Confusion matrix corresponding to the problem given above.
    Reality
    Diseased, D Clean, C
Test Result Positive, + 67 11
  Negative, − 5 42
       

With this information, calculate the probability that a randomly-selected person from the population, who tests positive, has Disease X; that is, calculate P[D | +].

Supplemental Calculations

The following are additional probabilities that are frequently calculated on such clinical data. See if you can calculate them successfully.

Supplemental Calculations
False Positive RateP[+ | C]
   
False Negative RateP[− | D]
   
True Positive RateP[+ | D]
   
True Negative RateP[− | C]
   
SensitivityP[+ | D]
   
SpecificityP[− | C]

You may want to calculate these values yourself then hover your mouse over the grey spaces to see if you calculated them correctly.

Your Answer

In the box below, please enter the probability the person has Disease X, given they test positive for it (P[D | +]), then click on the “Check your answer!” button. Please round your answer to the ten-thousandths place.

Assistance

Show Formula

Show Solution

Show the R Code

Show the Excel Formula

© Ole J. Forsberg, Ph.D. 2024. All rights reserved.   .