From counting in the hall to a formula: Bayes' theorem turns the condition round, a retest beats the base rate, what comes out after one piece of evidence is the starting point for the next, and the prosecutor's fallacy.
Step 1 of 5 · The formula
Step 1 of 5
The formula
So far we have counted people. The same sum can be written in chances. Write for “ill”, for “healthy” and for “a positive result”. The question of someone who tested positive is : how many of the positives are ill. The numerator is the left-hand mat, the ill positives, and the denominator is both mats together:
This is Bayes’ theorem. is the base rate, and are what you know about the test, and what comes out, , is what you want to know.
Here are ill and the test is accurate. Work it out, then sort the positives and check.
Step 2 of 5
Turning the condition round
The denominator in the formula is simply , all the positives, as you saw on the trees. So the theorem can be written more briefly too. Its power is that it turns the condition round: from the chance of a positive test given the disease, which a lab measures, to the chance of the disease given a positive test, which the patient needs.
Step 3 of 5
Testing again
is still not much. What can you do? Retest the positives is on: everyone who tested positive is tested again, independently, and stays positive only if the second test agrees. Work out the chance now.
Step 4 of 5
One step at a time
The mats show what the sum said: almost all the healthy were weeded out by the second test. There is another way to see it. After the first test, the chance of being ill is no longer but . That number can go into the formula as a new base rate.
Step 5 of 5
The prosecutor’s fallacy
The same mistake of turning the condition round turns up in courts too. The chance that a piece of evidence shows up for an innocent person is one thing; the judge needs the reverse, the chance the person is innocent given the evidence.
Loading the interactive version…
Loading the interactive version…
Each step sets up the Scene for you, and a control marked “fixed” stays put for that step.
Practice · Calculate
ill, and a accurate test. By Bayes’ theorem, what is the chance a positive is ill? Give it as a per cent, the number only, to one decimal place.
Practice · Calculate
ill, and a accurate test. By Bayes’ theorem, what is the chance a positive is ill? Give it as a per cent, the number only, to one decimal place.
Practice · Choose
Write for the event “ill”, for “healthy” and for “a positive result”.
Which expression equals ?
Practice · Choose
Write for the event “ill”, for “healthy” and for “a positive result”.
Which expression equals ?
Practice · Calculate
Still ill and a test, but now everyone who tested positive is tested again, independently, and stays positive only if that test agrees. What is the chance a double positive is ill? Give it as a per cent, the number only.
Practice · Calculate
Still ill and a test, but now everyone who tested positive is tested again, independently, and stays positive only if that test agrees. What is the chance a double positive is ill? Give it as a per cent, the number only.
Practice · Calculate
Another way to work out the second test: after the first positive, the chance of being ill is . Use that as the new base rate, and apply Bayes again with the test. What comes out? Give it as a per cent, the number only.
Practice · Calculate
Another way to work out the second test: after the first positive, the chance of being ill is . Use that as the new base rate, and apply Bayes again with the test. What comes out? Give it as a per cent, the number only.
Practice · Choose
DNA is found at a crime scene. The chance an innocent person matches it by chance is in . The city has people, and one suspect who matches is found, with no other evidence. The prosecutor says: “The chance he is innocent is in ”. What is right?
Practice · Choose
DNA is found at a crime scene. The chance an innocent person matches it by chance is in . The city has people, and one suspect who matches is found, with no other evidence. The prosecutor says: “The chance he is innocent is in ”. What is right?
Lesson complete. Every practice question here is done.
