STEMviz
Mathematics · Geometry, Vectors and Statistics

Conditional Probability and Bayes' Theorem

The previous chapter's tree diagrams quietly used conditional probabilities every time a second-stage branch depended on the first. This chapter makes that idea explicit and gives it its own formula, then builds the single most useful (and most frequently misapplied) result in elementary probability: Bayes' theorem, which lets you "reverse" a conditional probability to find the one you actually need.

To follow the chapter you need the addition and multiplication rules, tree diagrams, and the independence test from the previous chapter. Have a two-way table or a tree diagram sketch ready, since both are the standard tools for organising the information Bayes' theorem needs.

Conditional probability updates information. P(A∣B)P(A\mid B) asks: given that we already know BB has happened, what is the new probability of AA? This is almost always a different number from the unconditional P(A)P(A) — the entire point of conditioning is that new information changes what we believe.

1. The Definition of Conditional Probability

The conditional probability of AA given BB is defined as

P(A∣B)=P(A∩B)P(B),P(B)>0P(A\mid B) = \frac{P(A\cap B)}{P(B)}, \qquad P(B)>0

Intuitively, conditioning on BB shrinks the sample space down to just the outcomes where BB occurred; P(A∣B)P(A\mid B) asks what fraction of that reduced space also satisfies AA.

Worked example. In a class of 30 students, 18 study French, 12 study Spanish, and 6 study both. A student is selected at random and found to study French. Find the probability they also study Spanish.

P(Spanish∣French)=P(French and Spanish)P(French)=6/3018/30=618=13P(\text{Spanish}\mid\text{French}) = \frac{P(\text{French and Spanish})}{P(\text{French})} = \frac{6/30}{18/30} = \frac{6}{18}=\frac13

Keep reading: Conditional Probability and Bayes' Theorem

This chapter is Premium. Unlock every Mathematics lesson — theory, interactive visualizations, quizzes, exercises and flashcards — with a one-time purchase or a monthly plan, or get every subject at once with the Full Course Bundle. The first 2 chapters of every block are free with an account.