Conditional Probability
| English | Chinese | Pinyin |
|---|---|---|
| conditional probability | 条件概率 | tiáo jiàn gài lǜ |
| multiplication rule | 乘法法则 | chéng fǎ fǎ zé |
Probability, given a clue
- A conditional probability 条件概率 is the chance of $A$ given that $B$ has happened.
- Written $P(A \mid B)$ — "the probability of $A$ given $B$."
- Knowing $B$ occurred shrinks the world to just the $B$ outcomes.
- Then you ask what fraction of those are also $A$.
The formula
-
$$P(A \mid B) = \frac{P(A \cap B)}{P(B)}$$
- The numerator is "both happen"; the denominator is "the condition."
- You're rescaling: out of the $B$-world, how much is also $A$?
- The condition $B$ becomes the new "total."
From a two-way table
- Two-way tables make conditionals easy: restrict to the condition's row or column.
- $P(A \mid B)$ = (cell for both) ÷ (total of $B$'s row/column).
- This is exactly the conditional relative frequency from Unit 2.
- The denominator is a margin, not the grand total.
The general multiplication rule
- Rearranging the formula gives the multiplication rule 乘法法则:
-
$$P(A \cap B) = P(B)\,P(A \mid B)$$
- "Both happen" = (first happens) × (second happens given the first).
- It's how you chain probabilities of events that depend on each other.
$P(A \mid B)$ and $P(B \mid A)$ are usually different — don't swap them. "Probability of a cough given the flu" is high; "probability of the flu given a cough" is low (most coughs aren't flu). The condition — what's given — sits after the bar and becomes the denominator. Read carefully which event is the condition.
In a class, $P(\text{plays sport}) = 0.5$ and $P(\text{sport and music}) = 0.2$.
- $P(\text{music} \mid \text{sport}) = \dfrac{0.2}{0.5} = 0.4$.
- Among the sporty half, $40\%$ also do music.
- Multiplication check: $P(\text{sport and music}) = 0.5 \times 0.4 = 0.2$. ✓
A conditional probability $P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}$ is the chance of $A$ given $B$ — restrict to $B$'s row/column in a two-way table. Rearranged, the multiplication rule $P(A \cap B) = P(B)\,P(A \mid B)$. Remember $P(A\mid B) \ne P(B \mid A)$ in general.
Conditional probabilities
How the chance of B changes depending on whether A happened.
P(A and B) = 0.2 and P(B) = 0.5. Find P(A | B).
P(A|B) = P(A∩B)/P(B) = 0.2/0.5 = 0.4.
In general, P(A | B) equals P(B | A).
They are usually different — the condition matters.
The general multiplication rule for P(A and B) is...
P(A∩B) = P(B)·P(A|B), chaining the two events.
To read P(A | B) off a two-way table, you divide by the...
The condition B becomes the denominator — its margin total.
P(A | B) is read 'the probability of A ___ B' (one word).
The bar means 'given' the condition.