Maths IA · Statistics and probability · topic 19 of 40

Screening tests: why a positive can still be wrong · IB Maths IA idea: guide, sample graph and step-by-step plan

gentle start, a real WOW moment

A test that is right 90% of the time says you have a rare condition. Are you probably ill? Your first instinct will be wrong, and showing why is the whole IA.

Difficulty●○○ Gentle
KitPublished test accuracy figures, spreadsheet
TimeAbout 10 to 12 hours
FitsAA and AI, SL and HL
  • ✓ you like counter-intuitive results
  • ✓ you enjoy tree diagrams
  • ✓ you want a gentle first project

The big idea

the base rate is the secret

When a condition is rare, most positive results come from the healthy majority, even for an accurate test. Bayes' theorem and tree diagrams quantify this. You take real published figures for prevalence, sensitivity and specificity, work out the chance a positive result is right, and show how it changes as prevalence, accuracy or a second test changes. The surprise is the point, but it needs careful justification: every number must have a source and every step a reason. The depth comes from sensitivity analysis, repeat testing, or a proof of the general result. At HL, build something beyond a single application of the formula.

Make it yours: pick one twist

Copying a classic won't show your choices. Pick one of these (or invent your own) and your IA becomes yours.

Swipe for more twists →

Vary the prevalence

Calculate the chance a positive is correct for a range of prevalences, from very rare to common.

→ Your graph shows the curve, and the conclusion names when a test becomes useful.
A second test

Work out the chance of disease after two positive tests, using the first result as new information.

→ You use Bayes updating twice and discuss independence of the tests, which is a bigger assumption than it looks.
Real tests, real figures

Use published accuracy and prevalence from a named screening programme or a public health source.

→ Your numbers have sources, and you must discuss how reliable those figures are.
Sensitivity versus specificity

Compare how much a change in each affects the result.

→ Your analysis ranks which test property matters most, a sensitivity analysis with a clear conclusion.
Cost of mistakes

Add costs for false positives and false negatives and compare tests by expected cost.

→ Expected value joins conditional probability, so your maths links two areas.
Prove it for HL

Derive the posterior probability from the definition of conditional probability, then derive how it behaves for small prevalence.

→ A general argument gives the rigour and sophistication HL criterion E needs; a single worked example does not.

Your Maths IA research question: run the check

Write your own question first. Then make sure it ticks every box:

  • Names the condition or test, and says where its figures come from.
  • Says which probability you want: given a positive result, what is the chance of the condition?
  • Says what you will vary: prevalence, accuracy, number of tests.
  • States what 'useful test' means in your question.
  • Does not give medical advice; it is a maths question about probability.

Get your RQ checked · S$29

The picture to draw

A tree diagram splits people by the condition, then by the test result. The question circles the two positive branches.

test positivetest negativetest positivetest negativehas theconditiondoes nothave itsensitivitythe question: of ALL positives,how many really have it?start with prevalence: how common is it?false positives:the number to watch

How your Maths IA could be laid out

The usual order for a topic like this, what each part needs to show, and roughly how much of your 12 to 20 pages it takes. The words are all yours.

Aim and context~1 page
Why this test; what people tend to assume; your prediction before calculating.
Probability background~2.5 pages
Conditional probability, the tree diagram, and Bayes' theorem with a justification of where it comes from.
The figures~1.5 pages
Prevalence, sensitivity, specificity, each with a source and a comment on how reliable it is.
Worked case~2 pages
One complete calculation with a tree diagram, and the same answer in natural frequencies ('out of 10 000 people').
Changing the inputs~2.5 pages
A table and a graph of the answer as prevalence (and other inputs) change; where the answer flips.
Going further~2.5 pages
A second test, costs, or a general proof. At HL, this should carry the sophistication.
Conclusion~1 page
When a positive result should worry someone, in numbers and in plain language.
Reflection and limits~1.5 pages
Independence of repeat tests, reliability of sources, and one next step with a reason.
Bibliographynot counted
Sources for every figure.

What your Maths IA graph could look like

Made-up test accuracy (90% sensitive), to show the form of a strong graph. example only

0.000.020.040.060.080.100.120.140.160.180.200.00.10.20.30.40.50.60.70.80.91.0Prevalence of the condition (proportion of people)P(condition | positive test)specificity 0.90specificity 0.99at rare prevalence, even a good testleaves a low chance: what does abetter specificity change?ILLUSTRATIVE · MADE-UP DATA
  • The horizontal axis is prevalence, the one input people forget.
  • Two curves for two specificities show which test property matters here.
  • Sensitivity is fixed in this picture; say what you held constant.
  • Mark your real source's prevalence with a vertical line, so the graph answers your question.
  • Another graph to consider: the same quantity after a second positive test.

Where do the positive results come from?

natural frequencies help!

Natural frequencies make the idea visible. Here 10 000 made-up people: 1% have the condition, the test catches 90% of them and wrongly flags 10% of the rest. Your numbers will come from a real source.

False positives (healthy people)990True positives (ill people)90most positives are false herepeople with a positive result, out of 10 000 (made-up figures)ILLUSTRATIVE · MADE-UP NUMBERS

Your game plan

Tick steps off as you go. We'll remember on this device.

0 of 10 done

  1. Choose a test and a sourceA screening test with published accuracy and a known prevalence. Keep every source.
  2. PredictWrite down your gut answer: if the test is positive, how likely is the condition? Keep it to compare later.
  3. Learn the mathsConditional probability, tree diagrams and Bayes' theorem. Do a toy example with coins or cards first.
  4. Trial runDo one full tree with round numbers (out of 10 000 people). Does it match your formula answer?
  5. Use real figuresInsert the real prevalence, sensitivity and specificity. Note the source and the year for each.
  6. Vary the inputsChange prevalence and each accuracy figure. Record how the answer moves, with a table and graph.
  7. Add a twistA second test, costs, or a general proof. Justify why you chose it.
  8. Check the logicDo tree probabilities sum to 1 at each split? Do your two methods agree? Does the answer make sense at extreme values?
  9. ReflectHow reliable are your sources? What if the tests are not independent? Reflect throughout.
  10. Write, then cutShow one tree and one calculation in full, then a table. Define each symbol, then check before your teacher's draft.

Maths you'll need

Traps to avoid in this Maths IA

the classic mix-up
  • Confusing P(positive | condition) with P(condition | positive).
  • Figures with no source, or a source you cannot reach.
  • Using a rare-condition example but only ever one prevalence.
  • Assuming two repeat tests are independent without comment.
  • Medical conclusions or advice; stay with the mathematics.
  • At HL: one application of Bayes' formula; HL criterion E needs more depth, such as a proof, sensitivity analysis or links to expected value.
  • A tree with branches that do not sum to 1.

More Maths IA ideas like this

Make sure it's yours

This guide shows how a topic like this is usually approached. It is not an IA. Your question, choices, data, analysis and words must be your own: change something, tell your teacher where the idea came from, and follow your school's rules on outside help.

Get your RQ checked · S$29