\(t\)-Test for
Difference of Means
Learn how to test whether two population means are significantly different using the two-sample \(t\)-test: hypotheses, test statistic, and decision rules.
Why Compare Two Means?
In many real-world scenarios we want to know whether two groups differ on some measured outcome. For example: does a new drug lower blood pressure more than a placebo? Do students taught with Method A score higher than those taught with Method B?
Key Terminology
Visual Intuition
Setting Up Hypotheses
Means differ in either direction.
Group 1 mean is less.
Group 1 mean is greater.
The Test Statistic
Degrees of Freedom
For the Welch's \(t\)-test (which does not assume equal variances), the degrees of freedom are approximated by the Welch-Satterthwaite formula:
Required Conditions
Pooled vs Welch's \(t\)-Test
| Pooled \(t\)-Test | Welch's \(t\)-Test | |
|---|---|---|
| Variance Assumption | \(\sigma_1^2 = \sigma_2^2\) | No assumption needed |
| SE Denominator | Uses pooled \(s_p^2\) | Uses \(\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}\) |
| Degrees of Freedom | \(n_1 + n_2 - 2\) | Welch-Satterthwaite (smaller) |
| When to Use | Equal variances confirmed | Default choice (safer) |
How to Apply the Test
Example 1: Study Hours
A professor wants to know if students in the morning section study more hours per week than students in the evening section.
Example 1: Solution
Example 2: Drug Trial
A clinical trial tests whether a new medication reduces systolic blood pressure more than a placebo.
Example 2: Solution
Visualizing the Decision
Common Mistakes
Question 1 of 5
What does the null hypothesis \(H_0\) state in a two-sample \(t\)-test for difference of means?
Question 2 of 5
Given \(\bar{x}_1 = 20\), \(\bar{x}_2 = 17\), \(s_1 = 4\), \(s_2 = 5\), \(n_1 = 25\), \(n_2 = 25\), what is the test statistic \(t\)?
Question 3 of 5
A researcher obtains \(t = 2.15\) with \(df = 48\) on a two-tailed test at \(\alpha = 0.05\). The critical value is \(t_{0.025} \approx 2.01\). What is the correct conclusion?
Question 4 of 5
Which condition is not required for the two-sample \(t\)-test?
Question 5 of 5
If both sample sizes are doubled (from \(n\) to \(2n\)) while all other values stay the same, what happens to the standard error?