Back to Inference for Quantitative Data: Means

Lesson PreviewLesson 8 of 9 in this unit

7.8 Setting Up a Test for the Difference of Two Population Means

Part of Inference for Quantitative Data: Means in AP® Statistics. Read the opening section, then create a free account for the full interactive lesson, practice, and progress tracking.

Two-Sample t-Test Hypotheses

Parameter: μ1−μ2{\mu_1 - \mu_2} = difference in population means

Hypotheses:

  • H0:μ1=μ2{H_0: \mu_1 = \mu_2} (equivalently, μ1−μ2=0{\mu_1 - \mu_2 = 0})
  • Ha:μ1≠μ2{H_a: \mu_1 \neq \mu_2} (two-sided, most common)
  • Ha:μ1>μ2{H_a: \mu_1 > \mu_2} (right-tailed)
  • Ha:μ1<μ2{H_a: \mu_1 < \mu_2} (left-tailed)

Conditions (same as two-sample t CI):

  1. Random: both samples random
  2. Independence: 10% condition for each; groups independent
  3. Normal/Large Sample: each group — normal population OR ni≥30{n_i \geq 30}
Test statistic:
t=(xˉ1−xˉ2)−0s12n1+s22n2t = \frac{(\bar{x}_1 - \bar{x}_2) - 0}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}}

Use conservative df=min⁡(n1−1,n2−1){df = \min(n_1-1, n_2-1)} by hand; calculator uses Welch df.

Note: Unlike the two-proportion z-test, there is no "pooled" standard error for the two-sample t-test (we don't assume σ1=σ2{\sigma_1 = \sigma_2}).

Continue the full lesson in Stellar

Create a free account to unlock the remaining sections, checkpoints, course practice, and progress tracking for AP® Statistics.