Conditional Probability
Introduit| English | Sens |
|---|---|
| conditional probability/kənˈdɪʃənl ˌprɒbəˈbɪlɪti/ | probabilité conditionnelle |
| multiplication rule/ˌmʌltɪplɪˈkeɪʃn ruːl/ | règle de multiplication |
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"; this formula requires $P(B)>0$.

On a tree diagram, multiply the probabilities along the branches
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. For a uniformly drawn card, $P(\text{heart}\mid\text{red})=13/26=1/2$, while $P(\text{red}\mid\text{heart})=13/13=1$. 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.
Write from the data: find the conditional probability
- 50 students are in a club.
- 15 of them play piano. The lesson conditional probability 0.4 is another group.
A club contains 50 students, of whom 15 play piano. If a club member is selected uniformly at random, what is the probability that they play piano? Show the conditional denominator.
Conditional probability divides by the size of the given group.
Of 50 club members, 15 play piano. For a member selected uniformly from the club, what is the probability of playing piano?
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
15 divided by 50 is 0.3. Other options — 0.4 (the other group); 15 (the piano count).
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).
Difficulté 2/5 · 140 pièces + un petit bonus lors de la première réussite aujourd'hui
P(A|B) = P(A∩B)/P(B) = 0.2/0.5 = 0.4.
In general, P(A | B) equals P(B | A).
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
They are usually different — the condition matters.
The general multiplication rule for P(A and B) is...
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
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...
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
The condition B becomes the denominator — its margin total.
P(A | B) is read 'the probability of A ___ B' (one word).
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
The bar means 'given' the condition.