Complete Two-Sample t-Test Problem: Do students in rural and urban schools differ in mean math scores?
Rural: n 1 = 40 {n_1 = 40} n 1 = 40 , x ˉ 1 = 71.2 {\bar{x}_1 = 71.2} x ˉ 1 = 71.2 , s 1 = 12.4 {s_1 = 12.4} s 1 = 12.4
Urban: n 2 = 35 {n_2 = 35} n 2 = 35 , x ˉ 2 = 76.8 {\bar{x}_2 = 76.8} x ˉ 2 = 76.8 , s 2 = 10.1 {s_2 = 10.1} s 2 = 10.1
H: H 0 : μ R = μ U {H_0: \mu_R = \mu_U} H 0 : μ R = μ U vs. H a : μ R ≠ μ U {H_a: \mu_R \neq \mu_U} H a : μ R = μ U
A: Random (assume) ✓; 10% condition ✓; n 1 = 40 ≥ 30 {n_1 = 40 \geq 30} n 1 = 40 ≥ 30 ✓, n 2 = 35 ≥ 30 {n_2 = 35 \geq 30} n 2 = 35 ≥ 30 ✓
N: Two-sample t-test
T:
t = 71.2 − 76.8 12.4 2 / 40 + 10.1 2 / 35 = − 5.6 3.844 + 2.915 = − 5.6 6.759 = − 5.6 2.600 ≈ − 2.15 t = \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 t = 12. 4 2 /40 + 10. 1 2 /35 71.2 − 76.8 = 3.844 + 2.915 − 5.6 = 6.759 − 5.6 = 2.600 − 5.6 ≈ − 2.15
d f = min ( 39 , 34 ) = 34 {df = \min(39, 34) = 34} df = min ( 39 , 34 ) = 34 O: p = 2 ⋅ P ( t 34 ≤ − 2.15 ) ≈ 2 ( 0.019 ) = 0.038 {p = 2 \cdot P(t_{34} \leq -2.15) \approx 2(0.019) = 0.038} p = 2 ⋅ P ( t 34 ≤ − 2.15 ) ≈ 2 ( 0.019 ) = 0.038
M/S: Since 0.038 < 0.05 {0.038 < 0.05} 0.038 < 0.05 , reject H 0 {H_0} H 0 . We have convincing evidence that rural and urban students differ in mean math scores.