Proportion Procedures

Calculating the Test Statistic

The Problem

Example #188: Let us test the null hypothesis that the success rate in population 1 is the same as in population 2. In symbols, this is:

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

To test this hypothesis, we collect data. The data are a series of “Success” and “Failure” values. For sample 1, the data are

“Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Failure”, “Success”, “Success”, “Failure”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Failure”, “Success”, “Failure”, “Success”, “Failure”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Failure”, “Success”, “Success”, “Success”, “Success”, “Success”

For sample 2, the data are

“Success”, “Failure”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Failure”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Success”, “Failure”, “Failure”, “Success”, “Success”

With this information, calculate the z test statistic corresponding to the null hypothesis given above.

Information given:

To summarize the above, the values of import are:

Summary statistics from the problem
\( p_0 \) =
  
\( x_1 \) =
\( x_2 \) =
  
\( n_1 \) =
\( n_2 \) =
  
\( \hat{p}_1 \) =
\( \hat{p}_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 t 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.   .