Worked examples · Sheet 1
z tests for a mean
Theory used:Null distributions of the one-sample z and t testsTest statistic and rejection region
Go to: Exercise 1Exercise 2
Exercise 1
A filling machine dispenses independent normal volumes with known standard deviation . The mean of fills is . Test against at level . Use .
The fills are independent and normal with known standard deviation. Under the z-test statistic therefore has a standard normal distribution.
The standard deviation describes a single fill. The standard error describes the mean of sixteen fills, so divide the standard deviation by . The numerator is negative because the observed mean is below the null mean.
The alternative considers deviations in both directions, so split level into two tails of area and use the quantile of order . Compare the absolute value of the statistic to the cutoff. In volume units the mean has fallen two standard errors below the reference, while the cutoff is standard errors.
On the scale of the mean the same rule rejects an observed mean at or below or at or above . Since , at level reject . The data indicate that the mean dispensed volume differs from .
Exercise 2
Each specimen’s strength is normal with known standard deviation . For independent specimens, is observed. For against , determine the cutoff on the sample-mean scale and decide at level . Use .
The specimens are independent and their strengths normal with known standard deviation, so the z test applies and the sample mean has standard error .
The value is the boundary of the null hypothesis. The probability of exceeding a fixed threshold increases with , so among null values it is largest at . If this exceedance probability is at the boundary, the test has level over the entire null hypothesis.
The alternative is upper-tailed, so the critical region is on the right and all the level is assigned to one tail. To find the cutoff , add the quantile times the standard error to the boundary mean.
The observed mean exceeds the reference but remains below the cutoff for the stated level. The standardized comparison gives the same decision because is below . At level fail to reject . The data are insufficient to conclude that mean strength exceeds .