Hypothesis testing gives you a formal way to decide whether sample data provide enough evidence to cast doubt on a claim about a population. In H2 Maths you will almost always be testing a claim about a population mean when the population variance is known, using the -test based on the sample mean .
What you need to know
- Null hypothesis : the default claim, always written as for some specific value .
- Alternative hypothesis : what you are trying to find evidence for. If or the test is one-tailed; if it is two-tailed.
- Test statistic: under the standardised sample mean follows (exactly when is normal, approximately by the Central Limit Theorem for large ):
- p-value: the probability, assuming is true, of obtaining a test statistic at least as extreme as the observed value. The GC computes this directly once you enter the parameters.
- Decision rule: reject if the p-value , where is the significance level (commonly 0.05 or 0.01). Otherwise, do not reject .
- Contextual conclusion: always write the conclusion in terms of the original scenario — never just say “reject ”. State whether there is sufficient evidence, at the chosen significance level, to support the alternative claim.
Worked example 1 — One-tailed z-test (right-tailed)
A manufacturer claims that the mean lifetime of a type of battery is 50 hours. A consumer group suspects the batteries last fewer hours than claimed and tests a random sample of 40 batteries, obtaining a sample mean of 47.6 hours. The population standard deviation is known to be 8 hours. Test the manufacturer’s claim at the 5% level of significance.
Solution.
Hypotheses:
The alternative hypothesis is because the consumer group suspects the mean is lower than claimed, giving a left-tailed test.
Test statistic:
p-value (from GC, left-tailed): .
Decision: Since , we reject .
Conclusion: There is sufficient evidence at the 5% significance level to conclude that the mean battery lifetime is less than 50 hours. The manufacturer’s claim is not supported by the data.
Worked example 2 — Two-tailed z-test
Using the same battery context, suppose instead a quality-control engineer simply wishes to check whether the mean lifetime has changed from 50 hours. She takes a fresh random sample of 40 batteries with sample mean 52.3 hours ( still known). Test at the 5% level.
Solution.
Hypotheses:
Because the engineer has no prior reason to expect an increase or a decrease, the test is two-tailed.
Test statistic:
p-value (from GC, two-tailed): .
Decision: Since , we do not reject .
Conclusion: There is insufficient evidence at the 5% significance level to conclude that the mean battery lifetime has changed from 50 hours.
One-tailed vs two-tailed: Note that the same observed would give a one-tailed p-value of 0.0345 (significant at 5%) if were the correct formulation. The choice of tail must be justified by the context before seeing the data, not chosen to make the result significant.
Common mistakes
- Choosing after seeing the data. The direction of must come from the question’s wording or prior knowledge, not from the sign of .
- Forgetting to double the p-value for a two-tailed test. If you read from the GC, multiply by 2 before comparing with .
- Writing a conclusion that does not reference the context. Phrases like “reject ” alone score no marks for the conclusion; you must translate back into the scenario (e.g. “there is sufficient evidence that the mean lifetime has decreased”).
- Confusing significance level with probability that is true. Rejecting at the 5% level does not mean there is a 95% chance is true; is the probability of a Type I error (rejecting a true ), not a posterior probability.