Sensitivity, Specificity and Predictive Values

Definitions of sensitivity, specificity and predictive values from the 2×2 table, the SnNout and SpPin rules and their limits, and how prevalence and the test cut-off change test performance.

The 2×2 table

Questions on diagnostic tests can be answered by placing the data in a 2×2 table, with the reference standard (true disease status) in the columns and the test result in the rows.

Disease presentDisease absent
Test positiveTrue positive (TP)False positive (FP)
Test negativeFalse negative (FN)True negative (TN)

Sensitivity

Sensitivity = TP / (TP + FN)

Sensitivity is the proportion of people with the disease who test positive. It is calculated down the "disease present" column.

SnNout

A highly Sensitive test, when Negative, helps rule the disease out. Because such a test misses few cases, a negative result makes disease unlikely.

Specificity

Specificity = TN / (TN + FP)

Specificity is the proportion of people without the disease who test negative. It is calculated down the "disease absent" column.

SpPin

A highly Specific test, when Positive, helps rule the disease in. Because such a test produces few false positives, a positive result makes disease likely.

These rules are approximations. Whether a result truly rules a diagnosis in or out also depends on the pre-test probability, which is why likelihood ratios are used for individual patients.

An example: testing for HIV

Testing for HIV illustrates the use of a sensitive test followed by a specific one. Current algorithms begin with a laboratory antigen/antibody immunoassay, which is highly sensitive, and confirm reactive results with a supplementary test, such as an HIV-1/HIV-2 antibody differentiation assay or a nucleic acid test. The Western blot, which appears in older textbooks as the confirmatory test, is no longer recommended for this purpose in the United States.

Predictive values

Sensitivity and specificity describe the test. Predictive values describe what a result means for the patient who receives it:

Both are calculated across the rows of the table.

Predictive values depend on prevalence

With sensitivity and specificity held constant:

This is why a test that performs well in a specialist clinic can produce many false positives when used to screen a low-risk population.

Choosing and adjusting tests

Screening and confirmation

Moving the cut-off

For a test with a continuous result:

The receiver operating characteristic (ROC) curve plots sensitivity against 1 − specificity across all possible cut-offs.

Practice

The 2×2 table tool calculates all of these measures from your own numbers. The question bank has 89 questions in its section on diagnostic tests and screening.