Hypothesis Tests for Two Means: Unequal and Unknown Population Variances

Welch's t-test for comparing two population means when the population variances are unknown and not assumed equal. Covers the test statistic, the Welch–Satterthwaite degrees of freedom, and one- and two-sided decision rules.

Step 1 of 119%

Tutorial

The Welch Test Statistic and Degrees of Freedom

When comparing two population means with unknown variances that we cannot assume are equal, we use Welch's tt-test. Given two independent samples with sizes n1,n2n_1, n_2, means xˉ1,xˉ2\bar{x}_1, \bar{x}_2, and standard deviations s1,s2s_1, s_2, the test statistic for H0 ⁣:μ1μ2=Δ0H_0\colon \mu_1 - \mu_2 = \Delta_0 is

t=(xˉ1xˉ2)Δ0s12n1+s22n2.t = \dfrac{(\bar{x}_1 - \bar{x}_2) - \Delta_0}{\sqrt{\dfrac{s_1^2}{n_1} + \dfrac{s_2^2}{n_2}}}.

Under H0H_0, this statistic approximately follows a tt-distribution. The degrees of freedom come from the Welch–Satterthwaite formula:

ν=(s12n1+s22n2)2(s12/n1)2n11+(s22/n2)2n21.\nu = \dfrac{\left(\dfrac{s_1^2}{n_1} + \dfrac{s_2^2}{n_2}\right)^2}{\dfrac{(s_1^2/n_1)^2}{n_1-1} + \dfrac{(s_2^2/n_2)^2}{n_2-1}}.

We round ν\nu down to the nearest integer to be conservative.

For example, suppose n1=5,s1=2,n2=8,s2=3n_1=5,\, s_1=2,\, n_2=8,\, s_2=3. Then

s12n1=45=0.8,s22n2=98=1.125.\dfrac{s_1^2}{n_1} = \dfrac{4}{5} = 0.8, \qquad \dfrac{s_2^2}{n_2} = \dfrac{9}{8} = 1.125.

The numerator of the Welch–Satterthwaite formula is (0.8+1.125)2=3.706(0.8+1.125)^2 = 3.706, and the denominator is

(0.8)24+(1.125)27=0.160+0.181=0.341.\dfrac{(0.8)^2}{4} + \dfrac{(1.125)^2}{7} = 0.160 + 0.181 = 0.341.

Therefore

ν=3.7060.34110.87    ν=10.\nu = \dfrac{3.706}{0.341} \approx 10.87 \;\Longrightarrow\; \nu = 10.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle