Worked solution
Test for a change after servicing a machine
The lengths of metal bars produced by a particular machine are normally distributed with mean length 420 cm and standard deviation 12 cm.
The machine is serviced, after which a sample of 100 bars gives a mean length of 423 cm.
Is there evidence, at the 5% level of significance, of a change in the mean length of the bars produced by the machine, assuming that the standard deviation remains the same?
CJC · Lecture · Example 2
Choose a two-sided alternative
Let denote a post-service bar length in cm and the population mean length. Test against . “A change” requires both directions even though the observed mean is higher. Under , and .
Find the two-sided p-value
The standard error is cm, so . By symmetry, . The source’s Z-Test screen uses , , , and the alternative; it reports and . Its last digits differ slightly from the independent CDF calculation but both round to 0.0124.
State the contextual conclusion
At 5%, reject when . Since , reject : there is sufficient evidence that the population mean bar length has changed after servicing, assuming the standard deviation remains 12 cm. This is evidence for a change in the mean, not for a change in variance.
Common mistakes
Do not halve the two-sided p-value because the observed mean happens to increase. Keep the unchanged standard-deviation assumption.
Solution notes
Teacher-filled hypotheses, sample-mean variance, standardisation, rejection rule and calculator selection are integrated into the corresponding steps. No printed marks or exam attribution.