AP® Statistics · Unit 4 · Topic 4.7

Two-Sample t-Interval for a Difference of Means

A two-sample t-interval estimates the true difference between two population means, mu1 - mu2, by combining both sample means and their standard errors into one margin of error built around a single critical value from the t-distribution.

When you want to compare two groups, like commute times for drivers versus cyclists, you care about one number: how far apart their true average commutes really are. Building two separate intervals and eyeballing whether they overlap answers a fuzzier question than the one you actually want answered. A two-sample t-interval targets mu1 - mu2 directly, so the margin of error reflects the uncertainty in the difference itself, not two separate uncertainties you're trying to compare by eye.

The standard error for a difference of two independent means is √((s12 / n1) + (s22 / n2)). Each sample contributes its own variance divided by its own sample size, and because the samples are independent, those two pieces of variance add under the square root rather than cancel or average. The interval is then (x-bar1 - x-bar2) plus or minus t-star times that standard error, where t-star comes from a t-distribution using a conservative degrees of freedom approach (often the smaller of n1 - 1 and n2 - 1, or technology's more exact value).

This topic is the natural next step after one-sample t-intervals: same t-machinery, same logic of estimate plus or minus margin of error, just applied to a difference instead of a single mean. It sets up two-sample t-tests, which ask whether that difference could plausibly be zero. Keep the independence of the two samples straight in your head, since dependent or paired data needs a completely different method built on the differences within pairs, not between separate groups.

Key terms

Two-sample t-interval
A confidence interval estimating the true difference between two population means, mu1 - mu2.
Standard error of a difference
√((s12/n1) + (s22/n2)), measuring the typical spread of x-bar1 - x-bar2 across samples.
Degrees of freedom
A value tied to sample sizes that determines the shape of the t-distribution used to find t-star.
Independent samples
Two groups where selection in one sample has no influence on membership in the other.

Watch it explained

  1. How it worksWalk me through the standard error for a difference between two independent means.
  2. Worked exampleFind the 95 percent interval from n1 = 25 x-bar 82 s 9 and n2 = 30 x-bar 76 s 11.
  3. Common mistakeWhy isn't overlap between two separate mean intervals proof of no real difference?

Check yourself

Your turn1 of 2
Find the margin of error for a 95% confidence interval for mu1 - mu2, when n1 = 27, s1 = 10, n2 = 34, s2 = 7. Use t* = 2.021.

End of topic.