- Home
- Courses
- OCR A-Level Maths
- Probability
- Hypothesis Testing
Hypothesis Testing
A company claims 25% of its customers win a prize. In a sample of 20, nine win. Is the claim wrong, or was the sample just lucky? gives a principled way to decide: assume the claim is true, work out how surprising the evidence would be, and reject the claim only if the evidence is surprising enough.
The big picture
A hypothesis test is an argument by contradiction with a probability threshold. The null hypothesis fixes a parameter at its claimed value; the alternative says how you suspect it differs. You then calculate the probability of a result at least as extreme as the one observed, assuming . If that probability falls below the significance level, the result is too unlikely to blame on chance, and is rejected. OCR tests this with the binomial distribution in Year 1, and with the normal distribution for a sample mean in Year 2. The mathematics is short; what earns the marks is precise language — hypotheses in terms of the parameter, a comparison with the significance level, and a conclusion in context that never claims certainty.
What you'll be able to do
- Write null and alternative hypotheses in terms of a population parameter
- Carry out one-tailed and two-tailed binomial tests using probabilities or critical regions
- Find critical regions and actual significance levels
- Test a population mean using the normal distribution of a sample mean
- Write conclusions in context with appropriately non-definite language
The language of hypothesis tests
The states the parameter takes the claimed value, e.g. . The states how it might differ: or (one-tailed), or (two-tailed).
The is the observed value, such as the number of successes . The , often 5%, is the probability threshold below which a result is considered too unlikely under .
The is the set of values of the test statistic that would lead to rejecting ; its boundary is the .
Tip — Hypotheses are always about the population parameter ( or ), never about the sample result. Writing "" earns nothing.
A one-tailed binomial test
Under , . For , calculate ; for , calculate .
If this probability is less than the significance level, reject . Otherwise, do not reject it.
Example 1A company claims 25% of customers win a prize. A journalist suspects the true figure is higher. In a random sample of 20, nine win. Test at the 5% level.
The probability is of "9 ", not "exactly 9". Any single value is fairly unlikely in a spread-out distribution; the question is whether the observed result lies in the extreme tail.
Critical regions and two-tailed tests
To find a critical region for , find the smallest such that the significance level. The is , usually a little below the nominal level because the binomial is discrete.
For a two-tailed test at 5%, split the significance level: find a critical region in each tail with probability at most 2.5%.
Example 1Find the critical region for testing against with at the 5% level, and the actual significance level.
Tip — Show the two probabilities either side of each boundary — one just above and one just below the tail threshold. That is what justifies the critical value.
Testing a mean with the normal distribution
If , the mean of a random sample of size satisfies . Larger samples give sample means that cluster more tightly around .
To test , calculate (or ), or compare with the critical -value.
Example 1Battery lifetimes are hours. The maker claims . A sample of 16 has mean 52.7 hours. Test at the 5% level whether the mean is greater than 50.
Think like an examiner
- Define the parameter in words and write hypotheses using it.
- State the distribution under .
- Compare the probability or test statistic with the significance level explicitly.
- Conclude in context with non-definite language: "there is sufficient evidence to suggest...".
Common misconceptions
Hypothesis testing
Stretch yourself
A coin is suspected of being biased towards tails. It is tossed 15 times. Using a 5% significance level, find the critical region for a test of against , where is the probability of heads, and state the actual significance level. Then explain what a result of 4 heads would mean.
Hint — Under , . Find the largest with .
Reveal solution
Questions students ask
What is the difference between one-tailed and two-tailed tests?
Why can’t I accept the null hypothesis?
Why is the actual significance level smaller than 5%?
Where does the direction of come from?
Key takeaways
- Hypotheses are statements about a population parameter.
- Assume , find the probability of a result at least as extreme as observed, and compare with the significance level.
- Critical regions: the most extreme values with total probability at most the significance level (split for two tails).
- For means, use .
- Conclude in context, without claiming certainty.
How this fits the course
Build on
Related
Test yourself
Answer a few questions, then review anything you missed.
Keep practising
Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.
Related lessons
All 4 lessons- Same chapterProbability LawsUnderstanding the fundamental laws of probability.
- Same chapterProbability DistributionsUnderstanding different probability distributions.
- Same chapterConditional ProbabilityInterpret $P(A \mid B)$ as a probability within a restricted sample space
- Hypothesis TestingHypothesis Tests for a Normal Population MeanUse $\bar X\sim N(\mu,\sigma^2/n)$ for an independent random sample from a normal population
Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.