跳到主要内容

概率与统计1

A-Level 数学 · 第 5 主题

训练
讲义 词汇表

这份讲义涵盖主题 5:概率统计(Probability & Statistics)1。它是关于描述数据、计数选择,以及算出事件的机会。

5.1

数据的表示

大纲
Candidates should be able to: Notes and examples
• select a suitable way of presenting raw statistical data, and discuss advantages and/or disadvantages that particular representations may have
• draw and interpret stem-and-leaf diagrams, box-and-whisker plots, histograms and cumulative frequency graphs Including back-to-back stem-and-leaf diagrams.
• understand and use different measures of central tendency (mean, median, mode) and variation (range, interquartile range, standard deviation) e.g. in comparing and contrasting sets of data.
• use a cumulative frequency graph e.g. to estimate medians, quartiles, percentiles, the proportion of a distribution above (or below) a given value, or between two values.
• calculate and use the mean and standard deviation of a set of data (including grouped data) either from the data itself or from given totals $\Sigma x$ and $\Sigma x^2$, or coded totals $\Sigma(x - a)$ and $\Sigma(x - a)^2$, and use such totals in solving problems which may involve up to two data sets.

来源:剑桥国际大纲

选择一个适合数据的图。你应当能够画和读:

  • 一个茎叶图(stem-and-leaf diagram,保留原始值并显示形状);两个数据集用一个背靠背(back-to-back)版本比较——一个共享的中央茎,一个数据集的叶向左增大而另一个向右,这样你能一眼比较它们的中位数和离散程度;
  • 一个箱线图(box-and-whisker plot,显示最低值、三个四分位数和最高值);
  • 一个直方图(histogram,用于分组数据,每个条的面积显示频数);
  • 一个累积频数(cumulative frequency)图(累加的总数,用来估计中位数和四分位数)。
一条 S 形的累积频数曲线,虚线在总频数的一半处读出中位数
一条累积频数曲线是 S 形的;在总频数的一半处横过读中位数,在四分之一和四分之三处读四分位数
一个箱线图,须到最低和最高值,一个箱是四分位数
箱跨越四分位数 $Q_1$$Q_3$;须到达最低和最高值。

Averages and spread

一个集中趋势(measure of central tendency)是一个单一的"中间"值:

  • 平均数(mean)$\bar{x} = \dfrac{\sum x}{n}$(平均);
  • 中位数(median,数据按顺序时的中间值);
  • 众数(mode,最常见的值)。

一个离散程度(variation)的量度显示数据铺开多少:

  • 极差(range of data,最高 $-$ 最低);
  • 四分位距(interquartile range,上四分位数 $-$ 下四分位数);
  • 标准差(standard deviation)$\sigma = \sqrt{\dfrac{\sum x^2}{n} - \bar{x}^2}$

你常常从总数 $\sum x$$\sum x^2$ 工作。标准差的平方是方差(variance)。

例题。 对于 $10$ 个值,$\sum x = 50$$\sum x^2 = 300$。求平均数和标准差。

$$\bar{x} = \frac{50}{10} = 5, \qquad \sigma = \sqrt{\frac{300}{10} - 5^2} = \sqrt{30 - 25} = \sqrt{5} = 2.24.$$

编码(coding)使大数字更容易。用一个方便的假定平均数(assumed mean)$a$,把每个值换成 $t=x-a$。那么 $\bar{x}=a+\bar{t}$,而标准差不变(把每个值平移不改变数据的离散)。所以从编码后的总和 $\sum(x-a)$$\sum(x-a)^2$ 你直接得到 $\bar x$$\sigma$,而两个数据集能通过它们编码后的总和比较。

探索

Spread and the bell

P(−k < Z < k)

Spread is measured in standard deviations — about 68% of data lies within 1 sd, 95% within 2.

词汇表 训练
英文 中文 拼音
stem-and-leaf diagram 茎叶图 jīng yè tú
back-to-back 背靠背 bèi kào bèi
box-and-whisker plot 箱线图 xiāng xiàn tú
histogram 直方图 zhí fāng tú
cumulative frequency 累积频数 lěi jī pín shuò
measure of central tendency 集中趋势 jí zhōng qū shì
mean 平均数 píng jūn shù
median 中位数 zhōng wèi shù
mode 众数 zhòng shù
variation 离散程度 lí sàn chéng dù
range (of data) 极差 jí chà
interquartile range 四分位距 sì fēn wèi jù
standard deviation 标准差 biāo zhǔn chà
variance 方差 fāng chà
Coding 编码 biān mǎ
assumed mean 假定平均数 jiǎ dìng píng jūn shù
central tendency 集中趋势 jí zhōng qū shì
练习卷
5.2

排列与组合

大纲
Candidates should be able to: Notes and examples
• understand the terms permutation and combination, and solve simple problems involving selections
• solve problems about arrangements of objects in a line, including those involving – repetition (e.g. the number of ways of arranging the letters of the word ‘NEEDLESS’) – restriction (e.g. the number of ways several people can stand in a line if two particular people must, or must not, stand next to each other). Questions may include cases such as people sitting in two (or more) rows. Questions about objects arranged in a circle will not be included.

来源:剑桥国际大纲

一个排列(permutation)是顺序重要的一个安排;一个组合(combination)是顺序不重要的一个选择。这些数是

$${}^nP_r = \frac{n!}{(n-r)!}, \qquad {}^nC_r = \binom{n}{r} = \frac{n!}{r!\,(n-r)!}.$$
要在一条线上安排物体,当一些被重复时,除以每个重复计数的阶乘。

排列:顺序重要(AB ≠ BA)。组合:顺序不重要({A,B} = {B,A})
顺序对一个排列重要,但对一个组合不重要

例题。 单词 NEEDLESS 的字母有多少个不同的安排?

$8$ 个字母,E 重复 $3$ 次而 S 重复 $2$ 次:

$$\frac{8!}{3!\,2!} = \frac{40320}{6 \times 2} = 3360.$$

Arranging 3 of 4 objects: 4×3×2 = 24 = ⁴P₃; combinations divide by r!
nPr = n!/(n−r)!; nCr = nPr/r!
探索

Permutation or combination lab

Choose whether order matters in a counting problem.

词汇表 训练
英文 中文 拼音
permutation 排列 pái liè
combination 组合 zǔ hé
5.3

概率

大纲
Candidates should be able to: Notes and examples
evaluate probabilities in simple cases by means of enumeration of equiprobable elementary events, or by calculation using permutations or combinations e.g. the total score when two fair dice are thrown. e.g. drawing balls at random from a bag containing balls of different colours.
use addition and multiplication of probabilities, as appropriate, in simple cases Explicit use of the general formula $\text{P}(A \cup B) = \text{P}(A) + \text{P}(B) - \text{P}(A \cap B)$ is not required.
understand the meaning of exclusive and independent events, including determination of whether events $A$ and $B$ are independent by comparing the values of $\text{P}(A \cap B)$ and $\text{P}(A) \times \text{P}(B)$
calculate and use conditional probabilities in simple cases. e.g. situations that can be represented by a sample space of equiprobable elementary events, or a tree diagram. The use of $\text{P}(A|B) = \frac{\text{P}(A \cap B)}{\text{P}(B)}$ may be required in simple cases.

来源:剑桥国际大纲

一堆多面体骰子
骰子:概率的一个熟悉的起点。

通过计数等可能的结果、或通过用排列和组合来求一个概率。用这些规则组合概率:

  • 对"或"用加法:$P(A \cup B) = P(A) + P(B) - P(A \cap B)$;
  • 当事件独立时对"且"用乘法:$P(A \cap B) = P(A)\,P(B)$
一个矩形里两个重叠的圆,重叠部分被着色为交集
两个圆的重叠是 $A\cap B$;加法规则减去它一次,所以它不被数两次。

若两个事件不能都发生,它们是互斥事件(mutually exclusive events);若一个发生不改变另一个的机会,它们是独立事件(independent events)。要测试独立性,检查是否 $P(A \cap B) = P(A)\times P(B)$。一个条件概率(conditional probability)是在 $B$ 已发生的情况下 $A$ 的机会:$P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}$

例题。 事件有 $P(A) = 0.5$$P(B) = 0.4$$P(A \cap B) = 0.2$$A$$B$ 独立吗?

测试:$P(A)\times P(B) = 0.5 \times 0.4 = 0.2 = P(A \cap B)$。这些值相等,所以 $A$$B$ 独立。

探索

Conditional probability

Change the probabilities and read the tree. This is how P(A and B) and conditional probability fit together.

词汇表 训练
英文 中文 拼音
mutually exclusive events 互斥事件 hù chì shì jiàn
independent events 独立事件 dú lì shì jiàn
conditional probability 条件概率 tiáo jiàn gài lǜ
5.4

离散随机变量

大纲
Candidates should be able to: Notes and examples
draw up a probability distribution table relating to a given situation involving a discrete random variable $X$, and calculate $\text{E}(X)$ and $\text{Var}(X)$
use formulae for probabilities for the binomial and geometric distributions, and recognise practical situations where these distributions are suitable models Including the notations $\text{B}(n, p)$ and $\text{Geo}(p)$. $\text{Geo}(p)$ denotes the distribution in which $p_r = p(1 - p)^{r-1}$ for $r = 1, 2, 3, \dots$.
use formulae for the expectation and variance of the binomial distribution and for the expectation of the geometric distribution. Proofs of formulae are not required.

来源:剑桥国际大纲

一个离散型随机变量(discrete random variable)$X$ 取分开的值,每个带一个概率。把它们列在一个概率分布表(probability distribution table)里;概率必须加起来为 $1$。然后期望(expectation,平均)和方差

$$E(X) = \sum x\,P(X = x), \qquad \mathrm{Var}(X) = \sum x^2\,P(X = x) - \big(E(X)\big)^2.$$

两个特殊的模型:

  • 二项分布(binomial distribution)$X \sim B(n, p)$,用于 $n$ 个独立试验中成功的数目:$P(X = r) = \binom{n}{r}p^r(1-p)^{n-r}$,带 $E(X) = np$$\mathrm{Var}(X) = np(1-p)$;
  • 几何分布(geometric distribution),用于第一次成功发生的试验:$P(X = r) = (1-p)^{r-1}p$,带 $E(X) = \dfrac{1}{p}$

例题。 $X \sim B(10, 0.3)$。求 $P(X = 2)$$E(X)$

$$P(X = 2) = \binom{10}{2}(0.3)^2(0.7)^8 = 45 \times 0.09 \times 0.05765 = 0.233, \qquad E(X) = 10 \times 0.3 = 3.$$

二项分布 B(10, 0.3) 的一个条形图,平均值标在 3
分布 $B(10,0.3)$:每个条是 $P(X=r)$,聚集在平均值 $np=3$ 周围。
探索

A discrete distribution

Change n and p for a binomial distribution and watch the bars — the probability of each number of successes.

词汇表 训练
英文 中文 拼音
discrete random variable 离散型随机变量 lí sàn xíng suí jī biàn liàng
probability distribution table 概率分布表 gài lǜ fēn bù biǎo
expectation 期望 qī wàng
binomial distribution 二项分布 èr xiàng fēn bù
geometric distribution 几何分布 jǐ hé fēn bù
5.5

正态分布

大纲
Candidates should be able to: Notes and examples
understand the use of a normal distribution to model a continuous random variable, and use normal distribution tables Sketches of normal curves to illustrate distributions or probabilities may be required.
solve problems concerning a variable $X$, where $X \sim N(\mu, \sigma^2)$, including: – finding the value of $P(X > x_1)$, or a related probability, given the values of $x_1$, $\mu$, $\sigma$. – finding a relationship between $x_1$, $\mu$ and $\sigma$ given the value of $P(X > x_1)$ or a related probability For calculations involving standardisation, full details of the working should be shown. e.g. $Z = \frac{(X - \mu)}{\sigma}$
recall conditions under which the normal distribution can be used as an approximation to the binomial distribution, and use this approximation, with a continuity correction, in solving problems. $n$ sufficiently large to ensure that both $np > 5$ and $nq > 5$.

来源:剑桥国际大纲

68-95-99.7 规则
一个高尔顿板,球构成一个钟形
一个高尔顿板:球穿过钉子下落堆积成钟形的正态分布。

正态分布(normal distribution)以一个对称的钟形为一个连续型随机变量(continuous random variable)建模。写 $X \sim N(\mu, \sigma^2)$,其中 $\mu$ 是平均值而 $\sigma$ 是标准差。要用表,通过标准化(standardisation)转换到变量 $Z \sim N(0, 1)$:

$$Z = \frac{X - \mu}{\sigma}.$$

然后 $P(X < x) = P\!\left(Z < \dfrac{x - \mu}{\sigma}\right)$,你从正态表 $\Phi$ 读它。

一条以平均值为中心的对称钟形曲线,到一个值 x 的面积被着色
一个正态概率是钟形曲线下的一个面积;标准化把它重新缩放到 $Z\sim N(0,1)$

$n$ 大时,正态分布也是二项的一个好近似(approximation)。因为你用一个连续变量替换一个离散变量,应用一个连续性校正(continuity correction,调整 $0.5$)。

一个二项分布的条,一条匹配的正态曲线画在它们上面
$n$ 大时,二项的条跟随一条同样平均值和方差的正态曲线。

例题。 米袋有质量 $X \sim N(\mu, 0.14^2)$。给定 $P(X < 1.48) = 0.22$,求 $\mu$

从表,$P(Z < z) = 0.22$ 给出 $z = -0.772$。所以

$$\frac{1.48 - \mu}{0.14} = -0.772 \;\Rightarrow\; \mu = 1.48 + 0.772 \times 0.14 = 1.59\ \text{kg (3 s.f.)}.$$

探索

The normal distribution

Shade the area to find a probability. A z-value measures how many standard deviations a point is from the mean.

词汇表 训练
英文 中文 拼音
normal distribution 正态分布 zhèng tài fēn bù
continuous random variable 连续型随机变量 lián xù xíng suí jī biàn liàng
standardisation 标准化 biāo zhǔn huà
approximation 近似 jìn sì
continuity correction 连续性校正 lián xù xìng jiào zhèng
Probability & Statistics 概率统计 gài lǜ tǒng jì
练习卷
5.5

考试技巧

  • 决定顺序是否重要:重要时用排列($^nP_r$),不重要时用组合($^nC_r$)
  • 对于一个离散型随机变量,检查概率加起来为 $1$ 并用 $E(X) = \sum x\,P(X=x)$
  • 对于正态分布,用 $z = (x - \mu)/\sigma$ 标准化、作草图并着色,然后读表。
  • 当用正态近似一个离散变量时应用一个连续性校正

本主题的互动课程

逐步学习,并即时检测练习。

A-Level 数学的更多主题

登录或创建账号

IGCSE, A-Level & AP