What’s happening here?
Reversing a condition changes the question: the chance of a flag given spam is not the chance of spam given a flag. Bayes’ rule combines the starting proportions with the chances of each possible route to the evidence.
. Include every way B can occur in the denominator.
A worked example.
- 1
There are 100 spam messages, of which 80 are flagged.
- 2
There are 900 non-spam messages, of which 90 are flagged. The flagged group has 170 messages in total.
- 3
The requested fraction is , not 80%.
A common wrong turn.
Ignoring the starting proportion can badly distort the result. Always include false flags in the group you condition on.
Why this works.
Bayes’ rule compares each possible source’s contribution to the observed evidence. A rare source may remain unlikely even when it often produces that evidence. A frequency table with a convenient population size can make the numerator and denominator easier to see.
Check it. Apply it. Explain it.
Three questions, with hints and worked feedback. Your score counts your first submitted answer. Practice only · scores stay in this session and do not enter your account history.
Bayes’ rule & base rates
Videos and further reading
Bayes’ theorem
www.khanacademy.org · New tabBayes' theorem
en.wikipedia.org · New tabThese resources open in a new tab on the publisher’s website.
Finished reading?Stored in this browser; separate from practice grades.