All revision notes topics

Language of hypothesis testingEdexcel A-Level Maths: Revision notes

Section 1

Hypotheses

A hypothesis test uses data from a sample to decide whether a claim about a population is believable.

  • The null hypothesis, H0H_0, is the claim assumed true at the start, written as H0:p=p0H_0:p=p_0.
  • The alternative hypothesis, H1H_1, is what we suspect instead: p>p0p>p_0, p<p0p<p_0 or p≠p0p\ne p_0. Hypotheses are always written in terms of the population parameter pp (the probability of success, or proportion in the population), never in terms of the sample statistic XX. Example: a coin is suspected of being biased towards heads: H0:p=0.5H_0:p=0.5, H1:p>0.5H_1:p>0.5.
Key termsnull hypothesisalternative hypothesispopulationsample
Common mistake

Writing H0:X=10H_0:X=10 or H0:xˉ=…H_0:\bar x=\dots. Hypotheses are about the parameter pp.

Section 2

Test statistic and significance level

The test statistic is the value calculated from the sample, here the number of successes XX. If H0H_0 is true, X∼B(n,p0)X\sim B(n,p_0), and we ask how likely a result like the one observed would be. The significance level is chosen in advance, commonly 5% or 1%. It is the probability of incorrectly rejecting H0H_0 when H0H_0 is actually true. A smaller significance level demands stronger evidence before H0H_0 is rejected.

Key termstest statisticsignificance level

Section 3

One-tailed and two-tailed tests

  • A one-tailed test has H1H_1 in one direction (p>p0p>p_0 or p<p0p<p_0): the whole significance level goes in that tail.
  • A two-tailed test has H1:p≠p0H_1:p\ne p_0: the significance level is split equally between the two tails. A 10% test has 5% in each tail. To decide which tail a result lies in, compare it with the expected value np0np_0 under H0H_0. For B(30,16)B(30,\frac16) the mean is 5, so an observation of 1 lies in the lower tail and 9 in the upper tail.
Key termsone-tailedtwo-tailed
Exam tip

Look at the wording: 'greater than', 'less than' or 'increased' mean one tail; 'different from' or 'changed' means two tails.

Section 4

Critical region, critical value and acceptance region

The critical region is the set of values of the test statistic that lead to rejecting H0H_0. Its boundary is the critical value. The acceptance region is the remaining values. To find an upper-tail critical region, find the smallest cc with P(X≥c)≤P(X\ge c)\le the significance level. For a lower tail, find the largest cc with P(X≤c)≤P(X\le c)\le the significance level. The actual significance level is the probability of the whole critical region under H0H_0 and is usually a little less than the stated level. For X∼B(20,0.5)X\sim B(20,0.5) and critical region X≥15X\ge15 it is 0.02070.0207.

Key termscritical regioncritical valueacceptance regionactual significance level
Common mistake

Choosing a critical region with probability greater than the significance level because it is closer to it. The critical region must have probability at most the significance level.

Section 5

The p-value and conclusions

The pp-value is the probability, assuming H0H_0 is true, of obtaining a result at least as extreme as the one observed. For H1:p>p0H_1:p>p_0 and observed value xx, the pp-value is P(X≥x)P(X\ge x).

  • If the pp-value is less than or equal to the significance level (halved in a two-tailed test), reject H0H_0.
  • Otherwise there is insufficient evidence to reject H0H_0. Always conclude in context and with cautious language: 'there is evidence at the 5% level that the proportion of eggs containing a toy is greater than 20%'. A test never proves H0H_0 or H1H_1 true.
Key termsp-valueinsufficient evidence
Common mistake

Saying the pp-value is the probability that H0H_0 is true. It is calculated assuming H0H_0 is true.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Language of hypothesis testing

  1. A coin is suspected of being biased towards heads. Let pp be the probability that the coin lands heads. The coin is tossed 20 times and XX is the number of heads. A hypothesis test is carried out at the 5% significance level.
    The critical region for this test is X≥15X\ge15. Find the actual probability of rejecting H0H_0 when it is true.2 marks
  2. A die is thought to be biased with respect to sixes. Let pp be the probability that the die lands on six. The die is rolled 30 times and XX is the number of sixes. The test of H0:p=16H_0:p=\frac16 against H1:p≠16H_1:p\ne\frac16 is carried out at the 10% significance level.
    Find the critical region for the lower tail of this test.2 marks
  3. A manufacturer claims that 20% of its chocolate eggs contain a toy. A child believes that the proportion is greater than 20%. In a random sample of 25 eggs, 9 contain a toy. Let pp be the proportion of all the manufacturer's eggs that contain a toy, and let XX be the number of eggs in a sample of 25 that contain a toy.
    State the null and alternative hypotheses, and state the distribution of XX if the null hypothesis is true.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).