Skip to content

S3 · Statistics 3

Edexcel International A-Level Further MathematicsTopic 9

Video lesson for this topic Open the video page
18:09

Statistics 3

Why it matters. The biologist Raphael Weldon threw twelve dice 26,306 times and counted how many showed a 5 or a 6 each time. If the dice were fair, the counts…

English narration · English and 中文 subtitles you can switch

3.1.1

Statistics 3: samples, estimation, chi-squared and correlation

Why it matters. The biologist Raphael Weldon threw twelve dice 26,306 times and counted how many showed a 5 or a 6 each time. If the dice were fair, the counts should follow the binomial distribution $B(12, \tfrac13)$. They were close, but were they close enough? In 1900 Karl Pearson published a new test in the Philosophical Magazine to answer exactly this kind of question: the chi-squared ($\chi^2$) test. Applied to Weldon's data, it showed that the differences were too large to be chance, and that 5s and 6s came up slightly more often than they should. The dice were very slightly biased. Pearson's test is now one of the most used tools in science, from genetics to market research.

In this unit you will:

  • combine independent Normal random variables;
  • choose and criticise methods of sampling;
  • decide whether an estimator is unbiased, and use the distribution of the sample mean;
  • find confidence intervals and test hypotheses about means;
  • carry out $\chi^2$ tests for goodness of fit and for contingency tables;
  • calculate and test Spearman's rank correlation coefficient.

Edexcel International Advanced Level, Statistics 3 (S3, paper WST03/01, 1 hour 30 minutes, 75 marks). It builds on S1 and S2. The formula booklet gives the Normal and $\chi^2$ tables and the critical values for correlation coefficients.

These results are not in the formula booklet, so learn them:

Topic Results
combinations if $X$ and $Y$ are independent Normal variables, $aX \pm bY \sim N(a\mu_X \pm b\mu_Y,\ a^2\sigma_X^2 + b^2\sigma_Y^2)$
sample mean $\bar X \sim N\left(\mu, \dfrac{\sigma^2}{n}\right)$; standard error $\dfrac{\sigma}{\sqrt n}$
unbiased variance $s^2 = \dfrac{\sum x^2 - n\bar x^2}{n - 1}$
test statistics $z = \dfrac{\bar x - \mu}{\sigma/\sqrt n}$; for two samples, $z = \dfrac{(\bar x - \bar y) - (\mu_X - \mu_Y)}{\sqrt{\sigma_X^2/n_X + \sigma_Y^2/n_Y}}$
$\chi^2$ $X^2 = \sum \dfrac{(O - E)^2}{E}$; in a contingency table, $E = \dfrac{\text{row total} \times \text{column total}}{\text{grand total}}$
Spearman $r_s = 1 - \dfrac{6\sum d^2}{n(n^2 - 1)}$
3.1.1

Combinations of random variables

For independent random variables, the means add and the variances add, even when you subtract:

  • $E(aX \pm bY) = aE(X) \pm bE(Y)$;
  • $\text{Var}(aX \pm bY) = a^2\,\text{Var}(X) + b^2\,\text{Var}(Y)$.

If $X$ and $Y$ are Normal, so is $aX \pm bY$. Be careful to tell apart $3S$ (three times the mass of one bag, variance $9\sigma^2$) and $S_1 + S_2 + S_3$ (three separate objects, variance $3\sigma^2$).

For independent random variables means add and variances add
For independent random variables means add and variances add

Worked example 1. The masses (kg) of three kinds of bag are independent with $S \sim N(18, 0.03^2)$, $C \sim N(25, 0.03^2)$ and $P \sim N(15, 0.2^2)$.

  • Three bags of type S: $S_1 + S_2 + S_3 \sim N(54, 3 \times 0.0009) = N(54, 0.0027)$. So $P(\text{total} > 54.1) = P\left(Z > \frac{0.1}{0.05196}\right) = P(Z > 1.92) = 0.027$.
  • Two bags of type C: $C_1 - C_2 \sim N(0, 0.0018)$. By symmetry, $P(\lvert C_1 - C_2\rvert > 0.02) = 2P\left(Z > \frac{0.02}{0.04243}\right) = 2P(Z > 0.471) = 0.637$.
  • A load is $T = S_1 + \dots + S_{28} + C_1 + \dots + C_5 + P_1$. To find $P(T < 30P_1 + 190)$, rearrange: $W = S_1 + \dots + S_{28} + C_1 + \dots + C_5 - 29P_1 < 190$.
  • $E(W) = 504 + 125 - 435 = 194$ and $\text{Var}(W) = 33 \times 0.0009 + 29^2 \times 0.04 = 33.67$. So $P(W < 190) = P\left(Z < \frac{-4}{5.803}\right) = P(Z < -0.689) = 0.245$.
3.2.1 3.2.2

Sampling methods

Method How it works Advantage Disadvantage
simple random sample 简单随机抽样 every possible sample of size $n$ is equally likely; number the sampling frame and use random numbers free of bias needs a full sampling frame
systematic sampling 系统抽样 choose every $k$th member from a random start in the first $k$ simple and quick needs a frame; biased if the list has a repeating pattern
stratified sampling 分层抽样 split the population into groups (strata) and take a random sample from each, in proportion to its size represents each group fairly needs the strata to be clear and a frame for each
quota sampling 配额抽样 an interviewer selects people until each group's quota is filled no frame needed; quick and cheap not random, so the interviewer can introduce bias

Worked example 2. A school has 360 students: 200 boys and 160 girls.

  • For a systematic sample of 20, take every $\frac{360}{20} = 18$th student, starting from a random number between 1 and 18. Two students next to each other on the list can never both be chosen.
  • For a stratified sample of 20, take $\frac{200}{360} \times 20 = 11.1$, so 11 boys, and $\frac{160}{360} \times 20 = 8.9$, so 9 girls, each chosen at random within its group.
Vocabulary Train
English
simple random sample/ˈsɪmpl ˈrændəm ˈsæmpl/
systematic sampling/ˌsɪstəˈmætɪk ˈsæmplɪŋ/
stratified sampling/ˈstrætɪfaɪd ˈsæmplɪŋ/
quota sampling/ˈkwəʊtə ˈsæmplɪŋ/
3.3.1 3.3.2

Estimators, bias and the sample mean

A statistic 统计量 is calculated from the sample alone, with no unknown parameters. An estimator $\hat\theta$ of a parameter $\theta$ is unbiased 无偏 if $E(\hat\theta) = \theta$. Otherwise its bias 偏差 is $E(\hat\theta) - \theta$.

  • $\bar X$ is an unbiased estimator of $\mu$.
  • $s^2 = \dfrac{\sum x^2 - n\bar x^2}{n - 1}$ is an unbiased estimator of $\sigma^2$. Dividing by $n$ instead would give an estimate that is too small on average.

For a random sample from $N(\mu, \sigma^2)$, $\bar X \sim N\left(\mu, \dfrac{\sigma^2}{n}\right)$. The standard error 标准误 $\dfrac{\sigma}{\sqrt n}$ gets smaller as $n$ increases, so larger samples give more reliable estimates.

The Central Limit Theorem 中心极限定理 says that for a large sample from any population with mean $\mu$ and variance $\sigma^2$, $\bar X$ is approximately $N\left(\mu, \dfrac{\sigma^2}{n}\right)$, even if the population is not Normal.

Left: the distribution of the sample mean for n = 1, 4 and 16: the same mean, with the standard error shrinking like 1/√n. Right: the contingency table of worked example 7, with the diesel cell E = 5.04.
Left: the distribution of the sample mean for n = 1, 4 and 16: the same mean, with the standard error shrinking like 1/√n. Right: the contingency table of worked example 7, with the diesel cell E = 5.04.
The sampling distribution of the mean narrows and becomes more normal as n grows
The population on the left is strongly skewed, yet every sampling distribution of $\bar{x}$ is centered at $\mu$. A larger $n$ shrinks the standard error $\sigma/\sqrt{n}$, so the curve gets taller and narrower – and it also straightens: still clearly skewed at $n=2$, almost exactly normal (dashed) by $n=30$.

Worked example 3. $X_1, X_2, \dots, X_{20}$ is a random sample from a population with mean $\mu$.

  • $R = \tfrac12X_1 + \tfrac34X_{20}$ has $E(R) = \tfrac54\mu$, so $R$ is biased, with bias $\tfrac14\mu$.
  • $S = \tfrac12(aX_1 - bX_2)$ and $T = \tfrac{1}{20}\left(a(X_1 + \dots + X_{14}) + b(X_{15} + \dots + X_{20})\right)$ are both unbiased. Then $\tfrac12(a - b) = 1$ and $\tfrac{1}{20}(14a + 6b) = 1$, so $a - b = 2$ and $14a + 6b = 20$, giving $a = 1.6$ and $b = -0.4$.

Worked example 4. For samples of size $n$ from $N(\mu, \sigma^2)$, $P(\bar X < 45.2) = 0.3446$ and $P(\bar X > 75.2) = 0.0179$. Find $\mu$ and the standard error.

  • From the table, $\Phi(-0.4) = 0.3446$ and $P(Z > 2.1) = 0.0179$.
  • So $\mu - 0.4 \times \text{SE} = 45.2$ and $\mu + 2.1 \times \text{SE} = 75.2$. Subtracting: $2.5 \times \text{SE} = 30$, so $\text{SE} = 12$ and $\mu = 50$.
  • Then $P(\bar X > 59) = P(Z > 0.75) = 0.2266$.
Vocabulary Train
English
statistic/stəˈtɪstɪk/
unbiased/ʌnˈbaɪəst/
bias/ˈbaɪəs/
standard error/ˈstændəd ˈerə/
Central Limit Theorem/ˈsentrəl ˈlɪmɪt ˈθɪərəm/
3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8

Confidence intervals and tests for a mean

A confidence interval 置信区间 for $\mu$, when the variance is known, is

$$\bar x \pm z \times \frac{\sigma}{\sqrt n}$$

with $z = 1.96$ for 95% and $z = 2.5758$ for 99%. "95% confidence" describes the method: if we took many samples, about 95% of the intervals made in this way would contain $\mu$.

Repeated 95% confidence intervals: about 95% capture the true parameter
“95% confident” describes the method, not one interval: over many samples about 95% of the intervals contain $\mu$ and about 5% miss it.

In a hypothesis test 假设检验 for a mean, use $z = \dfrac{\bar x - \mu}{\sigma/\sqrt n}$ and compare it with the critical value 临界值 from the Normal table (for example 1.6449 for a one-tailed test at 5%). If the population variance is unknown and the sample is large, use $s^2$ instead of $\sigma^2$, and use the Central Limit Theorem if the population may not be Normal. For two independent samples, use the two-sample statistic in the table above.

Worked example 5. Samples of 80 grey and 80 red squirrels are weighed (in grams). For the grey squirrels, $\bar x = 500$ and $s_x^2 = 1156$. For the red squirrels, $\sum y = 23\,200$ and $\sum y^2 = 6\,741\,351$.

  • $\bar y = \frac{23\,200}{80} = 290$ and $s_y^2 = \frac{6\,741\,351 - 80 \times 290^2}{79} = 169$.
  • A 95% confidence interval for the mean mass of grey squirrels: $500 \pm 1.96\sqrt{\frac{1156}{80}} = 500 \pm 7.45$, that is $(492.5, 507.5)$.
  • Test at the 5% level whether grey squirrels are on average more than 200 g heavier: $H_0\colon \mu_X - \mu_Y = 200$, $H_1\colon \mu_X - \mu_Y > 200$.
    $$z = \frac{(500 - 290) - 200}{\sqrt{\frac{1156}{80} + \frac{169}{80}}} = \frac{10}{4.070} = 2.46 > 1.6449$$
  • Reject $H_0$: there is evidence that the mean mass of grey squirrels is more than 200 g greater than that of red squirrels. (The samples are large, so using $s^2$ for $\sigma^2$ is reasonable, and the Central Limit Theorem means the populations need not be Normal.)
Vocabulary Train
English
confidence interval/ˈkɒnfɪdəns ˈɪntəvl/
hypothesis test/haɪˈpɒθəsɪs test/
critical value/ˈkrɪtɪkl ˈvæljuː/
3.4.1 3.4.2

Goodness of fit and contingency tables

A $\chi^2$ test for goodness of fit 拟合优度检验 tests whether data fit a model.

  1. $H_0$: the model fits; $H_1$: it does not.
  2. Calculate each expected frequency 期望频数 $E$ from the model. If any $E$ is less than 5, combine it with a neighbouring class.
  3. Calculate $X^2 = \sum \dfrac{(O - E)^2}{E}$.
  4. The number of degrees of freedom 自由度 is the number of classes (after combining) minus 1, minus 1 more for each parameter estimated from the data.
  5. Reject $H_0$ if $X^2$ is greater than the critical value from the $\chi^2$ table.

Worked example 6. In 250 litters of 5 animals, the numbers of males were:

Males 0 1 2 3 4 5
Observed 2 40 90 85 30 3
Expected 8.80 41.92 79.91 76.16 36.30 6.92
  • Estimate $p$ from the data: $\hat p = \frac{0 \times 2 + 1 \times 40 + 2 \times 90 + 3 \times 85 + 4 \times 30 + 5 \times 3}{1250} = \frac{610}{1250} = 0.488$. The expected frequencies are $250 \times P(X = x)$ for $X \sim B(5, 0.488)$; all are at least 5.
  • The class "0 males" gives $\frac{(2 - 8.80)^2}{8.80} = 5.25$, and the other five classes give 5.70, so $X^2 = 10.95$.
  • Degrees of freedom: $6 - 1 - 1 = 4$ (one parameter estimated). The 5% critical value is 9.488.
  • $10.95 > 9.488$, so reject $H_0$: the binomial distribution is not a good model for the number of males in a litter.
Paired bars of observed and expected litters for 0 to 5 males: observed 2, 40, 90, 85, 30, 3 against expected 8.80, 41.92, 79.91, 76.16, 36.30, 6.92; the 0 class contributes 5.25
Worked example 6: observed against expected litters. The 0-male class alone contributes 5.25, and X² = 10.95 is above 9.488 on 4 degrees of freedom

Contingency tables 列联表 test whether two classifications are independent. $H_0$: there is no association. The expected frequency of each cell is $\dfrac{\text{row total} \times \text{column total}}{\text{grand total}}$, and for a table with $r$ rows and $c$ columns the degrees of freedom are $(r - 1)(c - 1)$.

Worked example 7. 250 cars are classified by engine type (3 types) and by when the first problem happened (3 time periods). In the cell for diesel cars with a first problem in months 1–6, $O = 10$, and the row and column totals are 35 and 36.

  • $E = \frac{35 \times 36}{250} = 5.04$, and this cell contributes $\frac{(10 - 5.04)^2}{5.04} = 4.88$.
  • The other eight cells give 7.444, so $X^2 = 12.325$, with $(3 - 1)(3 - 1) = 4$ degrees of freedom.
  • $12.325 > 9.488$, so reject $H_0$: there is evidence of an association between engine type and when problems start.
Explore

Confidence intervals, chi-square and regression

For a normal mean with known σ, a 95% interval is sample mean±1

Compare the model with the worked case and explain one change.

Vocabulary Train
English
goodness of fit/ˈɡʊdnəs ɒv fɪt/
expected frequency/ekˈspektɪd ˈfriːkwənsi/
degrees of freedom/dɪˈɡriːz ɒv ˈfriːdəm/
contingency table/kənˈtɪndʒənsi ˈteɪbl/
3.5.1 3.5.2

Rank correlation and its test

Spearman's rank correlation coefficient 斯皮尔曼等级相关系数 measures how well two rankings agree. Rank each variable, find the difference $d$ between the ranks for each item, and use

$$r_s = 1 - \frac{6\sum d^2}{n(n^2 - 1)}$$

Use $r_s$ when the data are ranks, or when the relationship may not be linear. For the product moment correlation coefficient $r$, the data should come from a bivariate Normal distribution.

To test, let $H_0\colon \rho = 0$ and $H_1\colon \rho > 0$ (or $< 0$, or $\ne 0$). Compare $r_s$ with the critical value from the table for $n$ and the significance level, and write the conclusion about the rankings in words.

Left: the two judges' ranks in worked example 8, r_s = 0.6. Right: the squirrel test of worked example 5, with z = 2.46 beyond the critical value 1.6449.
Left: the two judges' ranks in worked example 8, r_s = 0.6. Right: the squirrel test of worked example 5, with z = 2.46 beyond the critical value 1.6449.

Worked example 8. Two judges rank 10 performances, and $\sum d^2 = 66$. Test at the 1% level for positive correlation.

  • $r_s = 1 - \frac{6 \times 66}{10 \times 99} = 1 - 0.4 = 0.6$.
  • $H_0\colon \rho = 0$, $H_1\colon \rho > 0$. The critical value for $n = 10$ at 1% (one-tailed) is 0.7455.
  • $0.6 < 0.7455$, so do not reject $H_0$: there is not enough evidence at the 1% level that the judges agree. (At the 5% level, the critical value is 0.5636, and the result would be significant.)
Vocabulary Train
English
Spearman's rank correlation coefficient/ˈspɪəmənz ræŋk ˌkɒrɪˈleɪʃn ˌkəʊɪˈfɪʃənt/
3.5.1 3.5.2

Sources for this lesson

  • Pearson Edexcel, International Advanced Level Mathematics, Further Mathematics and Pure Mathematics specification (2018), unit S3.
  • K. Pearson, "On the criterion that a given system of deviations from the probable…", Philosophical Magazine, series 5, 50 (1900).
  • Pearson Edexcel, WST03/01 June 2025, questions 2 to 8 (adapted).
3.5.1 3.5.2

Common errors

  • Subtracting variances when you subtract random variables; variances always add.
  • Confusing $3S$ with $S_1 + S_2 + S_3$.
  • Dividing by $n$ instead of $n - 1$ for an unbiased estimate of the variance.
  • Saying "there is a 95% probability that $\mu$ is in this interval".
  • Forgetting to combine classes with expected frequencies below 5.
  • Forgetting to subtract a degree of freedom for each estimated parameter.
  • Using observed instead of expected frequencies in the denominator of $X^2$.
  • Concluding "the judges agree" without context, or "$H_0$ is true".
3.5.1 3.5.2

Key terms

  • Unbiased: an estimator whose expected value equals the parameter.
  • Standard error: the standard deviation of a sample statistic, such as $\sigma/\sqrt n$ for $\bar X$.
  • Confidence interval: a range, calculated from a sample, that contains the parameter for a stated proportion of samples.
  • Central Limit Theorem: for large $n$, $\bar X$ is approximately Normal whatever the population.
  • Degrees of freedom: the number of independent values in a $\chi^2$ calculation.
  • Contingency table: a table of frequencies classified in two ways.
3.5.1 3.5.2

Check yourself

  1. $X \sim N(10, 4)$ and $Y \sim N(6, 9)$ are independent. Find the distribution of $X - Y$.
  2. A sample of 25 from $N(\mu, 100)$ has mean 52. Find a 95% confidence interval for $\mu$.
  3. Give one advantage of stratified sampling over simple random sampling.
  4. A dice is rolled 120 times to test whether it is fair. How many degrees of freedom does the $\chi^2$ test have?
  5. A contingency table has 2 rows and 4 columns. How many degrees of freedom?
  6. For 8 items, $\sum d^2 = 12$. Find $r_s$.

Answers: 1. $N(4, 13)$. 2. $52 \pm 1.96 \times 2$, that is $(48.08, 55.92)$. 3. Each group in the population is represented in proportion. 4. $6 - 1 = 5$. 5. $1 \times 3 = 3$. 6. $1 - \frac{72}{504} = 0.857$.

Interactive lessons on this topic

Work through it step by step, with instant-check exercises.

More topics in Edexcel International A-Level Further Mathematics

Log in or create account

IGCSE, A-Level & AP