top of page

18.2 Introduction to Hypothesis Testing

OCR A-level Maths Statistics and Mechanics Year 1 (AS) · H240 · Chapter 18: Statistical Hypothesis Testing

What is in the full lesson (13 activities)

Every item below opens free in the course.

A free OCR A-level Maths SM Year 1 lesson for OCR A Level Mathematics A (H240) from OBA School: hypotheses, significance levels, p-values and binomial tests for a proportion (OCR H240: 2.05a, 2.05b, 2.05c). 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) In the 2011 census, 8% of workers in a district worked from home. 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 workers in the district finds that 8 work from home. Test at the 5% level.
H₀: p = 0.08, H₁: p > 0.08, where p is the proportion of all workers in the district who work from home.
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 workers who work from home 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

Continue in the full course

This lesson is section 18.2 of our free OCR 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 18.2 in the free course →

 

 

 

 

 

 

 

bottom of page