Skip to content
Cambridge AS & A Level9709

Hypothesis tests

Mathematics 9709 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Hypothesis tests notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Hypothesis tests notes as text: skim, search, and jump between subtopics.

~17 min read

1. Hypotheses, tails and the conclusion

A hypothesis test starts from the null hypothesis H₀, the value we assume, and the alternative hypothesis H₁, how the value differs. Write the parameter in full: population mean or μ for a mean, p for a proportion, λ for a Poisson mean.

Use a one-tail test when the question asks whether a value has increased or decreased. Use a two-tail test when it asks whether it has changed. In a two-tail test, half the significance level goes in each tail.

The test statistic is the value calculated from the sample. The rejection region (critical region) is the set of values that lead to H₀ being rejected. The rest is the acceptance region. Always compare, then conclude with evidence, in context.

H₀: μ = μ₀ H₁: μ < μ₀, μ > μ₀ or μ ≠ μ₀

Examiner insight

“Few candidates were successful in stating the hypotheses and many candidates made no attempt.” “The conclusion needed to be in context and not definite, for example ‘there is evidence that the mean time has changed’ is acceptable but ‘the mean time has changed’ is not.”

Worked example 14 marks

An architect wishes to investigate whether the buildings in a certain city are higher, on average, than buildings in other cities. He takes a large random sample of buildings from the city and finds the mean height of the buildings in the sample. He calculates the value of the test statistic, z, and finds that z = 2.41.

(a) Explain briefly whether he should use a one-tail test or a two-tail test.

(b) Carry out the test at the 1% significance level.

  1. 1

    (a) one-tail, because he is investigating whether buildings are ‘higher’ [1]

  2. 2

    (b) H₀: population mean height in the city is the same as in other cities; H₁: population mean height in the city is greater [1]

  3. 3

    2.41 > 2.326 (the one-tail 1% value), so H₀ is rejected [1]

  4. 4

    there is evidence that buildings in the city are higher, on average [1]

2. Direct evaluation: binomial and Poisson tests

For one observation x from a binomial or Poisson population, find the probability of the result or one more extreme under H₀. Compare it with the significance level.

For H₁ with ‘greater than’, find P(X ≥ x). This is 1 - P(X ≤ x - 1). For ‘less than’, find P(X ≤ x). Write out the full expression, then the value.

If the probability is smaller than the significance level, reject H₀. Otherwise there is no evidence against it.

P(X ≥ x) = 1 - P(X ≤ x - 1)

P(X = r) = binomnr p^(r) (1-p)^(n-r) P(X = r) = (e^(-λ)λ^(r))/(r!)

Examiner insight

“It was required to find P(X ⩾ 4), and common errors included finding P(X = 4) or P(X > 4).” “The distribution was B(25,0.08) and all terms in the Binomial expression needed to be clearly and fully stated.”

Worked example 15 marks

It is known that 8% of adults in a certain town own a Chantor car. After an advertising campaign, a car dealer wishes to investigate whether this proportion has increased. He chooses a random sample of 25 adults from the town and notes how many of them own a Chantor car. He finds that 4 of the 25 adults own a Chantor car. Carry out a hypothesis test at the 5% significance level.

  1. 1

    H₀: p = 0.08; H₁: p > 0.08, where p is the population proportion [1]

  2. 2

    under H₀, X ∼ B(25, 0.08); need P(X ≥ 4) = 1 - P(X ≤ 3) [1]

  3. 3

    = 1 - (0.92²⁵ + 25 × 0.92²⁴ × 0.08 + binom252 × 0.92²³ × 0.08² + binom253 × 0.92²² × 0.08³) [1]

  4. 4

    = 0.135 (3 s.f.), and 0.135 > 0.05 [1]

  5. 5

    H₀ is not rejected: there is no evidence that the proportion owning a Chantor car has increased [1]

3. Finding a rejection region

To find a rejection region, work from the tail inwards. Find P(X ≤n) for successive values using the distribution under H₀. Stop at the largest (or smallest) value whose probability is below the significance level.

Show two probabilities: the last value that is inside the region and the first that is outside. Give each to 3 significant figures.

The probability of a Type I error is the probability of landing in the rejection region when H₀ is true. It is not the significance level.

Examiner insight

“Working out must be shown so that it is clear that B(20, 0.95) was used to find P(X ⩽ 17) and P(X ⩽ 16); merely quoting B(20, 0.95) was not sufficient.” “Some candidates only found P(X ⩽ 16), which was not sufficient to fully justify the rejection region.”

Worked example 14 marks

A national survey shows that 95% of year 12 students use social media. Arvin suspects that the percentage of year 12 students at his college who use social media is less than the national percentage. He chooses a random sample of 20 students at his college and notes the number who use social media. He then carries out a test at the 2% significance level. Find the rejection region for the test.

  1. 1

    H₀: p = 0.95, H₁: p < 0.95; under H₀, X ∼ B(20, 0.95); find P(X ≤n) [1]

  2. 2

    P(X ≤ 17) = 0.0755 > 0.02, so 17 is not in the region [1]

  3. 3

    P(X ≤ 16) = 0.0159 < 0.02, so 16 is in the region [1]

  4. 4

    rejection region is X ≤ 16 [1]

4. Using a normal approximation

When n is large, approximate X ∼ B(n,p) by a normal distribution with the same mean and variance. For X ∼ Po(λ) with a large λ, use N(λ, λ). Then standardise.

Because a discrete variable is replaced by a continuous one, use a continuity correction. For P(X ≤ 45) use 45.5. For P(X ≥ 45) use 44.5.

Compare z with the critical value, or the probability with the significance level. For a two-tail test at 5%, the critical value is 1.96 and the area to compare is 0.025.

X ∼ B(n, p) ≈ N(np, np(1-p))

X ∼ Po(λ) ≈ N(λ, λ)

z = (x ± 0.5 - np)/(√(np(1-p)))

Examiner insight

“Many candidates used an incorrect normal distribution and use of a wrong, or no, continuity correction was commonly seen.” “It was important that a clear and valid comparison was shown between the calculated z and the critical z, or equivalent area comparison (where a common error seen was to compare with 0.05 rather than 0.025).”

Worked example 15 marks

Harry has a five-sided spinner with sectors coloured blue, green, red, yellow and black. Harry thinks the spinner may be biased. He plans to carry out a hypothesis test with the hypotheses H₀: P(lands on blue) = 1/5 and H₁: P(lands on blue) ≠ 1/5. Harry spins the spinner 300 times. It lands on blue on 45 spins. Use a suitable approximation to carry out Harry’s test at the 5% significance level.

  1. 1

    X ∼ B(300, 1/5) ≈ N(60, 48), since np = 60 and np(1-p) = 48 [1]

  2. 2

    P(X ≤ 45) becomes P(X < 45.5): z = (45.5 - 60)/(√48) [1]

  3. 3

    = -2.093 [1]

  4. 4

    two-tail test: 2.093 > 1.96 [1]

  5. 5

    H₀ is rejected: there is evidence that P(lands on blue) ≠ 1/5, that is, that the spinner is biased [1]

5. Testing a population mean

For a sample of size n from a normal population with known variance, or any large sample, the sample mean is normally distributed under H₀. The test statistic is z.

Divide by σ/(√n), not by σ. If the variance is unknown but n is large, use the unbiased estimate of the variance.

Compare z with the critical value: 1.645 for a one-tail 5% test, 2.326 for one-tail 1%, and 1.96 for two-tail 5%. State the conclusion in context.

z = (barx - μ₀)/(σ / √n)

s² = 1/(n-1)(sum x² - nbarx²)

Examiner insight

“Many candidates standardised correctly, though some omitted √100.” “After standardising to find z, a clear comparison was required and a common error for those who compared z values was to compare with 2.326 rather than 2.054.”

Worked example 15 marks

In the past the time, in minutes, taken by students to complete a certain challenge had mean 25.5 and standard deviation 5.2. A new challenge is devised and it is expected that students will take, on average, less than 25.5 minutes to complete this challenge. A random sample of 40 students is chosen and their mean time for the new challenge is found to be 23.7 minutes. Assuming that the standard deviation of the time for the new challenge is 5.2 minutes, test at the 1% significance level whether the population mean time for the new challenge is less than 25.5 minutes.

  1. 1

    H₀: μ = 25.5; H₁: μ < 25.5 [1]

  2. 2

    z = (23.7 - 25.5)/(5.2 / √40) [1]

  3. 3

    = -2.189 [1]

  4. 4

    -2.189 > -2.326, so z is not in the rejection region [1]

  5. 5

    H₀ is not rejected: there is no evidence that the mean time has decreased [1]

6. Type I and Type II errors

A Type I error is made when H₀ is rejected although H₀ is true. A Type II error is made when H₀ is not rejected although H₀ is false.

The test outcome tells you which error is possible. If H₀ was not rejected, a Type II error might have been made and a Type I error cannot. If H₀ was rejected, a Type I error might have been made.

In context, say what the conclusion of the test would be and what the reality is. A generic definition scores nothing.

Examiner insight

“Generic definitions of a Type 1 error were not acceptable.” “Many candidates merely said a Type II error could be made but did not say that a Type I could not.”

Worked example 12 marks

A car dealer tests, at the 5% significance level, whether the proportion of adults in a town who own a Chantor car has increased from 0.08. In his test, 0.135 > 0.05, so H₀ is not rejected. Explain which of the errors, Type I or Type II, might have been made in carrying out the test.

  1. 1

    H₀ was not rejected [1]

  2. 2

    hence a Type II error might have been made (a Type I error cannot) [1]

7. Calculating the probability of each error

Type I: assume H₀ is true. Find the probability that the result lands in the rejection region.

Type II: assume the true value the question gives. Find the probability that the result lands outside the rejection region, in the acceptance region.

Use the same distribution family as the test, with the new parameter for Type II. Check the direction: Type II is often 1 - P(…).

P(Type I) = P(reject H₀ mid H₀ true)

P(Type II) = P(do not reject H₀ mid H₀ false)

Examiner insight

“Occasionally full working was omitted, which as highlighted in the Key messages, is not acceptable.” “The most common error was to calculate P(0,1,2) rather than 1 – P(0,1,2).”

Worked example 15 marks

The number of accidents per 3-month period on a certain road has the distribution Po(λ). In the past the value of λ has been 5.7. Following some changes to the road, the council carries out a hypothesis test to determine whether the value of λ has decreased. If there are fewer than 3 accidents in a randomly chosen 3-month period, the council will conclude that the value of λ has decreased.

(a) Find the probability of a Type I error.

(b) Find the probability of a Type II error if the mean number of accidents per 3-month period is now actually 0.9.

  1. 1

    (a) Type I: H₀ true, λ = 5.7; P(X ≤ 2) [1]

  2. 2

    = e^(-5.7)(1 + 5.7 + 5.7²/(2!)) = 0.0768 [1]

  3. 3

    (b) Type II: λ = 0.9; P(X ≥ 3) = 1 - P(X ≤ 2) [1]

  4. 4

    = 1 - e^(-0.9)(1 + 0.9 + 0.9²/(2!)) [1]

  5. 5

    = 0.0629 [1]

Recap

  • H₀ and H₁ use the population parameter. ‘Increased’ or ‘decreased’ is one-tail, ‘changed’ is two-tail.
  • Binomial or Poisson test: find the tail probability, for example P(X ≥ 4) = 1 - P(X ≤ 3), and compare with the significance level.
  • Rejection region: show the probability for the last value in and the first value out, to 3 significant figures.
  • Normal approximation to the binomial: N(np, np(1-p)) with a continuity correction.
  • Mean test: z = (barx - μ₀)/(σ/√n). Two-tail 5% uses 1.96, one-tail 5% uses 1.645.
  • Conclude with ‘there is evidence that…’ or ‘no evidence that…’, in context. Never ‘the mean has decreased’.
  • Type I: reject a true H₀. Type II: do not reject a false H₀. Type II uses the true value given.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. The mean mass of eggs from a farm was 62 g. The farmer wishes to test whether the mean mass has changed. State whether a one-tail or two-tail test is needed and state suitable hypotheses.2 marks
    Answer
    1. Two-tail, because the question asks whether the mean has changed, in either direction.
    2. H₀: population mean = 62; H₁: population mean ≠ 62.

    Trap: ‘Mean’ alone is not enough: write ‘population mean’ or μ.

  2. A school tests H₀: p = 0.3 against H₁: p < 0.3, where p is the proportion of its students who cycle to school. Describe, in context, what a Type I error and a Type II error would be.2 marks
    Answer
    1. Type I: conclude that the proportion who cycle is less than 0.3 when it is still 0.3.
    2. Type II: conclude there is no evidence the proportion has fallen when it is actually less than 0.3.

    Trap: A generic definition (‘rejecting a true H₀’) is not in context.

  3. A seed producer says that 80% of its seeds germinate. A gardener thinks the true proportion is lower. She plants 15 seeds and 9 germinate. Test the producer’s claim at the 5% significance level.5 marks
    Answer
    1. H₀: p = 0.8; H₁: p < 0.8.
    2. Under H₀, X ∼ B(15, 0.8). Need P(X ≤ 9).
    3. P(X ≤ 9) = 0.0611.
    4. 0.0611 > 0.05, so H₀ is not rejected.
    5. There is no evidence that the proportion of seeds that germinate is less than 0.8.

    Trap: P(X < 9) = 0.0181 leaves out the observed value and wrongly rejects H₀.

  4. Under H₀, X ∼ B(12, 0.4). A test of H₀: p = 0.4 against H₁: p > 0.4 is carried out at the 10% significance level using one observation of X. Find the rejection region and the probability of a Type I error.4 marks
    Answer
    1. P(X ≥ 7) = 0.158 > 0.10, so 7 is not in the region.
    2. P(X ≥ 8) = 0.0573 < 0.10, so 8 is in the region.
    3. Rejection region: X ≥ 8.
    4. Probability of a Type I error = 0.0573.

    Trap: The Type I probability is 0.0573, not the significance level 0.10.

  5. Faults occur in a cable at a mean rate of 1.8 per metre. After a change to the process, an engineer believes that the rate has decreased. A 3 m length of the new cable is found to have 2 faults. Test at the 5% significance level, assuming faults occur as a Poisson process.5 marks
    Answer
    1. H₀: λ = 1.8 per metre; H₁: λ < 1.8 per metre.
    2. For 3 m, λ = 3 × 1.8 = 5.4, so X ∼ Po(5.4).
    3. P(X ≤ 2) = e^(-5.4)(1 + 5.4 + 5.4²/2) = 0.0948.
    4. 0.0948 > 0.05, so H₀ is not rejected.
    5. There is no evidence that the rate of faults has decreased.

    Trap: Using Po(1.8) for a 3 m length gives P(X ≤ 2) = 0.731.

  6. A filling machine puts a mean of 340 ml of juice into a bottle. After a new filler is fitted, the manager thinks the mean has decreased. The volume is normally distributed with standard deviation 12 ml, which is unchanged. A random sample of 36 bottles has mean volume 336.5 ml. Test at the 5% significance level.5 marks
    Answer
    1. H₀: μ = 340; H₁: μ < 340.
    2. z = (336.5 - 340)/(12 / √36) = (-3.5)/2 = -1.75.
    3. -1.75 < -1.645, so H₀ is rejected.
    4. There is evidence that the mean volume has decreased.

    Trap: Using 12 instead of 12/√36 gives z = -0.29.

  7. The time to load a web page was 50 ms on average. After an update, a technician tests whether the mean has changed. Assume the standard deviation is still 6.4 ms. A random sample of 64 pages has mean 51.4 ms. Test at the 5% significance level.5 marks
    Answer
    1. H₀: population mean = 50; H₁: population mean ≠ 50.
    2. z = (51.4 - 50)/(6.4 / √64) = 1.4/0.8 = 1.75.
    3. Two-tail test at 5%: critical value 1.96.
    4. 1.75 < 1.96, so H₀ is not rejected.
    5. There is no evidence that the mean loading time has changed.

    Trap: Using the one-tail value 1.645 would wrongly reject H₀.

  8. A manufacturer says 35% of its phone cases are blue. A shop owner thinks the true proportion is higher. In a random sample of 200 cases, 81 are blue. Use a normal approximation to test the claim at the 5% significance level.5 marks
    Answer
    1. H₀: p = 0.35; H₁: p > 0.35.
    2. X ∼ B(200, 0.35) ≈ N(70, 45.5).
    3. P(X ≥ 81) → P(X > 80.5): z = (80.5 - 70)/(√(45.5)) = 1.557.
    4. 1.557 < 1.645, so H₀ is not rejected.
    5. There is no evidence that the proportion of blue cases is more than 0.35.

    Trap: Using 81.5 gives z = 1.705 and the wrong conclusion.

  9. Emails arrive at a help desk at random, at a mean rate of 3.6 per hour. After a new online help page is launched, the manager tests whether the mean rate has decreased. She counts the emails in one randomly chosen 2-hour period and tests at the 5% significance level. (a) Find the rejection region for the test. (b) The true mean rate is now 2.1 per hour. Find the probability of a Type II error.6 marks
    Answer
    1. (a)
    2. Under H₀, X ∼ Po(7.2), since 2 × 3.6 = 7.2.
    3. P(X ≤ 2) = e^(-7.2)(1 + 7.2 + 7.2²/2) = 0.0255 < 0.05.
    4. P(X ≤ 3) = 0.0255 + e^(-7.2) × 7.2³/(3!) = 0.0719 > 0.05.
    5. Rejection region: X ≤ 2 [3].
    6. (b)
    7. Type II: H₀ is not rejected, so X ≥ 3, with X ∼ Po(4.2), since 2 × 2.1 = 4.2.
    8. P(X ≥ 3) = 1 - e^(-4.2)(1 + 4.2 + 4.2²/2) = 1 - 0.210 = 0.790 [3].

    Trap: Examiners most often saw P(0, 1, 2) given instead of 1 - P(0, 1, 2) for a Type II error; using Po(3.6) for a 2-hour period is the other slip.

  10. The length of a component is normally distributed with standard deviation 0.8 mm. A test of H₀: μ = 25.0 against H₁: μ > 25.0 uses a random sample of 16 components. H₀ is rejected if the sample mean exceeds a value c chosen for a 5% significance level. (a) Find c. (b) The true mean is 25.6 mm. Find the probability of a Type II error.6 marks
    Answer
    1. (a)
    2. Standard deviation of the mean = 0.8 / √16 = 0.2.
    3. c = 25.0 + 1.645 × 0.2 = 25.329 [2].
    4. (b)
    5. Type II: H₀ is not rejected, so barX ≤ 25.329, with barX ∼ N(25.6, 0.2²).
    6. z = (25.329 - 25.6)/0.2 = -1.355.
    7. Probability = Phi(-1.355) = 1 - Phi(1.355) = 0.0877 [4].

    Trap: Using 0.8 instead of 0.2 gives c = 26.3; and a Type II error uses the true mean 25.6, not 25.0.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
‘Reject H₀’, or ‘the mean time has decreased’There is evidence that the mean time has decreased
H₀: mean = 25 or x = 25H₀: population mean (or μ) = 25
a Type I error is rejecting a true null hypothesis (generic)conclude the mean time has changed although it is still 42.4
P(X > 4) or P(X = 4) for ‘4 or more’P(X ≥ 4) = 1 - P(X ≤ 3)

Frequently asked questions

How do I write the hypotheses for a test?
H0 states the value assumed, and H1 says how the value differs. Write the parameter in full, such as population mean or μ for a mean, p for a proportion, or λ for a Poisson mean. Use a one-tail test when the question asks whether a value has increased or decreased, and a two-tail test when it asks whether it has changed.
How do I test a binomial or Poisson proportion directly?
For one observation x, find the probability of the result or one more extreme under H0, and compare it with the significance level. For 'greater than', find P(X ≥ x) = 1 − P(X ≤ x − 1). For B(25, 0.08) with X = 4, P(X ≥ 4) = 0.135, which is greater than 0.05, so H0 is not rejected.
How do I find a rejection region?
Work from the tail inwards: find P(X ≤ n) for successive values under H0, and stop at the largest value whose probability is below the significance level. Show two probabilities, the last value inside and the first outside. For B(20, 0.95) at the 2% level, P(X ≤ 17) = 0.0755 and P(X ≤ 16) = 0.0159, so X ≤ 16 is the rejection region.
How do I carry out a z-test for a population mean?
For a normal population with known variance, or a large sample, use z = (x̄ − μ0)/(σ/√n). Divide by σ/√n, not σ. Compare z with the critical value: 1.645 for one-tail 5%, 2.326 for one-tail 1%, and 1.96 for two-tail 5%. For z = −2.189 at 1%, z is not below −2.326, so H0 is not rejected.
What is the difference between a Type I error and a Type II error?
A Type I error is made when H0 is rejected although H0 is true. A Type II error is made when H0 is not rejected although H0 is false. If H0 was not rejected, a Type II error might have been made and a Type I error cannot. In context, state the conclusion and the reality, such as concluding the mean time has changed when it is still 42.4.
What conclusion should I write after a hypothesis test, and what is a common mistake?
Write the conclusion in context and in non-definite language, such as 'there is evidence that the mean time has decreased'. Leaving the answer as 'Reject H0', or stating that the mean has decreased, is not sufficient. Include the context, because the conclusion must be stated in context.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters