AP Statistics

Unit 5: Probability

Work with chance: probability rules, mutually exclusive and independent events, conditional probability, tree diagrams, two-way tables and simulation.

Topics 5.1 to 5.5Bilingual edition
AP 统计学

单元 5:概率

处理随机现象:概率法则、互斥事件与独立事件、条件概率、树状图、双向表与模拟。

主题 5.1 至 5.5中英双语版
Read me first

Each topic gives objectives, an explanation, worked examples, an exam tip, common mistakes and check questions with answers. Use the contents list to jump to a topic, then finish with the unit quiz. All data are synthetic illustrations.

阅读提示

每个主题含学习目标、讲解、例题、考试提示、常见错误与带答案的自测题。可用目录跳转到任一主题,最后完成单元自测。所有数据均为合成示例。

Introducing probability概率入门

Learning objectives学习目标
  • Describe a random process and list its sample space and events.
  • Interpret a probability as a long-run relative frequency and state the law of large numbers.
  • Use equally likely outcomes and the complement rule to find probabilities.
  • Explain why short-run streaks do not change the probability of the next trial.
  • 描述随机过程,并列出其样本空间与事件。
  • 把概率解释为长期相对频率,并陈述大数定律。
  • 利用等可能结果与补集规则求概率。
  • 说明为何短期的连续结果不会改变下一次试验的概率。

A random process produces outcomes that cannot be predicted individually but follow a regular pattern over many repetitions. The sample space $S$ is the list of all possible outcomes, and an event is any collection of outcomes. The probability $P(A)$ of an event is the proportion of times $A$ would occur in the long run if the random process were repeated indefinitely under the same conditions.

随机过程的单次结果无法预测,但在大量重复下呈现规律。样本空间 $S$ 是所有可能结果的列表,事件是若干结果的集合。事件 $A$ 的概率 $P(A)$ 是:在相同条件下无限次重复该随机过程时,$A$ 发生的长期比例。

Must know

Every probability satisfies $0\le P(A)\le 1$, and $P(S)=1$. When all $N$ outcomes are equally likely, $P(A)=\dfrac{\text{number of outcomes in }A}{N}$. The complement $A^{c}$ ("not $A$") has $P(A^{c})=1-P(A)$.

必备知识

任一概率满足 $0\le P(A)\le 1$,且 $P(S)=1$。当 $N$ 个结果等可能时,$P(A)=\dfrac{A\text{ 含的结果数}}{N}$。补集 $A^{c}$(“非 $A$”)满足 $P(A^{c})=1-P(A)$。

The law of large numbers大数定律

The law of large numbers states that as the number of repetitions grows, the relative frequency of an event approaches its probability. Figure 1 shows one simulated run of fair-coin flips: the running proportion of heads is erratic for small $n$ and settles near $0.5$ for large $n$. Note what the law does not say: the count of heads does not have to "catch up" after a streak. The coin has no memory, so each flip still has probability $0.5$ of heads.

大数定律指出:重复次数越多,事件的相对频率越接近其概率。图 1 是公平硬币抛掷的一次模拟:$n$ 较小时正面比例起伏不定,$n$ 较大时稳定在 $0.5$ 附近。注意定律并没有说连续出现某结果后正面的次数要“补回来”。硬币没有记忆,每次抛掷正面的概率仍是 $0.5$。

00 0.250.25 0.50.5 0.750.75 11 00 100100 200200 300300 400400 Number of flips n抛掷次数 n Proportion of heads正面比例 true probability 0.5真实概率 0.5
Figure 1. One simulated run of 400 fair-coin flips. The running proportion of heads swings widely at first and settles near 0.5: the law of large numbers.图 1. 400 次公平硬币抛掷的一次模拟。正面比例起初波动很大,随后稳定在 0.5 附近:大数定律。

Choosing a sample space you can count选择可以计数的样本空间

Equally likely outcomes are a modelling decision, not a default. Before using $P(A)=\dfrac{n(A)}{N}$, ask whether every listed outcome really has the same chance. The eleven possible sums of two dice, $2$ through $12$, are not equally likely: only $(1,1)$ gives a sum of $2$, but six ordered pairs give a sum of $7$. The remedy is to list outcomes that are equally likely, here the $36$ ordered pairs, and then count how many of them make the event happen. The same care applies to a fair coin flipped twice: $HH, HT, TH, TT$ are equally likely, but "one head" is not a single outcome because it contains $HT$ and $TH$.

等可能结果是一种建模选择,而不是默认前提。在使用 $P(A)=\dfrac{n(A)}{N}$ 之前,先问每个列出的结果是否真的机会相同。两颗骰子的十一种可能的和($2$ 到 $12$)并不等可能:只有 $(1,1)$ 得到和 $2$,而有六个有序数对得到和 $7$。补救办法是列出等可能的结果,这里即 $36$ 个有序数对,再数其中有多少个使事件发生。抛两次公平硬币时同样要小心:$HH, HT, TH, TT$ 等可能,但“一次正面”不是单个结果,因为它包含 $HT$ 与 $TH$。

A probability can also come from data. If $120/400=0.30$ is the proportion of recorded days with rain, that relative frequency estimates the probability of rain on a similar day. It is an estimate, and a different record would give a slightly different value. Say which kind of probability a problem gives you (a count of equally likely outcomes, or a long-run relative frequency) before you interpret it.

概率也可以来自数据。若 $120/400=0.30$ 是有降雨的记录日所占的比例,这个相对频率就是对类似日子降雨概率的估计。它只是估计,换一份记录会得到略有不同的值。在解释之前,先说明题目给出的是哪一种概率(等可能结果的计数,还是长期相对频率)。

Worked examples例题

Worked Example 4.1a: Two dice and the complement rule

Two fair six-sided dice are rolled. Find $P(\text{sum}=7)$, $P(\text{sum}\ge 10)$ and $P(\text{at least one 6})$.

  1. The sample space has $6\times 6=36$ equally likely ordered pairs, so each pair has probability $1/36$.
  2. Sum 7: $(1,6),(2,5),(3,4),(4,3),(5,2),(6,1)$ gives 6 pairs, so $P=6/36=1/6\approx0.1667$.
  3. Sum at least 10: $(4,6),(5,5),(6,4),(5,6),(6,5),(6,6)$ gives 6 pairs, so $P=6/36=1/6\approx0.1667$.
  4. At least one 6: count the complement "no 6" first. There are $5\times5=25$ pairs with no 6, so $P=1-25/36=11/36\approx0.3056$.
例题 4.1a:两颗骰子与补集规则

掷两颗公平的六面骰子。求 $P(\text{sum}=7)$、$P(\text{sum}\ge 10)$ 与 $P(\text{at least one 6})$。

  1. 样本空间含 $6\times 6=36$ 个等可能的有序数对,每个的概率为 $1/36$。
  2. 和为 7:$(1,6),(2,5),(3,4),(4,3),(5,2),(6,1)$ 共 6 对,所以 $P=6/36=1/6\approx0.1667$。
  3. 和不小于 10:$(4,6),(5,5),(6,4),(5,6),(6,5),(6,6)$ 共 6 对,所以 $P=6/36=1/6\approx0.1667$。
  4. 至少一个 6:先数补集“没有 6”。无 6 的数对有 $5\times5=25$ 个,所以 $P=1-25/36=11/36\approx0.3056$。
Worked Example 4.1b: A committee of two

A club has four officers: Ana and Ben (seniors), Cai and Dee (juniors). Two officers are chosen at random for a committee. Find the probability that the committee has at least one senior.

  1. List the sample space (order does not matter): $\{AB, AC, AD, BC, BD, CD\}$, six equally likely committees.
  2. "At least one senior" fails only for $CD$, so use the complement: $P(\text{no senior})=1/6$.
  3. $P(\text{at least one senior})=1-1/6=5/6\approx0.833$. Check by counting directly: $AB, AC, AD, BC, BD$ are 5 of the 6 committees.
例题 4.1b:两人委员会

某社团有四名干部:Ana 和 Ben(高三),Cai 和 Dee(高二)。随机选两人组成委员会。求委员会中至少有一名高三学生的概率。

  1. 列出样本空间(不计顺序):$\{AB, AC, AD, BC, BD, CD\}$,共六种等可能的委员会。
  2. “至少一名高三学生”只有 $CD$ 不满足,故用补集:$P(\text{no senior})=1/6$。
  3. $P(\text{at least one senior})=1-1/6=5/6\approx0.833$。直接数可验证:$AB, AC, AD, BC, BD$ 共 6 种中的 5 种。
Worked Example 4.1c: Is a sum of two dice a prime number?

Maya rolls two fair dice and says: "There are $11$ possible sums, $2$ through $12$, and $5$ of them ($2, 3, 5, 7, 11$) are prime, so the probability of a prime sum is $5/11$." Evaluate her reasoning, find the correct probability, and interpret it for $360$ rolls.

  1. The $11$ sums are not equally likely, so counting sums is not valid. Use the $36$ equally likely ordered pairs instead.
  2. Count the pairs for each prime sum: sum $2$ has $1$ pair, sum $3$ has $2$, sum $5$ has $4$, sum $7$ has $6$ and sum $11$ has $2$. That is $1+2+4+6+2=15$ pairs.
  3. The correct probability is $15/36\approx0.417$, not $5/11\approx0.455$.
  4. Check with the complement: the non-prime sums $4, 6, 8, 9, 10, 12$ have $3+5+5+4+3+1=21$ pairs, and $15+21=36$.
  5. Interpretation: in the long run about $41.7\%$ of rolls of two fair dice give a prime sum. In $360$ rolls we would expect about $150$, but the actual count varies from run to run and need not equal $150$ exactly.
  6. A complete answer names the sample space ($36$ ordered pairs), says why they are equally likely, shows the count and the probability, and interprets the result as a long-run proportion.
例题 4.1c:两颗骰子的和是质数吗?

Maya 掷两颗公平的骰子,并说:“可能的和有 $11$ 种,即 $2$ 到 $12$,其中 $5$ 个($2, 3, 5, 7, 11$)是质数,所以和为质数的概率是 $5/11$。”评价她的推理,求出正确的概率,并就 $360$ 次投掷作出解释。

  1. 这 $11$ 种和并不等可能,所以数“和”的个数是无效的。应改用 $36$ 个等可能的有序数对。
  2. 数出每个质数和对应的数对:和 $2$ 有 $1$ 对,和 $3$ 有 $2$ 对,和 $5$ 有 $4$ 对,和 $7$ 有 $6$ 对,和 $11$ 有 $2$ 对,共 $1+2+4+6+2=15$ 对。
  3. 正确的概率是 $15/36\approx0.417$,而不是 $5/11\approx0.455$。
  4. 用补集验证:非质数的和 $4, 6, 8, 9, 10, 12$ 共有 $3+5+5+4+3+1=21$ 对,而 $15+21=36$。
  5. 解释:长期来看,两颗公平骰子的投掷中约有 $41.7\%$ 的和为质数。投掷 $360$ 次时,预计约有 $150$ 次,但实际次数每次运行都会变化,不一定恰为 $150$。
  6. 完整的答案要指出样本空间($36$ 个有序数对),说明它们为何等可能,给出计数和概率,并把结果解释为长期比例。
Common Mistake: The law of averages

The "law of averages" is not the law of large numbers. After five heads in a row, the next flip is still $50\%$ likely to be heads, and a probability of $0.3$ does not guarantee that exactly 3 of 10 trials succeed.

常见错误:平均律

“平均律”不是大数定律。连续五次正面之后,下一次仍有 $50\%$ 的概率为正面;概率为 $0.3$ 也不保证 10 次试验中恰有 3 次成功。

Common Mistake: Counting outcomes that are not equally likely

Listing the sums $2$ to $12$ and writing $P(\text{sum}=7)=1/11$ treats outcomes that have different numbers of ordered pairs as if they were equally likely. The fix is to list the $36$ ordered pairs, count the pairs that give the sum, and divide by $36$, so that $P(\text{sum}=7)=6/36$.

常见错误:把不等可能的结果当作等可能

列出和 $2$ 到 $12$ 并写 $P(\text{sum}=7)=1/11$,是把含有不同个数有序数对的结果当作等可能。正确做法是列出 $36$ 个有序数对,数出得到该和的数对,再除以 $36$,于是 $P(\text{sum}=7)=6/36$。

AP exam tipAP 考试提示

Always interpret a probability as a long-run proportion and name the event: "If many such days were observed under the same conditions, about $30\%$ would have rain." Do not write that it "will" rain on $3$ of $10$ days.

解释概率时,始终说成长期比例并点明事件:“在相同条件下观察大量这样的日子,约有 $30\%$ 会下雨。”不要写成“10 天中会有 3 天下雨”。

Check your understanding自我检测
A forecast says there is a $30\%$ chance of rain tomorrow. Interpret this probability.预报称明天有 $30\%$ 的降雨概率。解释这个概率。

In the long run, on about $30\%$ of days with conditions like tomorrow's, it rains. It does not mean it rains for $30\%$ of the day.

在长期中,与明天条件相似的日子里约有 $30\%$ 会下雨。这不是说一天中有 $30\%$ 的时间在下雨。

A fair coin has landed heads $5$ times in a row. What is the probability of heads on the next flip, and why?一枚公平硬币已连续 $5$ 次正面朝上。下一次正面的概率是多少?为什么?

$0.5$. Flips are independent and the coin has no memory; the law of large numbers concerns the long-run proportion, not a correction of streaks.

$0.5$。各次抛掷相互独立,硬币没有记忆;大数定律讲的是长期比例,而非对连续结果的补偿。

A bag holds $5$ red, $3$ blue and $2$ green marbles. One is drawn at random. Find $P(\text{not red})$.袋中有 $5$ 个红球、$3$ 个蓝球和 $2$ 个绿球,随机取出一个。求 $P(\text{不是红球})$。

$P(\text{red})=5/10=0.5$, so $P(\text{not red})=1-0.5=0.5$ (equivalently $(3+2)/10$).

$P(\text{红})=5/10=0.5$,所以 $P(\text{不是红})=1-0.5=0.5$(等价于 $(3+2)/10$)。

Mutually exclusive events and the addition rule互斥事件与加法规则

Learning objectives学习目标
  • Decide whether two events are mutually exclusive.
  • Apply the addition rule for mutually exclusive events.
  • Explain why mutually exclusive events with positive probability are not independent.
  • Use a Venn diagram to organize events.
  • 判断两个事件是否互斥。
  • 对互斥事件应用加法规则。
  • 说明为什么概率为正的互斥事件不是独立的。
  • 用维恩图整理事件。

Two events are mutually exclusive (also called disjoint) if they cannot occur at the same time: they share no outcomes, so $P(A\text{ and }B)=0$. For such events the probabilities simply add. The same rule extends to any list of events no two of which overlap.

若两个事件不可能同时发生,则称它们互斥(也称不相交):二者没有共同结果,故 $P(A\text{ 且 }B)=0$。此时概率直接相加。该规则可推广到任意两两不重叠的一组事件。

Must know

If $A$ and $B$ are mutually exclusive, $P(A\text{ or }B)=P(A)+P(B)$. For events with overlap, the general addition rule in Topic 5.4 applies instead. If $P(A)>0$ and $P(B)>0$ and $A,B$ are mutually exclusive, then $P(B\mid A)=0\ne P(B)$, so $A$ and $B$ are dependent.

必备知识

若 $A$、$B$ 互斥,则 $P(A\text{ 或 }B)=P(A)+P(B)$。事件有重叠时,应使用主题 5.4 的一般加法规则。若 $P(A)>0$、$P(B)>0$ 且 $A,B$ 互斥,则 $P(B\mid A)=0\ne P(B)$,所以 $A$ 与 $B$ 不独立。

AA BB Mutually exclusive互斥 no overlap: P(A and B) = 0无重叠:P(A 且 B) = 0 AA BB both二者 Overlapping events有重叠的事件 P(A or B) = P(A) + P(B) - P(A and B)P(A 或 B) = P(A) + P(B) - P(A 且 B)
Figure 2. Left: mutually exclusive events share no outcomes. Right: when events overlap, adding the two probabilities counts the overlap twice, so it is subtracted once.图 2. 左:互斥事件没有共同结果。右:事件有重叠时,两个概率相加会把重叠部分算两次,因此要减去一次。

Translating words into events把文字翻译成事件

Most errors in this topic start with the wording, so read each phrase as an event. "$A$ or $B$" is inclusive: $A$ happens, $B$ happens, or both, written $A\cup B$. "Neither" means not $A$ and not $B$, which is the complement of the union, so $P(\text{neither})=1-P(A\cup B)$. "Exactly one" means $A$ or $B$ but not both, so $P(\text{exactly one})=P(A\cup B)-P(A\cap B)$. "Not both" is the complement of $A\cap B$.

本主题的多数错误源于措辞,所以要把每个短语读成一个事件。“$A$ 或 $B$”是包含式的:$A$ 发生、$B$ 发生,或二者都发生,记作 $A\cup B$。“两者都不”指非 $A$ 且非 $B$,即并集的补集,所以 $P(\text{neither})=1-P(A\cup B)$。“恰好一个”指 $A$ 或 $B$ 发生但不同时发生,所以 $P(\text{exactly one})=P(A\cup B)-P(A\cap B)$。“不同时发生”是 $A\cap B$ 的补集。

When the categories of one variable are mutually exclusive and exhaustive, as in the commute survey, their probabilities add to $1$. That gives a way to find a missing value: if three of four categories have probabilities $0.18$, $0.12$ and $0.35$, the fourth is $1-0.65=0.35$. Check that a whole list sums to $1$ before you use it.

当一个变量的各类别互斥且穷尽时(如上学方式调查),它们的概率之和为 $1$。由此可以求缺失的值:若四个类别中有三个的概率为 $0.18$、$0.12$ 和 $0.35$,则第四个为 $1-0.65=0.35$。使用整张列表之前,先检查它的和是否为 $1$。

Worked examples例题

Worked Example 4.2a: How students get to school

In a synthetic survey of students, each student reports one main commute mode: $P(\text{walk})=0.18$, $P(\text{bike})=0.12$, $P(\text{bus})=0.35$ and $P(\text{car})=0.35$. Find $P(\text{walk or bike})$, $P(\text{not car})$ and $P(\text{walk or bus})$.

  1. The categories are mutually exclusive (one main mode per student) and exhaustive: $0.18+0.12+0.35+0.35=1.00$.
  2. $P(\text{walk or bike})=0.18+0.12=0.30$.
  3. $P(\text{not car})=1-0.35=0.65$, which equals $0.18+0.12+0.35=0.65$.
  4. $P(\text{walk or bus})=0.18+0.35=0.53$.
例题 4.2a:学生如何上学

在一项合成的学生调查中,每名学生只报告一种主要上学方式:$P(\text{walk})=0.18$,$P(\text{bike})=0.12$,$P(\text{bus})=0.35$,$P(\text{car})=0.35$。求 $P(\text{walk or bike})$、$P(\text{not car})$ 与 $P(\text{walk or bus})$。

  1. 各类别互斥(每人只有一种主要方式)且穷尽:$0.18+0.12+0.35+0.35=1.00$。
  2. $P(\text{walk or bike})=0.18+0.12=0.30$。
  3. $P(\text{not car})=1-0.35=0.65$,也等于 $0.18+0.12+0.35=0.65$。
  4. $P(\text{walk or bus})=0.18+0.35=0.53$。
Worked Example 4.2b: Counts by class year

A school council survey lists $300$ students: $90$ first-years, $80$ second-years, $70$ juniors and $60$ seniors. A student is chosen at random. Find $P(\text{first-year or senior})$ and $P(\text{not a junior})$, and decide whether "first-year" and "plays a sport" are mutually exclusive.

  1. Class years are mutually exclusive, so $P(\text{first-year or senior})=\dfrac{90}{300}+\dfrac{60}{300}=\dfrac{150}{300}=0.50$.
  2. $P(\text{not a junior})=1-\dfrac{70}{300}=\dfrac{230}{300}\approx0.767$.
  3. "First-year" and "plays a sport" are not mutually exclusive: a first-year student can play a sport, so the events can occur together and the simple sum would overcount.
例题 4.2b:按年级的人数

某校学生会调查列出 $300$ 名学生:$90$ 名一年级、$80$ 名二年级、$70$ 名三年级、$60$ 名四年级。随机选一名学生。求 $P(\text{first-year or senior})$、$P(\text{not a junior})$,并判断“一年级”与“参加体育运动”是否互斥。

  1. 年级互斥,故 $P(\text{first-year or senior})=\dfrac{90}{300}+\dfrac{60}{300}=\dfrac{150}{300}=0.50$。
  2. $P(\text{not a junior})=1-\dfrac{70}{300}=\dfrac{230}{300}\approx0.767$。
  3. “一年级”与“参加体育运动”不互斥:一年级学生可以参加体育运动,两事件可同时发生,直接相加会重复计数。
Worked Example 4.2c: Physics, chemistry or both

At a synthetic school, $200$ students were surveyed: $80$ take physics ($A$), $70$ take chemistry ($B$) and $30$ take both. A student is chosen at random. Find $P(A\cup B)$, $P(\text{neither})$ and $P(\text{exactly one})$, and explain why $P(A)+P(B)$ is not the answer to the first.

  1. $P(A)=80/200=0.40$, $P(B)=70/200=0.35$ and $P(A\cap B)=30/200=0.15$.
  2. The events are not mutually exclusive, because $30$ students take both. Adding $0.40+0.35=0.75$ counts those $30$ students twice.
  3. $P(A\cup B)=0.40+0.35-0.15=0.60$. Check by counting: $80+70-30=120$ students, and $120/200=0.60$.
  4. $P(\text{neither})=1-0.60=0.40$, which is $80$ students. The tempting value $1-0.15=0.85$ is only the probability that a student does not take both.
  5. $P(\text{exactly one})=0.60-0.15=0.45$. Check: $50$ take only physics and $40$ take only chemistry, and $90/200=0.45$.
  6. A complete answer defines the events, notes that they overlap, uses the general rule, and states each result in context: about $45\%$ of the surveyed students take exactly one of the two courses.
例题 4.2c:物理、化学或两者都选

在一所合成数据的学校中调查了 $200$ 名学生:$80$ 人选物理($A$),$70$ 人选化学($B$),$30$ 人两门都选。随机选一名学生。求 $P(A\cup B)$、$P(\text{neither})$ 与 $P(\text{exactly one})$,并说明为什么 $P(A)+P(B)$ 不是第一问的答案。

  1. $P(A)=80/200=0.40$,$P(B)=70/200=0.35$,$P(A\cap B)=30/200=0.15$。
  2. 两事件不互斥,因为有 $30$ 名学生两门都选。把 $0.40+0.35=0.75$ 直接相加,会把这 $30$ 名学生算两次。
  3. $P(A\cup B)=0.40+0.35-0.15=0.60$。计数验证:$80+70-30=120$ 名学生,$120/200=0.60$。
  4. $P(\text{neither})=1-0.60=0.40$,即 $80$ 名学生。容易误用的 $1-0.15=0.85$ 只是学生不同时选两门的概率。
  5. $P(\text{exactly one})=0.60-0.15=0.45$。验证:只选物理的有 $50$ 人,只选化学的有 $40$ 人,$90/200=0.45$。
  6. 完整的答案要定义事件,指出二者有重叠,使用一般加法规则,并结合情境陈述每个结果:被调查的学生中约有 $45\%$ 恰好选这两门课之一。
Common Mistake: Mutually exclusive is not independent

Mutually exclusive does not mean independent. If you know one of two mutually exclusive events occurred, you know the other did not, which is the strongest possible dependence.

常见错误:互斥不等于独立

互斥不等于独立。若已知两个互斥事件之一发生,就知道另一个没有发生,这是最强的相依关系。

Common Mistake: Reading "neither" as "not both"

The value $1-P(A\cap B)$ is the probability that the two events do not both happen. "Neither" needs $1-P(A\cup B)$. In Worked Example 4.2c the two readings give $0.85$ and $0.40$, a large difference, so decide which phrase the question uses before computing.

常见错误:把“两者都不”读成“不同时发生”

$1-P(A\cap B)$ 是两事件不同时发生的概率,而“两者都不”需要 $1-P(A\cup B)$。在例题 4.2c 中,两种读法分别得到 $0.85$ 与 $0.40$,相差很大,因此计算前要先判断题目用的是哪一种说法。

AP exam tipAP 考试提示

A written answer that adds probabilities should say why the events are mutually exclusive ("a student has only one main commute mode"). Without that justification the addition is unsupported.

书面解答中若要把概率相加,应说明事件互斥的理由(“每名学生只有一种主要上学方式”)。缺少这一说明,加法步骤就缺乏依据。

Check your understanding自我检测
A die is rolled. Let $A=\{1,2\}$, $B=\{5,6\}$, $C=\{2,4,6\}$. Which pairs are mutually exclusive, and what is $P(A\text{ or }B)$?掷一颗骰子。设 $A=\{1,2\}$,$B=\{5,6\}$,$C=\{2,4,6\}$。哪几对事件互斥?$P(A\text{ 或 }B)$ 是多少?

Only $A,B$ share no outcome. $A,C$ share $2$ and $B,C$ share $6$. $P(A\text{ or }B)=2/6+2/6=4/6\approx0.667$.

只有 $A,B$ 没有共同结果;$A,C$ 共有 $2$,$B,C$ 共有 $6$。$P(A\text{ 或 }B)=2/6+2/6=4/6\approx0.667$。

For a randomly chosen student, $P(\text{first-year})=0.28$ and $P(\text{sophomore})=0.26$. Find the probability the student is neither.随机选一名学生,$P(\text{一年级})=0.28$,$P(\text{二年级})=0.26$。求该学生两者都不是的概率。

The two events are mutually exclusive, so $P(\text{first-year or sophomore})=0.54$ and $P(\text{neither})=1-0.54=0.46$.

两事件互斥,所以 $P(\text{一年级或二年级})=0.54$,$P(\text{两者都不是})=1-0.54=0.46$。

Can two events with positive probabilities be both mutually exclusive and independent?概率为正的两个事件能否既互斥又独立?

No. Mutually exclusive gives $P(A\text{ and }B)=0$, but independence requires $P(A\text{ and }B)=P(A)P(B)>0$. Both cannot hold.

不能。互斥意味着 $P(A\text{ 且 }B)=0$,而独立要求 $P(A\text{ 且 }B)=P(A)P(B)>0$。二者不可能同时成立。

Conditional probability, the multiplication rule, and tree and two-way tables条件概率、乘法规则,以及树状图与二维表格

Learning objectives学习目标
  • Compute conditional probabilities from a two-way table and from a definition.
  • Use the general multiplication rule $P(A\text{ and }B)=P(A)\,P(B\mid A)$.
  • Build and read a tree diagram, including reversing a conditional with the tree.
  • Write a complete AP free-response solution that names events and interprets the answer.
  • 从二维表格和定义计算条件概率。
  • 使用一般乘法规则 $P(A\text{ 且 }B)=P(A)\,P(B\mid A)$。
  • 绘制并读取树状图,包括用树状图把条件概率反转。
  • 写出完整的 AP 简答题解答:说明事件并解释结果。

The conditional probability of $B$ given $A$ is the probability that $B$ occurs when we already know that $A$ occurred. Knowing $A$ shrinks the sample space to the outcomes in $A$.

在已知 $A$ 发生的条件下,$B$ 发生的概率称为条件概率。已知 $A$ 后,样本空间缩小为 $A$ 中的结果。

$$P(B\mid A)=\frac{P(A\text{ and }B)}{P(A)},\qquad P(A\text{ and }B)=P(A)\,P(B\mid A)$$
Must know

The condition goes in the denominator. In a two-way table, $P(B\mid A)$ is the cell count divided by the total of the row or column for $A$, not by the grand total. Also, in general $P(B\mid A)\ne P(A\mid B)$.

必备知识

条件放在分母。在二维表格中,$P(B\mid A)$ 是单元格计数除以 $A$ 所在行或列的合计,而不是除以总计。一般地,$P(B\mid A)\ne P(A\mid B)$。

Also on the 2027 exam: two-way table summaries

The revised course also asks you to describe two categorical variables with joint, marginal and conditional relative frequencies. They are probabilities in disguise: a joint relative frequency is $P(A\cap B)$ (cell divided by the table total), a marginal relative frequency is $P(A)$ (row or column total divided by the table total), and a conditional relative frequency is $P(B\mid A)$ (cell divided by its row or column total). The variables are associated when the conditional distributions differ between groups, for example in a segmented bar chart.

对应 2027 考试新增内容:二维表格的汇总

新课程还要求用联合、边际与条件相对频率描述两个分类变量。它们其实就是概率:联合相对频率是 $P(A\cap B)$(单元格除以总计),边际相对频率是 $P(A)$(行或列合计除以总计),条件相对频率是 $P(B\mid A)$(单元格除以其所在行或列的合计)。当各组的条件分布不同时(例如在分段条形图中),两变量存在关联。

Tree diagrams树状图

A tree diagram lays out a sequence of stages. Each branch carries a conditional probability, so the probabilities leaving any one node sum to $1$. Multiply along a path to get a joint probability, and add the paths that share the event you want. To reverse a conditional, divide one joint probability by the total probability of the given event.

树状图按阶段排列。每条分支标注条件概率,因此从同一节点发出的概率之和为 $1$。沿一条路径相乘得联合概率;把包含目标事件的各路径相加。要把条件概率反转,就用一个联合概率除以所给事件的总概率。

0.040.04 disease D患病 D 0.960.96 no disease未患病 0.900.90 test positive: 0.036检测阳性:0.036 0.100.10 test negative: 0.004检测阴性:0.004 0.080.08 test positive: 0.0768检测阳性:0.0768 0.920.92 test negative: 0.8832检测阴性:0.8832 Each leaf = product along the branch每个叶节点 = 沿分支的乘积
Figure 3. Tree diagram for Worked Example 4.3b. Multiply along a path for a joint probability (for example 0.04 times 0.90 is 0.036); add the leaves that share an outcome (0.036 + 0.0768 = 0.1128 positive).图 3. 例题 4.3b 的树状图。沿一条路径相乘得联合概率(例如 0.04 乘 0.90 得 0.036);把含相同结果的叶节点相加(0.036 + 0.0768 = 0.1128 为阳性)。

Total probability and sampling without replacement全概率与不放回抽样

A tree also computes an unconditional probability from conditional pieces. If $A$ and $A^{c}$ split the sample space, then $P(B)=P(A)\,P(B\mid A)+P(A^{c})\,P(B\mid A^{c})$: add the joint probabilities of every path that ends in $B$. This is how $0.1128$ was found for a positive test in Worked Example 4.3b, and it is the denominator whenever a conditional is reversed.

树状图还可以由条件概率的各部分算出无条件概率。若 $A$ 与 $A^{c}$ 把样本空间分成两部分,则 $P(B)=P(A)\,P(B\mid A)+P(A^{c})\,P(B\mid A^{c})$:把所有以 $B$ 结尾的路径的联合概率相加。例题 4.3b 中检测阳性的 $0.1128$ 就是这样得到的,每当要反转条件概率时,它也是分母。

When items are drawn without replacement, the probabilities on the second stage depend on the first draw, because the pool has changed. From a box of $12$ batteries with $3$ defective, the chance the second is defective is $2/11$ if the first was defective and $3/11$ if it was not. Do not reuse first-stage probabilities on later branches. This is exactly a situation in which the draws are not independent.

不放回地抽取时,第二阶段的概率取决于第一次抽取,因为剩下的总体已经改变。从含 $3$ 个次品的 $12$ 节电池中抽取,若第一节是次品,第二节是次品的概率为 $2/11$;若第一节不是次品,则为 $3/11$。不要把第一阶段的概率沿用到后面的分支。这正是各次抽取不独立的典型情形。

Three habits keep a conditional problem organized. Write the events with letters. Write the wanted probability in $P(B\mid A)$ notation. Then decide whether the data are a table (divide within one row or column) or stages (multiply along paths, then divide).

三个习惯可使条件概率题条理清楚。用字母写出事件。用 $P(B\mid A)$ 的记号写出所求概率。再判断数据是表格(在一行或一列内相除)还是分阶段(沿路径相乘,再相除)。

Worked examples例题

Reads at least one book a monthOwns an e-reader: YesOwns an e-reader: NoTotal
Yes10575180
No4575120
Total150150300
每月至少读一本书拥有电子阅读器:是拥有电子阅读器:否合计
是10575180
否4575120
合计150150300

Synthetic teaching data: 300 surveyed students, not real research.

合成教学数据:调查 300 名学生,并非真实研究。

Worked Example 4.3a: Conditional probabilities from a table

Use the table above. A student is chosen at random. Let $R$ = reads at least one book a month and $E$ = owns an e-reader. Find $P(R\mid E)$, $P(E\mid R)$ and $P(R\text{ and }E)$, and verify the multiplication rule.

  1. $P(R\mid E)=\dfrac{105}{150}=0.70$: restrict to the $150$ e-reader owners.
  2. $P(E\mid R)=\dfrac{105}{180}\approx0.583$: restrict to the $180$ readers. The two conditionals differ because the conditions differ.
  3. $P(R\text{ and }E)=\dfrac{105}{300}=0.35$.
  4. Check: $P(E)\,P(R\mid E)=0.50\times0.70=0.35$. The rule agrees with the table.
例题 4.3a:从表格求条件概率

用上表。随机选一名学生。设 $R$ 为每月至少读一本书,$E$ 为拥有电子阅读器。求 $P(R\mid E)$、$P(E\mid R)$ 与 $P(R\text{ and }E)$,并验证乘法规则。

  1. $P(R\mid E)=\dfrac{105}{150}=0.70$:只看 $150$ 名电子阅读器拥有者。
  2. $P(E\mid R)=\dfrac{105}{180}\approx0.583$:只看 $180$ 名读书的学生。两个条件概率不同,因为条件不同。
  3. $P(R\text{ and }E)=\dfrac{105}{300}=0.35$。
  4. 验证:$P(E)\,P(R\mid E)=0.50\times0.70=0.35$,规则与表格一致。
Worked Example 4.3b: A screening test and a tree

In a synthetic screening program, $4\%$ of people have a condition $D$. The test is positive for $90\%$ of people who have $D$ and, mistakenly, for $8\%$ of people who do not. Find $P(\text{positive})$ and $P(D\mid\text{positive})$.

  1. Branches (Figure 3): $P(D)=0.04$, $P(+\mid D)=0.90$, $P(+\mid D^{c})=0.08$, so $P(D^{c})=0.96$.
  2. Joint probabilities: $P(D\text{ and }+)=0.04\times0.90=0.036$ and $P(D^{c}\text{ and }+)=0.96\times0.08=0.0768$.
  3. $P(+)=0.036+0.0768=0.1128$.
  4. $P(D\mid+)=\dfrac{0.036}{0.1128}\approx0.319$. Only about $32\%$ of positive results come from people who actually have $D$.
例题 4.3b:筛查检测与树状图

在一个合成的筛查项目中,$4\%$ 的人患有某种状况 $D$。患有 $D$ 者检测呈阳性的比例为 $90\%$;未患病者被误判为阳性的比例为 $8\%$。求 $P(\text{positive})$ 与 $P(D\mid\text{positive})$。

  1. 分支(图 3):$P(D)=0.04$,$P(+\mid D)=0.90$,$P(+\mid D^{c})=0.08$,故 $P(D^{c})=0.96$。
  2. 联合概率:$P(D\text{ and }+)=0.04\times0.90=0.036$,$P(D^{c}\text{ and }+)=0.96\times0.08=0.0768$。
  3. $P(+)=0.036+0.0768=0.1128$。
  4. $P(D\mid+)=\dfrac{0.036}{0.1128}\approx0.319$。阳性结果中只有约 $32\%$ 来自真正患 $D$ 的人。
Worked Example 4.3c: Two batteries without replacement

A box holds $12$ batteries, $3$ of them defective. Two are drawn at random without replacement. Let $D_1$ and $D_2$ be "the first is defective" and "the second is defective", and let $N_1$ and $N_2$ be the complements. Find $P(\text{exactly one defective})$, $P(\text{at least one defective})$ and $P(D_1\mid D_2)$.

  1. Branches: $P(D_1)=3/12$ and $P(N_1)=9/12$. Then $P(D_2\mid D_1)=2/11$, $P(N_2\mid D_1)=9/11$, $P(D_2\mid N_1)=3/11$ and $P(N_2\mid N_1)=8/11$.
  2. Paths: $P(D_1\cap D_2)=\dfrac{3}{12}\cdot\dfrac{2}{11}=\dfrac{6}{132}$, $P(D_1\cap N_2)=\dfrac{27}{132}$, $P(N_1\cap D_2)=\dfrac{27}{132}$ and $P(N_1\cap N_2)=\dfrac{72}{132}$. They sum to $132/132=1$.
  3. Exactly one defective: $\dfrac{27+27}{132}=\dfrac{54}{132}\approx0.409$.
  4. At least one defective: $1-\dfrac{72}{132}=\dfrac{60}{132}\approx0.455$.
  5. $P(D_2)=\dfrac{6+27}{132}=0.25$, the same as $P(D_1)=3/12$. Then $P(D_1\mid D_2)=\dfrac{6/132}{33/132}=\dfrac{2}{11}\approx0.182$.
  6. A complete answer says the draws are without replacement, so the second-stage probabilities change, and interprets the last result: among boxes where the second battery drawn is defective, the first was also defective about $18\%$ of the time.
例题 4.3c:不放回地抽两节电池

一个盒子里有 $12$ 节电池,其中 $3$ 节为次品。不放回地随机抽取两节。设 $D_1$ 与 $D_2$ 分别为“第一节是次品”和“第二节是次品”,$N_1$ 与 $N_2$ 为其补集。求 $P(\text{exactly one defective})$、$P(\text{at least one defective})$ 与 $P(D_1\mid D_2)$。

  1. 分支:$P(D_1)=3/12$,$P(N_1)=9/12$。然后 $P(D_2\mid D_1)=2/11$,$P(N_2\mid D_1)=9/11$,$P(D_2\mid N_1)=3/11$,$P(N_2\mid N_1)=8/11$。
  2. 路径:$P(D_1\cap D_2)=\dfrac{3}{12}\cdot\dfrac{2}{11}=\dfrac{6}{132}$,$P(D_1\cap N_2)=\dfrac{27}{132}$,$P(N_1\cap D_2)=\dfrac{27}{132}$,$P(N_1\cap N_2)=\dfrac{72}{132}$。它们之和为 $132/132=1$。
  3. 恰好一节次品:$\dfrac{27+27}{132}=\dfrac{54}{132}\approx0.409$。
  4. 至少一节次品:$1-\dfrac{72}{132}=\dfrac{60}{132}\approx0.455$。
  5. $P(D_2)=\dfrac{6+27}{132}=0.25$,与 $P(D_1)=3/12$ 相同。于是 $P(D_1\mid D_2)=\dfrac{6/132}{33/132}=\dfrac{2}{11}\approx0.182$。
  6. 完整的答案要指出抽取是不放回的,所以第二阶段的概率会改变,并解释最后的结果:在第二节抽到的是次品的盒子里,第一节也是次品的情形约占 $18\%$。
AP FRQ response model: reversing a conditional

Using the screening program above, a person tests positive. (a) Find the probability the person has $D$. (b) A friend says, "The test is $90\%$ accurate, so you are $90\%$ likely to have $D$." Respond.

What a complete answer states

  1. Define events and notation: $D$ = has the condition, $+$ = tests positive.
  2. Use the correct setup: $P(D\mid+)=\dfrac{P(D\cap +)}{P(+)}$, with $P(+)$ computed from both branches: $0.036+0.0768=0.1128$.
  3. Correct value: $0.036/0.1128\approx0.319$.
  4. Conclusion in context: about $32\%$ of people who test positive have $D$. The $90\%$ is $P(+\mid D)$, not $P(D\mid+)$; because $D$ is rare, false positives from the large group without $D$ outnumber true positives.
AP 简答题答题模型:反转条件概率

沿用上述筛查项目,某人检测呈阳性。(a) 求此人患 $D$ 的概率。(b) 朋友说:“检测 $90\%$ 准确,所以你有 $90\%$ 的可能患 $D$。”请回应。

完整答案要点

  1. 定义事件与记号:$D$ 为患有该状况,$+$ 为检测呈阳性。
  2. 设置正确:$P(D\mid+)=\dfrac{P(D\cap +)}{P(+)}$,其中 $P(+)$ 要用两条分支计算:$0.036+0.0768=0.1128$。
  3. 正确数值:$0.036/0.1128\approx0.319$。
  4. 结合情境作结论:检测呈阳性的人中约 $32\%$ 患有 $D$。$90\%$ 是 $P(+\mid D)$,不是 $P(D\mid+)$;因为 $D$ 很少见,没有 $D$ 的大群体中的误报多于真阳性。
Common Mistake: Mixing up the condition

Do not confuse $P(A\mid B)$ with $P(B\mid A)$, and do not use the grand total as the denominator for a conditional probability. On a tree, never add the probabilities along a path; multiply them.

常见错误:弄混条件

不要混淆 $P(A\mid B)$ 与 $P(B\mid A)$,也不要用总计作为条件概率的分母。在树状图上,沿路径应相乘而非相加。

Common Mistake: Keeping the same probabilities after a draw without replacement

Using $3/12$ on both second-stage branches, as if the first battery had been put back, gives $P(D_1\cap D_2)=(3/12)^{2}=0.0625$ in place of the correct $6/132\approx0.045$. Update the counts after every draw, and check that the branches leaving each node still sum to $1$.

常见错误:不放回抽取后仍沿用原来的概率

在两条第二阶段的分支上都用 $3/12$,就像第一节电池被放了回去,会得到 $P(D_1\cap D_2)=(3/12)^{2}=0.0625$,而不是正确的 $6/132\approx0.045$。每次抽取后都要更新数量,并检查从每个节点发出的分支之和仍为 $1$。

AP exam tipAP 考试提示

Write the conditional notation before computing and say which group is the denominator ("among e-reader owners"). A complete solution shows the setup before the arithmetic.

先写出条件概率的记号,再说明分母是哪一组(“在电子阅读器拥有者中”)。完整的解答要在计算之前先写出设置。

Check your understanding自我检测
Two cards are dealt from a standard $52$-card deck without replacement. Find the probability both are aces.从一副标准 $52$ 张牌中不放回地发两张牌。求两张都是 A 的概率。

$P(\text{ace}_1)\,P(\text{ace}_2\mid\text{ace}_1)=\dfrac{4}{52}\cdot\dfrac{3}{51}=\dfrac{12}{2652}=\dfrac{1}{221}\approx0.0045$.

$P(\text{第一张 A})\,P(\text{第二张 A}\mid\text{第一张 A})=\dfrac{4}{52}\cdot\dfrac{3}{51}=\dfrac{12}{2652}=\dfrac{1}{221}\approx0.0045$。

In the e-reader table, find $P(\text{does not read}\mid\text{does not own})$.在电子阅读器表格中,求 $P(\text{不读书}\mid\text{不拥有})$。

Restrict to the $150$ non-owners; $75$ of them do not read: $75/150=0.50$.

只看 $150$ 名不拥有者,其中 $75$ 人不读书:$75/150=0.50$。

In a class of $50$, $30$ play a sport, $20$ play music and $12$ do both. Find $P(\text{music}\mid\text{sport})$ and $P(\text{sport}\mid\text{music})$.某班 $50$ 人中,$30$ 人参加体育运动,$20$ 人学音乐,$12$ 人两者都有。求 $P(\text{音乐}\mid\text{体育})$ 与 $P(\text{体育}\mid\text{音乐})$。

$P(\text{music}\mid\text{sport})=12/30=0.40$ and $P(\text{sport}\mid\text{music})=12/20=0.60$. The conditionals differ.

$P(\text{音乐}\mid\text{体育})=12/30=0.40$,$P(\text{体育}\mid\text{音乐})=12/20=0.60$。二者不同。

Independent events and unions of events独立事件与并集

Learning objectives学习目标
  • Apply the general addition rule $P(A\text{ or }B)=P(A)+P(B)-P(A\text{ and }B)$.
  • Test whether two events are independent using probabilities or a two-way table.
  • Compute "at least one" probabilities for independent trials with the complement.
  • Distinguish independent from mutually exclusive events.
  • 应用一般加法规则 $P(A\text{ 或 }B)=P(A)+P(B)-P(A\text{ 且 }B)$。
  • 用概率或二维表格检验两个事件是否独立。
  • 利用补集计算独立试验中“至少一次”的概率。
  • 区分独立事件与互斥事件。

The union "$A$ or $B$" means $A$ occurs, $B$ occurs, or both. The general addition rule subtracts the overlap that was counted twice. Events are independent if knowing that one occurred does not change the probability of the other.

并集“$A$ 或 $B$”指 $A$ 发生、$B$ 发生,或二者都发生。一般加法规则要减去被重复计算的重叠部分。若得知一个事件发生并不改变另一个事件的概率,则这两个事件独立。

$$P(A\text{ or }B)=P(A)+P(B)-P(A\text{ and }B)$$
Must know

Events $A$ and $B$ are independent exactly when any one of these holds: $P(B\mid A)=P(B)$, or $P(A\mid B)=P(A)$, or $P(A\text{ and }B)=P(A)\,P(B)$. For independent events, $P(A\text{ and }B)=P(A)\,P(B)$ extends to any number of events. Independence is a statement about probabilities, not about whether the events seem unrelated.

必备知识

事件 $A$、$B$ 独立,当且仅当下列任一式成立:$P(B\mid A)=P(B)$,或 $P(A\mid B)=P(A)$,或 $P(A\text{ 且 }B)=P(A)\,P(B)$。对独立事件,$P(A\text{ 且 }B)=P(A)\,P(B)$ 可推广到任意多个事件。独立是关于概率的陈述,而不是凭直觉判断事件“看起来是否无关”。

When sampling without replacement from a large population, the trials are not exactly independent, but they are treated as approximately independent when the sample is less than $10\%$ of the population (the $10\%$ condition).

从大总体中不放回抽样时,各次试验并非严格独立;当样本量不超过总体的 $10\%$($10\%$ 条件)时,可近似视为独立。

Three checks for independence检验独立性的三种方法

Use whichever check the data make easiest, and say which one you used. The three checks always agree, because each rearranges the others: if $P(B\mid A)=P(B)$, the multiplication rule gives $P(A\cap B)=P(A)\,P(B\mid A)=P(A)\,P(B)$. With a two-way table, compare a conditional relative frequency with the matching marginal one. For "at least one" success in several independent trials, work with the complement: if $q$ is the probability of no success, then the probability of at least one success is $1-q$, and for independent trials $q$ is a product. When the trials are draws from a population without replacement, the 10% condition (the sample is less than 10% of the population) is what allows the product. Mutually exclusive events with positive probabilities fail every one of the three checks.

哪种检验方便数据就用哪种,并写明用的是哪一种。三种检验总是一致,因为每一种都可由其他推出:若 $P(B\mid A)=P(B)$,由乘法规则得 $P(A\cap B)=P(A)\,P(B\mid A)=P(A)\,P(B)$。对二维表格,比较一个条件相对频率与对应的边际相对频率。对多次独立试验中“至少一次”成功,改用补集:设 $q$ 为一次也不成功的概率,则至少成功一次的概率为 $1-q$,而独立试验中 $q$ 是乘积。若是从总体中不放回抽取,则需满足 10% 条件(样本不超过总体的 10%)才可连乘。概率为正的互斥事件,三种检验都通不过。

Writing and justifying independence claims写出并论证独立性的结论

Independence is a claim you test and then state in context. When a problem gives exact probabilities, check one equality and conclude. When the numbers come from a sample table, they will seldom match exactly, so report the two numbers you compared, say whether they are equal or different in this table, and describe the association (or the lack of it) in context. Judging whether a small gap could be sampling variation is a job for the inference units later in the course.

独立性是需要检验、然后结合情境陈述的结论。题目给出精确概率时,检验一个等式即可下结论。数字来自样本表格时,它们很少恰好相等,所以要写出所比较的两个数,说明在这张表中二者相等还是不等,并结合情境描述关联(或没有关联)。判断一个很小的差距是否可能只是抽样变异,是本课程后面推断单元的任务。

Independence also gives a shortcut for unions. If $A$ and $B$ are independent, then $P(A\cup B)=1-\big(1-P(A)\big)\big(1-P(B)\big)$, because "neither" is a product of two complements. For $P(A)=0.5$ and $P(B)=0.4$ this gives $1-0.5\times0.6=0.70$, the same value as $0.5+0.4-0.2$.

独立性还给出并集的捷径。若 $A$ 与 $B$ 独立,则 $P(A\cup B)=1-\big(1-P(A)\big)\big(1-P(B)\big)$,因为“两者都不”是两个补集概率的乘积。对 $P(A)=0.5$、$P(B)=0.4$,得到 $1-0.5\times0.6=0.70$,与 $0.5+0.4-0.2$ 的结果相同。

Independence is not "no relationship I can imagine". It is a property of the probabilities in the model. If trials are draws without replacement from a small group, the product rule does not apply and conditional probabilities are needed, as in Topic 5.3.

独立性不是“我想不出有什么联系”,而是模型中概率的性质。若各次试验是从小群体中不放回地抽取,则乘积规则不适用,需要使用条件概率,如主题 5.3 所示。

Worked examples例题

Worked Example 4.4a: Union with the general addition rule

(i) In the e-reader table of Topic 5.3, find $P(R\text{ or }E)$. (ii) One card is drawn from a standard deck. Find $P(\text{heart or face card})$.

  1. (i) $P(R)=180/300=0.60$, $P(E)=150/300=0.50$, $P(R\text{ and }E)=105/300=0.35$. So $P(R\text{ or }E)=0.60+0.50-0.35=0.75$. Check by counting: $(180+150-105)/300=225/300=0.75$.
  2. (ii) There are $13$ hearts and $12$ face cards (J, Q, K in four suits), and $3$ cards are both (the heart face cards).
  3. $P(\text{heart or face})=\dfrac{13}{52}+\dfrac{12}{52}-\dfrac{3}{52}=\dfrac{22}{52}\approx0.423$.
例题 4.4a:用一般加法规则求并集

(i) 在主题 5.3 的电子阅读器表格中,求 $P(R\text{ or }E)$。(ii) 从一副标准牌中抽一张。求 $P(\text{heart or face card})$。

  1. (i) $P(R)=180/300=0.60$,$P(E)=150/300=0.50$,$P(R\text{ and }E)=105/300=0.35$。所以 $P(R\text{ or }E)=0.60+0.50-0.35=0.75$。计数验证:$(180+150-105)/300=225/300=0.75$。
  2. (ii) 红桃有 $13$ 张,人头牌(四种花色的 J、Q、K)有 $12$ 张,二者兼有的(红桃人头牌)有 $3$ 张。
  3. $P(\text{heart or face})=\dfrac{13}{52}+\dfrac{12}{52}-\dfrac{3}{52}=\dfrac{22}{52}\approx0.423$。
Worked Example 4.4b: Testing for independence

A café records $200$ drinks: in the morning $60$ hot and $40$ cold; in the afternoon $60$ hot and $40$ cold. Are "hot drink" and "morning" independent? Then answer the same question for $R$ and $E$ in the e-reader table.

  1. Café: $P(\text{hot})=120/200=0.60$ and $P(\text{hot}\mid\text{morning})=60/100=0.60$. They are equal, so the events are independent.
  2. Double check with the product: $P(\text{hot and morning})=60/200=0.30=0.60\times0.50$.
  3. E-reader table: $P(R)=0.60$ but $P(R\mid E)=105/150=0.70$. Since $0.70\ne0.60$, $R$ and $E$ are not independent (equivalently $P(R\text{ and }E)=0.35\ne0.60\times0.50=0.30$).
  4. Conclusion in context: in this sample, owning an e-reader is associated with reading more; the café's drink temperature shows no association with time of day.
例题 4.4b:检验独立性

某咖啡馆记录了 $200$ 杯饮品:上午热饮 $60$、冷饮 $40$;下午热饮 $60$、冷饮 $40$。“热饮”与“上午”是否独立?然后对电子阅读器表格中的 $R$ 与 $E$ 回答同样的问题。

  1. 咖啡馆:$P(\text{hot})=120/200=0.60$,$P(\text{hot}\mid\text{morning})=60/100=0.60$。二者相等,所以事件独立。
  2. 用乘积再验证:$P(\text{hot and morning})=60/200=0.30=0.60\times0.50$。
  3. 电子阅读器表格:$P(R)=0.60$,但 $P(R\mid E)=105/150=0.70$。因 $0.70\ne0.60$,$R$ 与 $E$ 不独立(等价地,$P(R\text{ and }E)=0.35\ne0.60\times0.50=0.30$)。
  4. 结合情境的结论:在该样本中,拥有电子阅读器与读书更多相关联;而咖啡馆的饮品冷热与时段没有关联。
Worked Example 4.4c: At least one success in independent trials

A basketball player makes each free throw with probability $0.80$, independently. Find the probability she makes at least one of three shots.

  1. The complement is "misses all three": $P(\text{miss})=0.20$ each time.
  2. By independence $P(\text{three misses})=0.20^{3}=0.008$.
  3. $P(\text{at least one made})=1-0.008=0.992$.
例题 4.4c:独立试验中至少一次成功

一名篮球运动员每次罚球命中的概率为 $0.80$,且各次独立。求她三次罚球至少命中一次的概率。

  1. 补集为“三次全部不中”:每次不中的概率为 $P(\text{miss})=0.20$。
  2. 由独立性,$P(\text{three misses})=0.20^{3}=0.008$。
  3. $P(\text{at least one made})=1-0.008=0.992$。
Worked Example 4.4d: Independence three ways, and a complement

A school has $2000$ students. A synthetic sample of $200$ of them records whether each student is in the band ($B$) and whether each arrived late on one morning ($L$). Decide whether $L$ and $B$ are independent in three ways, then use complements for two further probabilities.

Arrived late on the morning?In the bandNot in the bandTotal
Late243660
On time5684140
Total80120200
  1. Marginal and joint probabilities: $P(L)=60/200=0.30$, $P(B)=80/200=0.40$ and $P(L\cap B)=24/200=0.12$.
  2. Check 1, $P(L\mid B)=P(L)$: among the $80$ band members, $24/80=0.30$, which equals $P(L)=0.30$.
  3. Check 2, $P(B\mid L)=P(B)$: among the $60$ late students, $24/60=0.40$, which equals $P(B)=0.40$.
  4. Check 3, the product: $P(B)\,P(L)=0.40\times0.30=0.12=P(L\cap B)$.
  5. All three checks agree, so $L$ and $B$ are independent. In context: in this sample, band members and other students are late equally often ($30\%$ of each group), so being in the band is not associated with arriving late.
  6. Complement 1, "neither": the probability of not late and not in the band is $1-P(L\cup B)=1-(0.30+0.40-0.12)=1-0.58=0.42$. The table agrees: $84/200=0.42$.
  7. Complement 2, "at least one": suppose the school-wide late rate is also $0.30$ and $3$ students are chosen at random from the $2000$. Three is less than $10\%$ of $2000$, so the 10% condition lets us treat the three as independent. The probability that none is late is $0.70^{3}=0.343$, so the probability that at least one is late is $1-0.343=0.657$.
  8. Why this works: independence means knowing one event leaves the probability of the other unchanged, and each check is that statement in a different form. Counting "at least one" directly means adding many cases; counting "none" is a single product.
例题 4.4d:三种方法检验独立性,并用补集

某校有 $2000$ 名学生。一份合成的 $200$ 人样本记录了每名学生是否参加乐队($B$)以及某天早上是否迟到($L$)。用三种方法判断 $L$ 与 $B$ 是否独立,再用补集求另外两个概率。

当天早上是否迟到?参加乐队不参加乐队合计
迟到243660
准时5684140
合计80120200
  1. 边际与联合概率:$P(L)=60/200=0.30$,$P(B)=80/200=0.40$,$P(L\cap B)=24/200=0.12$。
  2. 检验 1,$P(L\mid B)=P(L)$:在 $80$ 名乐队成员中,$24/80=0.30$,等于 $P(L)=0.30$。
  3. 检验 2,$P(B\mid L)=P(B)$:在 $60$ 名迟到的学生中,$24/60=0.40$,等于 $P(B)=0.40$。
  4. 检验 3,乘积:$P(B)\,P(L)=0.40\times0.30=0.12=P(L\cap B)$。
  5. 三种检验结果一致,所以 $L$ 与 $B$ 独立。结合情境:在该样本中,乐队成员与其他学生迟到的比例相同(两组都是 $30\%$),所以参加乐队与迟到没有关联。
  6. 补集 1,“两者都不”:不迟到且不在乐队的概率为 $1-P(L\cup B)=1-(0.30+0.40-0.12)=1-0.58=0.42$。表格一致:$84/200=0.42$。
  7. 补集 2,“至少一个”:假设全校的迟到率也是 $0.30$,从 $2000$ 名学生中随机选 $3$ 人。三人少于 $2000$ 的 $10\%$,满足 10% 条件,可视三人相互独立。无人迟到的概率为 $0.70^{3}=0.343$,所以至少一人迟到的概率为 $1-0.343=0.657$。
  8. 为什么可行:独立的含义是得知一个事件后另一个事件的概率不变,每种检验都是这一陈述的不同写法。直接数“至少一个”要把许多情形相加;数“一个也没有”只需一个乘积。
Worked Example 4.4e: Three independent sensors

A warehouse has three independent motion sensors that detect an intruder with probabilities $0.9$, $0.8$ and $0.7$. Find the probability that all three detect, that none detects, that at least one detects, and that exactly one detects.

  1. By independence, $P(\text{all three})=0.9\times0.8\times0.7=0.504$.
  2. $P(\text{none})=0.1\times0.2\times0.3=0.006$.
  3. $P(\text{at least one})=1-0.006=0.994$.
  4. Exactly one: the detecting sensor is the first ($0.9\times0.2\times0.3=0.054$), the second ($0.1\times0.8\times0.3=0.024$) or the third ($0.1\times0.2\times0.7=0.014$). These paths are mutually exclusive, so add: $0.054+0.024+0.014=0.092$.
  5. Check: exactly two is $0.9\times0.8\times0.3+0.9\times0.2\times0.7+0.1\times0.8\times0.7=0.216+0.126+0.056=0.398$, and $0.006+0.092+0.398+0.504=1$.
  6. A complete answer states the independence assumption, says why the paths are mutually exclusive, and concludes in context: the system fails to detect an intruder about $0.6\%$ of the time.
例题 4.4e:三个相互独立的传感器

某仓库有三个相互独立的运动传感器,探测到入侵者的概率分别为 $0.9$、$0.8$ 和 $0.7$。求三个都探测到、一个都没探测到、至少一个探测到以及恰好一个探测到的概率。

  1. 由独立性,$P(\text{all three})=0.9\times0.8\times0.7=0.504$。
  2. $P(\text{none})=0.1\times0.2\times0.3=0.006$。
  3. $P(\text{at least one})=1-0.006=0.994$。
  4. 恰好一个:探测到的是第一个($0.9\times0.2\times0.3=0.054$)、第二个($0.1\times0.8\times0.3=0.024$)或第三个($0.1\times0.2\times0.7=0.014$)。这些路径互斥,所以相加:$0.054+0.024+0.014=0.092$。
  5. 验证:恰好两个为 $0.9\times0.8\times0.3+0.9\times0.2\times0.7+0.1\times0.8\times0.7=0.216+0.126+0.056=0.398$,而 $0.006+0.092+0.398+0.504=1$。
  6. 完整的答案要写出独立性假设,说明各路径为何互斥,并结合情境作结论:该系统约有 $0.6\%$ 的时间探测不到入侵者。
Common Mistake: Adding for "or" and assuming independence

Using $P(A)+P(B)$ for "or" when the events overlap, and treating "unrelated-sounding" events as independent without checking the product. Always verify $P(A\cap B)=P(A)P(B)$ with numbers.

常见错误:用加法求“或”并想当然地认为独立

事件有重叠时仍用 $P(A)+P(B)$ 表示“或”;把“听上去无关”的事件当作独立而不用乘积检验。务必用数值验证 $P(A\cap B)=P(A)P(B)$。

Common Mistake: Multiplying by the number of trials

Writing $3\times0.80=2.4$ for "at least one of three free throws" gives an impossible probability, because a probability is never above $1$. The product $np$ is an expected count, not a probability. Use the complement: $1-0.20^{3}=0.992$.

常见错误:用试验次数去乘概率

把“三次罚球至少命中一次”写成 $3\times0.80=2.4$ 会得到不可能的概率,因为概率从不超过 $1$。乘积 $np$ 是期望次数,不是概率。应使用补集:$1-0.20^{3}=0.992$。

AP exam tipAP 考试提示

To show independence in a written answer, give one numerical equality and conclude in context: "$P(R\mid E)=0.70\ne P(R)=0.60$, so reading and owning an e-reader are not independent." A statement without numbers is incomplete.

书面解答中说明独立性时,要写出一个数值等式并结合情境作结论:“$P(R\mid E)=0.70\ne P(R)=0.60$,所以读书与拥有电子阅读器不独立。”没有数值的陈述是不完整的。

Check your understanding自我检测
$P(A)=0.5$, $P(B)=0.4$, $P(A\text{ and }B)=0.2$. Are $A$ and $B$ independent? Find $P(A\text{ or }B)$.$P(A)=0.5$,$P(B)=0.4$,$P(A\text{ 且 }B)=0.2$。$A$ 与 $B$ 是否独立?求 $P(A\text{ 或 }B)$。

$0.5\times0.4=0.2=P(A\text{ and }B)$, so they are independent. $P(A\text{ or }B)=0.5+0.4-0.2=0.7$.

$0.5\times0.4=0.2=P(A\text{ 且 }B)$,所以独立。$P(A\text{ 或 }B)=0.5+0.4-0.2=0.7$。

$P(A)=0.6$, $P(B)=0.3$ and $P(A\text{ or }B)=0.72$. Are $A$ and $B$ independent?$P(A)=0.6$,$P(B)=0.3$,$P(A\text{ 或 }B)=0.72$。$A$ 与 $B$ 是否独立?

$P(A\text{ and }B)=0.6+0.3-0.72=0.18=0.6\times0.3$. Yes, independent.

$P(A\text{ 且 }B)=0.6+0.3-0.72=0.18=0.6\times0.3$。是,独立。

Two independent alarm systems detect a break-in with probabilities $0.9$ and $0.8$. Find the probability at least one detects it.两套相互独立的报警系统探测到入侵的概率分别为 $0.9$ 与 $0.8$。求至少一套探测到的概率。

$1-(0.1)(0.2)=1-0.02=0.98$.

$1-(0.1)(0.2)=1-0.02=0.98$。

Simulation模拟

Learning objectives学习目标
  • Describe a simulation with the five required components: model, digit assignment, trial, repetitions, estimate.
  • Use a random digit table or a calculator command such as randInt to carry out trials.
  • Estimate a probability or a typical count from simulation results.
  • Explain why a simulation gives an estimate, not the exact probability.
  • 写出模拟的五个必要组成部分:模型、数字分配、一次试验、重复次数、估计。
  • 使用随机数表或 randInt 等计算器命令完成试验。
  • 根据模拟结果估计概率或典型的次数。
  • 说明模拟得到的是估计值而非精确概率。

A simulation imitates a random process with a model that has the same probabilities, so that it can be repeated cheaply many times. It is used when an exact calculation is hard or when you want to check one. A complete description has five parts, in order.

模拟用概率相同的模型模仿随机过程,因而可以低成本地重复多次。当精确计算困难,或想检验精确计算时就可使用。完整的描述依次包括五部分。

  1. State the model and its assumptions (for example, each box holds one of 5 prizes with equal probability, independently).
  2. Assign digits so the digit probabilities match the model, and say what to ignore (for example, digits 6 to 9 and 0 are skipped).
  3. Define one trial: what is generated, when it stops, and what is recorded.
  4. Repeat for many trials (state the number).
  5. Estimate with the proportion of trials in which the event occurred, and conclude in context.
  1. 说明模型及其假设(例如,每个盒子独立地等可能含 5 种奖品之一)。
  2. 分配数字,使数字的概率与模型一致,并说明忽略哪些数字(例如跳过 6 到 9 和 0)。
  3. 定义一次试验:生成什么、何时停止、记录什么。
  4. 重复多次试验(写明次数)。
  5. 估计:用事件发生的试验比例估计,并结合情境作结论。
Must know

Digits must be assigned in proportion to the probabilities. A probability such as $0.35$ needs two-digit numbers: let $00$ to $34$ mean the event and $35$ to $99$ mean not. If a trial must not repeat an outcome (sampling without replacement), say that repeated numbers are ignored.

必备知识

数字的分配必须与概率成比例。概率为 $0.35$ 之类需用两位数:令 $00$ 到 $34$ 表示事件,$35$ 到 $99$ 表示非事件。若一次试验中结果不能重复(不放回抽样),要说明忽略重复出现的数字。

Calculator: TI-84 and TI-Nspire

TI-84: press MATH, arrow to PRB, choose randInt(. Type randInt(1,5,10) and ENTER to get 10 integers from 1 to 5. To seed the generator, type a number, then STO▶, then MATH ▶ PRB rand (for example 2026▶rand). For draws with no repeats use randIntNoRep(.

TI-Nspire: in a Calculator page use menu > Probability > Random > Integer, giving randInt(1,5,10). Use RandSeed 2026 to fix the seed.

计算器:TI-84 与 TI-Nspire

TI-84:按 MATH,移到 PRB,选 randInt(。输入 randInt(1,5,10) 并按 ENTER,得到 10 个 1 到 5 的整数。设定随机种子:先输入数字,按 STO▶,再选 MATH ▶ PRB 中的 rand(例如 2026▶rand)。不重复抽取用 randIntNoRep(。

TI-Nspire:在 Calculator 页面使用 menu > Probability > Random > Integer,得到 randInt(1,5,10)。用 RandSeed 2026 固定种子。

Choosing and checking a simulation选择并检验模拟

Designing one trial is the hard part. Ask what is random, what a single trial consists of, and when it stops. For "at least $8$ of $10$ shots", one trial is ten digits and a count. For "the first success", one trial stops at the first success and records the number of attempts. Record in each trial exactly the quantity the question needs, and nothing else.

设计一次试验是难点。要问清什么是随机的、一次试验由什么构成、何时停止。对“$10$ 次投篮中至少 $8$ 次”,一次试验就是十个数字再数一个个数。对“第一次成功”,一次试验在第一次成功时停止并记录尝试次数。每次试验只记录题目所需要的那个量,不要多记。

Digit rules must give every outcome its right share. For three outcomes with probabilities $0.5$, $0.3$ and $0.2$, one digit is enough: $0$ to $4$, $5$ to $7$ and $8$ to $9$. A probability such as $0.35$ or $0.125$ needs two or three digits. When the sample is drawn without replacement, such as $3$ different students out of $10$, label the units $0$ to $9$ and ignore a digit that repeats within the trial.

数字规则必须让每个结果得到恰当的份额。对概率为 $0.5$、$0.3$、$0.2$ 的三个结果,一位数字就够了:$0$ 到 $4$、$5$ 到 $7$、$8$ 到 $9$。像 $0.35$ 或 $0.125$ 这样的概率需要两位或三位数字。不放回抽样时(例如从 $10$ 名学生中抽 $3$ 名不同的学生),把各个单位标为 $0$ 到 $9$,并忽略同一次试验中重复出现的数字。

More trials give a steadier estimate, because of the law of large numbers, but only for the model that was written down. If the model's probabilities are wrong, or independence was assumed where it fails, a million trials still estimates the wrong probability. When an exact answer is available, compare the simulated proportion with it to see how large the typical gap is.

试验次数越多,估计越稳定,这是大数定律的结果,但只针对所写下的那个模型。若模型的概率有误,或在不独立时假设了独立,即使做一百万次试验,估计的仍是错误的概率。如果有精确答案,就把模拟比例与它比较,看一般的差距有多大。

Worked examples例题

Worked Example 4.5a: How many cereal boxes to collect all five prizes?

Each cereal box contains one of $5$ prizes, equally likely and independent. Design and carry out $10$ trials of a simulation to estimate the average number of boxes needed to collect all $5$ prizes.

  1. Model: every box independently holds prize $1$ to $5$ with probability $0.2$ each.
  2. Digits: use randInt(1,5); the digit is the prize in that box.
  3. Trial: generate digits one at a time until all of $1,2,3,4,5$ have appeared; record the number of digits. Trial $1$ produced $1,3,5,5,1,2,5,5,5,4$, so all five prizes needed $10$ boxes.
  4. Ten trials gave: $10,\,11,\,12,\,9,\,28,\,15,\,12,\,7,\,9,\,9$ boxes (computer-generated digits).
  5. Estimate: the mean is $(10+11+12+9+28+15+12+7+9+9)/10=122/10=12.2$ boxes. Two of the $10$ trials needed more than $12$ boxes, an estimated probability of $0.20$.
  6. Conclusion: a child should expect to buy roughly $12$ boxes. The exact long-run mean is $5(1+\tfrac12+\tfrac13+\tfrac14+\tfrac15)\approx11.4$, so ten trials land close, but a different ten trials would give a different estimate.
例题 4.5a:集齐五种奖品需要买几盒麦片?

每盒麦片含 $5$ 种奖品之一,等可能且相互独立。设计并完成 $10$ 次试验的模拟,估计集齐全部 $5$ 种奖品平均需要买几盒。

  1. 模型:每盒独立地以各 $0.2$ 的概率含奖品 $1$ 到 $5$。
  2. 数字:用 randInt(1,5);数字即该盒中的奖品。
  3. 一次试验:逐个生成数字,直到 $1,2,3,4,5$ 全部出现;记录数字个数。第 $1$ 次试验生成 $1,3,5,5,1,2,5,5,5,4$,集齐五种奖品需 $10$ 盒。
  4. 十次试验结果:$10,\,11,\,12,\,9,\,28,\,15,\,12,\,7,\,9,\,9$ 盒(计算机生成的数字)。
  5. 估计:均值为 $(10+11+12+9+28+15+12+7+9+9)/10=122/10=12.2$ 盒。$10$ 次试验中有两次需要多于 $12$ 盒,估计概率为 $0.20$。
  6. 结论:孩子大约要买 $12$ 盒。精确的长期均值为 $5(1+\tfrac12+\tfrac13+\tfrac14+\tfrac15)\approx11.4$,所以十次试验的结果相当接近,但换十次试验会得到不同的估计。
Worked Example 4.5b: A 70% free-throw shooter

A player makes each free throw with probability $0.70$, independently. Use $20$ simulated sets of $10$ shots to estimate the probability she makes at least $8$ of the $10$.

  1. Digits: one random digit per shot; $0$ to $6$ means made ($7$ of $10$ digits, probability $0.70$) and $7$ to $9$ means missed.
  2. Trial: generate $10$ digits and count the made shots. For trial $1$ the digits $4,0,7,0,8,5,3,7,7,8$ give $5$ made.
  3. Twenty trials (made out of 10): $5,5,6,9,6,6,7,7,9,5,7,7,8,7,8,6,5,9,5,8$.
  4. Estimate: $8$ or more occurred in $6$ trials ($9,9,8,8,9,8$), so the estimate is $6/20=0.30$.
  5. Comparison: A later unit on random variables computes the exact probability $0.3828$. With only $20$ trials the estimate typically misses by about $\sqrt{0.38\times0.62/20}\approx0.11$, so $0.30$ is unremarkable.
例题 4.5b:命中率 70% 的罚球手

一名球员每次罚球命中概率为 $0.70$,各次独立。用 $20$ 组、每组 $10$ 次投篮的模拟,估计她 $10$ 次中至少命中 $8$ 次的概率。

  1. 数字:每次投篮一个随机数字;$0$ 到 $6$ 表示命中($10$ 个数字中占 $7$ 个,概率 $0.70$),$7$ 到 $9$ 表示未中。
  2. 一次试验:生成 $10$ 个数字并数出命中数。试验 $1$ 的数字 $4,0,7,0,8,5,3,7,7,8$ 对应命中 $5$ 次。
  3. 二十次试验(每组 10 投的命中数):$5,5,6,9,6,6,7,7,9,5,7,7,8,7,8,6,5,9,5,8$。
  4. 估计:有 $6$ 组命中 $8$ 次或更多($9,9,8,8,9,8$),所以估计值为 $6/20=0.30$。
  5. 对比:后续的随机变量单元会算出精确概率 $0.3828$。仅 $20$ 次试验时,估计值通常偏差约 $\sqrt{0.38\times0.62/20}\approx0.11$,因此 $0.30$ 并不反常。
Worked Example 4.5c: A committee drawn without replacement

A club of $10$ students has $4$ seniors. A committee of $3$ is chosen at random. Describe and carry out $10$ trials of a simulation to estimate the probability that the committee has at least $2$ seniors.

  1. Model: every group of $3$ different students is equally likely to be the committee.
  2. Digits: label the students $0$ to $9$, with $0$ to $3$ the seniors.
  3. Trial: read random digits, ignoring any digit already chosen, until $3$ different digits are chosen; record how many of them are in $0$ to $3$.
  4. Ten trials (digits chosen, then number of seniors): $945\to0$, $807\to1$, $302\to3$, $157\to1$, $368\to1$, $193\to2$, $036\to2$, $426\to1$, $219\to2$, $972\to1$ (computer-generated digits).
  5. Estimate: at least $2$ seniors occurred in $4$ trials ($302$, $193$, $036$, $219$), so the estimate is $4/10=0.40$.
  6. Check: there are $120$ equally likely committees; $36$ have exactly $2$ seniors and $4$ have all $3$, so the exact probability is $40/120\approx0.333$. The estimate differs because only $10$ trials were run.
  7. A complete answer states the model, digit rule, trial and stopping rule, number of repetitions and estimate, and concludes in context: about $40\%$ of the simulated committees had at least $2$ seniors.
例题 4.5c:不放回地选委员会

某社团有 $10$ 名学生,其中 $4$ 名高三学生。随机选出 $3$ 人组成委员会。描述并完成 $10$ 次试验的模拟,估计委员会中至少有 $2$ 名高三学生的概率。

  1. 模型:任意由 $3$ 名不同学生组成的小组成为委员会的可能性相同。
  2. 数字:把学生标为 $0$ 到 $9$,其中 $0$ 到 $3$ 是高三学生。
  3. 一次试验:读取随机数字,忽略已选过的数字,直到选出 $3$ 个不同的数字;记录其中落在 $0$ 到 $3$ 的个数。
  4. 十次试验(所选数字,然后是高三学生人数):$945\to0$,$807\to1$,$302\to3$,$157\to1$,$368\to1$,$193\to2$,$036\to2$,$426\to1$,$219\to2$,$972\to1$(计算机生成的数字)。
  5. 估计:至少有 $2$ 名高三学生的试验有 $4$ 次($302$、$193$、$036$、$219$),所以估计值为 $4/10=0.40$。
  6. 检验:等可能的委员会共有 $120$ 个;恰有 $2$ 名高三学生的有 $36$ 个,$3$ 名全是的有 $4$ 个,所以精确概率为 $40/120\approx0.333$。估计值不同,是因为只做了 $10$ 次试验。
  7. 完整的答案要写出模型、数字规则、一次试验及停止规则、重复次数和估计值,并结合情境作结论:约有 $40\%$ 的模拟委员会含至少 $2$ 名高三学生。
AP FRQ response model: designing a simulation

A cereal company puts one of $5$ equally likely prizes in each box. Describe a simulation to estimate the probability that a child needs more than $10$ boxes to collect all $5$ prizes, and say how the estimate is found.

What a complete answer states

  1. Model and assumptions: each box independently contains one of $5$ prizes, probability $0.2$ each.
  2. Digit assignment: use randInt(1,5), with each integer a prize.
  3. One trial: generate integers until all of $1$ to $5$ appear; record the number of boxes. Say the stopping rule.
  4. Repeat a stated large number of trials (for example $100$).
  5. Estimate: the number of trials that needed more than $10$ boxes divided by the number of trials (in the ten trials of Example 4.5a, $5$ of $10$, an estimate of $0.5$). State the answer in context.
AP 简答题答题模型:设计模拟

某麦片公司在每盒中等可能地放入 $5$ 种奖品之一。描述一个模拟,估计孩子集齐全部 $5$ 种奖品需要多于 $10$ 盒的概率,并说明如何得到估计值。

完整答案要点

  1. 模型与假设:每盒独立地含 $5$ 种奖品之一,各 $0.2$ 的概率。
  2. 数字分配:用 randInt(1,5),每个整数代表一种奖品。
  3. 一次试验:生成整数直到 $1$ 至 $5$ 全部出现;记录盒数。说明停止规则。
  4. 重复大量次数(例如 $100$ 次)。
  5. 估计:需要多于 $10$ 盒的试验数除以试验总数(例 4.5a 的十次试验中为 $10$ 次里有 $5$ 次,估计为 $0.5$)。并结合情境表述答案。
Common Mistake: A vague simulation design

Assigning digits that do not match the probability (for example one digit per prize when there are $6$ prizes), failing to say how a trial stops, or reporting a simulation proportion as if it were the exact probability.

常见错误:模拟设计含糊

数字分配与概率不符(例如有 $6$ 种奖品却每种奖品只分一个数字)、没有说明一次试验如何停止,或把模拟得到的比例当作精确概率。

Common Mistake: Letting a digit repeat in a draw without replacement

If a trial must choose $3$ different students, a digit that appears twice has to be skipped. Counting the same student twice creates a committee that cannot happen, and it distorts the estimate. Say "ignore repeated digits" in the description of the trial.

常见错误:不放回抽取时允许数字重复

若一次试验要选出 $3$ 名不同的学生,重复出现的数字必须跳过。把同一名学生算两次,会产生不可能出现的委员会,并扭曲估计值。在试验的描述中要写明“忽略重复的数字”。

AP exam tipAP 考试提示

A complete description has five things: model, digit assignment, a clearly defined trial, a stated number of repetitions, and how the estimate is computed. Write them as labeled steps; a result without a described method is incomplete.

完整的描述包含五点:模型、数字分配、清楚定义的一次试验、说明重复次数,以及估计值如何计算。按步骤加标签书写;只有结果而没有方法描述是不完整的。

Check your understanding自我检测
After $20$ trials a simulation estimates a probability as $0.30$. Can we conclude the true probability is $0.30$? How could the estimate be improved?$20$ 次试验的模拟把概率估计为 $0.30$。能否断定真实概率为 $0.30$?如何改进估计?

No. A simulation estimate varies from run to run. Using many more trials makes the estimate more stable; it cannot repair a model that is wrong.

不能。模拟估计在不同运行间会变化。增加试验次数可使估计更稳定,但无法纠正错误的模型。

How would you assign two-digit random numbers to an event with probability $0.35$?如何用两位随机数表示概率为 $0.35$ 的事件?

Let $00$ to $34$ (35 of the 100 two-digit numbers) represent the event and $35$ to $99$ represent the event not occurring.

令 $00$ 到 $34$(100 个两位数中的 35 个)表示事件发生,$35$ 到 $99$ 表示不发生。

A simulation of "at least one $6$ in four rolls of a die" has $52$ successes in $100$ trials. Compare with the exact value.“掷四次骰子至少出现一个 $6$”的模拟在 $100$ 次试验中成功 $52$ 次。与精确值比较。

Estimate $52/100=0.52$. Exact: $1-(5/6)^4\approx0.518$. They are very close.

估计值 $52/100=0.52$。精确值:$1-(5/6)^4\approx0.518$。二者非常接近。

Flashcards闪卡

Select a card to reveal the answer.

点击卡片查看答案。

Unit quiz单元自测

1. Events $A$ and $B$ are independent with $P(A)=0.4$ and $P(B)=0.5$. What is $P(A\text{ or }B)$?

Answer: B. Independence gives $P(A\text{ and }B)=0.4\times0.5=0.20$, so $P(A\text{ or }B)=0.4+0.5-0.2=0.70$. Choice A forgets the overlap.

1. 事件 $A$ 与 $B$ 独立,$P(A)=0.4$,$P(B)=0.5$。$P(A\text{ 或 }B)$ 是多少?

答案:B。独立给出 $P(A\text{ 且 }B)=0.4\times0.5=0.20$,所以 $P(A\text{ 或 }B)=0.4+0.5-0.2=0.70$。选项 A 忘记扣除重叠部分。

2. Events $A$ and $B$ have $P(A)=0.5$ and $P(B)=0.3$, and both occur together with probability $0.1$. What is the probability that $A$ or $B$ occurs?

Answer: D. The general addition rule gives $0.5+0.3-0.1=0.70$. Choice A forgets to subtract the overlap.

2. 事件 $A$ 与 $B$ 满足 $P(A)=0.5$,$P(B)=0.3$,二者同时发生的概率为 $0.1$。$A$ 或 $B$ 发生的概率是多少?

答案:D。一般加法规则给出 $0.5+0.3-0.1=0.70$。选项 A 忘记减去重叠部分。

3. A player makes each shot with probability $0.6$, independently. What is the probability she makes at least one of $4$ shots?

Answer: A. Use the complement: all four miss with probability $0.4^{4}=0.0256$, so at least one is made with probability $1-0.0256=0.9744$. Choice B is all four made.

3. 一名球员每次投篮命中的概率为 $0.6$,各次独立。她 $4$ 次投篮至少命中一次的概率是多少?

答案:A。用补集:四次全不中的概率为 $0.4^{4}=0.0256$,所以至少命中一次的概率为 $1-0.0256=0.9744$。选项 B 是四次全中。

4. Events $A$ and $B$ are mutually exclusive with $P(A)=0.3$ and $P(B)=0.4$. Which statement is correct?

Answer: C. Mutually exclusive events with positive probabilities are never independent: the probability both occur is $0$, not $0.3\times0.4=0.12$.

4. 事件 $A$ 与 $B$ 互斥,$P(A)=0.3$,$P(B)=0.4$。下列哪项正确?

答案:C。概率为正的互斥事件绝不独立:二者同时发生的概率为 $0$,而不是 $0.3\times0.4=0.12$。

5. In the e-reader table of Topic 5.3, a student is chosen who does not read a book each month. What is the probability this student owns an e-reader?

Answer: D. Restrict to the $120$ students who do not read; $45$ of them own an e-reader: $45/120=0.375$. Choice A divides by the grand total $300$.

5. 在主题 5.3 的电子阅读器表格中,选出一名每月不读书的学生。这名学生拥有电子阅读器的概率是多少?

答案:D。只看 $120$ 名不读书的学生,其中 $45$ 人拥有电子阅读器:$45/120=0.375$。选项 A 用总计 $300$ 作分母。

6. A box comes from factory X with probability $0.6$ and from factory Y with probability $0.4$. The defect rate is $2\%$ for X and $5\%$ for Y. What is the probability that a randomly chosen box is defective?

Answer: A. Multiply along each path and add: $0.6\times0.02+0.4\times0.05=0.012+0.020=0.032$. Choice B adds the two rates without weighting them.

6. 一个盒子以 $0.6$ 的概率来自 X 厂,以 $0.4$ 的概率来自 Y 厂。X 厂的次品率为 $2\%$,Y 厂为 $5\%$。随机取一个盒子,它是次品的概率是多少?

答案:A。沿每条路径相乘再相加:$0.6\times0.02+0.4\times0.05=0.012+0.020=0.032$。选项 B 把两个次品率不加权直接相加。

7. Of $100$ students, $40$ take Spanish; $20$ of those also play chess, and $50$ of all $100$ play chess. What is the correct conclusion about taking Spanish and playing chess?

Answer: A. The probability of chess among Spanish students is $20/40=0.50$, which equals the overall probability $50/100=0.50$. Check: $0.40\times0.50=0.20=20/100$.

7. $100$ 名学生中,$40$ 人学西班牙语;其中 $20$ 人也下国际象棋,$100$ 人中共有 $50$ 人下国际象棋。关于学西班牙语与下国际象棋,哪个结论正确?

答案:A。学西班牙语的学生中下国际象棋的概率为 $20/40=0.50$,等于总体概率 $50/100=0.50$。验证:$0.40\times0.50=0.20=20/100$。

8. A simulation of an event runs $40$ trials and the event occurs in $14$ of them. Which statement is best?

Answer: B. The estimate is $14/40=0.35$. A simulation gives an estimate that varies from run to run, not the exact probability.

8. 一个模拟进行了 $40$ 次试验,事件在其中 $14$ 次发生。哪项陈述最恰当?

答案:B。估计值为 $14/40=0.35$。模拟给出的是随每次运行而变化的估计,而不是精确概率。

9. A fair coin has landed heads $6$ times in a row. Which statement about the next flip is correct?

Answer: C. Flips are independent, so the coin has no memory and the next flip is still $0.5$ for heads. Choice D is the probability of six heads in a row before any flip is made, not of one more head after the streak.

9. 一枚公平硬币已连续 $6$ 次正面朝上。关于下一次抛掷,哪项陈述正确?

答案:C。 各次抛掷相互独立,硬币没有记忆,下一次正面的概率仍是 $0.5$。选项 D 是尚未抛掷之前连续六次正面的概率,不是连续出现后再出现一次正面的概率。

10. In a synthetic screening program, $2\%$ of people have a condition. The test is positive for $95\%$ of people with the condition and for $10\%$ of people without it. A person tests positive. What is the probability the person has the condition?

Answer: D. $P(+)=0.02\times0.95+0.98\times0.10=0.019+0.098=0.117$, so $P(D\mid+)=0.019/0.117\approx0.162$. Choice A is $P(+)$, choice B is $P(+\mid D)$ and choice C is the joint probability $P(D\cap+)$.

10. 在一个合成的筛查项目中,$2\%$ 的人患有某种状况。患病者检测呈阳性的比例为 $95\%$,未患病者呈阳性的比例为 $10\%$。某人检测呈阳性。此人患病的概率是多少?

答案:D。 $P(+)=0.02\times0.95+0.98\times0.10=0.019+0.098=0.117$,所以 $P(D\mid+)=0.019/0.117\approx0.162$。选项 A 是 $P(+)$,选项 B 是 $P(+\mid D)$,选项 C 是联合概率 $P(D\cap+)$。

11. A game is won with probability $0.2$ each time, independently. What is the probability of winning at least once in $3$ plays?

Answer: B. Use the complement: losing all three has probability $0.8^{3}=0.512$, so at least one win has probability $1-0.512=0.488$. Choice A is $3\times0.2$, an expected count, and choice C is the probability of no wins.

11. 某游戏每次获胜的概率为 $0.2$,各次独立。玩 $3$ 次至少获胜一次的概率是多少?

答案:B。 用补集:三次全输的概率为 $0.8^{3}=0.512$,所以至少赢一次的概率为 $1-0.512=0.488$。选项 A 是 $3\times0.2$,是期望次数;选项 C 是一次都没赢的概率。

12. Outcome A has probability $0.5$, outcome B has $0.3$ and outcome C has $0.2$. Which assignment of a single random digit matches these probabilities?

Answer: A. Five, three and two of the ten digits give $0.5$, $0.3$ and $0.2$. Choice B gives $0.6, 0.3, 0.1$, choice C gives $0.5, 0.4, 0.1$, and choice D makes the three outcomes equally likely.

12. 结果 A 的概率为 $0.5$,B 为 $0.3$,C 为 $0.2$。下列哪种对单个随机数字的分配与这些概率相符?

答案:A。 十个数字中分别取五个、三个和两个,得到 $0.5$、$0.3$、$0.2$。选项 B 给出 $0.6, 0.3, 0.1$,选项 C 给出 $0.5, 0.4, 0.1$,选项 D 使三个结果等可能。