Skip to content
APTAVIA

Sciences · Topic guide

Diagnostic tests and data

Built forMarch & September sittingsGEMSAS & non-GEMSAS pathwaysDomestic & international applicantsAustralia · Ireland · UK

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

SciencesFrom this lesson

A test is positive in 90% of ill people and negative in 90% of healthy people. Of 1000 people, 100 are ill. One tests positive.

What is the chance that person is ill?

Pick an option to see how the tutor reasons to the answer — not just whether you were right.

How to reason to the answer

Correct — nice reasoning.Not quite — the answer is B.

Count people. Of the 100 with the disease, 90 test positive. Of the 900 without it, 10% (90 people) also test positive. So 180 people test positive and only 90 of them are ill: 50%. The tempting 90% mixes up two questions: how likely a sick person is to test positive (90%) is not how likely a positive person is to be sick. This lesson teaches how to keep them apart.


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 presentDisease absentRow total
Test positive80 (true positives)40 (false positives)120
Test negative20 (false negatives)360 (true negatives)380
Column total100400500
A 2×2 table for 500 people; every measure in this lesson is a fraction of it. A true positive has the disease and tests positive. A false negative is ill but tests negative (missed). A false positive is healthy but tests positive (a false alarm). A true negative is healthy and tests negative. Columns are the truth, rows are the test result. The first column says 100 people truly have the disease and the test caught 80 of them. The second says 400 people are healthy and the test raised a false alarm for 40.

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.

PrevalenceTrue positivesFalse positivesPPV
50%45050450 ÷ 500 = 90%
10%909090 ÷ 180 = 50%
1%9999 ÷ 108, about 1 in 12
Same test (sensitivity and specificity 90%), three groups of 1000 people, with 500, 100 and 10 people ill. As the disease becomes rarer, the healthy people who are wrongly flagged outnumber the sick people who are rightly flagged, so a positive result means less and less.
Sensitivity and Specificity Explained Clearly (Biostatistics)Watch how the 2×2 table is drawn and how sensitivity and specificity are each read from one column. Pause at the table and say which cells you are dividing before the presenter does.Watch on YouTube

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

10203040506070809000.5751.15Marker level (units)Relative number of people Without the diseaseWith the disease
Two overlapping distributions with a cut-off at 50; the shaded band is everything called positive (level above 50). The dashed curve inside the shaded region is true positives; the part of the dashed curve to the left is missed cases. The solid curve inside the shaded region is false positives.
Cut-offSensitivitySpecificity
40about 98%about 50%
50about 84%about 84%
60about 50%about 98%
Sensitivity and specificity of the same test at three cut-offs.

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

  1. 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.

  2. 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.

  3. Divide counts, not impressions

    Write the fraction with the right cells (true positives over all positives) and check the denominator first.

  4. 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.

  5. 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.

Check yourself

In a study, 150 of 200 people with a disease tested positive, and 720 of 800 people without the disease tested negative. What is the specificity of the test?

Correct. Not quite.

Specificity stays inside the group without the disease: 720 ÷ 800 = 90%. The 75% is the sensitivity (150 ÷ 200). The 87% is overall accuracy, (150 + 720) ÷ 1000. The 93% is the negative predictive value, 720 ÷ (720 + 50), which divides by everyone who tested negative instead of everyone who is healthy.

Check yourself

A test has sensitivity 90% and specificity 90%. It is used in 1000 people with 100 ill, then in 1000 with 500 ill. How does its negative predictive value change?

Correct. Not quite.

Rebuild both groups. With 100 ill: 810 of 900 healthy people test negative and 10 ill people do too, so NPV is 810 ÷ 820, about 99%. With 500 ill: 450 healthy test negative and 50 ill people do too, so NPV is 450 ÷ 500 = 90%. The stays-the-same options confuse the test's own sensitivity and specificity, which are fixed, with a predictive value, which depends on how many ill people a negative result is drawn from.

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 positive8515
Test R negative15285
Test S positive (3 or more features)9575
Test S negative5225

Check yourself

What is the sensitivity of Test R?

Correct. Not quite.

Sensitivity stays in the culture-positive column: 85 ÷ 100 = 85%. The 95% is Test R's specificity (285 ÷ 300). The 92.5% is its overall accuracy, 370 of 400, and 15% is the share of infected children it missed.

Check yourself

Which statement about the two tests does the table support?

Correct. Not quite.

Test S catches 95 of 100 infected children (R catches 85), but gives 75 false alarms among 300 healthy children (R gives 15). So S is more sensitive and less specific. The "S is better" claim is half-right: it counts the gain and ignores the cost. The "flags fewer healthy children" claim is wrong in one half: 75 false alarms against 15 is more, not fewer. R does not beat S on both measures, because its sensitivity is lower.

Check yourself

Test S is changed so a child screens positive only with at least 4 of the 5 features. For the same children, which result must follow?

Correct. Not quite.

Every child with at least 4 of the 5 features also has at least 3, so the new group of positives is a subset of the old one. That means the 95 true positives can only stay or fall, so sensitivity cannot rise, and the 75 false positives can only stay or fall, so specificity cannot fall. The numbers are not given, so only these directions follow. Stricter does not mean better: it moves along the trade-off.

Check yourself

For these 400 children, which conclusion is supported?

Correct. Not quite.

Among 230 children with a negative Test S, 225 were culture negative: about 98%. That supports the claim for this sample. A negative Test R is right for 285 of 300 children (95%), so it is not the surer all-clear. A positive Test S is right in only 95 of 170 children (about 56%), so it does not almost certainly mean infection. The sample held only children, so nothing here speaks for adults.

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

From the other sections

17 min read · Concept · Updated

Practise this with real GAMSAT-style questions

A timed diagnostic, real practice questions with worked explanations, and your first essay marked on our rubric built from ACER’s two published criteria.