Conditional Probability
The probability of one event once you know another has happened, and what it means for two events to be independent.
Needs a step first: 3
Knowing that happened shrinks the world to , so . Turned around, , which is what multiplying along the branches of a probability tree does. and are independent when knowing one tells you nothing about the other: . Confusing with is the commonest error in reasoning about evidence, and Bayes' theorem is the cure.
Where it shows up: A language model is a machine for conditional probabilities: the chance of each possible next word, given the words so far.
How to hold it: In your head
See conditioning as shrinking the world to what you know happened, and never mix up with .
What knowing it looks like
- Compute a conditional probability from a two-way table or a tree.
- Test two events for independence by checking whether .
- Show with an example that and can be very different.
Test yourself
In a school, of students study French, study Spanish and study both. A student who studies Spanish is chosen. What is the probability they also study French? Are studying French and studying Spanish independent?
Show the worked answer
Needs a step first: 3
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 "Conditional Probability" (Bridge tier): The probability of one event once you know another has happened, and what it means for two events to be independent. I already know: Permutations and Combinations. 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: In a school, $60\%$ of students study French, $30\%$ study Spanish and $20\%$ study both. A student who studies Spanish is chosen. What is the probability they also study French? Are studying French and studying Spanish independent? 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: Tree Diagrams · Base Rates and Risk · Calculating Probability
Leads to
- Bayes' TheoremTurns the chance of the evidence given a cause into the chance of the cause given the evidence, weighing how common the cause is.Core · Probability & Statistics
- Random Variables, Expectation and VarianceA number decided by chance, summed up by its expectation (the long-run average) and its variance (how far it typically strays).Core · Probability & Statistics
- Quantum States and MeasurementA quantum state is a unit vector; a measurement gives one of an observable's eigenvalues with probability equal to an amplitude squared.Frontier · Quantum Mechanics
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.