You are here: Project Scarlet » Statistical Inference » Two-Sample Z-Procedures » P-Value
Z-Procedures
Example #498: 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:
53, 52, 48, 31, 47, 42, 32, 37, 44, 44, 32, 29, 55, 51, 39, 55, 41, 38, 50, 50, 53, 48, 33, 47, 32, 48, 33, 35, 44, 51, 45, 52, 53, 38, 38, 49, 66, 46, 45, 39, 44, 42, 49, 52, 41, 31, 44, 43, 45, 39, 43, 47, 40
The data from population 2 are:
46, 58, 40, 36, 46, 47, 59, 41, 34, 59, 45, 44, 28, 37, 47, 38, 54, 55, 36, 55, 36, 39, 51, 48, 47, 48, 44, 44, 12, 47, 32, 53, 60, 57, 53, 42, 41, 56, 43, 67, 43, 52, 60, 52, 34, 56, 58, 41
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 = 9 and σ2 = 9. With this information, calculate the test statistic corresponding to the null hypothesis.
To summarize the above, the values of import are:
\( \mu_d \) | = | 0 |
---|---|---|
\( \bar{x}_1 \) | = | 43.8679 |
\( \bar{x}_2 \) | = | 46.2708 |
\( \sigma_1 \) | = | 9 |
\( \sigma_2 \) | = | 9 |
\( n_1 \) | = | 53 |
\( n_2 \) | = | 48 |
\( z \) | = | -1.34 |
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. | . | |