Z-Procedures

Calculating the P-Value

The Problem

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

34, 39, 31, 32, 44, 24, 37, 34, 32, 28, 39, 40, 30, 34, 27, 40, 34, 41, 41, 41, 32, 27, 29, 27, 29, 35, 32, 34, 38, 36, 24, 33, 39, 28, 32, 35, 41, 37, 33, 36, 49, 35, 29, 37, 33, 32, 34, 39, 41, 37, 31, 43, 33, 29

The data from population 2 are:

29, 31, 31, 43, 20, 36, 17, 42, 36, 34, 32, 44, 47, 27, 27, 41, 30, 14, 21, 31, 37, 45, 39, 10, 41, 34, 12, 43, 42, 34, 57, 39, 33, 13, 19, 60, 45, 31, 34, 19, 46, 41, 40, 27, 26

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 = 5 and σ2 = 11. 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 \) =
   
\( z \) =

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.

Your Answer

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.

Assistance

Show Formula

Show Solution

Show the R Code

Show the Excel Code

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