AP® Statistics · Unit 4 · Topic 4.6
Sampling Distribution for a Difference of Means
The sampling distribution of x1-bar minus x2-bar is centered at mu1 minus mu2, and because the two samples are independent, their variances add to give the standard error of the difference.
When you take two independent samples, each sample mean wobbles around its own population mean with its own spread. Subtracting one from the other combines both sources of wobble into a single new random quantity, x1-bar minus x2-bar. Its sampling distribution has a mean equal to mu1 minus mu2, because averages subtract the way you'd expect. But its spread is not a simple subtraction. Since the two samples are chosen independently, the variances of the two sampling distributions add together, and only then do you take a square root to get the standard error of the difference. That's why the gap between two sample means can land positive in one study and negative in another: both x1-bar and x2-bar bounce around their true means by chance, so sometimes group 1 happens to sample high, sometimes group 2 does.
This machinery sets up every two-sample t-procedure that follows. Once you know the center and spread of x1-bar minus x2-bar, you can standardize an observed difference into a t-statistic, check it against a t-distribution with a conservative degrees-of-freedom estimate, and build confidence intervals or run significance tests for comparing two population means. The population standard deviations are almost never known, so sample standard deviations s1 and s2 estimate them, which is exactly why t replaces z here, just as it did for one-sample mean inference.
Key terms
- Sampling distribution of a difference
- The distribution of values that x1-bar minus x2-bar would take across repeated independent samples from both populations.
- Standard error of the difference
- The standard deviation of the sampling distribution of x1-bar minus x2-bar, found from √(s12/n1 + s22/n2).
- Independence of samples
- The condition that the two samples are drawn separately and do not influence each other, allowing variances to add.
- Degrees of freedom (two-sample)
- A value used to pick the correct t-distribution when comparing two means, usually estimated conservatively by software or a formula.
Watch it explained
- How it worksHow do two sampling distributions combine into one for the difference of means?
- Worked exampleFind the mean and SD of x1-bar minus x2-bar for n of 30 and 40 with SDs 9 and 11.
- Common mistakeWhy doesn't the standard error of a difference come from subtracting the two errors?
- Going furtherWhat happens to that sampling distribution when one group gets far bigger than the other?
Check yourself
End of topic.