All revision notes topics

Hypothesis tests for a binomial proportionEdexcel A-Level Maths: Revision notes

Section 1

Setting up the test

To test a claim about a proportion, define the parameter pp (for example, the proportion of all parcels delivered on time), then write hypotheses in terms of pp: H0:p=p0H1:p>p0,  p<p0 or p≠p0.H_0:p=p_0\qquad H_1:p>p_0,\;p<p_0\text{ or }p\ne p_0. The sample is used to make an inference about the population. If H0H_0 is true, the number of successes in the sample is X∼B(n,p0)X\sim B(n,p_0). The significance level is the probability of incorrectly rejecting H0H_0 when it is true. (A formal treatment of Type I errors is not required.)

Key termsparameterinferencesignificance level
Common mistake

Using the sample proportion, for example H0:p=1015H_0:p=\frac{10}{15}. Use the value claimed in the question.

Section 2

One-tailed test using the p-value

  1. Define pp and write H0H_0 and H1H_1.
  2. State the distribution of XX under H0H_0.
  3. Find the pp-value: for H1:p>p0H_1:p>p_0 it is P(X≥x)P(X\ge x); for H1:p<p0H_1:p<p_0 it is P(X≤x)P(X\le x), where xx is the observed value.
  4. Compare with the significance level and conclude in context. Example: a drug cures 30% of patients. 10 of 20 patients on a new drug are cured. X∼B(20,0.3)X\sim B(20,0.3), H1:p>0.3H_1:p>0.3. pp-value =P(X≥10)=1−P(X≤9)=0.0480<0.05=P(X\ge10)=1-P(X\le9)=0.0480<0.05, so reject H0H_0: there is evidence that the new drug cures a greater proportion.
Key termsp-value
Exam tip

Write 'reject H0H_0' or 'do not reject H0H_0', then the meaning in context. Do not write 'accept H0H_0' or 'prove'.

Section 3

Two-tailed tests

If H1:p≠p0H_1:p\ne p_0, the significance level is split equally: compare the tail probability with half the significance level. Decide which tail from the expected value np0np_0. For X∼B(30,0.4)X\sim B(30,0.4) the mean is 12, so an observation of 17 is in the upper tail and the pp-value is P(X≥17)=0.0481P(X\ge17)=0.0481. At the 5% level compare with 0.0250.025: 0.0481>0.0250.0481>0.025 so do not reject H0H_0. Alternatively, double the one-tail probability and compare with the full level.

Key termstwo-tailed
Common mistake

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

Section 4

Critical region method

Instead of a pp-value, find the critical region first, then see whether the observation lies in it. Example: X∼B(40,0.05)X\sim B(40,0.05), H1:p>0.05H_1:p>0.05, 1% level. P(X≥6)=0.0139>0.01P(X\ge6)=0.0139>0.01 but P(X≥7)=0.0034≤0.01P(X\ge7)=0.0034\le0.01, so the critical region is X≥7X\ge7 and the actual significance level is 0.00340.0034. An observation of 6 is not in the critical region, so do not reject H0H_0. Choose the critical region as large as possible with probability at most the significance level.

Key termscritical regionactual significance level

Section 5

Writing the conclusion

A full conclusion has two parts: a statement about H0H_0 and a statement in context.

  • Reject H0H_0: 'There is evidence at the 5% level that the new drug cures more than 30% of patients.'
  • Do not reject H0H_0: 'There is insufficient evidence at the 5% level that the proportion of parcels delivered on time is less than 85%.' Failing to reject does not prove the claim; the sample may simply be too small to show a difference. The test shows evidence, never certainty.
Key termsinsufficient evidence
Common mistake

Writing 'the claim is true' after not rejecting H0H_0.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Hypothesis tests for a binomial proportion

  1. A drug is known to cure 30% of patients with a certain condition. A new drug is tested on 20 randomly chosen patients, of whom 10 are cured. Let pp be the probability that a patient given the new drug is cured and let XX be the number cured in a sample of 20. The company tests at the 5% significance level whether the new drug is more effective.
    State the conclusion of the test, in context.2 marks
  2. A company claims that 85% of its parcels are delivered on time. A customer believes that the proportion is lower. In a random sample of 15 parcels, 10 are delivered on time. Let pp be the proportion of all the company's parcels that are delivered on time and let XX be the number delivered on time in a sample of 15. The customer tests at the 5% significance level.
    State the conclusion of the test, in context.2 marks
  3. A network provider claims that 40% of its customers are on a premium plan. A researcher believes that the proportion has changed. In a random sample of 30 customers, 17 are on a premium plan. Let XX be the number of customers on a premium plan in a sample of 30.
    State the hypotheses for a test at the 5% significance level, and say what pp represents.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).