AP Statistics / Unit 4: Inference for Quantitative Data: Means / Topic 4.6
NUM8ERS study notes · Topic 4.6

Sampling Distributions for the Difference Between Two Sample Means

Compare 22 groups without losing track of sampling variation. Learn where differences between sample means are centered, how much they vary, and when a normal model can help calculate probabilities.

2026–27 curriculum4 worked examples8 practice questionsVisuals + calculator guidance

By the end of this lesson, you should be able to:

  • Distinguish a difference between sample means from a difference between population means.
  • Calculate the mean and standard deviation of xˉ1−xˉ2\bar x_{1}-\bar x_{2}.
  • Justify randomization, independence and normal-model conditions for 22 groups.
  • Calculate and interpret a probability about repeated differences between sample means.

Before you start: Review sampling distributions for 11 mean, variances of independent random variables, the central limit theorem and normal probabilities. Keep the group subtraction order fixed.

First time learning this? Follow the delivery-time example, then connect the center, spread and normal-model checks.

Here to revise? Use the formula checklist, then attempt the practice questions before opening the solutions.

The concept in 60 seconds

Take a random sample from each of 22 groups and calculate their sample means. Subtract them in a stated order. That difference is an estimate of the difference between the 22 population means.

If you repeat the sampling process, the 22 sample means change. Their difference changes too. The distribution of all those possible differences is the sampling distribution of xˉ1−xˉ2\bar x_{1}-\bar x_{2}.

Three questions guide the model: Where is the distribution centered? How much do the differences vary? Is a normal shape justified?

Its center is μ1−μ2\mu_{1}-\mu_{2}. For independent sample means, add their variances to find the variance of the difference, then take a square root to obtain its standard deviation. Subtracting the means does not mean subtracting their variability.

Comparing 22 delivery services

A business compares delivery times from services A and B. Treat each service’s defined set of deliveries as a separate population. For this teaching example, the population summaries are known:

Population information and independent random samples
GroupPopulation mean and SD⁡\operatorname{SD}Sample and population sizes
1: Service Aμ1=32 min\mu_{1}=32 \,\mathrm{min}; σ1=8 min\sigma_{1}=8 \,\mathrm{min}n1=40n_{1}=40; N1=2,000N_{1}=2{,}000
2: Service Bμ2=28 min\mu_{2}=28 \,\mathrm{min}; σ2=6 min\sigma_{2}=6 \,\mathrm{min}n2=36n_{2}=36; N2=1,800N_{2}=1{,}800

Take the 22 SRSs independently, without replacement within each population. Individual delivery times are right-skewed. Use the order A−B\mathrm A-\mathrm B, and define D=xˉA−xˉBD=\bar x_{A}-\bar x_{B}.

The population difference is 32−28=4 min32-28=4 \,\mathrm{min}. Across repeated pairs of samples, DD is centered at 4 min4 \,\mathrm{min}. It does not equal 44 every time.

Pause and predict: Could a particular pair of samples give D=7 minD=7 \,\mathrm{min}, even though the population difference is 44? Yes. The sampling distribution helps us describe how often results that far above the center would occur.

For these sample sizes, DD has a standard deviation of approximately 1.612 min1.612 \,\mathrm{min}. Both samples are large enough for the course’s central-limit-theorem normal approximation, so we can estimate probabilities about DD.

Key ideas and notation

Population difference

μ1−μ2\mu_{1}-\mu_{2} is the difference between 22 population means. It is a fixed parameter for the specified populations.

Delivery example: the A-minus-B population difference is 4 min4 \,\mathrm{min}.

Sample difference

xˉ1−xˉ2\bar x_{1}-\bar x_{2} is calculated from 11 pair of samples. Before sampling, it is a random statistic.

DD is a shorter name for this difference; define its order before using it.

22 sources of variation

σ1\sigma_{1} and σ2\sigma_{2} describe individual values in the populations. σ1n1\frac{\sigma_{1}}{\sqrt{n_{1}}} and σ2n2\frac{\sigma_{2}}{\sqrt{n_{2}}} describe variation of the separate sample means.

Spread of the difference

σD\sigma_{D} describes variation of xˉ1−xˉ2\bar x_{1}-\bar x_{2} across repeated samples of the stated sizes.

Its units match the original measurement units.

Independent groups and matched pairs

22 separately selected groups can have independent sample means. Repeated measurements on the same people, or deliberately matched observations, are paired data. For pairs, analyze within-pair differences using their own mean and SD⁡\operatorname{SD}.

Having 22 samples of equal size does not establish pairing. Having 22 different group names does not establish independence; check how the data were collected.

Build the sampling distribution

Keep the populations and sample sizes fixed. Each repetition produces 22 means and 11 difference.

22 independent samples → 22 means → 11 difference
1 · Sample separatelyDraw 4040 from A and 3636 from B

Use independent random selections from the same 22 populations each time.

2 · CalculateRecord xˉA−xˉB\bar x_{A}-\bar x_{B}

Calculate the average within each sample, then subtract A minus B.

3 · RepeatPlot the differences

A histogram of many repeated differences approximates the sampling distribution.

Reset to the same populations for each hypothetical repetition. A sampling-distribution axis contains differences of means, not individual delivery times.

Do not mix these distributions: The distribution of individual A delivery times, the distribution of xˉA\bar x_{A}, and the distribution of xˉA−xˉB\bar x_{A}-\bar x_{B} describe 33 different quantities.

11 observed pair of sample means supplies 11 point in this imagined distribution. You do not need to collect thousands of real samples to use the theoretical model; repeated sampling explains what the model represents.

Calculate the center and standard deviation

Center: subtract the population means

μD=μ1−μ2\mu_{D}=\mu_{1}-\mu_{2}

Each sample mean is centered at its own population mean, so their difference is centered at the population difference. For the deliveries, μD=32−28=4 min\mu_{D}=32-28=4 \,\mathrm{min}. This makes xˉ1−xˉ2\bar x_{1}-\bar x_{2} an unbiased estimator of μ1−μ2\mu_{1}-\mu_{2} under the stated sampling design.

Spread: add variances, then take the square root

Under the independent-observation model:

Var⁡(D)=σ12n1+σ22n2\operatorname{Var}(D)=\frac{\sigma_{1}^{2}}{n_{1}}+\frac{\sigma_{2}^{2}}{n_{2}}

σD=σ12n1+σ22n2\sigma_{D}=\sqrt{\frac{\sigma_{1}^{2}}{n_{1}}+\frac{\sigma_{2}^{2}}{n_{2}}}

This variance rule requires independent sample means. For finite samples drawn without replacement, the calculations below use the unadjusted independent-observation approximation justified by the separate sampling checks. The subtraction sign changes the center; it does not cancel independent uncertainty. Squaring the coefficient −1-1 gives +1+1 in the variance calculation.

  1. For A’s sample mean: σ12n1=8240=1.6 min2\frac{\sigma_{1}^{2}}{n_{1}}=\frac{8^{2}}{40}=1.6\,\mathrm{min}^{2}.
  2. For B’s sample mean: σ22n2=6236=1 min2\frac{\sigma_{2}^{2}}{n_{2}}=\frac{6^{2}}{36}=1\,\mathrm{min}^{2}.
  3. Add the variances: Var⁡(D)=1.6+1=2.6 min2\operatorname{Var}(D)=1.6+1=2.6\,\mathrm{min}^{2}.
  4. Take the square root: σD≈2.6≈1.612452 min\sigma_{D}\approx\sqrt{2.6}\approx1.612452 \,\mathrm{min}.

Interpretation: Across repeated independent random samples of 4040 A deliveries and 3636 B deliveries, the A-minus-B sample mean difference typically varies from the population difference of 4 min4 \,\mathrm{min} by about 1.612 min1.612 \,\mathrm{min}.

What changes when sample sizes grow?

Increasing either sample size decreases its contribution to the variance. Increasing both sample sizes by a factor of 44 divides the total variance by 44 and multiplies the standard deviation by 12\frac12. The center stays at μ1−μ2\mu_{1}-\mu_{2}.

Multiplying both sample sizes by 44 halves the spread
Sample size and variation of a difference in sample meansTwo approximately normal sampling curves both centered at 4 minutes. With samples of 40 and 36, the standard deviation is about 1.612 minutes. Quadrupling both sample sizes to 160 and 144 halves it to about 0.806 minutes. −2 0 4 7 10 Difference in sample mean times A − B (minutes) 0.0 0.1 0.2 0.3 0.4 0.5 Probability density Same center: 4 minutes Larger samples, less variation n₁ = 40, n₂ = 36 SD ≈ 1.612 min n₁ = 160, n₂ = 144 SD ≈ 0.806 min Sample size and variation of a difference in sample meansTwo approximately normal sampling curves both centered at 4 minutes. With samples of 40 and 36, the standard deviation is about 1.612 minutes. Quadrupling both sample sizes to 160 and 144 halves it to about 0.806 minutes. −2 0 4 7 10 Difference in sample mean times A − B (minutes) 0.0 0.1 0.2 0.3 0.4 0.5 0.6 Probability density Same center: 4 minutes Larger samples, less variation n₁ = 40, n₂ = 36
Posted on Google Google
0000003998 : Abdad Alam Shamim Alam profile picture
0000003998 : Abdad Alam Shamim Alam
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
This is the bestest institution I have ever come to and I love it very much.
Posted on Google Google
Aliki S profile picture
Aliki S
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Posted on Google Google
Ali profile picture
Ali
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Sly is him
Posted on Google Google
Jitendra Kumar Kumawat profile picture
Jitendra Kumar Kumawat
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Posted on Google Google
Raahil Hasan profile picture
Raahil Hasan
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Posted on Google Google
Tina Mudarres profile picture
Tina Mudarres
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
The classes are amazing and my child learnt so much
Posted on Google Google
alisha gadoya profile picture
alisha gadoya
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
I have experienced a lot of good things, it has taught me so many things and from B/Cs I have gone to an A! This is wonderful and Mavish’s class is awesome.
Posted on Google Google
smasher 123 profile picture
smasher 123
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
It’s sensational my kid went. First he only would get C now it’s all A’s really good and recommend
Posted on Google Google
Mosa Al- Samaraie profile picture
Mosa Al- Samaraie
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
AMAZING PRICES GREAT TEACHERS STRAIGHT FORWARD LEARNING STEADY PACE IN TUTORING
Posted on Google Google
Cael Dagnelie profile picture
Cael Dagnelie
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
I had a great experience learning math with Ms. Mavish. She explains complex topics in a very clear and simple way, which made it easier for me to understand and enjoy the subject. Her patience and dedication really stood out, and she always made sure that everyone in the class was keeping up. I especially appreciated how approachable she was — I never felt afraid to ask questions, and she was always willing to help. Thanks to her teaching, my confidence in math has grown a lot. I’m really thankful for the effort she puts into every lesson!

NUM8ERS is one of finest tutoring institutes in UAE, Located in Al Barsha 1, Dubai. Close to DUBAI AMERICAN ACADEMY (DAA) & AMERICAN SCHOOL OF DUBAI (ASD).