This handout covers Topic 4: Further Probability & Statistics 进阶概率统计. It adds continuous distributions, small-sample inference, the chi-squared and non-parametric tests, and probability generating functions.
Further Probability & Statistics
A-Level Further Mathematics · Topic 4
4.1
Continuous random variables
Syllabus
| Candidates should be able to: | Notes and examples |
|---|---|
| use a probability density function which may be defined piecewise | |
| use the general result $\text{E}(g(X)) = \int f(x)g(x) \, \mathrm{d}x$ where $f(x)$ is the probability density function of the continuous random variable $X$ and $g(X)$ is a function of $X$ | |
| understand and use the relationship between the probability density function (PDF) and the cumulative distribution function (CDF), and use either to evaluate probabilities or percentiles | |
| use cumulative distribution functions (CDFs) of related variables in simple cases. | e.g. given the CDF of a variable $X$, find the CDF of a related variable $Y$, and hence its PDF, e.g. where $Y = X^3$. |
Source: Cambridge International syllabus
A continuous variable $X$ is described by a probability density function 概率密度函数 $f(x)$, which may be defined piecewise. The probability over a range is the area under $f$, and the mean of any function of $X$ is
The median sits where the area under $f(x)$ to its left is exactly $0.5$.
The cumulative distribution function 累积分布函数 $F(x) = P(X \leqslant x)$ is the running total: $F(x) = \displaystyle\int_{-\infty}^{x} f(t)\,dt$, and $f(x) = F'(x)$. Use $F$ to find probabilities and percentiles 百分位数 (for example, the median 中位数 solves $F(x) = 0.5$).
The cumulative graph $F(x)$ rises from $0$ to $1$; the height $0.5$ is reached at the median.
Worked example. A variable has $f(x) = \tfrac12 x$ for $0 \leqslant x \leqslant 2$. Find the median.
The cumulative distribution function is $F(x) = \displaystyle\int_0^x \tfrac12 t\,dt = \tfrac14 x^2$. Set $F(m) = 0.5$:
Continuous random variables
P(a < X < b) = ∫ f(x) dx
For a continuous variable, probability is the area under the density curve.
| English | Chinese | Pinyin |
|---|---|---|
| Further Probability & Statistics | 进阶概率统计 | jìn jiē gài lǜ tǒng jì |
| probability density function | 概率密度函数 | gài lǜ mì dù hán shù |
| cumulative distribution function | 累积分布函数 | lěi jī fēn bù hán shù |
| percentiles | 百分位数 | bǎi fēn wèi shù |
| median | 中位数 | zhōng wèi shù |
4.2
Inference using normal and t-distributions
Syllabus
| Candidates should be able to: | Notes and examples |
|---|---|
| formulate hypotheses and apply a hypothesis test concerning the population mean using a small sample drawn from a normal population of unknown variance, using a t-test | |
| calculate a pooled estimate of a population variance from two samples | Calculations based on either raw or summarised data may be required. |
| formulate hypotheses concerning the difference of population means, and apply, as appropriate: - a 2-sample t-test - a paired sample t-test - a test using a normal distribution | The ability to select the test appropriate to the circumstances of a problem is expected. |
| determine a confidence interval for a population mean, based on a small sample from a normal population with unknown variance, using a t-distribution | |
| determine a confidence interval for a difference of population means, using a t-distribution or a normal distribution, as appropriate. |
Source: Cambridge International syllabus
A Galton board: balls falling through pins pile up into the bell-shaped normal distribution.
When a sample is small and the population variance is unknown, base your hypothesis test 假设检验 on the $t$-distribution instead of the normal. The same idea gives a confidence interval 置信区间 for the mean:
For a small sample the $t$-distribution is flatter with heavier tails, so its critical values are larger.
Worked example. A sample of $n = 10$ has mean $\bar{x} = 50$ and standard deviation $s = 4$. Find a $95\%$ confidence interval for the mean (use $t = 2.262$ for $9$ degrees of freedom).
The normal distribution
Shade a tail to find a probability — the basis of confidence intervals and hypothesis tests.
| English | Chinese | Pinyin |
|---|---|---|
| hypothesis test | 假设检验 | jiǎ shè jiǎn yàn |
| confidence interval | 置信区间 | zhì xìn qū jiān |
| pooled estimate | 合并估计 | hé bìng gū jì |
4.3
Chi-squared tests
Syllabus
| Candidates should be able to: | Notes and examples |
|---|---|
| fit a theoretical distribution, as prescribed by a given hypothesis, to given data | Questions will not involve lengthy calculations. |
| use a $\chi^2$-test, with the appropriate number of degrees of freedom, to carry out the corresponding goodness of fit analysis | Classes should be combined so that each expected frequency is at least 5. |
| use a $\chi^2$-test, with the appropriate number of degrees of freedom, for independence in a contingency table. | Yates’ correction is not required. Where appropriate, either rows or columns should be combined so that the expected frequency in each cell is at least 5. |
Source: Cambridge International syllabus
A $\chi^2$-test (chi-squared test 卡方检验) compares observed counts $O$ with expected counts $E$ from a theoretical distribution 理论分布:
The test rejects the model when $\chi^2$ exceeds the critical value, landing in the shaded $5\%$ tail.
Worked example. Four equally likely categories give observed counts $20, 30, 25, 25$ (so each expected count is $25$). Test the fit at the $5\%$ level.
Chi-squared test route
Follow observed and expected counts to a test decision.
| English | Chinese | Pinyin |
|---|---|---|
| chi-squared test | 卡方检验 | kǎ fāng jiǎn yàn |
| theoretical distribution | 理论分布 | lǐ lùn fēn bù |
| degrees of freedom | 自由度 | zì yóu dù |
| goodness of fit | 拟合优度 | nǐ hé yōu dù |
| independence | 独立性 | dú lì xìng |
| contingency table | 列联表 | liè lián biǎo |
4.4
Non-parametric tests
Syllabus
| Candidates should be able to: | Notes and examples |
|---|---|
| understand the idea of a non-parametric test and appreciate situations in which such a test might be useful | e.g. when sampling from a population which cannot be assumed to be normally distributed. |
| understand the basis of the sign test, the Wilcoxon signed-rank test and the Wilcoxon rank-sum test | Including knowledge that Wilcoxon tests are valid only for symmetrical distributions. |
| use a single-sample sign test and a single-sample Wilcoxon signed-rank test to test a hypothesis concerning a population median | Including the use of normal approximations where appropriate. Questions will not involve tied ranks or observations equal to the population median value being tested. |
| use a paired-sample sign test, a Wilcoxon matched-pairs signed-rank test and a Wilcoxon rank-sum test, as appropriate, to test for identity of populations. | Including the use of normal approximations where appropriate. Questions will not involve tied ranks or zero‑difference pairs. |
Source: Cambridge International syllabus
A non-parametric test 非参数检验 makes no assumption that the data is normal, so it is useful when that assumption fails. The basic ones are:
- the sign test 符号检验: count how many values fall above and below a proposed median, and test those counts with a binomial model;
- the Wilcoxon signed-rank test 威尔科克森符号秩检验 (the matched-pairs test for paired data), which also uses the sizes of the differences, not just their signs;
- the Wilcoxon rank-sum test 威尔科克森秩和检验, for comparing two separate samples.
The sign test counts how many values fall above and below the proposed median, then tests those counts with a binomial model
Worked example. Test whether a median is $5$. In a sample of $10$ values (none equal to $5$), $9$ lie above $5$ and $1$ lies below. Test at the $5\%$ level (two-tailed).
Under $H_0$ (median $= 5$) the number above follows $B(10, 0.5)$. The observed result ($9$ above) is extreme, so find $P(X \geq 9) = \binom{10}{9}(0.5)^{10} + (0.5)^{10} = \dfrac{11}{1024} = 0.0107$. For a two-tailed test compare with $\tfrac{1}{2}(5\%) = 0.025$. Since $0.0107 < 0.025$, reject $H_0$: there is evidence the median is not $5$.
Non-parametric test chooser
Choose the rank-based test that matches the data situation.
| English | Chinese | Pinyin |
|---|---|---|
| non-parametric test | 非参数检验 | fēi cān shù jiǎn yàn |
| sign test | 符号检验 | fú hào jiǎn yàn |
| Wilcoxon signed-rank test | 威尔科克森符号秩检验 | wēi ěr kē kè sēn fú hào zhì jiǎn yàn |
| Wilcoxon rank-sum test | 威尔科克森秩和检验 | wēi ěr kē kè sēn zhì hé jiǎn yàn |
4.5
Probability generating functions
Syllabus
| Candidates should be able to: | Notes and examples |
|---|---|
| understand the concept of a probability generating function (PGF) and construct and use the PGF for given distributions | Including the discrete uniform, binomial, geometric and Poisson distributions. |
| use formulae for the mean and variance of a discrete random variable in terms of its PGF, and use these formulae to calculate the mean and variance of a given probability distribution | |
| use the result that the PGF of the sum of independent random variables is the product of the PGFs of those random variables. |
Source: Cambridge International syllabus
Dice: a starting point for probability and discrete random variables.
The probability generating function 概率母函数 of a discrete variable $X$ is
Worked example. $X$ has $P(X=0) = 0.5$, $P(X=1) = 0.3$, $P(X=2) = 0.2$. Find $E(X)$ using the PGF.
Here $G(t) = 0.5 + 0.3t + 0.2t^2$, so $G'(t) = 0.3 + 0.4t$ and
Probability generating function lab
G(x) = p0 + p1 x + p2 x^2 + ...
Change x and see how a PGF stores probabilities in powers of x.
| English | Chinese | Pinyin |
|---|---|---|
| probability generating function | 概率母函数 | gài lǜ mǔ hán shù |
4.5
Exam tips
- For a continuous random variable, the pdf integrates to $1$ over its range, and $E(X) = \int x f(x)\,dx$.
- Use the $t$-distribution when the sample is small and the population variance is unknown; state the degrees of freedom.
- For a chi-squared test compute $\sum (O-E)^2/E$, compare with the critical value at the right degrees of freedom, and combine classes with $E < 5$.
- State $H_0$ and $H_1$ and give the conclusion in context for every test.