In short
For independent random samples, has mean and standard deviation . It is approximately normal if both populations are normal or both samples are large (n ≥ 30). When the σ's are unknown, the standard error uses s₁ and s₂ and inference uses a t-distribution.
What you need to know
- State the mean and standard deviation of the sampling distribution of x̄₁ − x̄₂.
- Decide when the sampling distribution of x̄₁ − x̄₂ is approximately normal.
- Calculate probabilities about a difference in sample means.
- Write the standard error used for two-sample t procedures.
Centre, spread and shape
Suppose heights of 17-year-old boys in a city have mean 170 cm and standard deviation 7 cm, and heights of 17-year-old girls have mean 160 cm and standard deviation 6 cm. We take independent random samples of 30 boys and 30 girls and compute x̄_B − x̄_G.
- Centre: 170 − 160 = 10 cm. The difference of sample means is unbiased.
- Spread: √(7²/30 + 6²/30) = √(49/30 + 36/30) ≈ 1.68 cm. The variances add because the samples are independent.
- Shape: each sample has n = 30, so by the central limit theorem each x̄ is approximately normal, and so is their difference.
Probabilities about the difference
How likely is it that the boys' sample mean exceeds the girls' by more than 12 cm? z = (12 − 10)/1.68 ≈ 1.19, so P ≈ 0.117. About 12% of pairs of samples would show a gap that large.
How likely is a gap of less than 5 cm? z = (5 − 10)/1.68 ≈ −2.97, so P ≈ 0.0015. Such a small sample difference would be very unusual if the population means really differ by 10 cm.
These calculations use z because σ₁ and σ₂ are known. That is rare in practice, which is why the next topics switch to t.
From σ to s: the two-sample standard error
With sample standard deviations in place of σ's, the standardized difference follows (approximately) a t-distribution. Its degrees of freedom come from a formula built into the calculator, which gives a value between the smaller of n₁ − 1 and n₂ − 1 and n₁ + n₂ − 2. Using the smaller n − 1 by hand is a safe, conservative choice.
- Random: two independent random samples or two groups from random assignment.
- 10%: each sample is less than 10% of its population (when sampling).
- Normal/large sample: each population approximately normal, or each n ≥ 30; for small samples, graph each sample and check for strong skewness or outliers.
Key terms
- x̄₁ − x̄₂
- The difference between two sample means, estimating μ₁ − μ₂.
- Standard error of x̄₁ − x̄₂
- √(s₁²/n₁ + s₂²/n₂).
- Two-sample t-distribution
- The approximate distribution of the standardized difference when s₁ and s₂ replace σ₁ and σ₂.
- Conservative df
- The smaller of n₁ − 1 and n₂ − 1, which gives slightly wider intervals and larger p-values.
Common mistakes
Adding standard deviations: 7/√30 + 6/√30.
Add variances, then take the square root.
Using n₁ + n₂ − 2 as df without justification.
Use the calculator's df or the conservative smaller n − 1.
Using a two-sample method for paired data.
Paired data are not independent; analyse differences instead.
How this topic is tested
- Define which group is 1 and which is 2.
- Show the variance terms separately before adding.
- Check the normal condition for each sample.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · SP 3 · Analyze Data
σ₁ = 10, n₁ = 25 and σ₂ = 15, n₂ = 25 (independent samples). The standard deviation of x̄₁ − x̄₂ is about:
Question 2 · SP 3 · Analyze Data
The mean of the sampling distribution of x̄₁ − x̄₂ is:
Question 3 · SP 2 · Collect Data
Both populations are strongly skewed and n₁ = n₂ = 12. Is the sampling distribution of x̄₁ − x̄₂ approximately normal?
Question 4 · SP 3 · Analyze Data
With μ₁ − μ₂ = 10 and σ of the difference 1.68, P(x̄₁ − x̄₂ > 12) is about:
Question 5 · SP 3 · Analyze Data
Why is the conservative df the smaller of n₁ − 1 and n₂ − 1?
Free-response practice
Write your answer first, then mark it against the scoring guide.
Probability and sampling · 5 points
Delivery times for Company A have mean 32 min (σ = 6) and for Company B mean 28 min (σ = 5). Independent random samples of 36 deliveries are taken from each.
- (a) Find the mean and standard deviation of x̄_A − x̄_B.
- (b) Justify a normal model.
- (c) Find P(x̄_A − x̄_B < 0).
Scoring guide: one point for each of the following
Part (a)
- Mean = 32 − 28 = 4 min.
- SD = √(36/36 + 25/36) ≈ 1.30 min.
Part (b)
- Both samples have n = 36 ≥ 30, so by the central limit theorem the difference is approximately normal.
Part (c)
- z = (0 − 4)/1.30 ≈ −3.07.
- Probability ≈ 0.001.
Connected topics
Frequently asked questions
Do the two samples need the same size?
No; each variance term uses its own n.
Why not pool the standard deviations?
AP Statistics uses the unpooled (Welch) approach, which doesn't assume equal population spreads.
What's the difference from topic 3.9?
Same structure, but for means: variances σ²/n instead of p(1 − p)/n.