Back to Inference for Quantitative Data: Means

Lesson PreviewLesson 9 of 9 in this unit

7.9 Carrying Out 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.

Complete Two-Sample t-Test

Problem: Do students in rural and urban schools differ in mean math scores?

Rural: n1=40{n_1 = 40}, xˉ1=71.2{\bar{x}_1 = 71.2}, s1=12.4{s_1 = 12.4} Urban: n2=35{n_2 = 35}, xˉ2=76.8{\bar{x}_2 = 76.8}, s2=10.1{s_2 = 10.1}

H: H0:μR=μU{H_0: \mu_R = \mu_U} vs. Ha:μR≠μU{H_a: \mu_R \neq \mu_U}

A: Random (assume) ✓; 10% condition ✓; n1=40≥30{n_1 = 40 \geq 30} ✓, n2=35≥30{n_2 = 35 \geq 30} ✓

N: Two-sample t-test

T:
t=71.2−76.812.42/40+10.12/35=−5.63.844+2.915=−5.66.759=−5.62.600≈−2.15t = \frac{71.2 - 76.8}{\sqrt{12.4^2/40 + 10.1^2/35}} = \frac{-5.6}{\sqrt{3.844 + 2.915}} = \frac{-5.6}{\sqrt{6.759}} = \frac{-5.6}{2.600} \approx -2.15
df=min⁡(39,34)=34{df = \min(39, 34) = 34}

O: p=2⋅P(t34≤−2.15)≈2(0.019)=0.038{p = 2 \cdot P(t_{34} \leq -2.15) \approx 2(0.019) = 0.038}

M/S: Since 0.038<0.05{0.038 < 0.05}, reject H0{H_0}. We have convincing evidence that rural and urban students differ in mean math scores.

Continue the full lesson in Stellar

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