AP Statistics · Unit 4 · Topic 4.6

    4.6 Sampling Distributions for the Difference Between Two Sample Means

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    For independent random samples, xˉ1−xˉ2\bar{x}_1 - \bar{x}_2 has mean μ1−μ2\mu_1 - \mu_2 and standard deviation σ12n1+σ22n2\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}. 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.

    μxˉ1−xˉ2=μ1−μ2σxˉ1−xˉ2=σ12n1+σ22n2\mu_{\bar{x}_1 - \bar{x}_2} = \mu_1 - \mu_2 \qquad \sigma_{\bar{x}_1 - \bar{x}_2} = \sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}
    • 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

    SExˉ1−xˉ2=s12n1+s22n2SE_{\bar{x}_1 - \bar{x}_2} = \sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}

    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.

    1. Question 1 · SP 3 · Analyze Data

      σ₁ = 10, n₁ = 25 and σ₂ = 15, n₂ = 25 (independent samples). The standard deviation of x̄₁ − x̄₂ is about:

    2. Question 2 · SP 3 · Analyze Data

      The mean of the sampling distribution of x̄₁ − x̄₂ is:

    3. Question 3 · SP 2 · Collect Data

      Both populations are strongly skewed and n₁ = n₂ = 12. Is the sampling distribution of x̄₁ − x̄₂ approximately normal?

    4. Question 4 · SP 3 · Analyze Data

      With μ₁ − μ₂ = 10 and σ of the difference 1.68, P(x̄₁ − x̄₂ > 12) is about:

    5. 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.

    1. (a) Find the mean and standard deviation of x̄_A − x̄_B.
    2. (b) Justify a normal model.
    3. (c) Find P(x̄_A − x̄_B < 0).

    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.

    How this shows up on the exam42 multiple-choice questions and 4 free-response questions of 10 points. See what each one asks you to do.Full-length AP Statistics practice examsUnit 4 is one of 5 units on the exam. Two timed exams in the 2027 format (42 MCQ + 4 FRQ), with explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Free Unit 4 cheat sheet

    Every topic in Unit 4: Inference for Quantitative Data: Means on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Statistics practice material is ready. No spam, and we'll delete it if you ask.

    Free Unit 4 practice test: 50 questions with explanations

    All topics in Unit 4: Inference for Quantitative Data: Means

    1. 4.1 Sampling Distributions for Sample Means
    2. 4.2 Constructing a Confidence Interval for a Population Mean or Population Mean Difference
    3. 4.3 Justifying a Claim Based on a Confidence Interval for a Population Mean or Population Mean Difference
    4. 4.4 Setting Up a Test for a Population Mean or Population Mean Difference
    5. 4.5 Carrying Out a Test for a Population Mean or Population Mean Difference
    6. 4.6 Sampling Distributions for the Difference Between Two Sample Means
    7. 4.7 Constructing a Confidence Interval for the Difference Between Two Population Means
    8. 4.8 Justifying a Claim Based on a Confidence Interval for the Difference Between Two Population Means
    9. 4.9 Setting Up a Test for the Difference Between Two Population Means
    10. 4.10 Carrying Out a Test for the Difference Between Two Population Means

    Other units in AP Statistics

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.