Z-Procedures

Calculating the Test Statistic

The Problem

Example #259: Let us test whether the mean height of population 1 is the same as that of population 2. In symbols, this is:

H0 : μ1 − μ2 = 0
HA : μ1 − μ2 ≠ 0

To test this hypothesis, we collect data. The data from population 1 are:

49, 32, 34, 32, 33, 38, 35, 56, 35, 45, 50, 38, 44, 47, 37, 39, 38, 56, 45, 46, 48, 41, 41, 26, 37, 33, 43, 53, 36, 54, 50, 30, 33, 36, 35, 34, 43, 49, 35, 44, 24, 29, 42, 47, 30, 38, 31, 34

The data from population 2 are:

37, 38, 45, 47, 33, 64, 40, 31, 36, 55, 58, 36, 59, 41, 25, 35, 40, 41, 73, 53, 46, 33, 54, 56, 34, 25, 29, 8, 29, 61, 36, 51, 14, 43, 19, 39, 52, 37, 28, 45, 59, 42, 55, 18, 41, 44, 46, 48, 45, 55

In addition to these data, we also know two important things. First, the data are generated from independent Normal processes; that is, the data in each sample come from independent Normal distributions. Second, we know that the population variances are σ²1 = 49 and σ²2 = 121. 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_d \) =
   
\( \bar{x}_1 \) =
\( \bar{x}_2 \) =
   
\( \sigma_1 \) =
\( \sigma_2 \) =
   
\( n_1 \) =
\( n_2 \) =

Calculate these values yourself then hover your mouse over the grey spaces to see if you calculated them correctly.

Your Answer

In the box below, please enter the value of the 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. 2024. All rights reserved.   .