22.2 Introduction to Hypothesis Testing
AQA A-level Maths Statistics and Mechanics Year 1 (AS) · 7357 · Chapter 22: Statistical Hypothesis Testing
What is in the full lesson (13 activities)
Every item below opens free in the course.
- Video: Hypothesis Testing Basics
- Video: Hypothesis Testing Intro2 (SM Practice OSG)
- Video: Hypothesis Testing Basics example 1
- Video: Hypothesis Testing Basics example 2
- Video: Hypothesis Testing example 3 (SM Practice OSG)
- Video: Hypothesis Testing example 4 (SM Practice OSG)
- Video: Hypothesis Testing example 5 (SM Practice OSG)
- Notes: Lesson notes: Introduction to Hypothesis Testing
- Interactive lesson: Interactive lesson: Hypothesis Test Courtroom
- Interactive lesson: Interactive practice: Introduction to Hypothesis Testing Practice
- Practice questions: Practice questions (8 questions, 13 marks)
- Worksheet: Worksheet: Introduction to Hypothesis Testing
- Answers: Answers and mark scheme of the Worksheet: Introduction to Hypothesis Testing
A free AQA A-level Maths SM Year 1 lesson for AQA A-level Mathematics (7357) from OBA School: hypotheses, significance levels, p-values and binomial tests for a proportion (AQA 7357: O1, O2). Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.
What you will learn
- Use the language of hypothesis testing: null and alternative hypotheses, test statistic, significance level, p-value
- Write hypotheses in terms of the population proportion p for one-tailed and two-tailed tests
- Carry out a binomial test by finding a p-value and comparing it with the significance level
- Write a non-assertive conclusion in context
Key words
- Null hypothesis: H₀: the claim assumed true unless there is evidence against it, such as p = 0.3.
- Alternative hypothesis: H₁: what we suspect instead, such as p > 0.3, p < 0.3 or p ≠ 0.3.
- Test statistic: The quantity calculated from the sample, here the number of successes X.
- Significance level: The probability of rejecting H₀ when it is true; the threshold for "unlikely", often 5%.
- p-value: The probability, if H₀ is true, of a result at least as extreme as the one observed.
The language of hypothesis testing
A hypothesis test asks whether a sample gives enough evidence to doubt a claim about a population. Assume H₀ is true, then ask how likely the observed result (or a more extreme one) is. If it is very unlikely, that is evidence against H₀.
- Hypotheses are always about the population parameter p, never about the sample.
- H₀ always contains "=". The words of the claim fix H₁: "increased" gives p > p₀, "decreased" gives p < p₀ (one-tailed); "changed" gives p ≠ p₀ (two-tailed).
Worked example: writing hypotheses
(a) Last year, 8% of the new cars registered in a region were electric. A researcher thinks the proportion is now higher.
(b) A website claims that 30% of visitors click on an advert. A manager thinks the rate has changed.
Answer: (a) H₀: p = 0.08, H₁: p > 0.08 (b) H₀: p = 0.3, H₁: p ≠ 0.3, where p is the population proportion
A one-tailed test using a p-value
Key fact: Reject H₀ if the p-value ≤ the significance level. Otherwise do not reject H₀.
Worked example: upper tail
For situation (a), a random sample of 50 new cars registered in the region this year finds that 8 are electric. Test at the 5% level.
H₀: p = 0.08, H₁: p > 0.08, where p is the proportion of all new cars registered in the region this year that are electric.
Under H₀, X ~ B(50, 0.08). p-value = P(X ≥ 8) = 1 − P(X ≤ 7) = 0.0438
0.0438 < 0.05, so the result is significant. Reject H₀.
Answer: There is sufficient evidence at the 5% level to suggest that the proportion of new cars that are electric has increased.
Worked example: lower tail, and a result that is not significant
A seed company claims that 85% of its seeds germinate. A gardener suspects the rate is lower. She plants 20 seeds and 13 germinate. Test at the 1% level.
H₀: p = 0.85, H₁: p < 0.85. Under H₀, X ~ B(20, 0.85).
p-value = P(X ≤ 13) = 0.0219 > 0.01, so do not reject H₀.
Answer: There is insufficient evidence at the 1% level to suggest that the germination rate is lower than 85%.
Two-tailed tests
For H₁: p ≠ p₀, extreme results in either tail count as evidence. Find the tail probability on the side of the observed value (above or below the expected number np), and compare it with half the significance level.
Worked example: has the proportion changed?
For situation (b), the manager watches 40 random visitors and 19 click on the advert. Test at the 5% level.
H₀: p = 0.3, H₁: p ≠ 0.3. Under H₀, X ~ B(40, 0.3); 19 is above 40 × 0.3 = 12, so use the upper tail.
P(X ≥ 19) = 1 − P(X ≤ 18) = 0.0148 < 0.025
Answer: Reject H₀. There is sufficient evidence at the 5% level to suggest that the proportion who click has changed.
Writing conclusions
A test never proves anything. A significant result means that the data would be unlikely if H₀ were true. Write conclusions that are non-assertive and in context:
Significant: "There is sufficient evidence at the 5% level to suggest that the proportion of ... has increased."
Not significant: "There is insufficient evidence at the 5% level to suggest that the proportion of ... has increased."
Worked example: judging a conclusion
A student finds p-value 0.31 for a test at the 5% level and writes: "Accept H₀. This proves the proportion is still 0.4."
Answer: Wrong: the test cannot prove H₀. Write "Do not reject H₀; there is insufficient evidence that the proportion has changed from 0.4."
Common mistakes
- Writing hypotheses about the sample (such as "H₀: x = 8") instead of the population proportion p.
- Using P(X = 8) as the p-value instead of P(X ≥ 8).
- Comparing a two-tailed p-value with the full significance level instead of half of it.
- Writing "accept H₀" or "this proves" instead of a non-assertive conclusion in context.
Revision questions
Try these, then check your answers below each one.
Question 1. A college claims that 70% of its students pass a test first time. A teacher thinks the proportion has decreased. Which hypotheses should be used? (Choose from: H₀: p = 0.7, H₁: p < 0.7; H₀: p = 0.7, H₁: p > 0.7; H₀: p = 0.7, H₁: p ≠ 0.7; H₀: p < 0.7, H₁: p = 0.7.)
Answer: H₀: p = 0.7, H₁: p < 0.7
Working: H₀: p = 0.7, H₁: p < 0.7, where p is the proportion who pass first time.
Question 2. Under H₀, X ~ B(20, 0.25). The test is H₁: p > 0.25 and x = 9 is observed. Find the p-value, to 4 decimal places.
Answer: 0.0409
Working: 1 − 0.9591 = 0.0409.
Question 3. A one-tailed test at the 5% level gives a p-value of 0.038. Is the result significant?
Answer: Yes
Working: 0.038 < 0.05, so the result is significant and H₀ is rejected.
Related lessons
- Previous lesson: 22.1 Populations and Samples
- Next lesson: 22.3 Critical Region for a Hypothesis Test
Continue in the full course
This lesson is section 22.2 of our free AQA A-level Maths Statistics and Mechanics Year 1 (AS) course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved.
Continue lesson 22.2 in the free course →