Conditional Probability
引入
8:39
概率、随机变量与概率分布
一名篮球运动员连续投中五球。观众确信她今晚手感火热。但看看纯粹运气能做什么。抛一枚公平硬币二十次。其中…
英文讲解 · 可切换中英文字幕
本课内容
| English | 释义 | 拼音 |
|---|---|---|
| Probability/ˌprɒbəˈbɪlɪti/ | 概率 | gài lǜ |
| conditional probability/kənˈdɪʃənl ˌprɒbəˈbɪlɪti/ | 条件概率 | tiáo jiàn gài lǜ |
| outcomes/ˈaʊtkʌmz/ | 试验结果 | shì yàn jié guǒ |
| fraction/ˈfrækʃn/ | 比例 | bǐ lì |
| formula/ˈfɔːmjʊlə/ | 公式 | gōng shì |
| numerator/ˈnjuːməreɪtə/ | 分子 | fèn zǐ |
| denominator/dɪˈnɒmɪneɪtə/ | 分母 | fēn mǔ |
| tree diagram/triː ˈdaɪəɡræm/ | 树状图 | shù zhuàng tú |
| branches/ˈbræntʃɪz/ | 分支 | fēn zhī |
| Two-way tables/tuː weɪ ˈteɪblz/ | 双向表 | shuāng xiàng biǎo |
| cell/sel/ | 单元格 | dān yuán gé |
| conditional relative frequency/kənˈdɪʃənl ˈrelətɪv ˈfriːkwənsi/ | 条件相对频率 | tiáo jiàn xiāng duì pín lǜ |
| margin/ˈmɑːdʒɪn/ | 边际合计 | biān jì hé jì |
| grand total | 总计 | zǒng jì |
| multiplication rule/ˌmʌltɪplɪˈkeɪʃn ruːl/ | 乘法法则 | chéng fǎ fǎ zé |
| events/ɪˈvents/ | 事件 | shì jiàn |
已知线索下的概率
- 条件概率是指在$B$已经发生的条件下,$A$发生的可能性。
- 记作$P(A \mid B)$——“在$B$发生的条件下,$A$发生的概率”。
- 知道$B$发生了,就把范围缩小到只有$B$的试验结果。
- 然后要问,这些结果中有多大比例同时也是$A$。

公式
-
$$P(A \mid B) = \frac{P(A \cap B)}{P(B)}$$
- 分子表示“两者都发生”;分母表示“条件”。
- 这里是在重新确定比例:在$B$的范围内,有多大比例同时属于$A$?
- 条件$B$成为新的“总数”;这个公式要求$P(B)>0$。

在树状图中,将沿分支的概率相乘
利用双向表
- 双向表让条件概率更容易计算:只看条件所在的行或列。
- $P(A \mid B)$ =(两者都发生的单元格)÷($B$所在行或列的合计)。
- 这正是第 2 单元中的条件相对频率。
- 分母是边际合计,而不是总计。

一般乘法法则
- 将公式变形,得到乘法法则:
-
$$P(A \cap B) = P(B)\,P(A \mid B)$$
- “两者都发生” =(第一个事件发生)×(在第一个事件发生的条件下第二个事件发生)。
- 这样就可以把相互依赖的事件的概率串联起来。

$P(A \mid B)$和$P(B \mid A)$通常不同——不要将它们互换。从一副牌中等可能地抽取一张牌时,$P(\text{heart}\mid\text{red})=13/26=1/2$,而$P(\text{red}\mid\text{heart})=13/13=1$。条件,也就是已知的事件,位于竖线之后,并成为分母。要仔细读清哪个事件是条件。

在一个班里,$P(\text{plays sport}) = 0.5$,$P(\text{sport and music}) = 0.2$。
- $P(\text{music} \mid \text{sport}) = \dfrac{0.2}{0.5} = 0.4$。
- 在爱运动的那一半学生中,$40\%$也从事音乐活动。
- 乘法验证(乘法法则):$P(\text{sport and music}) = 0.5 \times 0.4 = 0.2$。✓

条件概率$P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}$是指在$B$发生的条件下,$A$发生的可能性——在双向表中只看$B$所在的行或列。将公式变形,得到乘法法则$P(A \cap B) = P(B)\,P(A \mid B)$。记住,一般情况下$P(A\mid B) \ne P(B \mid A)$。
根据数据写出答案:求条件概率
- 有 50 名学生参加了某个社团。
- 其中 15 人弹钢琴。课程中的条件概率 0.4 对应另一个群体。
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?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
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).
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
P(A|B) = P(A∩B)/P(B) = 0.2/0.5 = 0.4.
In general, P(A | B) equals P(B | A).
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
They are usually different — the condition matters.
The general multiplication rule for P(A and B) is...
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
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...
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
The condition B becomes the denominator — its margin total.
P(A | B) is read 'the probability of A ___ B' (one word).
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
The bar means 'given' the condition.
出了什么问题?只有网站团队能看到这些信息。