Conditional probability
Đã giới thiệu| English | Ý nghĩa |
|---|---|
| conditional probability/kənˈdɪʃənl ˌprɒbəˈbɪlɪti/ | xác suất có điều kiện |
| two-way table/tuː weɪ ˈteɪbl/ | bảng hai chiều |
| dependent/dɪˈpendənt/ | phụ thuộc |
The detective's question
- You know someone studies French. What's the chance they also study German?
- This isn't the same as "what's the chance someone studies both?" — you've narrowed the group to just the French students.
- That's conditional probability 条件概率: the chance of $B$ given that $A$ has already happened.
How to read it
- $\text{P}(B \mid A)$ means "the probability of $B$ given $A$".
- Look only at the part that matches the condition — on a Venn diagram, two-way table 双向表, or tree.
In a class of $30$, $18$ study French. Of those $18$, $7$ also study German. $\text{P}(\text{German} \mid \text{French}) = \dfrac{7}{18}$.

On a tree diagram, multiply probabilities along the branches; here two reds give $\tfrac38\times\tfrac38=\tfrac{9}{64}$
Conditional probability
P(A | B) = P(A ∩ B) ÷ P(B)
When one event affects another, conditional probabilities change — and Bayes reverses them.
Of 18 French students, 7 also study German. P(German | French) = 7/a. What is a?
Độ khó 2/5 · 140 xu + một phần thưởng nhỏ cho lần hoàn thành đầu tiên trong ngày
Given they are French, the total to divide by is the 18 French students.
Conditional probability is the probability of an event:
Độ khó 1/5 · 100 xu + một phần thưởng nhỏ cho lần hoàn thành đầu tiên trong ngày
It is the probability of B given that A has occurred.
Of 100 people, 40 are female; of those, 10 are left-handed. P(left-handed | female) as a decimal is?
Độ khó 2/5 · 140 xu + một phần thưởng nhỏ cho lần hoàn thành đầu tiên trong ngày
10/40 = 0.25.
The formula (Extended)
The denominator changes. In conditional probability, the total you divide by is only the group that meets the condition — not the whole population. This is the most common error.
P(B | A) = P(A and B) / P(______).
Độ khó 1/5 · 100 xu + một phần thưởng nhỏ cho lần hoàn thành đầu tiên trong ngày
P(B|A) = P(A ∩ B) / P(A). The denominator is the probability of the condition.
On a two-way table
- To find $\text{P}(B \mid A)$: look at the row (or column) for $A$, and find the fraction that is also $B$.
- The row total is the denominator, not the grand total.
Of 20 students, 12 like tea; of those, 3 also like coffee. P(coffee | tea) = 3/a. What is a?
Độ khó 2/5 · 140 xu + một phần thưởng nhỏ cho lần hoàn thành đầu tiên trong ngày
Condition on the 12 tea-drinkers, so a = 12.
Independent vs dependent 相依的
- If $\text{P}(B \mid A) = \text{P}(B)$, the events are independent — knowing $A$ happened doesn't change the chance of $B$.
- If they differ, the events are dependent.

Conditional probability restricts attention to the group matching the condition — like looking only inside one region of a Venn diagram.
If P(B | A) = P(B), then events A and B are independent.
Độ khó 1/5 · 100 xu + một phần thưởng nhỏ cho lần hoàn thành đầu tiên trong ngày
Independence means knowing A happened does not change the probability of B.
Condition on the smaller group
- Of 30 students, 18 study French and 7 of these study German. Given French, use $p=7/18$, not $7/30$; the condition selects only 18 students.
- Suppose 12 students in the full class study German. Then $P(G)=12/30=0.4$ differs from $P(G\mid F)=7/18$. The two events are not independent for these data.
Among 18 French students, 9 also study German. Find P(German | French).
Độ khó 2/5 · 140 xu + một phần thưởng nhỏ cho lần hoàn thành đầu tiên trong ngày
Restrict the denominator to French students: 9/18 = 0.5.
You've got it
- conditional probability $=$ chance of $B$ given $A$ already happened
- restrict your attention to just the group that meets the condition
- $\text{P}(\text{German} \mid \text{French}) = \dfrac{7}{18}$ (out of the French students only)
Write from a conditional probability of 0.4
- 15 students study French and 6 of them also study German.
- Find the probability of German given French.
Of 15 students who study French, 6 also study German. What is the probability that a French student also studies German?
6 over 15 is 0.4.
What is the conditional probability?
Độ khó 1/5 · 100 xu + một phần thưởng nhỏ cho lần hoàn thành đầu tiên trong ngày
Six of the fifteen French students also study German.