All revision notes topics

Hypothesis test for a binomial proportionAQA A-Level Maths: Revision notes

Section 1

Setting up the test

A test uses a sample to make an inference about the population: the value of pp for all trials. Follow the same steps each time.

  1. Define pp in words and write H0H_0 and H1H_1.
  2. State the distribution of the test statistic under H0H_0, such as X∼B(12,0.25)X\sim B(12,0.25).
  3. Use either the pp-value or a critical region at the stated significance level.
  4. Make a decision about H0H_0, then state the conclusion in context. The significance level is the probability of incorrectly rejecting H0H_0 (rejecting it when it is true).
Key termsinferencesamplepopulation
Common mistake

Using the sample proportion xn\frac{x}{n} as pp in the distribution. Always use the value of pp in H0H_0.

Section 2

The pp-value method

Calculate the probability, under H0H_0, of a result at least as extreme as the observed value xx in the direction of H1H_1.

  • H1:p<p0H_1:p<p_0: pp-value =P(X≤x)=P(X\le x).
  • H1:p>p0H_1:p>p_0: pp-value =P(X≥x)=1−P(X≤x−1)=P(X\ge x)=1-P(X\le x-1). Compare with the significance level. If pp-value ≤α\le\alpha, reject H0H_0. Example: historically 25% of buses are late. In 12 journeys 1 is late. H0:p=0.25H_0:p=0.25, H1:p<0.25H_1:p<0.25. pp-value =P(X≤1)=0.1584>0.05=P(X\le1)=0.1584>0.05, so do not reject H0H_0: there is insufficient evidence that the proportion of late buses has decreased.
Key termsp-value
Exam tip

Write the probability you are calculating, for example P(X≥6)=1−P(X≤5)P(X\ge6)=1-P(X\le5), before using the calculator.

Section 3

The critical region method

Find the critical region for the significance level first, then see whether the observed value lies in it. Example: H0:p=0.7H_0:p=0.7, H1:p>0.7H_1:p>0.7, X∼B(20,0.7)X\sim B(20,0.7), 5% level. P(X≥17)=0.107>0.05P(X\ge17)=0.107>0.05 but P(X≥18)=0.0355≤0.05P(X\ge18)=0.0355\le0.05, so the critical region is X≥18X\ge18. An observed value of 17 is not in it, so H0H_0 is not rejected. The actual significance level here is 0.03550.0355, which is lower than 5%5\% because XX is discrete.

Key termscritical regionactual significance level

Section 4

Two-tailed tests

When H1:p≠p0H_1:p\ne p_0, split the significance level equally between the two tails. At the 5% level, compare the relevant tail probability with 0.0250.025. Example: a coin gives 9 heads in 10 tosses. H0:p=0.5H_0:p=0.5, H1:p≠0.5H_1:p\ne0.5. P(X≥9)=0.0107<0.025P(X\ge9)=0.0107<0.025, so reject H0H_0: there is sufficient evidence that the coin is biased. Use the tail in the direction of the observed result: the lower tail P(X≤x)P(X\le x) if xx is below the expected value np0np_0, and the upper tail P(X≥x)P(X\ge x) if it is above.

Key termstwo-tailed test
Common mistake

Comparing a one-tail probability with the full 5% in a two-tailed test. Compare it with 2.5%2.5\%.

Section 5

Interpreting the result

The conclusion has two parts: the decision about H0H_0, then a sentence in context. Use cautious wording.

  • Reject H0H_0: "There is sufficient evidence, at the 5% level, that the proportion of defective items is higher than 8%."
  • Do not reject H0H_0: "There is insufficient evidence that the cure rate is higher." This does not prove H0H_0 true. The result can depend on the significance level: a pp-value of 0.02930.0293 rejects H0H_0 at 5% but not at 1%. Because a sample is used, the test can reach the wrong decision. The probability of incorrectly rejecting H0H_0 is the significance level. A larger sample gives a more reliable estimate of pp.
Key termssignificance level
Common mistake

Writing "the claim is true" or "the advert works" as the conclusion. A test gives evidence, not proof.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Hypothesis test for a binomial proportion

  1. A bus company knows that, historically, 25% of its buses arrive late. After the timetable is changed, a manager records a random sample of 12 journeys and finds that exactly 1 bus is late. She wants to test, at the 5% significance level, whether the proportion of late buses has decreased. Let XX be the number of late buses in a sample of 12.
    Describe what it would mean, in context, to reject H0H_0 incorrectly, and state the significance level of this test (the greatest probability of this happening).2 marks
  2. Ali suspects that a coin is biased. He tosses it 10 times and gets 9 heads. He tests, at the 5% significance level, whether the probability pp of heads is different from 0.50.5. Let XX be the number of heads in 10 tosses.
    State the conclusion of Ali's test in context.2 marks
  3. A factory knows that 8% of the items from its usual supplier are defective. It tries a new supplier and the quality manager suspects that the proportion of defective items will be higher. A random sample of 30 items from the new supplier contains 6 defective items. Let XX be the number of defective items in a sample of 30, and let pp be the probability that an item from the new supplier is defective.
    Write down suitable hypotheses and find the pp-value for the sample result.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).