Hypothesis Testing
CIE A-Level MathematicsΒ· Unit 4: Probability & Statistics 1Β· 15 min read
1. Core Terminology & Hypothesis Setupβ β ββββ± 4 min
Null Hypothesis
The statement of no effect or no difference from the hypothesized population value. We assume is true unless we find sufficient evidence to reject it.
Example:
For testing if a coin is biased, where is the true probability of heads.
Alternative Hypothesis
The alternative claim we accept if we reject . Can be one-tailed ( or ) or two-tailed ().
Example:
For testing if the coin is biased towards heads, .
The first step of any hypothesis test is to define the population parameter you are testing, then write and in terms of that parameter. Hypotheses are always about population parameters, never sample statistics.
Check your understanding:
A bakery claims 10% of their pastries are undercooked. An inspector thinks the proportion is higher. What is the correct ?
2. Hypothesis Tests for Proportionsβ β β βββ± 5 min
For large samples, we approximate the binomial distribution of the number of successes with a normal distribution, then calculate a p-value to compare to our significance level. We follow a standard 5-step process for every test:
- Define the parameter and write hypotheses
- State the significance level
- State the distribution of the test statistic under
- Calculate the p-value (or compare test statistic to critical value)
- Draw a conclusion in context
A machine produces components, 10% of which are normally defective. After a service, a sample of 100 components finds 14 defective. Test at the 5% significance level if the proportion defective has increased.
- 1
- Define parameter and hypotheses: Let true proportion of defective components after the service.
- 2
- 3
- State significance level:
- 4
- Under , the number of defective . Approximate with normal, mean = , variance = , so .
- 5
- Calculate p-value for , apply continuity correction:
- 6
- 7
- Compare: , so we do not reject .
- 8
Conclusion: There is insufficient evidence at the 5% significance level to conclude the proportion defective has increased.
3. Hypothesis Tests for Population Meansβ β β βββ± 5 min
When the population is normally distributed with known variance, we use a z-test for the population mean . The test statistic follows a standard normal distribution when is true.
Z-test Statistic for Means
For a sample of size , sample mean , hypothesized mean and known population standard deviation : . This measures how many standard errors the sample mean is from the hypothesized value.
Example:
Sample size 25, mean 12, , gives .
A bottling machine fills bottles with a known population standard deviation of 5 ml. The mean fill volume is supposed to be 500 ml. A sample of 10 bottles has a mean of 497 ml. Test at the 1% significance level if the mean fill volume is different from 500 ml.
- 1
- Define parameter and hypotheses: Let true mean fill volume.
- 2
- 3
- This is a two-tailed test, total significance level .
- 4
- Calculate the z-test statistic:
- 5
- 6
- Calculate two-tailed p-value:
- 7
- 8
- Compare: , so do not reject .
- 9
Conclusion: There is insufficient evidence at 1% significance that the mean fill volume is different from 500 ml.
4. Type I and Type II Errorsβ β β β ββ± 4 min
Type I Error
Rejecting when is actually true. The probability of a Type I error is always equal to the significance level of the test.
Example:
Concluding a coin is biased when it is actually fair.
Type II Error
Failing to reject when is actually false. The probability of a Type II error depends on the true value of the population parameter.
Example:
Concluding a coin is fair when it is actually biased.
For a hypothesis test , , carried out at 5% significance level, what is the probability of a Type I error?
- 1
By definition, the probability of a Type I error is the probability that we reject when is true. This equals the significance level of the test:
- 2
5. Common Pitfalls
Wrong move:
Writing hypotheses in terms of sample statistics (e.g. instead of )
Why:
Hypotheses are always claims about unknown population parameters, not observed sample values
Correct move:
Always write hypotheses in terms of the population parameter ( for proportion, for mean)
Wrong move:
Forgetting continuity correction when approximating binomial with normal for proportion tests
Why:
Binomial is discrete and normal is continuous, so the p-value will be incorrect without the correction
Correct move:
Always apply continuity correction when working with counts of successes in proportion tests
Wrong move:
Not doubling the p-value for two-tailed tests
Why:
Two-tailed tests account for difference in either direction, so a one-tailed p-value is half the correct value
Correct move:
Calculate the one-tailed p-value, then double it for two-tailed tests, or use a two-tailed critical value
Wrong move:
Saying 'we accept ' when p-value > significance level
Why:
We never prove is true, we only fail to find sufficient evidence to reject it
Correct move:
Always state 'we do not reject ' or 'there is insufficient evidence to reject '
Wrong move:
Confusing Type I and Type II errors in exam questions
Why:
The order of errors is easy to mix up under pressure
Correct move:
Use the mnemonic First you Reject, Second you Stay to recall which error is which
6. Quick Reference Cheatsheet
Term | Key Fact/Formula | Notes |
|---|---|---|
Null hypothesis: no effect | Assumed true unless proven otherwise | |
Alternative hypothesis: effect/difference | One-tailed = specific direction; two-tailed = any difference | |
Proportion test statistic | Always apply continuity correction to count | |
Mean test statistic (known ) | Requires normal population distribution | |
P(Type I error) | (significance level) | Rejecting true |
P(Type II error) | Depends on the true parameter value |
7. Frequently Asked
Do I need to define the population parameter in my answer?
Yes, CIE always awards a mark for explicitly defining the population parameter (e.g. Let = true proportion of defective components) so never skip this step.
What is the difference between one-tailed and two-tailed tests?
One-tailed tests check for a difference in a specific direction (increase or decrease only), while two-tailed tests check for any difference from the null value, regardless of direction. You must double the one-tailed p-value for two-tailed tests.
When this came up on past exams
AI-estimated based on syllabus patterns β cross-check with official past papers for accuracy. Use only as revision-focus signals.
- 2023 Β· 4
Proportion test, Type I error calculation
- 2022 Β· 4
Two-tailed test for population mean
- 2021 Β· 4
Interpretation of hypothesis errors
What's Next
Hypothesis testing is the foundation of all statistical inference for CIE A-Level Mathematics, and it is heavily tested in Paper 4, usually as an 8-10 mark longer question. Mastering the structured approach and common exam conventions (like defining parameters and correct conclusion wording) will earn you full marks on these predictable questions. This topic leads directly into more advanced inference topics including Chi-squared tests for categorical data, t-tests for means with unknown variance, and hypothesis testing for correlation and regression coefficients, all of which are core topics for full A-Level Mathematics and Further Mathematics.
