Confidence Intervals for Two Means: Equal and Unknown Population Variance

Construct a confidence interval for the difference of two population means when the two populations have a common but unknown variance, using a pooled sample variance and a t-distribution with n_1 + n_2 - 2 degrees of freedom.

Step 1 of 119%

Tutorial

Introduction

Suppose we have two independent random samples drawn from normal populations with means μ1\mu_1 and μ2\mu_2. When we assume both populations share the same (but unknown) variance σ2\sigma^2, we combine the two sample variances into a single estimate of σ2\sigma^2 called the pooled sample variance:

sp2=(n11)s12+(n21)s22n1+n22.s_p^2 = \dfrac{(n_1-1)s_1^2 + (n_2-1)s_2^2}{n_1+n_2-2}.

Using this pooled estimate, a 100(1α)%100(1-\alpha)\% confidence interval for μ1μ2\mu_1 - \mu_2 is

(xˉ1xˉ2)  ±  tα/2,n1+n22sp1n1+1n2.(\bar{x}_1 - \bar{x}_2) \;\pm\; t_{\alpha/2,\, n_1+n_2-2} \cdot s_p \sqrt{\dfrac{1}{n_1} + \dfrac{1}{n_2}}.

The tt-distribution has n1+n22n_1 + n_2 - 2 degrees of freedom — the sum of the degrees of freedom of the two sample variances.

Note: Unlike the unequal-variances procedure, this interval uses a single standard deviation sps_p in place of two separate s1,s2s_1, s_2, and the degrees of freedom is exactly n1+n22n_1+n_2-2 (no Welch–Satterthwaite approximation needed).

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle