Bayes' Theorem
Turns the chance of the evidence given a cause into the chance of the cause given the evidence, weighing how common the cause is.
Needs a step first: 4
, where adds up every way the evidence could arise. The prior matters: a good test for a rare condition still gives mostly false alarms, because the healthy far outnumber the ill. Counting an imagined people is the surest way to get it right. Bayesian inference is this rule applied to a whole range of hypotheses at once.
Where it shows up: Spam filters apply it directly, and it is the update step of every Bayesian model, from medical diagnosis to a robot working out where it is.
How to hold it: In your head
Explain with an imagined crowd of people why an accurate test for a rare condition still gives mostly false alarms, and see how much the prior weighs in the answer.
What knowing it looks like
- Compute a posterior probability, with the law of total probability in the denominator.
- Redo the same calculation by counting an imagined population of and get the same answer.
- Explain to someone why a positive result from an accurate test can still most likely be a false alarm.
Test yourself
A condition affects of people. A test detects it in of people who have it, and wrongly flags of people who do not. Someone tests positive. What is the probability that they have the condition?
Show the worked answer
Needs a step first: 4
Learn it with an AI
Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.
Be my maths tutor. I'm learning "Bayes' Theorem" (Core tier): Turns the chance of the evidence given a cause into the chance of the cause given the evidence, weighing how common the cause is. I already know: Conditional Probability. Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away. Finish by testing me with this: A condition affects $1\%$ of people. A test detects it in $90\%$ of people who have it, and wrongly flags $5\%$ of people who do not. Someone tests positive. What is the probability that they have the condition? Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.
Needs first
Picks up from the children's map: Base Rates and Risk
Leads to
On the way to
Recommended
- MIT 6.1200J Mathematics for Computer ScienceMIT OpenCourseWare · CourseMIT's 2024 course on proofs, number theory, graphs, counting and discrete probability, with lecture videos, notes and problem sets.
- Mathematics for Machine LearningDeisenroth, Faisal and Ong (Cambridge University Press) · BookA free book that gathers exactly the linear algebra, vector calculus, probability and optimisation machine learning uses, then applies them to regression, PCA and classification.
- Seeing TheoryBrown University · InteractiveA visual introduction to probability and statistics in which you flip coins, draw samples and fit lines in the browser; complete and ad-free, with a Chinese version.
- Harvard Stat 110: ProbabilityJoe Blitzstein, Harvard University · CourseJoe Blitzstein's Harvard probability course: lecture videos, about 250 practice problems with solutions and a free online textbook, strong on intuition and story proofs.
- Information Theory, Inference, and Learning AlgorithmsDavid MacKay · BookMacKay's book connecting entropy, coding, Bayesian inference and neural networks, free to read online and still the one recommended for information theory with intuition.
- 宋浩老师官方宋浩(山东财经大学) · Videos · 中文Full university courses in calculus, linear algebra and probability by a Shandong University of Finance and Economics lecturer, clear and good-humoured; a new calculus series came out in October 2026.