Answer key · Unit 17
Conditional probability.
Each lesson’s practice questions, their correct answers and the mistakes they spot. Answers read off the Scene use the same setting the learner sees.
Answer key 4
Lesson 1 of 4 · About 25 minutes
Given that
What information does to a chance: count again inside the event you know happened, $P(A \mid B)$ against $P(B \mid A)$, independent events, and why mutually exclusive events are not independent.
The 5 steps and their answers
Practice · Calculate
Question
Two dice are rolled, and someone peeks and says: “The first die shows ”. What is the chance the total is or more? Give it as a per cent, the number only.
Correct answer
50 ± 0.5
Setup, choices and feedback
The Scene at this step
- Total
- 10fixed
- First die
- 6fixed
- All outcomes / The events counted
- The events counted
- Other settings
- Event
/nodes/board/props/event= "sumAtLeast" - Other settings
- Event2
/nodes/board/props/event2= "firstIs"
- Accepted within
- ± 0.5
- Computed from the Scene at this step’s setting
- Grid: P(A | B), cells in both ÷ cells in the second event (NaN when it has none)
/nodes/board/outputs/aGivenB
Wrong answers it recognises
8.333 ± 0.5
Feedback from the catalogue
“ and ” and “ given ” count the same outcomes, those in both events, but divide by different things. For “and” you divide by all the outcomes. For “given ” you already know happened, so you divide only by the outcomes in : . The condition shrinks the denominator, so the conditional chance is the larger one.
16.67 ± 0.5
Misconception: Answers with the plain chance of A when asked for the chance of A given B, as if the condition told you nothing.
Feedback from the catalogue
The condition is new information, and you have to use it. “Given ” says: cross out every outcome not in , and count again inside what is left. Sometimes the chance comes out the same, and then the events are independent, but you find that out only after counting.
Feedback for a right answer
Of the squares where the first die is , three have a total of or more: , , . , three times the without the information.
Feedback for a wrong answer
The information crosses out every square where the first die is not . Divide only by what is left.
Hint
Count only inside the pink squares: of those, how many are also blue?
Worked solution
Write for the total and for what the first die shows.
- The condition: the first die is . That leaves squares, the pink ones.
- Of those, in both (amber): , , , which makes .
- .
If you answered about , you divided by : that is the chance that the first is and the total is or more. If you answered about , you ignored the information: that is the chance of or more knowing nothing.
Practice · Calculate
Question
Now the other way round: someone says only “the total is or more”. What is the chance the first die shows ? Give it as a per cent, the number only.
Correct answer
66.67 ± 0.5
Setup, choices and feedback
The Scene at this step
- Total
- 11fixed
- First die
- 6fixed
- All outcomes / The events counted
- The events counted
- Other settings
- Event
/nodes/board/props/event= "sumAtLeast" - Other settings
- Event2
/nodes/board/props/event2= "firstIs"
- Accepted within
- ± 0.5
- Computed from the Scene at this step’s setting
- Grid: P(B | A), cells in both ÷ cells in the first event (NaN when it has none)
/nodes/board/outputs/bGivenA
Wrong answers it recognises
33.33 ± 0.5
Misconception: Treats the chance of A given B as the chance of B given A.
Feedback from the catalogue
and share a numerator, the outcomes in both events, but their denominators differ: once all the outcomes in , once all the outcomes in . They are equal only when and are the same size. “Most ill people test positive” is not “most people who test positive are ill”, and mixing them up is called the prosecutor’s fallacy.
5.556 ± 0.5
Feedback from the catalogue
“ and ” and “ given ” count the same outcomes, those in both events, but divide by different things. For “and” you divide by all the outcomes. For “given ” you already know happened, so you divide only by the outcomes in : . The condition shrinks the denominator, so the conditional chance is the larger one.
16.67 ± 0.5
Misconception: Answers with the plain chance of A when asked for the chance of A given B, as if the condition told you nothing.
Feedback from the catalogue
The condition is new information, and you have to use it. “Given ” says: cross out every outcome not in , and count again inside what is left. Sometimes the chance comes out the same, and then the events are independent, but you find that out only after counting.
Feedback for a right answer
There are squares with a total of or more, and in two of them the first die is : . The same numerator as the reverse chance, a total of or more given the first is , which is , a different denominator.
Hint
This time the condition is the blue event. How many blue squares are there, and how many are also pink?
Worked solution
Write for the total and for what the first die shows.
- The condition: a total of or more. The squares: , , , which makes .
- Of those, the first die is in and , which makes .
- .
If you answered about , you swapped the condition: is the chance of or more given that the first is . The two chances differ because the events differ in size, squares against .
Practice · Predict, then look
Question
With no information, the chance of a total of is . Now you learn the first die shows . What is the chance of a total of now?
Correct answer
Correct Still
Setup, choices and feedback
The Scene at this step
- Total
- 7fixed
- First die
- 6fixed
- All outcomes / The events counted
- All outcomesfixed
- Other settings
- Event
/nodes/board/props/event= "sum" - Other settings
- Event2
/nodes/board/props/event2= "firstIs"
Choices
Correct Still
Wrong More than , since is most of the way to
Misconception: Assumes that learning one event happened must change the chance of the other.
Feedback from the catalogue
Sometimes the information does not help. When the first die shows , the second still has six possibilities, and exactly one of them, , makes a total of : the chance stays , just as without the information. Events like these are called independent: , or equivalently .
Wrong Less than , since only one way is left
Misconception: Assumes that learning one event happened must change the chance of the other.
Feedback from the catalogue
Sometimes the information does not help. When the first die shows , the second still has six possibilities, and exactly one of them, , makes a total of : the chance stays , just as without the information. Events like these are called independent: , or equivalently .
Once the prediction is locked in, the Scene changes
- All outcomes / The events counted
- The events countedfixed
The Scene then shows: 0.1667 · Grid: P(A | B), cells in both ÷ cells in the second event (NaN when it has none)
/nodes/board/outputs/aGivenBA prediction is never marked as a failure: the learner sees the outcome and the explanation either way.
Feedback for a right answer
Only one square is left, , but only squares are left too: , as before. The information changed nothing, so “a total of ” and “the first is ” are independent.
Hint
If the first is , what does the second need to be? And what is the chance of that?
Worked solution
Write for the total and for what the first die shows.
- Given that the first is , squares are left: to .
- Only gives a total of .
- .
This holds for every face of the first die: each has exactly one face on the second that makes . It fails for a total of : if the first is , there is no way at all.
Practice · Reach the target
Question
The pink event, , is “the first is ”. Change Total until the blue event, , “the total is this one”, is independent of : . Then press Check.
Goal
1 ± 0.01
At the start of the step: 0
Setup, choices and feedback
The Scene at this step
- Total
- 8
- First die
- 6fixed
- All outcomes / The events counted
- The events counted
- Other settings
- Event
/nodes/board/props/event= "sum" - Other settings
- Event2
/nodes/board/props/event2= "firstIs"
- Read from the Scene at
- Grid: 1 when P(A and B) = P(A) × P(B), else 0 (events that are certain or impossible count as independent)
/nodes/board/outputs/independent
One setting that reaches it
- Total
- 7
Feedback for a right answer
Only a total of : it has squares, , exactly the amber square .
Feedback for a wrong answer
Not yet. Check: is the number of amber squares over equal to the product of the two chances?
Hint
. Any total has at most one amber square. How many blue squares make ?
Worked solution
- “The first is ” covers squares: .
- A total from to meets that column in one square, , and a total below does not meet it at all.
- You need , so : squares. Only a total of has six.
- Set Total to .
For a total of , say: . Knowing the first is raises the chance of from to .
Practice · Choose
Question
The events “a total of ” and “the first is ” cannot happen on the same roll: there is no amber square on the board. Are they independent?
Correct answer
Correct No: if one happened, the other certainly did not
Setup, choices and feedback
The Scene at this step
- Total
- 2fixed
- First die
- 6fixed
- All outcomes / The events counted
- The events counted
- Other settings
- Event
/nodes/board/props/event= "sum" - Other settings
- Event2
/nodes/board/props/event2= "firstIs"
Choices
Shown in a random order.
Correct No: if one happened, the other certainly did not
Wrong Yes: they have nothing to do with each other
Misconception: Thinks events that cannot happen together are independent.
Feedback from the catalogue
Mutually exclusive events, which cannot happen together, are the very opposite of independent: if one happened, you know for certain the other did not. Independent means knowing one does not change the chance of the other, so they must be able to happen together: .
Wrong You cannot tell without rolling
Feedback
You can tell from counting: , but .
Feedback for a right answer
Given the first is , the chance of a total of drops from to . Mutually exclusive events are strongly dependent: each rules out the other.
Hint
If you know the first die shows , what is the chance of a total of ?
Worked solution
Write for “a total of ” and for “the first is ”.
- Independent means .
- Here : no square has both a total of and a first .
- But .
- So they are dependent.
“Mutually exclusive” is about the squares: no overlap. “Independent” is about the chances: news of one does not change the other.
Lesson 2 of 4 · About 25 minutes
Trees with conditions
A tree with a conditional chance on every branch: split a hall of $1000$ people into ill and healthy, then by test result, multiply along a path, add paths, and draw marbles without putting back.
The 5 steps and their answers
Practice · Calculate
Question
There are people in the hall, and of them are ill. The test catches of the ill. How many people are ill and test positive?
Correct answer
90 ± 0.5
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 10 %fixed
- Test accuracy
- 90 %fixed
- Retest the positives
- offfixed
- Sort the results
- Who is ill
- Accepted within
- ± 0.5
- Computed from the Scene at this step’s setting
- Positives who are ill
/nodes/crowd/outputs/truePositives
Wrong answers it recognises
900 ± 0.5
Misconception: Applies a branch's rate to the wrong group: the test's accuracy to the whole crowd, or the ill people's rate to the healthy.
Feedback from the catalogue
On a tree, every rate belongs to its own branch. of the ill test positive: that is of the ill, not of everyone. And of the healthy test positive: that is of the healthy. First split the population by the first branch, and only then apply each group’s own rate.
100 ± 0.5
Misconception: Answers with the plain chance of A when asked for the chance of A given B, as if the condition told you nothing.
Feedback
is all the ill. Not all of them test positive: the test misses of them.
Feedback for a right answer
ill, and of those positive. On the tree: the “ill” branch, then the “positive” branch.
Hint
First how many are ill, then how many of those the test catches.
Worked solution
- The first branch: of are ill, which is .
- The second branch, within the ill: of test positive, which is .
- Along the path you multiply: .
If you answered , you applied to the whole hall. But is a rate for the ill only.
Practice · Calculate
Question
The test clears of the healthy, and gets of them wrong. How many healthy people test positive?
Correct answer
90 ± 0.5
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 10 %fixed
- Test accuracy
- 90 %fixed
- Retest the positives
- offfixed
- Sort the results
- Who is ill
- Accepted within
- ± 0.5
- Computed from the Scene at this step’s setting
- Positives who are healthy
/nodes/crowd/outputs/falsePositives
Wrong answers it recognises
10 ± 0.5
Misconception: Applies a branch's rate to the wrong group: the test's accuracy to the whole crowd, or the ill people's rate to the healthy.
Feedback from the catalogue
On a tree, every rate belongs to its own branch. of the ill test positive: that is of the ill, not of everyone. And of the healthy test positive: that is of the healthy. First split the population by the first branch, and only then apply each group’s own rate.
100 ± 0.5
Misconception: Applies a branch's rate to the wrong group: the test's accuracy to the whole crowd, or the ill people's rate to the healthy.
Feedback from the catalogue
On a tree, every rate belongs to its own branch. of the ill test positive: that is of the ill, not of everyone. And of the healthy test positive: that is of the healthy. First split the population by the first branch, and only then apply each group’s own rate.
Feedback for a right answer
healthy, and of them make false positives: exactly as many as the ill who were caught.
Hint
How many healthy people are in the hall?
Worked solution
- The healthy: .
- Of them, test positive: .
If you answered , you applied the error rate to the ill (). If you answered , you applied it to the whole hall.
Practice · Calculate
Question
One person is picked at random from the hall. What is the chance their result is positive? Give it as a per cent, the number only.
Correct answer
18 ± 0.5
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 10 %fixed
- Test accuracy
- 90 %fixed
- Retest the positives
- offfixed
- Sort the results
- Positives sorted
- Accepted within
- ± 0.5
- Computed from the Scene at this step’s setting
- People who test positive
/nodes/crowd/outputs/positives
Wrong answers it recognises
9 ± 0.5
Misconception: Counts only the true positives as the positives, forgetting the healthy people the test flags.
Feedback from the catalogue
A positive result comes from two branches: ill people the test caught, and healthy people it got wrong. When the disease is rare there are many more healthy people, so even a small error rate gives many false positives. Count all the positives from both branches together.
90 ± 0.5
Misconception: Applies a branch's rate to the wrong group: the test's accuracy to the whole crowd, or the ill people's rate to the healthy.
Feedback from the catalogue
On a tree, every rate belongs to its own branch. of the ill test positive: that is of the ill, not of everyone. And of the healthy test positive: that is of the healthy. First split the population by the first branch, and only then apply each group’s own rate.
Feedback for a right answer
positives out of , which is . This is the law of total probability: add every path that ends in the same result.
Hint
Two paths on the tree end in a positive result.
Worked solution
Write for the event “ill”, for “healthy” and for “a positive result”.
- One path: ill and positive, .
- A second path: healthy and positive, .
- The paths are mutually exclusive, so you add: .
If you answered , you counted only the ill who were caught and forgot the false positives.
Practice · Calculate
Question
A bag holds marbles, of them red. You draw two marbles one after the other, without putting back. What is the chance both are red? Give it as a per cent, the number only.
Correct answer
10 ± 0.5
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 10 %
- Test accuracy
- 90 %
- Retest the positives
- off
- Sort the results
- Positives sorted
- Accepted within
- ± 0.5
- A fixed value in the question
Wrong answers it recognises
16 ± 0.5
Misconception: Uses the same chance for the second draw as for the first, as if what was drawn were put back.
Feedback from the catalogue
Without putting back, the second stage depends on the first. After you draw one red marble out of , there are left and only one red. So the second branch is , not : . A branch of a tree always carries the chance given everything that happened before it.
40 ± 0.5
Misconception: Answers with the plain chance of A when asked for the chance of A given B, as if the condition told you nothing.
Feedback
is the chance the first marble is red. Both are red only if the second is red too.
Feedback for a right answer
. The second branch already knows the first marble was red.
Hint
After you draw a red one, how many marbles are left, and how many of them are red?
Worked solution
Write and for “the first marble is red” and “the second marble is red”.
- The first branch: .
- The second branch, given the first was red: marbles left and one red, .
- Along the path you multiply: .
If you answered , you multiplied , as if the marble were put back. Without putting back, the second stage depends on the first.
Practice · Calculate
Question
Now of the hall are ill, and the test is still accurate. What is the chance that a random person is both ill and positive? Give it as a per cent, the number only.
Correct answer
4.5 ± 0.3
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 5 %fixed
- Test accuracy
- 90 %fixed
- Retest the positives
- offfixed
- Sort the results
- Who is ill
- Accepted within
- ± 0.3
- Computed from the Scene at this step’s setting
- Positives who are ill
/nodes/crowd/outputs/truePositives
Wrong answers it recognises
90 ± 0.3
Feedback from the catalogue
“ and ” and “ given ” count the same outcomes, those in both events, but divide by different things. For “and” you divide by all the outcomes. For “given ” you already know happened, so you divide only by the outcomes in : . The condition shrinks the denominator, so the conditional chance is the larger one.
5 ± 0.3
Misconception: Answers with the plain chance of A when asked for the chance of A given B, as if the condition told you nothing.
Feedback
is all the ill. Only of them also test positive.
Feedback for a right answer
: out of . This is the multiplication rule: .
Hint
Multiply the two branches along the path.
Worked solution
Write for the event “ill”, for “healthy” and for “a positive result”.
- .
- .
- .
If you answered , you gave , the chance within the ill. “Both” is a share of the whole hall, so you also multiply by the share who are ill.
Lesson 3 of 4 · About 25 minutes
Base rates
Why a test that is $90\%$ accurate is wrong about most of its positives when the disease is rare: count the false positives, find when a positive is half and half, and see what a better test does and does not do.
The 5 steps and their answers
Practice · Predict, then look
Question
A disease affects of people, and the test is accurate. Someone has tested positive. What is the chance they are really ill?
Correct answer
Correct About
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 1 %fixed
- Test accuracy
- 90 %fixed
- Retest the positives
- offfixed
- Sort the results
- Test resultsfixed
Choices
Correct About
Wrong , the same as the accuracy
Misconception: Takes a test's accuracy as the chance that a positive result is right: 90% accurate, so a positive means 90% ill.
Feedback from the catalogue
Write for “ill” and for “positive”. Accuracy says what the test does to the ill and to the healthy: . The question of someone who tested positive is the reverse: . The answer also depends on how common the disease is. When it is rare, most positives come from the large group of the healthy, so the chance of being ill is far below the accuracy. This is base-rate neglect.
Wrong About
No feedback of its own; the learner sees the standard message
Not yet. Look again and try once more.
Wrong , like anyone else
Misconception: Answers with the plain chance of A when asked for the chance of A given B, as if the condition told you nothing.
Feedback from the catalogue
The condition is new information, and you have to use it. “Given ” says: cross out every outcome not in , and count again inside what is left. Sometimes the chance comes out the same, and then the events are independent, but you find that out only after counting.
Once the prediction is locked in, the Scene changes
- Sort the results
- Positives sortedfixed
The Scene then shows: 8.333 · Per cent chance a positive is ill, by Bayes' rule
/nodes/crowd/outputs/posteriorA prediction is never marked as a failure: the learner sees the outcome and the explanation either way.
Feedback for a right answer
Only about : ill among positives. On the right-hand mat stand healthy people, because of healthy is far more than of ill.
Hint
Count the two groups of positives: ill people caught and healthy people the test got wrong.
Worked solution
Write for the event “ill”, for “healthy” and for “a positive result”.
- Out of : ill and healthy.
- Ill and positive: .
- Healthy and positive: .
- .
If you chose , you mixed up with . When the disease is rare, the healthy supply most of the positives.
Practice · Calculate
Question
In the same hall, ill and a accurate test: how many of the positives are healthy?
Correct answer
99 ± 0.5
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 1 %fixed
- Test accuracy
- 90 %fixed
- Retest the positives
- offfixed
- Sort the results
- Positives sorted
- Accepted within
- ± 0.5
- Computed from the Scene at this step’s setting
- Positives who are healthy
/nodes/crowd/outputs/falsePositives
Wrong answers it recognises
1 ± 0.5
Misconception: Applies a branch's rate to the wrong group: the test's accuracy to the whole crowd, or the ill people's rate to the healthy.
Feedback from the catalogue
On a tree, every rate belongs to its own branch. of the ill test positive: that is of the ill, not of everyone. And of the healthy test positive: that is of the healthy. First split the population by the first branch, and only then apply each group’s own rate.
10 ± 0.5
Misconception: Applies a branch's rate to the wrong group: the test's accuracy to the whole crowd, or the ill people's rate to the healthy.
Feedback from the catalogue
On a tree, every rate belongs to its own branch. of the ill test positive: that is of the ill, not of everyone. And of the healthy test positive: that is of the healthy. First split the population by the first branch, and only then apply each group’s own rate.
Feedback for a right answer
false positives, eleven times the ill people caught.
Hint
How many healthy people are there, and what share does the test flag by mistake?
Worked solution
- The healthy: .
- The test gets of them wrong: .
If you answered , you applied the error rate to the ill: is the ill person the test missed. If you answered , you applied it to people instead of to the healthy.
Practice · Reach the target
Question
The test stays accurate. Change How common the disease is until half the positives are really ill, then press Check.
Goal
50 ± 1
At the start of the step: 8.333
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 1 %
- Test accuracy
- 90 %fixed
- Retest the positives
- offfixed
- Sort the results
- Positives sorted
- Read from the Scene at
- Per cent chance a positive is ill, by Bayes' rule
/nodes/crowd/outputs/posterior
One setting that reaches it
- How common the disease is
- 9.7 %
Feedback for a right answer
About : ill positives and healthy positives. The more common the disease, the more a positive means, with exactly the same test.
Feedback for a wrong answer
Not yet. Compare the two mats: when are they the same size?
Hint
Half and half means as many ill positives as healthy positives: .
Worked solution
- Half the positives are ill when the left and right mats are equal: .
- , so .
- Set How common the disease is to .
The same test, at , gives only . The base rate matters as much as the test itself.
Practice · Predict, then look
Question
Back to ill. The test is replaced by one that is accurate. What is the chance now that a positive is ill?
Correct answer
Correct About
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 1 %fixed
- Test accuracy
- 90 %fixed
- Retest the positives
- offfixed
- Sort the results
- Test resultsfixed
Choices
Correct About
Wrong
Misconception: Takes a test's accuracy as the chance that a positive result is right: 90% accurate, so a positive means 90% ill.
Feedback from the catalogue
Write for “ill” and for “positive”. Accuracy says what the test does to the ill and to the healthy: . The question of someone who tested positive is the reverse: . The answer also depends on how common the disease is. When it is rare, most positives come from the large group of the healthy, so the chance of being ill is far below the accuracy. This is base-rate neglect.
Wrong Still about : the test hardly matters
Feedback
The test matters a great deal: its error rate falls tenfold, from to , and the false positives with it.
Wrong About
No feedback of its own; the learner sees the standard message
Not yet. Look again and try once more.
Once the prediction is locked in, the Scene changes
- Test accuracy
- 99 %fixed
- Sort the results
- Positives sortedfixed
The Scene then shows: 50 · Per cent chance a positive is ill, by Bayes' rule
/nodes/crowd/outputs/posteriorA prediction is never marked as a failure: the learner sees the outcome and the explanation either way.
Feedback for a right answer
: ill positives and healthy positives ( of ). Even an excellent test is still wrong about half its positives when the disease is rare.
Hint
How many healthy people get flagged when the error is ?
Worked solution
Write for the event “ill”, for “healthy” and for “a positive result”.
- Ill positives: .
- Healthy positives: .
- .
For a positive to be nearly certain, the error rate has to be much smaller than the disease’s rate.
Practice · Calculate
Question
And a rarer disease still, in (), with the same test? What is the chance a positive is ill? Give it as a per cent, the number only, to one decimal place.
Correct answer
9.016 ± 0.3
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 0.1 %fixed
- Test accuracy
- 99 %fixed
- Retest the positives
- offfixed
- Sort the results
- Test results
- Accepted within
- ± 0.3
- Computed from the Scene at this step’s setting
- Per cent chance a positive is ill, by Bayes' rule
/nodes/crowd/outputs/posterior
Wrong answers it recognises
99 ± 0.3
Misconception: Takes a test's accuracy as the chance that a positive result is right: 90% accurate, so a positive means 90% ill.
Feedback from the catalogue
Write for “ill” and for “positive”. Accuracy says what the test does to the ill and to the healthy: . The question of someone who tested positive is the reverse: . The answer also depends on how common the disease is. When it is rare, most positives come from the large group of the healthy, so the chance of being ill is far below the accuracy. This is base-rate neglect.
0.1 ± 0.3
Misconception: Answers with the plain chance of A when asked for the chance of A given B, as if the condition told you nothing.
Feedback from the catalogue
The condition is new information, and you have to use it. “Given ” says: cross out every outcome not in , and count again inside what is left. Sometimes the chance comes out the same, and then the events are independent, but you find that out only after counting.
Feedback for a right answer
About : for every ill person caught there are about false positives. That is why rare diseases are screened for in groups at risk, not in everyone.
Hint
Among people there is one ill. How many of the healthy get flagged?
Worked solution
Write for the event “ill”, for “healthy” and for “a positive result”.
- As rates: .
- .
- .
In a hall of that is one ill person against about healthy people on the mats.
Lesson 4 of 4 · About 25 minutes
Bayes' theorem
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.
The 5 steps and their answers
Practice · Calculate
Question
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.
Correct answer
27.94 ± 0.3
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 2 %fixed
- Test accuracy
- 95 %fixed
- Retest the positives
- offfixed
- Sort the results
- Test results
- Accepted within
- ± 0.3
- Computed from the Scene at this step’s setting
- Per cent chance a positive is ill, by Bayes' rule
/nodes/crowd/outputs/posterior
Wrong answers it recognises
95 ± 0.3
Misconception: Takes a test's accuracy as the chance that a positive result is right: 90% accurate, so a positive means 90% ill.
Feedback from the catalogue
Write for “ill” and for “positive”. Accuracy says what the test does to the ill and to the healthy: . The question of someone who tested positive is the reverse: . The answer also depends on how common the disease is. When it is rare, most positives come from the large group of the healthy, so the chance of being ill is far below the accuracy. This is base-rate neglect.
1.9 ± 0.3
Feedback from the catalogue
“ and ” and “ given ” count the same outcomes, those in both events, but divide by different things. For “and” you divide by all the outcomes. For “given ” you already know happened, so you divide only by the outcomes in : . The condition shrinks the denominator, so the conditional chance is the larger one.
2 ± 0.3
Misconception: Answers with the plain chance of A when asked for the chance of A given B, as if the condition told you nothing.
Feedback from the catalogue
The condition is new information, and you have to use it. “Given ” says: cross out every outcome not in , and count again inside what is left. Sometimes the chance comes out the same, and then the events are independent, but you find that out only after counting.
Feedback for a right answer
. In the hall: ill among positives.
Hint
.
Worked solution
Write for the event “ill”, for “healthy” and for “a positive result”.
- The numerator: .
- The denominator, all the positives: .
- .
If you answered , you stopped at the numerator: that is the chance of being both ill and positive, a share of everyone. Bayes divides it by all the positives.
Practice · Choose
Question
Write for the event “ill”, for “healthy” and for “a positive result”.
Which expression equals ?
Correct answer
Correct
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 2 %
- Test accuracy
- 95 %
- Retest the positives
- off
- Sort the results
- Positives sorted
Choices
Shown in a random order.
Correct
Wrong
Misconception: Treats the chance of A given B as the chance of B given A.
Feedback from the catalogue
and share a numerator, the outcomes in both events, but their denominators differ: once all the outcomes in , once all the outcomes in . They are equal only when and are the same size. “Most ill people test positive” is not “most people who test positive are ill”, and mixing them up is called the prosecutor’s fallacy.
Wrong
Feedback from the catalogue
“ and ” and “ given ” count the same outcomes, those in both events, but divide by different things. For “and” you divide by all the outcomes. For “given ” you already know happened, so you divide only by the outcomes in : . The condition shrinks the denominator, so the conditional chance is the larger one.
Wrong
No feedback of its own; the learner sees the standard message
Not yet. Look again and try once more.
Feedback for a right answer
This is Bayes’ theorem: it turns the condition round using .
Hint
, and can also be written from the other side.
Worked solution
Write for the event “ill”, for “healthy” and for “a positive result”.
- From the definition: .
- From the multiplication rule, the other way round: .
- Substitute: .
The expression without the denominator is “both”, not the conditional chance.
Practice · Calculate
Question
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.
Correct answer
88.05 ± 2
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 2 %fixed
- Test accuracy
- 95 %fixed
- Retest the positives
- onfixed
- Sort the results
- Test results
- Accepted within
- ± 2
- Computed from the Scene at this step’s setting
- Per cent chance a positive is ill, by Bayes' rule
/nodes/crowd/outputs/posterior
Wrong answers it recognises
27.9 ± 1
Misconception: Answers with the plain chance of A when asked for the chance of A given B, as if the condition told you nothing.
Feedback
is the chance after one test. The second test is more information, and it filters out almost all the false positives.
99.75 ± 1
Misconception: Takes a test's accuracy as the chance that a positive result is right: 90% accurate, so a positive means 90% ill.
Feedback from the catalogue
Write for “ill” and for “positive”. Accuracy says what the test does to the ill and to the healthy: . The question of someone who tested positive is the reverse: . The answer also depends on how common the disease is. When it is rare, most positives come from the large group of the healthy, so the chance of being ill is far below the accuracy. This is base-rate neglect.
Feedback for a right answer
About : of healthy, only about pass twice, while of the ill remain. A retest is the practical way to beat the base rate.
Hint
With two tests an ill person stays positive with chance , and a healthy one with chance .
Worked solution
Write for the event “ill”, for “healthy” and for “a positive result”.
- Ill and positive twice: .
- Healthy and positive twice: .
- .
In the hall the counts are rounded: ill and healthy, which is . The exact sum gives .
Practice · Calculate
Question
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.
Correct answer
88 ± 1
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 2 %fixed
- Test accuracy
- 95 %fixed
- Retest the positives
- onfixed
- Sort the results
- Positives sorted
- Accepted within
- ± 1
- A fixed value in the question
Wrong answers it recognises
95 ± 1
Misconception: Takes a test's accuracy as the chance that a positive result is right: 90% accurate, so a positive means 90% ill.
Feedback from the catalogue
Write for “ill” and for “positive”. Accuracy says what the test does to the ill and to the healthy: . The question of someone who tested positive is the reverse: . The answer also depends on how common the disease is. When it is rare, most positives come from the large group of the healthy, so the chance of being ill is far below the accuracy. This is base-rate neglect.
27.9 ± 0.5
Misconception: Answers with the plain chance of A when asked for the chance of A given B, as if the condition told you nothing.
Feedback from the catalogue
The condition is new information, and you have to use it. “Given ” says: cross out every outcome not in , and count again inside what is left. Sometimes the chance comes out the same, and then the events are independent, but you find that out only after counting.
Feedback for a right answer
, exactly as with the retest. This is how Bayes works: what comes out after one piece of evidence is the starting point for the next.
Hint
Worked solution
Write for the event “ill”, for “healthy” and for “a positive result”.
- The new base rate: , so .
- The numerator: .
- The denominator: .
- .
It matches the sum for both tests together, because the tests are independent: it makes no difference whether you update all at once or step by step.
Practice · Choose
Question
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?
Correct answer
Correct About innocent people in the city are expected to match, so without more evidence the chance he is the culprit is about in
Setup, choices and feedback
The Scene at this step
- How common the disease is
- 2 %
- Test accuracy
- 95 %
- Retest the positives
- off
- Sort the results
- Positives sorted
Choices
Shown in a random order.
Correct About innocent people in the city are expected to match, so without more evidence the chance he is the culprit is about in
Wrong The prosecutor is right: the chance he is innocent is in
Misconception: Treats the chance of A given B as the chance of B given A.
Feedback from the catalogue
and share a numerator, the outcomes in both events, but their denominators differ: once all the outcomes in , once all the outcomes in . They are equal only when and are the same size. “Most ill people test positive” is not “most people who test positive are ill”, and mixing them up is called the prosecutor’s fallacy.
Wrong Half and half: he is guilty or he is not
Feedback
Two possibilities are not equally likely. Count: how many people in the city match?
Feedback for a right answer
chance matches, plus the culprit himself. The match narrows the suspects from half a million to , but not to one.
Hint
How many of the residents would match by chance?
Worked solution
Write for “matches the DNA”, for “innocent” and for “guilty”.
- is .
- The question is : the condition the other way round.
- Count: of innocent people, about match. Plus the culprit, one. So match.
- Without other evidence, .
This is the prosecutor’s fallacy: turning the condition round, like mixing up a test’s accuracy with the chance a positive is ill.
Across the unit · 9 misconceptions
Misconception catalogue
Each common mistake this unit recognises, in a few words. Open one for what the learner reads when an answer matches it, and where it is asked.
Confuses the chance of A and B with the chance of A given B: divides by all the outcomes instead of by the outcomes in B, or the reverse.
- The learner reads
“ and ” and “ given ” count the same outcomes, those in both events, but divide by different things. For “and” you divide by all the outcomes. For “given ” you already know happened, so you divide only by the outcomes in : . The condition shrinks the denominator, so the conditional chance is the larger one.
Answers with the plain chance of A when asked for the chance of A given B, as if the condition told you nothing.
- The learner reads
The condition is new information, and you have to use it. “Given ” says: cross out every outcome not in , and count again inside what is left. Sometimes the chance comes out the same, and then the events are independent, but you find that out only after counting.
- Recognised in
- Lesson 1 · Step 1: Counting inside the condition
- Lesson 1 · Step 2: The other way round
- Lesson 2 · Step 1: Splitting by illness
- Lesson 2 · Step 4: Without putting back
- Lesson 2 · Step 5: Along a path
- Lesson 3 · Step 1: A rare disease
- Lesson 3 · Step 5: Rarer still
- Lesson 4 · Step 1: The formula
- Lesson 4 · Step 3: Testing again
- Lesson 4 · Step 4: One step at a time
Treats the chance of A given B as the chance of B given A.
- The learner reads
and share a numerator, the outcomes in both events, but their denominators differ: once all the outcomes in , once all the outcomes in . They are equal only when and are the same size. “Most ill people test positive” is not “most people who test positive are ill”, and mixing them up is called the prosecutor’s fallacy.
Assumes that learning one event happened must change the chance of the other.
- The learner reads
Sometimes the information does not help. When the first die shows , the second still has six possibilities, and exactly one of them, , makes a total of : the chance stays , just as without the information. Events like these are called independent: , or equivalently .
- Recognised in
Thinks events that cannot happen together are independent.
- The learner reads
Mutually exclusive events, which cannot happen together, are the very opposite of independent: if one happened, you know for certain the other did not. Independent means knowing one does not change the chance of the other, so they must be able to happen together: .
- Recognised in
Applies a branch's rate to the wrong group: the test's accuracy to the whole crowd, or the ill people's rate to the healthy.
- The learner reads
On a tree, every rate belongs to its own branch. of the ill test positive: that is of the ill, not of everyone. And of the healthy test positive: that is of the healthy. First split the population by the first branch, and only then apply each group’s own rate.
Counts only the true positives as the positives, forgetting the healthy people the test flags.
- The learner reads
A positive result comes from two branches: ill people the test caught, and healthy people it got wrong. When the disease is rare there are many more healthy people, so even a small error rate gives many false positives. Count all the positives from both branches together.
- Recognised in
Uses the same chance for the second draw as for the first, as if what was drawn were put back.
- The learner reads
Without putting back, the second stage depends on the first. After you draw one red marble out of , there are left and only one red. So the second branch is , not : . A branch of a tree always carries the chance given everything that happened before it.
- Recognised in
Takes a test's accuracy as the chance that a positive result is right: 90% accurate, so a positive means 90% ill.
- The learner reads
Write for “ill” and for “positive”. Accuracy says what the test does to the ill and to the healthy: . The question of someone who tested positive is the reverse: . The answer also depends on how common the disease is. When it is rare, most positives come from the large group of the healthy, so the chance of being ill is far below the accuracy. This is base-rate neglect.