Home / AS & A Level Mathematics 9709 / Hypothesis tests
Cambridge International AS & A Level Mathematics 9709 · Probability & Statistics 2

Hypothesis tests

The language and logic of hypothesis testing, tests for a binomial proportion and a Poisson mean from a single observation (directly or by a normal approximation), tests for a population mean using a normal distribution, and the probabilities of Type I and Type II errors.

6.5Paper 6: Probability & Statistics 2Free lesson
What the syllabus says

6.5 (Paper 6)

  • understand the nature of a hypothesis test, the difference between one-tailed and two-tailed tests, and the terms null hypothesis, alternative hypothesis, significance level, rejection region (or critical region), acceptance region and test statistic
  • formulate hypotheses and carry out a hypothesis test in the context of a single observation from a population which has a binomial or Poisson distribution, using - direct evaluation of probabilities - a normal approximation to the binomial or the Poisson distribution, where appropriate
  • formulate hypotheses and carry out a hypothesis test concerning the population mean in cases where the population is normally distributed with known variance or where a large sample is used
  • understand the terms Type I error and Type II error in relation to hypothesis tests
  • calculate the probabilities of making Type I and Type II errors in specific situations involving tests based on a normal distribution or direct evaluation of binomial or Poisson probabilities.

Notes and examples

  • Outcomes of hypothesis tests are expected to be interpreted in terms of the contexts in which questions are set.

Quoted from the Cambridge International AS and A Level Mathematics 9709 syllabus (2026-2027 and 2028-2030 editions, which share this content).

The idea of a hypothesis test Paper 6

A hypothesis test asks whether data give real evidence against an accepted value of a parameter, or whether the result could easily be chance.

  • The null hypothesis H0 states the accepted value, for example H0:p=0.3. The test is carried out assuming it is true.
  • The alternative hypothesis H1 says how we suspect the value has changed: p<0.3, p>0.3, or p≠0.3.
  • The test statistic is the quantity calculated from the sample: a count X, or a sample mean X‾, or its standardised value z.
  • The significance level α, such as 5%, is the threshold for "too unlikely to be chance".

If, assuming H0, the probability of a result as extreme as the one observed, or more extreme, is less than α, we reject H0: there is evidence for H1. Otherwise we do not reject H0: there is not enough evidence. Never say that H0 is proved true, or that H1 is proved: a test gives evidence, not certainty.

One tail or two. If H1 points in one direction (p>0.3 or p<0.3) the test is one-tailed. If it only says "has changed" (p≠0.3) it is two-tailed, and the significance level is split equally between the two ends: at 5%, compare the probability in the relevant tail with 2.5%. Choose the alternative from the wording of the question before looking at the data.

Regions. The critical region (or rejection region) is the set of values of the test statistic that lead to rejecting H0; the acceptance region is the rest. The critical value is the boundary between them.

Conclusions in context. Every test ends with a sentence about the real situation, with a non-definite word such as "evidence": "There is evidence at the 5% significance level that the proportion of customers buying dessert has decreased."

Tests using the binomial distribution Paper 6

For a single observation X from B(n,p), the test is about p:

  1. State H0:p=p0 and H1, defining p in context.
  2. Under H0, X∼B(n,p0).
  3. Find the probability of the observed value or more extreme, in the direction of H1: P(X⩽x) for H1:p<p0, P(X⩾x) for H1:p>p0.
  4. Compare with the significance level (or half of it for a two-tailed test), decide, and conclude in context.

Use cumulative probabilities, never the single probability P(X=x): any one value is unlikely, so the question is whether the observation is far out in the tail.

Finding a critical region. Add up tail probabilities until the next one would exceed the significance level. For example, under B(25,0.3), P(X⩽3)=0.0332 but P(X⩽4)=0.0905, so at 5% the critical region for H1:p<0.3 is X⩽3. Its actual probability, 0.0332, is less than 5% because X is discrete.

Worked example 1 Paper 6

A cafe owner believes that 30% of customers order a dessert. After a price rise, she thinks the proportion has decreased. In a random sample of 20 customers, 2 order a dessert. Test her belief at the 5% significance level.

  1. H0:p=0.3, H1:p<0.3, where p is the proportion of all customers who order a dessert.

  2. Under H0, X∼B(20,0.3).

  3. P(X⩽2)=0.720+20(0.3)(0.7)19+(202)(0.3)2(0.7)18=0.0355 (3 s.f.).

  4. 0.0355<0.05, so reject H0.

  5. There is evidence at the 5% significance level that the proportion of customers ordering a dessert has decreased.

Answer: Reject H0 (probability 0.0355)

Tests using the Poisson distribution Paper 6

For a single observation from Po(λ) the method is the same, with hypotheses about the mean rate λ. Scale λ to the interval observed first: if the usual rate is 1.5 per day and one week is observed, H0:λ=10.5 for that week, or state the hypotheses about the daily rate and use Po(10.5) for the weekly count.

Worked example 2 Paper 6

A shop usually sells 6 bicycles a week. After a competitor opens nearby, the shop sells 2 bicycles in one week. Test at the 5% significance level whether the mean weekly number of sales has decreased.

  1. H0:λ=6, H1:λ<6, where λ is the mean number of bicycles sold per week.

  2. Under H0, X∼Po(6): P(X⩽2)=e−6(1+6+18)=25e−6=0.0620 (3 s.f.).

  3. 0.0620>0.05, so do not reject H0.

  4. There is insufficient evidence at the 5% significance level that the mean number of sales has decreased.

Answer: Do not reject H0 (probability 0.0620)

Check yourself Paper 6

Under H0, X∼B(15,0.2), and H1:p>0.2. The observed value is X=6. Find the probability used in the test.

Answer it in the portal, where your answer is checked as you type →

Using a normal approximation Paper 6

For large samples, exact binomial or Poisson tails need many terms. Use the approximations from earlier topics:

  • B(n,p)≈N(np,np(1−p)) when np>5 and n(1−p)>5;
  • Po(λ)≈N(λ,λ) when λ>15;

in each case with a continuity correction. For an observed x=66 with H1:p<p0, find P(X⩽66)≈P(Y<66.5). The parameters of the normal distribution come from H0, because the test assumes H0 is true.

Tests for a population mean Paper 6

To test H0:μ=μ0 from a sample of size n, use the sample mean. Under H0,
X‾∼N(μ0,σ2n),
exactly if the population is normal with known variance, or approximately by the Central Limit Theorem if the sample is large, with σ2 estimated by s2. The test statistic is
z=x‾−μ0σ/n.
Compare z with the critical value from MF19: for a one-tailed test at 5% it is 1.645 (or −1.645 for H1:μ<μ0); for a two-tailed test at 5% it is ±1.960; at 1%, 2.326 one-tailed and ±2.576 two-tailed. Reject H0 if z is beyond the critical value. Equivalently, compare the tail probability P(Z>|z|) with the significance level. Show the comparison explicitly.

z0-1.961.96

A two-tailed test at 5%: the critical region is z<−1.96 or z>1.96, each tail holding 2.5%. For a one-tailed test the whole 5% sits in one tail, beyond 1.645 or −1.645.

Worked example 3 (exam style) Paper 6

The times taken to assemble a toy are normally distributed with mean 32 minutes and standard deviation 2.4 minutes. After new training, a random sample of 30 assemblies has mean time 31.2 minutes. Assume the standard deviation is unchanged. (a) Test at the 5% significance level whether the mean time has decreased. (b) State the critical region for x‾.

  1. (a) H0:μ=32, H1:μ<32, where μ is the population mean assembly time in minutes after training.

  2. z=31.2−322.4/30=−1.826.

  3. The critical value is −1.645. −1.826<−1.645, so reject H0.

  4. There is evidence at the 5% significance level that the mean assembly time has decreased after the training.

  5. (b) Reject when x‾−322.4/30<−1.645, that is x‾<32−1.645×2.430=31.28.

Answer: z=−1.826: reject H0

Check yourself Paper 6

H0:μ=80 is tested against H1:μ≠80. The population is normal with standard deviation 5, and a sample of 16 has mean 82.1. Find the value of the test statistic z.

Answer it in the portal, where your answer is checked as you type →

Type I and Type II errors Paper 6

A test can go wrong in two ways:

  • a Type I error is rejecting H0 when it is actually true;
  • a Type II error is not rejecting H0 when it is actually false.

P(Type I error) =P(test statistic in the critical region|H0 true). For a normal test this is exactly the significance level. For a binomial or Poisson test it is the actual probability of the critical region, which is usually a little less than the stated level.

P(Type II error) needs a particular true value of the parameter, which the question gives: it is P(test statistic in the acceptance region|that true value). So first find the critical region using H0, then find the probability of not being in it using the new value.

The two errors pull against each other: making the critical region smaller reduces the chance of a Type I error but increases the chance of a Type II error. A larger sample can reduce both.

Worked example 4 Paper 6

A spinner is thought to land on red with probability 0.25. To test H0:p=0.25 against H1:p>0.25, it is spun 12 times, and H0 is rejected if it lands on red 6 or more times. (a) Find the probability of a Type I error. (b) Find the probability of a Type II error if in fact p=0.5.

  1. (a) Type I: P(X⩾6) when X∼B(12,0.25), which is 1−P(X⩽5)=1−0.9456=0.0544 (3 s.f.).

  2. (b) Type II: not rejecting, X⩽5, when X∼B(12,0.5): P(X⩽5)=0.387 (3 s.f.).

  3. So this test would usually miss a spinner that lands on red half the time: 12 spins is not many.

Answer: (a) 0.0544 (b) 0.387

Check yourself Paper 6

Which statement describes a Type II error?

Answer it in the portal, where your answer is checked as you type →

Key points

  • State H0 and H1 about a parameter (p, λ or μ), and define it in context.

  • Compare the probability of the observed value or more extreme (or z against a critical value) with the significance level; halve the level for each tail of a two-tailed test.

  • Conclude in context with "evidence", never "proves".

  • Normal approximations to binomial and Poisson tests need a continuity correction and their conditions.

  • Test for a mean: z=x‾−μ0σ/n, with s for σ in a large sample.

  • Type I: reject a true H0. Type II: fail to reject a false H0, worked out with the given true value.

Where marks are lost Paper 6

  • Using P(X=x) instead of the tail probability P(X⩽x) or P(X⩾x).

  • Writing hypotheses with the sample value (H0:p=0.1 when 2 out of 20 were observed) or without defining the parameter.

  • Forgetting to halve the significance level in a two-tailed test.

  • Conclusions that are definite ("this proves the mean has fallen") or not in context.

  • For a Type II error, using the H0 value instead of the given true value.

  • Dividing by σ instead of σn in the test statistic.

Related AS & A Level Mathematics 9709 lessons

All AS & A Level Mathematics 9709 lessons →

An original lesson written to the Cambridge International AS & A Level Mathematics 9709 syllabus (2026 to 2027 and 2028 to 2030). The worked examples and questions are our own, not Cambridge questions. Back to every AS & A Level Mathematics 9709 lesson.