Carrying Out a Test for the Difference of Two Population Means

Carson West

AP Stats Home

Carrying Out a Test for the Difference of Two Population Means

This notes page details the “Do” step of a hypothesis test for the difference between two population means ( $ \mu_1 - \mu_2 $ ). This is where the test statistic is calculated and the p-value is determined, assuming the null hypothesis is true. Before proceeding, ensure you have properly Setting Up a Test for the Difference of Two Population Means.

1. State Hypotheses

Recall that the hypotheses for this test are:

2. Check Conditions (PLAN)

Before calculating the test statistic, verify that the conditions for inference are met. These are crucial for the validity of the results.

3. Calculate the Test Statistic

If the conditions are met, calculate the two-sample t-statistic:

$$ t = \frac{(\bar{x}_1 - \bar{x}_2) - (\mu_1 - \mu_2)}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}} $$
Where:

Degrees of Freedom (df): The degrees of freedom for this t-statistic are calculated using a complex formula (Welch-Satterthwaite equation), which typically results in a non-integer value. This is usually provided by statistical software or a calculator. For manual calculation or approximation, you can use the smaller of $ n_1 - 1 $ and $ n_2 - 1 $ . However, for AP Statistics, it’s generally expected to use technology for the precise df.

4. Determine the p-value

The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated, assuming the null hypothesis is true.

The p-value depends on the alternative hypothesis:

Interpreting p-Values is a critical skill for the conclusion.

5. Formulate a Conclusion

Finally, compare your p-value to the chosen significance level ( $ \alpha $ , often 0.05).

Always state your conclusion in the context of the problem, referring back to the specific populations and variables involved. Be mindful of Potential Errors When Performing Tests. This process is similar to Carrying Out a Test for a Population Mean but extended to two independent samples.