The short answer
A diagnostic test is judged from a 2×2 table of test result against true disease status. Sensitivity and specificity read down the columns of that table, while positive and negative predictive values read across its rows and change with how common the disease is. Moving a cut-off, or requiring more features in a 'k of n' rule, trades one of sensitivity and specificity for the other.
Free interactive lesson
Try the reasoning style
What the exam hands you
Clinical units give you a table of results from a sample in which the true disease status is known, or a set of diagnostic criteria, and ask you to compute a measure, compare two tests, or say which conclusion the data support. The numbers are chosen to divide cleanly. The skill is knowing which cell goes over which total.
Two things at once: the result and the truth
A diagnostic test gives a result: positive or negative. Separately there is the truth: the person either has the disease or does not.
We usually learn the truth from a reference standard, the best available method of knowing, such as a culture grown in a laboratory, a biopsy or a long follow-up. A study of a new test gives it to people whose status is known from the reference standard, and then counts how the results line up with the truth.
| Disease present | Disease absent | Row total | |
|---|---|---|---|
| Test positive | 80 (true positives) | 40 (false positives) | 120 |
| Test negative | 20 (false negatives) | 360 (true negatives) | 380 |
| Column total | 100 | 400 | 500 |
Four measures, read from the table
Sensitivity answers: of the people who truly have the disease, what fraction does the test catch? It stays inside the first column: 80 ÷ 100 = 80%.
Specificity answers: of the people who are truly healthy, what fraction does the test clear? It stays inside the second column: 360 ÷ 400 = 90%.
Positive predictive value (PPV) answers: of the people who tested positive, what fraction truly have the disease? It stays inside the first row: 80 ÷ 120, about two thirds.
Negative predictive value (NPV) answers: of the people who tested negative, what fraction are truly healthy? It stays inside the second row: 360 ÷ 380, about 95%.
A simple way to keep them straight: sensitivity and specificity start from the truth and ask what the test does (columns). PPV and NPV start from the result and ask what it means (rows). A patient holding a result is in the second situation, which is why predictive values matter at the bedside.
Why prevalence changes predictive value
Prevalence is the fraction of a group that has the disease. Sensitivity and specificity describe the test and stay roughly the same from group to group. Predictive values do not, because they depend on how many sick and healthy people are in the group.
Take the test from the opening question, with sensitivity 90% and specificity 90%, and use it in groups of 1000 people with different prevalence.
| Prevalence | True positives | False positives | PPV |
|---|---|---|---|
| 50% | 450 | 50 | 450 ÷ 500 = 90% |
| 10% | 90 | 90 | 90 ÷ 180 = 50% |
| 1% | 9 | 99 | 9 ÷ 108, about 1 in 12 |
Cut-offs: you cannot improve both for free
Many tests measure a number, such as the level of a marker in blood, and call the result positive when the number is above a cut-off. People with and without the disease usually overlap: some healthy people have high levels and some sick people have low ones. Wherever you put the cut-off, someone is on the wrong side.
In Figure 3 the healthy group (solid line) centres on 40 and the diseased group (dashed line) on 60. The shaded region is everything the test calls positive.
Figure 4 reads out three cut-offs for these two groups. At a cut-off of 40, nearly every sick person is caught (about 98%), but half the healthy people are flagged too, so specificity is only about 50%. At 50 the two errors balance, about 84% each. At 60 the picture flips: specificity is about 98%, but only about half of the sick people are caught. Sliding the cut-off up shrinks the shaded region, so fewer sick people are caught (sensitivity falls) and fewer healthy people are flagged (specificity rises). Sliding it down does the reverse. Only a better test, with less overlap, improves both.
Marker levels with and without the disease
| Cut-off | Sensitivity | Specificity |
|---|---|---|
| 40 | about 98% | about 50% |
| 50 | about 84% | about 84% |
| 60 | about 50% | about 98% |
Diagnostic criteria
Some diagnoses use no single test. Diagnostic criteria list several features, and a person meets them when at least k of n are present, for example "at least three of these five". The k is a cut-off too: a higher k means the group meeting the criteria can only shrink. So sensitivity can only stay or fall, and specificity can only stay or rise, as when a marker cut-off is raised.
The method for a clinical-data question
Build or find the 2×2 table
Columns are the truth (disease present, absent), rows are the test result. If given percentages, pick a round group size such as 1000 and turn them into counts.
Decide what the question conditions on
Starting from people who have, or lack, the disease means a column: sensitivity or specificity. Starting from positive or negative results means a row: PPV or NPV.
Divide counts, not impressions
Write the fraction with the right cells (true positives over all positives) and check the denominator first.
If the group changes, rebuild the table
A new prevalence keeps sensitivity and specificity but changes how many are sick and healthy. Rebuild the counts.
Check the conclusion against the data
Ask whether the sample, the reference standard and the measure really support what is claimed, and whether the claim goes beyond the numbers.
Worked example: a rapid test, in a trial and in a low-risk clinic
A rapid test for an infection was compared with a reference laboratory method in 400 people. The reference method found the infection in 80 people. The rapid test was positive in 72 of those 80, and also positive in 8 of the 320 people without the infection. Find (a) the sensitivity, (b) the specificity, (c) the PPV in this study, and (d) the PPV if the same test were used in 8000 people of whom 1% have the infection.
Reveal the reasoningHide solution
Build the table. Disease present: 72 positive, 8 negative. Disease absent: 8 positive, 312 negative (320 − 8). Positives in total: 80.
(a) Sensitivity is true positives over everyone with the disease: 72 ÷ 80 = 90%.
(b) Specificity is true negatives over everyone without it: 312 ÷ 320 = 97.5%.
(c) PPV is true positives over all positives: 72 ÷ 80 = 90%. In this study, 1 in 10 positives is a false alarm.
(d) Rebuild with the same percentages. 1% of 8000 is 80 people with the infection, and 7920 without. Sensitivity 90% gives 72 true positives. A false-positive rate of 2.5% on 7920 healthy people gives 198 false positives. So PPV = 72 ÷ (72 + 198) = 72 ÷ 270, about 27%, or roughly one in four.
The trap. The test is the same and its sensitivity and specificity have not changed, yet a positive result is now wrong about three times in four. People read a high PPV in a study as a property of the test. It is a property of the test in that group.
The exam version
A table of results, then four questions: a calculation, a comparison, a new condition, and which conclusion the data support. Name the row or column each question uses.
Passage · 4 questions on it
The following is adapted from a clinic audit. The score and tests are illustrative.
A clinic compared two ways of identifying bacterial throat infection in 400 children with sore throats. Throat culture, the reference method, found the infection in 100 children. Test R is a rapid swab read in ten minutes. Test S is a score: a child screens positive when at least three of five listed features are present.
| Culture positive (100 children) | Culture negative (300 children) | |
|---|---|---|
| Test R positive | 85 | 15 |
| Test R negative | 15 | 285 |
| Test S positive (3 or more features) | 95 | 75 |
| Test S negative | 5 | 225 |
Where the wrong answers come from
The tempting wrong answers
- Divides by the wrong total
- Reads high sensitivity as 'a positive is surely right'
- Carries a study's PPV into a rarer disease
- Claims more than the sample shows
What the key looks like
- Names the column or row it divides within
- Keeps test properties apart from group properties
- Rebuilds counts for a new prevalence
- Stays inside the sample and the measure
Key takeaways
- Build the 2×2 table first: truth in columns, test result in rows.
- Sensitivity and specificity read down a column; PPV and NPV read across a row.
- Predictive values change with prevalence, even when the test does not.
- Moving a cut-off, or raising k in a 'k of n' rule, trades sensitivity against specificity.
Where this connects
Clinical units reward reasoning from the stimulus. Reading the table is the data side of reading graphs under pressure, and the prevalence step is proportional reasoning like estimating instead of calculating. The same counting logic runs through genetics probability, while evaluating evidence and social science reasoning cover what a sample can support. For the biology behind a test, see immunity and homeostasis. Designing the study: experiments and controls; the patient's side of the record: writing about medicine.
To practise it the way the exam sets it, try the units on GAMSAT Biology: lessons and exam-style questions.
More Sciences lessons
- Logs, powers of ten, dilutions
- Springs, stress and strain
- Gene interactions and pathways
- Proteins: charge and folding