跳到主要内容

4 · 统计与概率

IB 数学:分析与方法 SL · 知识点 4

本主题的视频课程 打开视频页面
3:18

统计学与概率

这些是精选专题,并非整个大纲,且所有示例均为虚构。比较平均值与离散程度,并记住直方图把频率表示为…

英语旁白 · 英中内嵌字幕

4.1

范围与先修条件

English

This handout teaches topic 4, Statistics and probability, of Mathematics: Analysis and Approaches, the course first assessed in 2021: sampling and bias, summarising and presenting data, correlation and regression, probability with Venn and tree diagrams, conditional probability and independence, discrete random variables, the binomial distribution and the normal distribution, and, for HL, Bayes' theorem and continuous random variables.

Prerequisites: fractions, decimals and percentages; substitution into formulae; integration (topic 5) for the HL continuous random variables.

4.2

抽样与数据

English

The biggest poll that failed

In 1936 the American magazine Literary Digest mailed about 10 million ballots and received about 2.4 million replies. Its poll predicted that Alf Landon would beat President Franklin Roosevelt easily. Roosevelt won in a landslide, with about 61 % of the vote. A young pollster, George Gallup, predicted the right winner with a sample of only about 50 000. The Digest had taken its names from telephone directories and car registrations, which in 1936 over-represented richer voters, and only the people who chose to reply were counted. A huge biased sample is worse than a small fair one.

A large crowd of people
Statistics studies a sample to learn about a whole population.

Populations and samples

  • The population 总体 is every member of the group being studied; a sample 样本 is the part actually measured.
  • A sample is biased when some members of the population are more likely to be included, so the sample does not represent the population.
  • Discrete data 离散数据 can take only separate values (number of siblings); continuous data 连续数据 can take any value in a range (height, time).

Sampling techniques

Technique How Strength Weakness
Simple random Every member equally likely, such as random numbers No selection bias Needs a full list
Systematic Every $k$th member from a list Quick, spread out Biased if the list has a pattern
Stratified Random samples from each group in proportion Represents every group Needs group sizes
Quota Fixed numbers from each group, not random Quick, cheap Interviewer chooses: bias
Convenience Whoever is easy to reach Easiest Rarely representative
Four random sampling designs: who gets selected, and how
Four random sampling designs: who gets selected, and how

Worked example. A school has 300 students in Year 10 and 200 in Year 11. A stratified sample of 50 takes $\frac{300}{500} \times 50 = 30$ from Year 10 and 20 from Year 11.

Outliers

An outlier 异常值 is a value far from the rest. A common rule: a value is an outlier if it is more than $1.5 \times \text{IQR}$ below $Q_1$ or above $Q_3$. Outliers should be checked, not simply deleted: a recording error can be corrected, but a genuine extreme value is part of the data.

词汇 训练
English 中文 拼音
population/ˌpɒpjʊˈleɪʃn/ 总体 zǒng tǐ
sample/ˈsæmpl/ 样本 yàng běn
discrete data/dɪˈskriːt ˈdeɪtə/ 离散数据 lí sàn shù jù
continuous data/kənˈtɪnjuːəs ˈdeɪtə/ 连续数据 lián xù shù jù
outlier/ˈaʊtlaɪə/ 异常值 yì cháng zhí
4.3

汇总数据

English

Measures of centre and spread

For the data $3, 5, 7, 7, 8, 10, 12, 20$ ($n = 8$):

Data 2, 3, 3, 5, 7: mean = 4, median = 3, mode = 3, range = 5
Mean, median, mode and range of a small data set
  • mean 平均数 $\bar{x} = \dfrac{\sum x}{n} = \dfrac{72}{8} = 9$;
  • median 中位数 $= \dfrac{7 + 8}{2} = 7.5$, the middle value of the ordered data;
  • mode 众数 $= 7$, the most frequent value.

Spread:

  • Quartiles 四分位数: $Q_1 = 6$ (the median of $3, 5, 7, 7$) and $Q_3 = 11$ (the median of $8, 10, 12, 20$). Technology may use a slightly different method; follow your calculator.
  • Interquartile range 四分位距 $\text{IQR} = Q_3 - Q_1 = 5$. Since $11 + 1.5 \times 5 = 18.5$, the value 20 is an outlier.
  • Standard deviation 标准差 $\sigma = \sqrt{\dfrac{\sum(x - \bar{x})^2}{n}}$. The squared deviations from 9 add to 192, so the variance 方差 is $\sigma^2 = 24$ and $\sigma \approx 4.90$.

The median and IQR resist outliers; the mean and standard deviation are pulled by them. Here the outlier 20 pulls the mean (9) above the median (7.5).

Effect of a change of scale. If every value is multiplied by $a$ and then $b$ is added, the mean and median become $a(\cdot) + b$. Quartiles follow the same rule for $a > 0$; for $a < 0$, the lower and upper quartiles swap, so $Q_1$ becomes $aQ_3+b$ and $Q_3$ becomes $aQ_1+b$. Meanwhile, the standard deviation and IQR are multiplied by $|a|$ and are not changed by $b$. Doubling the data above and adding 3 gives mean 21 and standard deviation 9.80.

Grouped data

For grouped data, use the mid-interval values $x$ and frequencies $f$: $\bar{x} \approx \dfrac{\sum fx}{\sum f}$.

Time (min) $0 \le t < 10$ $10 \le t < 20$ $20 \le t < 30$ $30 \le t < 40$
Frequency 4 10 16 10

$\sum fx = 4(5) + 10(15) + 16(25) + 10(35) = 920$, so $\bar{x} \approx \frac{920}{40} = 23$ minutes. The modal class is $20 \le t < 30$. The value is an estimate because the exact data are not known.

Cumulative frequency and box plots

A cumulative frequency 累积频率 graph plots the running total against the upper class boundary. Reading across at $\frac{n}{4}$, $\frac{n}{2}$ and $\frac{3n}{4}$ gives estimates of $Q_1$, the median and $Q_3$. A box plot 箱线图 shows the minimum, $Q_1$, median, $Q_3$ and maximum, with outliers marked separately.

Cumulative frequency curve for 80 students' times with Q1 25, median 32 and Q3 40 minutes read off; below it a box plot from 12 to 58 minutes with an outlier at 70
Quartiles from a cumulative frequency curve, and the matching box plot

For the 80 students above, the upper fence is $40 + 1.5 \times 15 = 62.5$ minutes, so the 70-minute time is an outlier and the whisker stops at the largest value inside the fence, 58 minutes. When comparing two box plots, compare a measure of centre (median) and a measure of spread (IQR) in context.

词汇 训练
English 中文 拼音
mean/miːn/ 平均数 píng jūn shù
median/ˈmiːdiːən/ 中位数 zhōng wèi shù
mode/məʊd/ 众数 zhòng shù
quartile/ˈkwɔːtaɪl/ 四分位数 sì fēn wèi shù
interquartile range/ˌɪntəˈkwɔːtaɪl reɪndʒ/ 四分位距 sì fēn wèi jù
standard deviation/ˈstændəd ˌdiːvɪˈeɪʃn/ 标准差 biāo zhǔn chà
variance/ˈveərɪəns/ 方差 fāng chà
cumulative frequency/ˈkjuːmjʊlətɪv ˈfriːkwənsi/ 累积频率 lěi jī pín lǜ
box plot/bɒks plɒt/ 箱线图 xiāng xiàn tú
4.4

相关性与回归

English

Scatter diagrams and correlation

A scatter diagram 散点图 shows paired data $(x, y)$. The correlation coefficient 相关系数 $r$ (Pearson's product-moment correlation coefficient), found with technology, measures the strength of the linear relationship: $-1 \le r \le 1$.

  • $r$ close to $1$: strong positive linear correlation; close to $-1$: strong negative; close to $0$: little linear correlation.
  • Correlation is not causation: ice-cream sales and drowning both rise in hot weather.
  • A strong non-linear pattern can still have $r$ close to 0.
Scatter diagram of hours of revision against score for 12 students, with regression line y = 39.3 + 4.87x through the mean point (4.75, 62.4), r = 0.974
Regression line of y on x through the mean point

Regression lines

The regression line 回归直线 of $y$ on $x$, found with technology, minimises the squared vertical distances and always passes through the mean point $(\bar{x}, \bar{y})$. Use it to predict $y$ from $x$. To predict $x$ from $y$, use the regression line of $x$ on $y$, which is a different line unless $r = \pm 1$.

A scatter of points with a straight best-fit line through them; dashed vertical lines show the error between each point and the line
Linear regression fits the line that makes the total squared error (the dashed gaps) as small as possible

Worked example. For the 12 students: $r = 0.974$, $y = 39.3 + 4.87x$.

  • Prediction for 5.5 hours: $y = 39.3 + 4.87 \times 5.5 \approx 66$. Reliable: $r$ is strong and 5.5 is within the data (interpolation 内插).
  • The gradient means each extra hour of revision is associated with about 4.9 more marks.
  • A prediction for 15 hours gives 112, more than the maximum mark: extrapolation 外推 beyond the data is unreliable.
  • To estimate hours from a score of 65, use the $x$ on $y$ line, $x = -7.40 + 0.195y$, giving about 5.3 hours.
词汇 训练
English 中文 拼音
scatter diagram/ˈskætə ˈdaɪəɡræm/ 散点图 sàn diǎn tú
correlation coefficient/ˌkɒrɪˈleɪʃn ˌkəʊɪˈfɪʃənt/ 相关系数 xiāng guān xì shù
regression line/rɪˈɡreʃn laɪn/ 回归直线 huí guī zhí xiàn
interpolation/ɪnˌtɜːpəˈleɪʃn/ 内插 nèi chā
extrapolation/ekˈstræpəleɪʃn/ 外推 wài tuī
4.5

概率

English

Events and sample spaces

For equally likely outcomes, the probability 概率 of event $A$ is $P(A) = \dfrac{n(A)}{n(U)}$, where $U$ is the sample space 样本空间. Complementary events: $P(A') = 1 - P(A)$. The expected number of times $A$ happens in $n$ trials is $nP(A)$: in 120 rolls of a fair die, expect $120 \times \frac{1}{6} = 20$ sixes.

Two ordinary six-sided dice, one cream and one red
Dice: a familiar starting point for probability.

Combined events and Venn diagrams

$$P(A \cup B) = P(A) + P(B) - P(A \cap B)$$

Mutually exclusive 互斥 events cannot both happen: $P(A \cap B) = 0$.

Venn diagram of a class of 30: 13 play football only, 5 both, 7 basketball only and 5 neither
Fill a Venn diagram from the overlap outwards

Worked example. In a class of 30, 18 play football ($F$), 12 basketball ($B$) and 5 both.

  • Start with the overlap, 5; then $F$ only $= 13$, $B$ only $= 7$; neither $= 30 - 25 = 5$.
  • $P(F \cup B) = \frac{18}{30} + \frac{12}{30} - \frac{5}{30} = \frac{25}{30} = \frac{5}{6}$.

Conditional probability and independence

The conditional probability 条件概率 of $A$ given $B$ is

$$P(A \mid B) = \frac{P(A \cap B)}{P(B)}$$

Given that a student plays basketball, the chance they also play football is $P(F \mid B) = \frac{5}{12}$: the sample space shrinks to the 12 basketball players.

Events are independent 独立 if one does not change the probability of the other:

$$P(A \cap B) = P(A)P(B) \quad\text{or equivalently}\quad P(A \mid B) = P(A)$$

Here $P(F)P(B) = 0.6 \times 0.4 = 0.24$, but $P(F \cap B) = \frac{5}{30} \approx 0.167$, so playing football and playing basketball are not independent.

Tree diagrams

A tree diagram 树状图 multiplies along branches and adds between branches. Without replacement, the probabilities on the second branches change.

Probabilities of two draws without replacement from 3 red and 2 blue: RR 0.3, RB 0.3, BR 0.3, BB 0.1
Two draws without replacement from 3 red and 2 blue counters

Worked example. Two counters are taken without replacement from a bag of 3 red and 2 blue.

  • $P(RR) = \frac{3}{5} \times \frac{2}{4} = 0.3$, $P(BB) = \frac{2}{5} \times \frac{1}{4} = 0.1$.
  • $P(\text{same colour}) = 0.3 + 0.1 = 0.4$.
  • $P(\text{second is red}) = P(RR) + P(BR) = 0.3 + \frac{2}{5} \times \frac{3}{4} = 0.6$, the same as the first draw, as symmetry suggests.
  • $P(\text{first red} \mid \text{second red}) = \dfrac{0.3}{0.6} = 0.5$.
词汇 训练
English 中文 拼音
probability/ˌprɒbəˈbɪlɪti/ 概率 gài lǜ
sample space/ˈsæmpl speɪs/ 样本空间 yàng běn kōng jiān
mutually exclusive/ˈmjuːtʃuːəli eksˈkluːsɪv/ 互斥 hù chì
conditional probability/kənˈdɪʃənl ˌprɒbəˈbɪlɪti/ 条件概率 tiáo jiàn gài lǜ
independent/ˌɪndɪˈpendənt/ 独立 dú lì
tree diagram/triː ˈdaɪəɡræm/ 树状图 shù zhuàng tú
4.6

离散随机变量和二项分布

English

Probability distributions and expectation

A discrete random variable 离散随机变量 $X$ takes separate values $x$ with probabilities $P(X = x)$ that add to 1. Its expected value 期望值 is

Prize bars 0, 2 and 10 yuan with probabilities 0.5, 0.3 and 0.2; expected prize 2.6 against a cost of 3, so the expected gain is minus 0.4
An unfair game
$$E(X) = \sum x\,P(X = x)$$

Worked example. A game costs ¥3 to play. The prize $X$ is ¥0, ¥2 or ¥10 with probabilities 0.5, 0.3 and 0.2.

  • $E(X) = 0(0.5) + 2(0.3) + 10(0.2) = 2.6$.
  • The expected gain is $2.6 - 3 = -0.4$ yuan per game: players lose 40 fen per game on average. A game is fair if the expected gain is 0.

If $P(X = x) = kx$ for $x = 1, 2, 3, 4$, then $k(1 + 2 + 3 + 4) = 1$ gives $k = \frac{1}{10}$.

The binomial distribution

$X \sim B(n, p)$ counts the successes in $n$ independent trials, each with the same probability of success $p$:

$$P(X = r) = \binom{n}{r}p^r(1 - p)^{n - r} \qquad E(X) = np \qquad \text{Var}(X) = np(1 - p)$$

Check the conditions in context: a fixed number of trials, two outcomes, independence and constant $p$.

Binomial distribution with n = 5 and p = 0.2: one success is most likely, about 0.41
The binomial distribution B(5, 0.2)

Worked example. 20 % of seeds fail to grow. Five seeds are planted; $X$ is the number that fail, $X \sim B(5, 0.2)$.

  • $P(X = 1) = \binom{5}{1}(0.2)(0.8)^4 = 0.4096$.
  • $P(X \ge 1) = 1 - P(X = 0) = 1 - 0.8^5 \approx 0.672$.
  • $E(X) = 5 \times 0.2 = 1$ and $\text{Var}(X) = 5 \times 0.2 \times 0.8 = 0.8$.

On calculator papers, use the binomial pdf for $P(X = r)$ and the cdf for $P(X \le r)$. For $P(X \ge r)$ use $1 - P(X \le r - 1)$.

词汇 训练
English 中文 拼音
discrete random variable/dɪˈskriːt ˈrændəm ˈveərɪəbl/ 离散随机变量 lí sàn suí jī biàn liàng
expected value/ekˈspektɪd ˈvæljuː/ 期望值 qī wàng zhí
4.7

正态分布

English

Properties

Many measurements, such as heights and measurement errors, follow a normal distribution 正态分布 $X \sim N(\mu, \sigma^2)$: a symmetric bell-shaped curve centred on the mean $\mu$, with total area 1. About 68 % of values lie within $1\sigma$ of the mean, 95 % within $2\sigma$ and 99.7 % within $3\sigma$. For a continuous variable, $P(X = a) = 0$, so $P(X < a) = P(X \le a)$.

A Galton board with balls forming a bell shape
A Galton board: balls falling through pins pile up into the bell-shaped normal distribution.
Normal curve of heights with mean 170 cm and standard deviation 8 cm; the area left of 180 cm, z = 1.25, is shaded and equals 0.894
Probability is area under the curve; z counts standard deviations from the mean

Calculations and standardising

The standardised value 标准分数

$$z = \frac{x - \mu}{\sigma}$$

counts how many standard deviations $x$ is from the mean. $Z = \dfrac{X - \mu}{\sigma}$ follows $N(0, 1)$.

Worked example. Heights $X \sim N(170, 8^2)$ cm.

  • $P(X < 180) = 0.894$ (by calculator; $z = 1.25$).
  • $P(160 < X < 180) = 0.789$.
  • The height exceeded by only 10 % of people: inverse normal, $P(X < h) = 0.9$, gives $h \approx 180.3$ cm.

Unknown mean or standard deviation

Use the inverse normal on $Z$ to find $z$, then solve $z = \dfrac{x - \mu}{\sigma}$.

Worked example. $X \sim N(\mu, 4^2)$ and $P(X > 50) = 0.05$. Then $P(Z > z) = 0.05$ gives $z = 1.645$, so $\dfrac{50 - \mu}{4} = 1.645$ and $\mu \approx 43.4$.

Worked example. $X \sim N(25, \sigma^2)$ and $P(X < 20) = 0.2$. Then $z = -0.8416$, so $\dfrac{20 - 25}{\sigma} = -0.8416$ and $\sigma \approx 5.94$.

Common mistakes.

  • Predicting $x$ from the regression line of $y$ on $x$. That line is built to predict $y$ only.
  • Extrapolating far outside the data, or reading a strong correlation as proof of cause.
  • Using $P(A \cap B) = P(A)P(B)$ without knowing the events are independent.
  • Dividing by the wrong probability: $P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}$, not over $P(A)$.
  • Writing $P(X \ge 3) = 1 - P(X \le 3)$. For a discrete variable it is $1 - P(X \le 2)$.
  • Reading the variance as the standard deviation: $X \sim N(50, 16)$ has $\sigma = 4$.
  • Using the expected value as a value that must occur: $E(X) = 2.5$ for a count is a long-run mean.
词汇 训练
English 中文 拼音
normal distribution/ˈnɔːml ˌdɪstrɪˈbjuːʃn/ 正态分布 zhèng tài fēn bù
standardised value/ˈstændədaɪzd ˈvæljuː/ 标准分数 biāo zhǔn fēn shù
4.8

练习

English
  1. Name each sampling technique and give one weakness: (a) every 10th name on a list; (b) random samples from each year group in proportion to its size; (c) the first 20 people through the gate.
  2. For $4, 7, 7, 9, 12, 15, 18, 40$, find the mean, median, quartiles and IQR, and decide whether 40 is an outlier.
  3. A data set has mean 20 and standard deviation 3. Each value is multiplied by 3 and then 5 is subtracted. Find the new mean and standard deviation.
  4. Estimate the mean height and state the modal class: $150 \le h < 160$: 6; $160 \le h < 170$: 14; $170 \le h < 180$: 15; $180 \le h < 190$: 5.
  5. For data with $x$ from 5 to 20, the regression line is $y = 2.4x + 11$ with $r = 0.91$. Predict $y$ when $x = 12$, and comment on using the line when $x = 50$.
  6. A study finds $r = -0.35$ between hours of screen time and sleep. Interpret this, and explain why it does not show that screen time causes less sleep.
  7. $P(A) = 0.5$, $P(B) = 0.4$ and $P(A \cup B) = 0.7$. Find $P(A \cap B)$ and $P(A \mid B)$, and decide whether $A$ and $B$ are independent.
  8. Two fair dice are rolled. Find the probability that the total is 8, and that at least one die shows 6.
  9. A bag has 4 green and 6 yellow counters. Two are taken without replacement. Find the probability that both are green, and that they are different colours.
  10. $P(X = x) = k(x + 1)$ for $x = 0, 1, 2, 3$. Find $k$ and $E(X)$.
  11. A game costs ¥5. A player wins ¥20 with probability 0.1 and ¥5 with probability 0.3, and otherwise nothing. Find the expected gain and decide whether the game is fair.
  12. $X \sim B(10, 0.3)$. Find $P(X = 3)$, $P(X \le 2)$, $E(X)$ and $\text{Var}(X)$.
  13. $X \sim N(50, 5^2)$. Find $P(X > 58)$ and $P(45 < X < 55)$.
  14. For $X \sim N(50, 5^2)$, find the value exceeded by the top 10 %.
  15. $X \sim N(\mu, 4^2)$ and $P(X < 30) = 0.2$. Find $\mu$.

Answers.

  1. (a) Systematic: biased if the list has a repeating pattern. (b) Stratified: needs the size of each group. (c) Convenience: those arriving first may differ from the rest, so it is rarely representative.
  2. Mean $= \frac{112}{8} = 14$; median $= \frac{9 + 12}{2} = 10.5$; $Q_1 = 7$, $Q_3 = 16.5$; IQR $= 9.5$. Upper fence $16.5 + 14.25 = 30.75$, so 40 is an outlier.
  3. Mean $3(20) - 5 = 55$; standard deviation $3 \times 3 = 9$.
  4. $\sum fx = 6(155) + 14(165) + 15(175) + 5(185) = 6790$, so $\bar{x} \approx \frac{6790}{40} = 169.75$ cm. Modal class $170 \le h < 180$.
  5. $y = 2.4(12) + 11 = 39.8$, reliable since $r$ is strong and 12 is within the data. $x = 50$ is far outside the data, so the prediction is extrapolation and unreliable.
  6. A weak negative linear correlation: more screen time tends to go with slightly less sleep. Correlation does not show cause: another factor, such as stress, could affect both, and the relationship is weak.
  7. $P(A \cap B) = 0.5 + 0.4 - 0.7 = 0.2$; $P(A \mid B) = \frac{0.2}{0.4} = 0.5$. Since $P(A)P(B) = 0.2 = P(A \cap B)$, they are independent.
  8. Totals of 8: $(2,6), (3,5), (4,4), (5,3), (6,2)$, so $\frac{5}{36}$. At least one 6: $1 - \left(\frac{5}{6}\right)^2 = \frac{11}{36}$.
  9. $P(GG) = \frac{4}{10} \times \frac{3}{9} = \frac{2}{15}$. $P(\text{different}) = 2 \times \frac{4}{10} \times \frac{6}{9} = \frac{8}{15}$.
  10. $k(1 + 2 + 3 + 4) = 10k = 1$, so $k = 0.1$. $E(X) = 0(0.1) + 1(0.2) + 2(0.3) + 3(0.4) = 2$.
  11. Expected winnings $= 20(0.1) + 5(0.3) = 3.5$, so the expected gain is $3.5 - 5 = -1.5$ yuan. Not fair: players lose on average.
  12. $P(X = 3) = \binom{10}{3}(0.3)^3(0.7)^7 \approx 0.267$; $P(X \le 2) \approx 0.383$; $E(X) = 3$; $\text{Var}(X) = 2.1$.
  13. $P(X > 58) \approx 0.0548$; $P(45 < X < 55) \approx 0.683$.
  14. $P(X < x) = 0.9$ gives $x \approx 56.4$.
  15. $z = -0.8416$, so $\frac{30 - \mu}{4} = -0.8416$ and $\mu \approx 33.4$.
4.9

考试技巧

English
  • Name the sampling method and say why it might be biased in the context given.
  • Compare data sets with one measure of centre and one measure of spread, in context.
  • Use the $y$ on $x$ regression line only to predict $y$, only within the data, and only when $r$ is strong.
  • State the distribution and its parameters before calculating: $X \sim B(10, 0.3)$, $X \sim N(50, 5^2)$.
  • For $P(X \ge r)$ with a binomial, use $1 - P(X \le r - 1)$.
  • Draw a quick normal sketch with the mean and the shaded region before using the calculator.
  • Test independence with numbers: compare $P(A \cap B)$ with $P(A)P(B)$.
探索

数据摘要、直方图与解读

在情境中比较合适的集中趋势和离散程度

为演示案例中的观测值选择一个中心位置和离散程度度量。

探索

概率、树状图与条件推理

沿树状分支相乘,并将不相容分支相加

对比模型与已解案例,并说明其中一处变化。

探索

从原始数值到正态模型概率

$z=(x-\mu)/\sigma$

把本课原始数值、标准化边界和正确的阴影区域联系起来。调整模型并不能证明真实数据服从该模型。

这有帮助吗?

该知识点的互动课程

逐步完成,配合即时检查练习。

更多 IB 数学:分析与方法 SL 知识点

登录或创建账户

IGCSE, A-Level & AP