Two-Sample t-Test: Independent Samples with Equal Variances
What you'll learn: How to test whether two independent groups have the same population mean when their variances are equal but unknown.
The Core Idea
Imagine comparing average test scores from two different classrooms, or measuring the effect of two different fertilizers on plant growth. When you have two independent samples and want to know if their population means differ, but don't know the population variances, you use a pooled two-sample t-test.
This test assumes:
- Both samples are independent (one doesn't affect the other)
- Both populations have equal (but unknown) variance
- Both populations are approximately normal, or samples are large enough
How It Works
Since we assume equal variances, we combine (pool) information from both samples to estimate the common variance more accurately. The pooled variance is:
where are sample sizes and are sample variances.
The test statistic is:
Under the null hypothesis , this follows a t-distribution with degrees of freedom.
When to Use It
Use this test when comparing two independent groups (like treatment vs. control, or two different brands) where you believe the variability is similar in both populations. If variances appear very different, you'd use Welch's t-test instead.
Key Takeaway: The pooled two-sample t-test combines variance information from both independent samples to test whether their population means are equal, giving more power when the equal-variance assumption holds.