You are here: Project Scarlet » Statistical Inference » One-Sample Z-Procedures » P-Value
Z-Procedures
Example #444: Let us test the null hypothesis that the mean height of a population is 28 cm. In symbols, this is:
H0 : μ = 28 cm
To test this hypothesis, we collect data. These data are the heights of a sample from this population. The sample values are:
37, 37, 17, 29, 31, 24, 22, 29, 34, 24, 37, 21, 21, 17, 27, 31, 26, 24, 26, 27, 37, 34, 43, 33, 29, 8, 14, 34, 19, 15, 28, 20, 32, 42, 25, 28, 38, 30, 16, 31, 15, 50, 39, 15, 46, 34, 7, 14, 31, 19, 31, 20, 24, 13, 7, 11, 21, -23, 27, 35, 22, 25, 42, 53, 28, 22, 31, 28, 29, 37, 27, 35, 18, 22, 28, 29, 23, 41, 48, 10
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 σ = 10.
With this information, calculate the test statistic corresponding to the null hypothesis.
To summarize the above, the values of import are:
\( \mu_0 \) | = | 28 |
---|---|---|
\( \bar{x} \) | = | 26.6375 |
\( \sigma \) | = | 10 |
\( n \) | = | 80 |
\( z \) | = | -1.2187 |
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 p-value 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. 2025. All rights reserved. | . | |