You are here: Project Scarlet » Statistical Inference » Two-Sample Z-Procedures » Test Statistic
Z-Procedures
Example #228: Let us test whether the mean height of population 1 is 1 less than that of population 2. In symbols, this is:
H0 : μ1 − μ2 = -1
HA : μ1 − μ2 ≠ -1
To test this hypothesis, we collect data. The data from population 1 are:
37, 36, 40, 50, 36, 47, 43, 36, 44, 38, 37, 25, 40, 39, 41, 24, 37, 39, 38, 25, 43, 40, 34, 32, 38, 43, 21, 43, 25, 34, 41, 30, 32, 32, 34, 31, 39, 42, 37, 33, 29
The data from population 2 are:
38, 30, 46, 37, 40, 41, 32, 37, 31, 31, 30, 35, 36, 27, 31, 32, 33, 49, 49, 35, 52, 32, 28, 30, 32, 41, 38, 36, 36, 44, 49, 15, 45, 28, 32, 23, 24, 32, 45, 37, 39, 48, 44, 31, 37, 31, 18, 46, 44, 29, 33, 25
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 = 64. With this information, calculate the test statistic corresponding to the null hypothesis.
To summarize the above, the values of import are:
\( \mu_d \) | = | -1 |
---|---|---|
\( \bar{x}_1 \) | = | 36.2195 |
\( \bar{x}_2 \) | = | 35.4615 |
\( \sigma_1 \) | = | 7 |
\( \sigma_2 \) | = | 8 |
\( n_1 \) | = | 41 |
\( n_2 \) | = | 52 |
Calculate these values yourself then hover your mouse over the grey spaces to see if you calculated them correctly.
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.
Show Formula
Show Solution
Show the R Code
Show the Excel Code
© Ole J. Forsberg, Ph.D. 2024. All rights reserved. | . | |