Two Independent Means
To tell whether two groups really differ, take the gap between their sample means and ask how big it is compared with the noise. That noise comes from both samples at once, so their variances add up in the standard error.
What the symbols mean
- Observed difference
How far apart the two sample means are.
- First sample's variance
Its spread, squared.
- First sample size
How many observations in group 1.
Explanation
A two-sample t-test is simply a check of whether two separate groups, like students taught by two different methods, have different averages, or whether the gap you see could just be luck. The formula looks tall, but it's the same "signal over noise" as the one-sample t-test: on top, (the gap between the two sample means), and on the bottom, (each group's squared standard error, added together, then square-rooted). It's two familiar standard errors combined into one, so bear with it.
Hypotheses: (no difference) against , or .
Why variances add. You might expect the uncertainties to partly cancel when you subtract. They don't. Each sample mean can land a bit too high or too low on its own, and either kind of miss makes the gap come out wrong. So the difference of two independent quantities varies more than either one: . It's the same rule we used for totals in the CLT unit: variances add, standard deviations don't.
Degrees of freedom. Software computes them with Welch's formula; by hand, a safe conservative choice is the smaller of and .
Independent samples means the groups are unrelated individuals: two classes, a treatment group and a control group.
A common mistake. It's tempting to judge a difference by whether the two groups' distributions overlap. Heavy overlap feels like "no real difference." But the test compares the gap with the standard error of the means, which shrinks as the samples grow. With 40 people per group, two groups whose values overlap almost completely can still differ significantly; there's a picture of this further down.
See it
Worked examples
Method A: , , . Method B: , , . Find the test statistic.
- 1
Add the two squared standard errors, then take the root: .
Practice
Type your answer and check it. Solve them all to complete the lesson.
For the two methods above, find the standard error of the difference.
Find the test statistic.
With a two-tailed critical value of about 2.02 (conservative ), what is the decision at ?
What is the conservative degrees of freedom for samples of 40 and 50?
Which design uses independent samples?
Battery brand A: , mean life 9.8 h, h. Brand B: , mean 9.1 h, h. Find the statistic for the difference.
Find the margin of error of the 95% confidence interval for that difference, with ().
The hardest one here. Get it, and you've got this lesson.
Two groups each have standard deviation 10. How many people per group are needed for a 2-point difference in means to give ?
Where it's used
Clinical trials compare treatment and control groups; A/B tests compare two website versions; economists compare wages between regions.