Hypothesis Testing: Two-Sample Problems for Independent Normal Distributions - Equality of Means (Pooled vs. Un-pooled t-test)
Overview
In hypothesis testing for two-sample problems with independent normal distributions, we often want to test whether the means of two populations are equal. The two main approaches for this are the pooled t-test and the un-pooled t-test (also known as Welch's t-test). The choice between these tests depends on whether we assume the variances of the two populations are equal.
Pooled t-test
The pooled t-test is used when we assume that the variances of the two populations are equal. The test statistic is calculated using a pooled estimate of the variance.
Assumptions:
- The populations from which the samples are drawn are normally distributed.
- The samples are independent.
- The population variances are equal (homogeneity of variance).
Test Statistic:
The pooled t-test statistic is given by:
t= S p 2 ​ ( n 1 ​ 1 ​ + n 2 ​ 1 ​ ) ​ X ˉ 1 ​ − X ˉ 2 ​ ​
where S p 2 ​ is the pooled sample variance:
S p 2 ​ = n 1 ​ + n 2 ​ −2 ( n 1 ​ −1) S 1 2 ​ +( n 2 ​ −1) S 2 2 ​ ​
and
- X ˉ 1 ​ and X ˉ 2 ​ are the sample means,
- S 1 2 ​ and S 2 2 ​ are the sample variances,
- n 1 ​ and n 2 ​ are the sample sizes.
The degrees of freedom for the test are n 1 ​ + n 2 ​ − 2 .
Example:
Suppose we have two independent samples:
- Sample 1: n 1 ​ = 10 , X ˉ 1 ​ = 15 , S 1 2 ​ = 4
- Sample 2: n 2 ​ = 12 , X ˉ 2 ​ = 18 , S 2 2 ​ = 5
- Calculate the pooled variance S p 2 ​ :
S p 2 ​ = 10+12−2 (10−1)⋅ 4+(12−1 )⋅5 ​ = 20 36+55 ​ = 4.55
- Calculate the t-statistic:
t= 4.55 ( 10 1 ​ + 12 1 ​ ) ​ 15−18 ​ = 4.55⋅0.1833 ​ −3 ​ = 0.909 −3 ​ ≈ −3.30
- Determine the degrees of freedom:
df = 10+ 12− 2= 20
- Compare the t-statistic with the critical value from the t-distribution table for 20 degrees of freedom at the desired significance level (e.g., α= 0.05 ).
Un-pooled t-test (Welch's t-test)
The un-pooled t-test is used when we do not assume equal variances. This test is more robust when the variances are unequal.
Assumptions:
- The populations from which the samples are drawn are normally distributed.
- The samples are independent.
- The population variances are not assumed to be equal.
Test Statistic:
The Welch's t-test statistic is given by:
t= n 1 ​ S 1 2 ​ ​ + n 2 ​ S 2 2 ​ ​ ​ X ˉ 1 ​ − X ˉ 2 ​ ​
The degrees of freedom are approximated using the following formula (Welch-Satterthwaite equation):
df = n 1 ​ −1 ( n 1 ​ S 1 2 ​ ​ ) 2 ​ + n 2 ​ −1 ( n 2 ​ S 2 2 ​ ​ ) 2 ​ ( n 1 ​ S 1 2 ​ ​ + n 2 ​ S 2 2 ​ ​ ) 2 ​
Example:
Using the same sample data as above:
- Sample 1: n 1 ​ = 10 , X ˉ 1 ​ = 15 , S 1 2 ​ = 4
- Sample 2: n 2 ​ = 12 , X ˉ 2 ​ = 18 , S 2 2 ​ = 5
- Calculate the t-statistic:
t= 10 4 ​ + 12 5 ​ ​ 15−18 ​ = 0.4+0.4167 ​ −3 ​ = 0.8167 ​ −3 ​ ≈ 0.9037 −3 ​ ≈ −3.32
- Calculate the degrees of freedom:
df = 10−1 ( 10 4 ​ ) 2 ​ + 12−1 ( 12 5 ​ ) 2 ​ ( 10 4 ​ + 12 5 ​ ) 2 ​ = 9 0.16 ​ + 11 0.1736 ​ 0.816 7 2 ​ = 0.0178+0.0158 0.667 ​ = 0.0336 0.667 ​ ≈ 19.85
- Compare the t-statistic with the critical value from the t-distribution table for approximately 20 degrees of freedom at the desired significance level (e.g., α= 0.05 ).
Conclusion
- Pooled t-test is used when the variances of the two populations are assumed to be equal. It has a simpler formula and uses a pooled estimate of variance.
- Un-pooled t-test (Welch's t-test) does not assume equal variances and is more robust in the presence of unequal variances. It uses a different formula for the test statistic and degrees of freedom.
Choosing the correct test depends on whether the assumption of equal variances is reasonable. If there is doubt about the equality of variances, Welch's t-test is generally preferred.