Conditional Probability & Independence
Conditional probability is the probability of an event when you already know another has happened. It is written $P(B \mid A)$, and it links to the multiplication rule and to the test for independence.
Key points
- $P(B \mid A) = \frac{P(A \cap B)}{P(A)}$.
- Multiplication rule: $P(A \cap B) = P(A) \times P(B \mid A)$.
- From a two-way table: restrict to the given row or column, then divide by its total.
- $A$ and $B$ are independent if $P(A \cap B) = P(A) \times P(B)$ — equivalently $P(B \mid A) = P(B)$.
Worked example
Question. $P(A) = 0.4$ and $P(A \cap B) = 0.12$. Find $P(B \mid A)$. If $P(B) = 0.3$, are $A$ and $B$ independent?
- $P(B \mid A) = \frac{0.12}{0.4} = 0.3$
- $P(A) \times P(B) = 0.4 \times 0.3 = 0.12 = P(A \cap B)$
Answer. 0.3; yes, they are independent.
Common mistakes
- Mixing up $P(A \mid B)$ and $P(B \mid A)$ — the event after the line is the one you know has happened.
- Dividing by the grand total in a two-way table instead of the row or column total.
- Confusing independent with mutually exclusive events.