CHAPTER 04 · TOPIC 05
Independent Two-Sample t Test
Compare two independent means with Welch or pooled t tests and understand their variance assumptions and degrees of freedom.
On this page
The independent two-sample t-test compares the population means of two unrelated groups for a quantitative variable. One observation unit belongs to only one group, and there is no one-to-one correspondence between groups.
Data Structure#
| variable | format |
| independent variable | Two groups of unrelated categorical variables |
| dependent variable | Quantitative variables whose averages can be calculated |
| targets for comparison | Population mean difference μ₁−μ₂ |
The two groups cannot be subtracted individually. X̄₁−X̄₂ is a linear combination of independent random variables whose variance is the sum of the variances of each mean.
mean difference
Independent mean difference variance
Hypotheses#
two-sided
right-tailed
left-tailed
When variances are different: Welch t-test#
Estimated variance of mean difference
Welch t
Welch–Satterthwaite degrees of freedom
When variances are equal: pooled t-test#
pool distribution
pooled standard error
Pooled t
| method | Variance assumption | degree of freedom |
| Welch t | Do not require σ₁²=σ₂² | Welch–Satterthwaite approximation |
| Pooled t | Assuming σ₁²=σ₂² | n₁+n₂−2 |
Testing Procedure#
- Confirm the independence and quantitative data of the two groups
- Set H₀, H₁, direction, α
- Calculate n, X̄, s for each group and choose Welch or pooled
- Find and interpret p-value from t and degrees of freedom
Relationship to One-Way ANOVA#
When using the same equal variance model with two independent groups, the t-test and one-way ANOVA give the same significance conclusion.