Hypothesis tests for a mean
Learn one idea at a time
Choose a unit. Each has worked examples and practice.
Set up the test
Choose hypotheses, a tail and a statistic whose assumptions fit the problem.
Use a critical region
Interpret significance across repeated samples and allocate the correct rejection tails.
Use a p-value
Compare the observed tail probability with significance and reconcile both methods.
Work backwards from a test
Recover an unknown from a stated rejection or non-rejection conclusion.
By the end, you can
- Formulate hypotheses before examining a result
- Choose one-sided or two-sided evidence
- Interpret p-values and conclusions in context
4 focused units · about 30 minutes for the full chapter. Allow extra time for practice.
The central idea
A test asks how unusual the observed statistic would be if the null model were true. State H₀, H₁ and significance level first. For a normal population with known variance, the standardised sample mean uses . A p-value measures a tail probability under H₀, not the probability that H₀ is true.
Organise a z-test around the claim
The source’s eight steps are: define X and population mean μ; state the distributions of X and the sample mean under (including CLT justification if needed); state hypotheses; state the test statistic; state α; specify rejection using a p-value or critical value; calculate; conclude in context.
Its scenario assumes normal masses with variance , samples 100 men and observes mean 77.2 kg. The claim “more than 75 kg” at 5% gives , and under , with an upper-tail test.
Here is the hypothesised population mean, not the observed sample mean 77.2; the source paragraph calling μ₀ a sample mean is inaccurate. A test assesses how unusual the observation is under the null model, not the probability that is true. The full mass scenario is worked below; the later examples below apply the large-sample approximation and reverse test decisions to find unknowns.
Why take a sample?
The source contrasts testing a whole population with drawing a practical sample. Its introductory contexts are mean filtration efficiency in product-quality checks and a school mean-height claim of 1.6 metres assessed with a sample of 50 students.
A sample can supply evidence about a population parameter while leaving uncertainty; it cannot prove or disprove a claim with certainty.
The source also lists one-sample, two-sample and paired t-tests, ANOVA and chi-squared tests as examples of other test families. This chapter concentrates on a population mean using a z-test, with the exact or approximate reference model justified for the case.
Worked example
A machine is intended to fill bottles to a population mean of 500 ml. Independent fills are normally distributed with known standard deviation 8 ml. A random sample of 16 bottles has mean 504 ml. Before taking the sample, the inspector chose a 5% test for an increase.
Define as the mean fill volume and state , . Under , exactly.
The standard error is 2 ml, so the observed .
The upper-tail probability is approximately 0.0228. Reject at 5%: there is evidence that the population mean fill exceeds 500 ml.
The test concerns the mean, not whether every bottle exceeds 500 ml.
A p-value is calculated under the null model. It is neither the probability that the claim is true nor a measure of the practical size of the difference.
Check your understanding
A supplier claims that the population mean lifetime of its lamps is 1200 hours. An inspector suspects a decrease and chooses a 5% test before collecting data. Lifetimes are normally distributed with known standard deviation 80 hours; 25 independent randomly selected lamps have mean lifetime 1176 hours. Set up and carry out the test, explain the p-value in context, and state what the conclusion can and cannot establish.
Let be the population mean lamp lifetime in hours. Use , . Under , exactly.
The standard error is 16 hours and the observed statistic is .
The left-tail , so do not reject at 5%.
If the claimed mean and model were correct, a sample mean at most 1176 hours would occur with probability about 0.0668.
There is insufficient evidence of a decrease; this does not prove that the mean is 1200 hours.
Practice questions
26 examples and practice questions, in 5 sections.
Ready to try this on your own?
For “Hypothesis tests for a mean”, try a question without the working and explain your method. This records your confidence, saved in this browser only.