01 / 21

Test Performance
in Screening

Learn how sensitivity and specificity measure whether a screening test correctly identifies who has a condition and who doesn't.

Genetics

Why Does Screening Matter?

In genetics, we often need to test large groups of people to find out who carries a gene variant, has a genetic condition, or is at risk. But no test is perfect: some people who are truly affected might be missed, and some healthy people might be incorrectly flagged.

The \(2 \times 2\) Outcomes Table

Every person screened falls into one of four categories based on two things: whether they truly have the condition and what the test says.

Actually Has Condition Yes No Test Result
Positive \(+\)
Negative \(-\)
True Positive (TP) False Positive (FP) False Negative (FN) True Negative (TN) TP and TN = correct results FP and FN = errors

The Four Possible Outcomes

True Positive (TP)
Person has the condition and the test correctly says positive.
False Positive (FP)
Person does not have the condition but the test incorrectly says positive.
False Negative (FN)
Person has the condition but the test incorrectly says negative.
True Negative (TN)
Person does not have the condition and the test correctly says negative.

What Is Sensitivity?

Sensitivity measures how well a test detects people who truly have the condition. It answers: "Of everyone who is affected, what fraction did the test catch?"

What Is Specificity?

Specificity measures how well a test correctly identifies people who are truly healthy. It answers: "Of everyone who does not have the condition, what fraction did the test correctly clear?"

Sensitivity vs Specificity

Sensitivity Specificity
Question answered How well does it catch the sick? How well does it clear the healthy?
Formula \(\frac{TP}{TP + FN}\) \(\frac{TN}{TN + FP}\)
Denominator group All truly affected All truly unaffected
Error it minimizes False negatives False positives
When to prioritize Serious conditions you must not miss When false alarms cause harm

Visualizing the Trade-Off

Truly Affected Truly Unaffected Test Threshold TP FN FP TN

How to Calculate Step by Step

1
Identify the four groups. From the data, find TP, FP, FN, and TN counts.
2
Choose the right formula. For sensitivity use \(\frac{TP}{TP + FN}\). For specificity use \(\frac{TN}{TN + FP}\).
3
Plug in the numbers. Substitute the counts from step 1 into the formula.
4
Convert to a percentage. Multiply the decimal result by \(100\) to express it as a percent.
5
Interpret the result. A value close to \(100\%\) means the test excels at that task. Compare both metrics to judge overall test quality.

Example 1: Newborn Screening

A hospital screens 1,000 newborns for a genetic metabolic disorder. Results:

Has Disorder Yes No
Test \(+\)
Test \(-\)
TP = 18 FP = 45 FN = 2 TN = 935 Total = 1,000

Interpreting the Results

90% Sensitivity
The test catches 90 out of 100 affected newborns. 10% of truly affected babies are missed.
95.4% Specificity
Of 980 healthy babies, 935 are correctly cleared. Only 45 get a false alarm requiring follow-up.

Example 2: Carrier Screening

A genetic test screens 500 people for carrier status of cystic fibrosis. Results: \(TP = 40\), \(FP = 10\), \(FN = 5\), \(TN = 445\).

1
Sensitivity: \(\frac{40}{40 + 5} = \frac{40}{45} \approx 0.889 =\) 88.9%
2
Specificity: \(\frac{445}{445 + 10} = \frac{445}{455} \approx 0.978 =\) 97.8%

Example 3: BRCA Gene Test

A clinic tests 2,000 women for BRCA1/BRCA2 mutations linked to breast cancer risk. Results: \(TP = 48\), \(FP = 20\), \(FN = 2\), \(TN = 1{,}930\).

1
Sensitivity: \(\frac{48}{48 + 2} = \frac{48}{50} = 0.96 =\) 96%
2
Specificity: \(\frac{1930}{1930 + 20} = \frac{1930}{1950} \approx 0.990 =\) 99.0%

When to Prioritize Sensitivity vs Specificity

Prioritize Sensitivity
When the condition is serious or treatable early. Missing a case (false negative) has severe consequences: newborn screening, cancer predisposition, infectious disease.
Prioritize Specificity
When a false positive causes significant harm: unnecessary surgery, extreme anxiety, invasive follow-up procedures, or social stigma.

Common Mistakes

✕ Swapping the Denominators
Sensitivity uses TP + FN (all affected), not TP + FP. Specificity uses TN + FP (all unaffected), not TN + FN.
✕ Confusing with Accuracy
Accuracy = \(\frac{TP + TN}{\text{Total}}\). It mixes affected and unaffected groups. Sensitivity and specificity are measured within one group at a time.
✕ Ignoring Prevalence
A 99% sensitive test can still have many false positives if the condition is very rare. Sensitivity alone does not tell you how likely a positive result is correct.

Summary at a Glance

Concept Sensitivity Specificity
Also called True Positive Rate True Negative Rate
Formula \(\frac{TP}{TP + FN}\) \(\frac{TN}{TN + FP}\)
Focuses on Affected individuals Unaffected individuals
Error reduced False negatives False positives
Ideal for Initial screening Confirmatory testing
Perfect score \(100\%\) (no cases missed) \(100\%\) (no false alarms)

Question 1 of 5

A screening test has \(TP = 80\), \(FN = 20\), \(FP = 30\), and \(TN = 870\). What is the sensitivity?

Question 2 of 5

A genetic test for sickle cell trait produces \(TN = 450\) and \(FP = 50\). What is the specificity?

Question 3 of 5

A test with high sensitivity but low specificity will most likely produce many:

Question 4 of 5

For newborn screening of a rare but treatable genetic disorder, which property should the test prioritize?

Question 5 of 5

A student calculates sensitivity as \(\frac{TP}{TP + FP}\). What error did they make?