You are here: Project Scarlet » Statistical Inference » One-Sample Z-Procedures » Test Statistic
Z-Procedures
Example #235: Let us test the null hypothesis that the mean height of a population is 23 cm. In symbols, this is:
H0 : μ = 23 cm
To test this hypothesis, we collect data. These data are the heights of a sample from this population. The sample values are:
22, 28, 27, 24, 18, 16, 22, 17, 15, 24, 32, 33, 23, 26, 17, 22, 8, 18, 17, 22, 22, 26, 25, 25, 26, 21, 16, 14, 21, 5, 8, 18, 37, 16, 32, 18, 17, 19, 14, 27, 26, 17, 24, 14, 32, 24, 22, 24, 24, 19, 23, 16, 22, 24, 13, 24, 29, 26, 17, 29, 25, 24, 29, 26, 33, 24, 13, 16, 31, 23, 16, 13, 34, 19, 23, 24, 22, 16
In addition to these data, we also know that the data are generated from a Normal process (they come from a Normally distributed population) and that the standard deviation of this population is σ = 7.
With this information, calculate the test statistic corresponding to the null hypothesis.
To summarize the above, the values of import are:
\( \mu_0 \) | = | 23 |
---|---|---|
\( \bar{x} \) | = | 21.7692 |
\( \sigma \) | = | 7 |
\( n \) | = | 78 |
Calculate them yourself, then hover your mouse over the grey space to see if you calculated them correctly.
In the box below, please enter the z test statistic for the null hypothesis and the data given above. Once you have done so, click on the “Check your answer!” button. Please round your answer to the ten-thousandths place.
Show Formula
Show Solution
Show the R Code
Show the Excel Code
© Ole J. Forsberg, Ph.D. 2024. All rights reserved. | . | |