James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
A level Maths › Statistics · Hypothesis testing › Binomial hypothesis tests

Binomial hypothesis tests

Testing a claim about a probability: hypotheses, significance levels, one- and two-tailed tests, critical regions and how to write a conclusion in context.

Stats 5.1, 5.2Year 1≈ 60 min to work through
Before you start: the binomial distribution. See Binomial distribution.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Write null and alternative hypotheses for a binomial test, using pY1
  • Carry out a one-tailed test by finding a probability and comparing it with the significance levelY1
  • Find a critical region and the actual significance levelY1
  • Carry out a two-tailed test, splitting the significance level between the tailsY1
  • Write a conclusion in context, without overclaimingY1

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

A hypothesis test asks: if the claim were true, how surprising is what we observed? Assume the claim (the null hypothesis) and work out the probability of a result at least as extreme as the one seen. If that probability is very small, below the significance level, the claim is hard to believe and we reject it. If not, we do not have enough evidence to reject it.

2.1 The language of hypothesis testing

Key terms

Null hypothesis H0: the claim we assume true, e.g. H0:p=16.
Alternative hypothesis H1: what we suspect instead: p>16 or p<16 (one-tailed), or p≠16 (two-tailed).
Significance level: the threshold probability, usually 5% or 1%.
Test statistic: the value observed, e.g. the number of sixes X.
Critical region: the values of the test statistic that lead to rejecting H0. Critical value: the first value in it.

Hypotheses are always about the population parameter p, never about the sample.

2.2 A one-tailed test

Worked example 1Calculator
Sam thinks a die is biased towards six. He rolls it 20 times and gets 7 sixes. Test, at the 5% level, whether there is evidence to support Sam.
Let X be the number of sixes. H0:p=16,H1:p>16
Under H0, X~B(20,16)
Always state the distribution you are assuming.
P(X≥7)=1−P(X≤6)=0.0371
Find the probability of the observed value or more extreme, not P(X=7).
0.0371<0.05, so reject H0.
There is evidence, at the 5% level, that the die is biased towards six.
Conclude in context, and say "evidence", not "proof".

2.3 Critical regions

Instead of a probability for one observation, find all the values that would lead to rejection. For an upper tail, find the smallest c with P(X≥c)≤ the significance level.

Worked example 2Calculator
For the test in WE1, find the critical region and the actual significance level.
P(X≥6)=0.1018>0.05 and P(X≥7)=0.0371<0.05
Critical region: X≥7
Actual significance level: P(X≥7)=0.0371, i.e. 3.71%
Because X is discrete, the actual significance level is usually less than the nominal 5%.
Worked example 3Calculator
Over many years 25% of customers at a café buy a cake. After a price rise, in a sample of 30 customers, 3 buy a cake. Test at the 5% level whether the proportion has decreased.
H0:p=0.25,H1:p<0.25; under H0, X~B(30,0.25)
P(X≤3)=0.0374<0.05
Reject H0: there is evidence at the 5% level that the proportion of customers buying a cake has decreased.

2.4 Two-tailed tests

If H1 is p≠p0, a result in either tail counts against H0. Split the significance level in half: 2.5% in each tail for a 5% test.

Worked example 4Calculator
X~B(20,0.3). Find the critical region for a two-tailed test of H0:p=0.3 against H1:p≠0.3 at the 5% level, aiming for as close to 2.5% in each tail as possible without exceeding it. State the actual significance level.
Lower tail: P(X≤2)=0.0355>0.025, P(X≤1)=0.0076. So X≤1.
Upper tail: P(X≥10)=0.0480>0.025, P(X≥11)=0.0171. So X≥11.
Critical region: X≤1 or X≥11
Actual significance level =0.0076+0.0171=0.0247
Why not "accept H₀"?

Failing to reject H0 does not prove it is true: it only means the data are consistent with it. A small sample can easily miss a real effect. That is why the conclusion says "insufficient evidence to suggest…" rather than "the die is fair".

On your Casio ClassWiz Calculator tricks →

Distribution → Binomial CD gives P(X≤x). For an upper tail, find 1−P(X≤x−1). To find a critical region quickly, choose List instead of Variable and enter several values of x at once: the cumulative probabilities appear in a column.

3Explore it

The bars show B(n,p0) under H0. Highlighted bars are the critical region for your test. Change the tail and significance level and watch it move.

4Common mistakes & exam tips

Common mistakes

  • Using P(X=7) instead of P(X≥7): the test uses the observed value or more extreme.
  • Writing hypotheses in terms of X or the sample proportion: they must use the parameter p.
  • Forgetting to halve the significance level in a two-tailed test.
  • Writing "accept H0" or "this proves…": say "there is (in)sufficient evidence to suggest…".
  • A conclusion with no context: refer to the die, the café, the proportion, etc.

Exam tips

  • Use the same structure every time: define X, hypotheses, distribution under H₀, probability or critical region, comparison, conclusion in context.
  • For critical regions, show the probabilities on both sides of the boundary (e.g. 0.1018 and 0.0371).
  • Use Binomial CD on your calculator for P(X ≤ r); for P(X ≥ r) use 1 − P(X ≤ r − 1).

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Write hypotheses to test whether a coin is biased.
H0:p=0.5, H1:p≠0.5
FluencyP2
X~B(15,0.5). Find the critical region for H1:p<0.5 at the 5% level.
P(X≤3)=0.0176, P(X≤4)=0.0592: X≤3
FluencyP3
X~B(12,0.4). Test H1:p>0.4 at 5% given x=8.
P(X≥8)=0.0573>0.05: do not reject H0
FluencyP4
State the actual significance level for the test in practice question 2.
0.0176 (1.76%)
Problem solvingP5
X~B(25,0.4). Find the two-tailed critical region at 5% and the actual significance level.
X≤4 or X≥16; 0.0095+0.0132=0.0227
Problem solvingP6
In practice question 3, what is the smallest number of successes that would lead to rejecting H0?
P(X≥9)=0.0153<0.05: 9

6Exam-style questions

Original exam-style questions with full markschemes. Edexcel papers allow a calculator throughout, but questions labelled “No calculator” practise exact working. Allow about 1.2 minutes per mark.

Question 1Calculator[7 marks]

A spinner is designed so that the probability it lands on red is 0.4. Kim thinks the spinner is not working as designed. She plans to spin it 25 times and record the number of times, X, it lands on red.

  • (a)Find the critical region for a two-tailed test of Kim\'s belief at the 5% level. The probability in each tail should be as close as possible to, but not exceed, 0.025.[4]
  • (b)State the actual significance level of the test.[1]
  • (c)Kim gets 15 reds. State, with a reason, the conclusion of the test.[2]
(a)
H0:p=0.4, H1:p≠0.4, X~B(25,0.4)B1
P(X≤4)=0.0095 (and P(X≤5)=0.0294)M1
P(X≥16)=0.0132 (and P(X≥15)=0.0344)M1
X≤4 or X≥16A1
(b)
0.0227B1
(c)
15 is not in the critical regionM1
insufficient evidence that the spinner is not working as designedA1
Question 2Calculator[5 marks]

Half of patients given a standard treatment get a headache. A new treatment is claimed to reduce this. Of 15 patients given the new treatment, 3 get a headache. Test the claim at the 5% level.

H0:p=0.5, H1:p<0.5B1
X~B(15,0.5)M1
P(X≤3)=0.0176A1
0.0176<0.05, reject H0M1
evidence that the new treatment reduces the proportion getting a headacheA1
Question 3Calculator[5 marks]

In the past, 40% of visitors to a museum bought a guidebook. After a redesign, the manager believes the proportion has increased. In a random sample of 12 visitors, 8 buy a guidebook. Test the manager\'s belief at the 5% level.

H0:p=0.4, H1:p>0.4B1
X~B(12,0.4)M1
P(X≥8)=1−P(X≤7)=0.0573A1
0.0573>0.05, do not reject H0M1
insufficient evidence that the proportion buying a guidebook has increasedA1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real Edexcel A level questions. Past papers and markschemes are on the Pearson website.

PaperQuestionFocusDifficulty
June 2023 · Paper 31Q2Binomial model for prizes in packets, then a test★☆☆
June 2022 · Paper 31Q4Has the proportion of late arrivals changed? A two-tailed test★★☆
June 2024 · Paper 31Q4Proportion of left-handed adults: a one-tailed test★★☆
June 2025 · Paper 31Q3Defective components: a suitable model, then a test★★☆
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake