You are here: Project Scarlet » Statistical Inference » Two-Sample Z-Procedures » P-Value
Z-Procedures
Example #69: Let us test whether the mean height of population 1 is 1 more 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:
52, 50, 17, 40, 50, 41, 57, 43, 48, 70, 52, 32, 60, 44, 28, 30, 44, 34, 23, 36, 17, 48, 42, 26, 45, 46, 31, 43, 43, 67, 23, 36, 42, 23, 18, 20, 52, 34, 42, 32, 33, 19, 49, 41, 36, 52, 43, 44, 42, 25, 26
The data from population 2 are:
31, 32, 39, 34, 25, 20, 25, 26, 46, 38, 26, 55, 37, 26, 36, 29, 45, 39, 42, 32, 43, 37, 37, 29, 35, 45, 41, 34, 31, 38, 29, 42, 49, 32, 46, 40, 17, 40, 39, 39, 31, 34, 33
In addition to these data, we also know that the data are generated from two independent Normal processes (they each come from Normally distributed populations) and that the standard deviations of the populations are σ1 = 15 and σ2 = 8. 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 \) | = | 39.0392 |
\( \bar{x}_2 \) | = | 35.4419 |
\( \sigma_1 \) | = | 15 |
\( \sigma_2 \) | = | 8 |
\( n_1 \) | = | 51 |
\( n_2 \) | = | 43 |
\( z \) | = | 1.0693 |
For assistance on calculating the test statistic, see the Two-Sample Z-Procedure tutorial. You may want to 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 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. 2024. All rights reserved. | . | |