Z-Procedures

Calculating the Test Statistic

The Problem

Example #332: 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:

12, 48, 20, 27, 17, 24, 15, 17, 17, 21, 12, 20, 41, 35, 34, 43, 30, 31, 30, 34, 36, 37, 21, 25, 26, 27, 23, 15, 34, 14, 28, 25, 18, 19, 28, 29, 22, 29, 23, 35, 24, 34, 32, 13, 33, 18, 25, 20, 23, 43, 21, 42, 26, 33, 25, 29, 25, 14, 19, 38, 20, 28, 22, 38, 17, 28, 26, 24, 23, 19, 21, 24

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 σ = 8.

With this information, calculate the test statistic corresponding to the null hypothesis.

Information given:

To summarize the above, the values of import are:

Summary statistics from the problem
\( \mu_0 \) =
\( \bar{x} \) =
\( \sigma \) =
\( n \) =

Calculate them yourself, then hover your mouse over the grey space to see if you calculated them correctly.

Your Answer

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.

Assistance

Show Formula

Show Solution

Show the R Code

Show the Excel Code

© Ole J. Forsberg, Ph.D. 2025. All rights reserved.   .