4.6 - Sampling Distributions for the Difference Between Two Sample Means
Overview
Many statistical questions compare two groups. Do students at one school spend more time on screens than students at another? Are apples from one orchard heavier than apples from another? To answer them, you take a random sample from each population and compare the sample means using the difference . This topic describes how that difference behaves from sample to sample: its center, its spread, and when its distribution is normal. Everything in Topics 4.7 to 4.10 is built on it.
Two samples, one statistic
Picture two populations. Population 1 has mean and standard deviation . Population 2 has mean and standard deviation . Take a random sample of size from population 1, take a separate random sample of size from population 2, and compute the difference in sample means:
This difference is a statistic, so it changes from one pair of samples to the next. The sampling distribution of is the distribution of its values over all possible pairs of samples of sizes and . It works the same way as the sampling distribution of in Topic 3.9, with means in place of proportions.
Mean and standard deviation of the sampling distribution
For two independent populations, when the sampled values are independent, the sampling distribution of has this mean and standard deviation:
Both formulas are on the AP formula sheet, in the table "Sampling Distributions for Means." On the exam you use them to describe the sampling distribution and to find probabilities about .
The center: no bias
The mean of the sampling distribution is exactly the true difference . Some pairs of samples overestimate the difference and some underestimate it, but on average they hit it. That makes an unbiased estimator of .
The spread: variances add
Each sample mean has its own sampling variability. From Topic 4.1, , so the variance (the square of the standard deviation) of each sample mean is or . When you subtract two independent sample means, their random errors don't cancel out. Either mean can land high or low, and both errors end up in the difference. So the variances add, and the standard deviation is the square root of the sum:
- Add variances, never standard deviations. Writing is wrong. Square each one, add, then take the square root.
- It's a plus sign even though the statistic is a difference. Subtracting two random quantities makes the result more variable, not less.
- Bigger samples, less spread. Increasing or shrinks its term, so varies less.
Conditions for using the formulas
The standard deviation formula assumes the two samples are independent of each other and that the values inside each sample are independent. When you sample without replacement, two conditions make that reasonable:
- Randomization condition: the data should be collected using two independent random samples, one from each population. Independent means that who gets picked for one sample has nothing to do with who gets picked for the other. Measuring the same students twice is not independent; that's paired data, analyzed as one sample of differences (Topic 4.2).
- 10% condition: each sample size must be at most 10% of its population size: and , where and are the population sizes. Sampling without replacement makes the values in a sample slightly dependent. When the sample is a small slice of the population, that dependence is small enough to ignore.
Experiments work differently. If the data come from an experiment, only the randomization condition is needed, and it means the treatments were randomly assigned to the experimental units. No population is being sampled, so there's no 10% condition. Random assignment is what makes the two groups independent, and it's the source of the chance variation that the formulas describe.
On the exam, name each condition and tie it to the problem with numbers, for example "40 is less than 10% of the 1,850 students at North." Keep the randomization and 10% conditions separate; mixing them up is a common error.
When the sampling distribution is normal
The shape of the sampling distribution of depends on the populations and the sample sizes:
Populations | Sample sizes | Sampling distribution of |
Both can be modeled by a normal distribution | Any sizes | Normal |
At least one can't be modeled by a normal distribution (or the shape is unknown) | and | Approximately normal |
A population that isn't normal (or whose shape is unknown) | That population's sample has fewer than 30 values | Don't assume it's normal |
Here's why. Each is normal when its population is normal, or approximately normal by the central limit theorem when its sample is large (Topic 4.1), and the difference of two independent normal variables is normal too. An extremely skewed population may need a sample much larger than 30. A large sample changes the shape of the sampling distribution, not the shape of the population.
Interpreting in context
The mean, standard deviation, and probabilities from this sampling distribution should always be interpreted for the specific populations in the problem. Use these sentence frames, filled in with the real context:
Quantity | What it means |
Mean, | Across all possible pairs of random samples of these sizes, the difference in sample mean [variable] ([group 1] minus [group 2]) averages . |
Standard deviation, | The difference in sample mean [variable] typically varies by about [units] from in repeated random sampling. |
A probability | The proportion of all possible pairs of random samples that give a difference in sample means in the stated range. |
Example 1: Apple weights from two orchards
Apple weights at Orchard A are approximately normal with mean 150 g and standard deviation 20 g. At Orchard B they are approximately normal with mean 140 g and standard deviation 25 g. A grocer picks a random sample of 10 apples from Orchard A and an independent random sample of 12 apples from Orchard B. Find the mean and standard deviation of the sampling distribution of , then find the probability that the Orchard B sample has the larger mean weight.
Step 1: find the mean.
Step 2: find the standard deviation.
Step 3: check the conditions and the shape. The two samples are random and independent, and each orchard has far more than 100 and 120 apples, so the 10% condition holds. Both populations are approximately normal, so the sampling distribution of is approximately normal even though both samples are small.
Step 4: find the probability. "Orchard B has the larger sample mean" means .
On a TI-84,
normalcdf(-1E99, 0, 10, 9.596) gives the same answer, about 0.149.
Answer: The difference in sample mean weights (A minus B) has mean 10 g and standard deviation about 9.60 g. In about 14.9% of all possible pairs of random samples like these, the 12 apples from Orchard B would have a higher mean weight than the 10 apples from Orchard A, even though Orchard A's apples are heavier on average. Small samples can easily point the wrong way.
Example 2: Screen time at two high schools (AP-style)
At North High (1,850 students), daily screen time has mean 215 minutes and standard deviation 70 minutes. At South High (1,420 students), the mean is 190 minutes and the standard deviation is 80 minutes. Both distributions are strongly skewed to the right. A researcher selects a random sample of 40 North students and an independent random sample of 35 South students.
- Describe the sampling distribution of (shape, center, and variability), and justify the shape.
- Assuming these population values are correct, find the probability that North's sample mean is at least 60 minutes higher than South's. Would a difference that large be surprising?
Part 1, conditions. The data come from two independent random samples, so the randomization condition is met. Also and , so the 10% condition is met.
Center:
Variability:
Shape: the populations are strongly skewed, so they can't be modeled by normal distributions. But and , so the sampling distribution of is approximately normal.
In context: across all possible pairs of random samples of 40 North students and 35 South students, the difference in sample mean daily screen time (North minus South) averages 25 minutes and typically varies from 25 minutes by about 17.47 minutes.
Part 2. Standardize 60 and find the area to the right.

Answer: If the population means really are 215 and 190 minutes, only about 2.3% of all possible pairs of random samples like these would show North's sample mean at least 60 minutes higher than South's. That's unusual, so seeing a 60-minute gap would make us doubt the stated population values (the true difference may be larger than 25 minutes). A significance test makes this kind of reasoning formal in Topic 4.10.
Estimating with adds extra uncertainty, so inference for two means uses -distributions instead of the standard normal. That leads to the two-sample -interval (Topic 4.7) and the two-sample -test (Topics 4.9 and 4.10).
Common mistakes
- Adding standard deviations instead of variances: is not .
- Subtracting the variances because the statistic is a difference. The variances always add.
- Mixing up the sample sizes. Each variance is divided by its own sample size: by and by .
- Claiming normality without a reason. If a population isn't normal, you need its sample size to be at least 30. Saying "the population is normal because " is also wrong: the sample size affects the sampling distribution, not the population.
- Using this for paired data. Before-and-after measurements on the same people are not independent samples. Analyze the differences as one sample (Topic 4.2).
- Switching the order of subtraction. If you define the difference as A minus B, keep A minus B in the mean, in the event you're finding the probability of, and in your interpretation.