KS Maths
Year 10 Extended Β· Unit 4 Sets, Venn diagrams and conditional probability Β· Lesson 6 of 6

Reversing a conditional probability

A positive test: how much should it change what you believe?

A test result changes what we should believe, but by how much? This lesson reverses a conditional probability with counts and with a tree, and uses it to justify a decision.

Statistics and ProbabilityNo calculator

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

probability
How likely it is that something happens, from 0 to 1.The probability of heads is one half.
conditional probability
The probability of an event given that another event has happened.The probability of rain given that it is cloudy.
positive
Greater than zero.7 is a positive number.
frequency
How many times something happens or appears.Score 5 has a frequency of 3.
chance
How likely something is to happen.There is a good chance of rain.
outcome
One possible result.Heads is one outcome of a coin toss.
independent
Not affecting each other.Two coin tosses are independent.
accurate
Very close to the true value.A good ruler gives an accurate length.
sample
A small group chosen from a bigger group.We asked a sample of 50 students.
predict
Say what you think will happen using the data.Predict the score for 5 hours of study.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Three quick ones from earlier work. Try each in your head or on paper before you open the answer.

  1. From lesson 5: P(A) = 0.6 and P(B | A) = 0.5. Find P(A ∩ B).
    Answer0.3. 0.6 Γ— 0.5.
  2. From Year 7, Unit 2, lesson 3: find 8% of 250.
    Answer20. 10% is 25, so 8% is 25 βˆ’ 5 = 20.
  3. From lesson 4: A and B are independent, P(A) = 0.3 and P(B) = 0.4. Find P(A ∩ B).
    Answer0.12. 0.3 Γ— 0.4.
Words used in this lesson
sensitivity
the share of people with the condition whom the test catches. For example: 90 of every 100 people with it test positive.
false positive
a positive result for a person who does not have the condition. For example: a healthy student told the test is positive.
prevalence
the share of people who have the condition. For example: 1 person in 500.
screening
testing people who have no symptoms to find a condition early. For example: a school health check offered to everyone.
natural frequencies
counts out of a large group instead of probabilities. For example: out of 1000 people, 30 have it.
total probability
the sum over every route of a tree that gives an outcome. For example: P(positive) = true positive route + false positive route.

A positive result

A health service in Johannesburg offers everyone a test for a condition that affects 1 person in 500. The test gives a positive result for 98% of people who have the condition, and for 3% of people who do not. A student tests positive and is told: β€œThe test is 98% accurate.”

Predict first: out of every 100 people who test positive, about how many do you think actually have the condition? Then use the figure to see how the answer moves when the condition is rarer or more common, and when the false alarm rate changes.

Everyone: 10000 peoplehave it: 500do not: 9500Test positive: 1210have it: 450false alarms: 760Share of positives who have it: 37.2%
1210test positive
450of them have it
37.2%share who have it

Of 10000 people, 5% have the condition, the test catches 90% and gives a false alarm to 8% of the others: 1210 test positive and 450 of them have it, which is 37.2%.

Show me the steps
  1. Start at 5% with the condition, a test that catches 90% and a false alarm rate of 8%. Of 10000 people, 500 have it and 450 of them test positive. 9500 do not, and 8% of them, 760, also test positive. 450 + 760 = 1210 positives, and 450 of them have the condition: 37.2%.
  2. Set the false alarm rate to 0%: no healthy person tests positive, the 450 positives all have the condition, and the share is 100%.
  3. Put the false alarm rate back to 8% and set the condition to 1%: 100 have it and 90 test positive, but 9900 are healthy and 8% of them, 792, get a false alarm. 90 + 792 = 882 positives and only 10.2% have it. The rarer the condition, the more false alarms swamp the true positives.
  4. Set the condition to 10%, the test to catch 100% and the false alarm rate to 5%: 1000 have it and all 1000 test positive, 9000 are healthy and 450 get a false alarm, so 1000 of 1450 positives, 69%, have it.

Natural frequencies. Imagine a large group, say 10000 people. Split them by the condition. Apply the test rates to each part. Then look only at the people who tested positive and ask what share of them have it.

With a tree. P(has it | positive) = P(has it ∩ positive) Γ· P(positive), where P(positive) is the total of the two routes that end in a positive: P(has it) Γ— P(positive | has it) + P(does not) Γ— P(positive | does not).

The test rates are P(positive | has it) and P(positive | does not). The chance that matters to the person is P(has it | positive). They are different numbers, and the second depends on how common the condition is.

Read what Keith says

Natural frequencies make conditional probability easier. Imagine a large group, say ten thousand people. Split them by the condition, apply the test rates to each part, and then look only at the people who tested positive. Ask what share of them really have it. The chance that matters to the person is the chance of having it given a positive test. It is a different number from the test rate, and it depends on how common the condition is. Try imagining the crowd.

False alarms come only from the people who do not have the condition. In 1500 people, 300 have a condition and the test gives a false alarm to 4% of the others. The false alarms are 4% of 1200 = 48, not 4% of all 1500 = 60. The more common the condition, the bigger the gap.

The rest of this lesson is in the full course

Still to come in this lesson:

  • Worked examples
  • Check before you go on
  • Your turn

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

Years 7 to 11 plan$59Every lesson from Year 7 to Year 11, so the refresher links always open, and every Year 7 to 11 revision pack, for the whole family. $59 for 12 months or $99 for 2 years.
IB Diploma plan$99Every lesson from Year 7 to the IB Diploma, AA and AI, SL and HL, for the whole family. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

Year 10 revision pack, $19BuyPlan $59