All AP Courses AP StatisticsAP Stats

Unit 4 · Topic 4.6 · about 20 minutes

AP Statistics 4.6: Sampling Distributions for the Difference Between Two Sample Means

Describe how the difference between two sample means varies, check that the description applies, and find and interpret probabilities about that difference.

Unit 4: 10 to 20% of the multiple-choice section

What you'll be able to do

  • Calculate the mean and standard deviation of the sampling distribution of x‾1−x‾2, the difference between two sample means.
  • Justify the conditions that the sampling distribution of the difference between two sample means depends on.
  • Interpret the mean, the standard deviation and probabilities for the sampling distribution of the difference between two sample means, in the context of the two populations.

Key vocabulary

TermWhat it meansThe exam trap
Sampling distribution of x‾1−x‾2The distribution of the difference between two sample means over all possible pairs of independent samples of sizes n1 and n2.It describes differences between sample means, so its standard deviation of 10.08 grams for the apples says nothing about how much two single apples differ.
Mean of x‾1−x‾2μx‾1−x‾2=μ1−μ2, the true difference between the two population means.Reversing the order of subtraction flips the center to μ2−μ1 but leaves the standard deviation alone, so fix the order at the start and keep it.
Standard deviation of x‾1−x‾2σx‾1−x‾2=σ12n1+σ22n2, the typical distance between the difference in sample means and μ1−μ2.A minus sign in the statistic never carries into this formula: the two squared terms always add under the square root.
Randomization conditionThe data come from two independent random samples, or, in an experiment, the treatments are randomly assigned to the experimental units.An experiment meets it through random assignment alone, so asking for random samples of volunteers sets the wrong requirement.
10 percent conditionWhen sampling without replacement, each sample is at most 10 percent of its own population: n1≤0.10N1 and n2≤0.10N2.Each sample is compared with its own population, and for data from an experiment the condition is not needed at all.

Predict first

Two independent random samples are taken from two different populations. The first sample mean has a standard deviation of 3, and the second has a standard deviation of 4. What is the standard deviation of the difference between the two sample means?

The difference as a statistic

Many questions compare two populations, such as the weights of two apple varieties. The statistic is the difference between the sample means, x‾1−x‾2, and like any statistic it varies from one pair of samples to the next.

For two independent populations with means μ1 and μ2 and standard deviations σ1 and σ2, when the sampled values are independent, the sampling distribution of x‾1−x‾2 has

μx‾1−x‾2=μ1−μ2σx‾1−x‾2=σ12n1+σ22n2

The center is the true difference in population means, so the statistic does not systematically overshoot or undershoot it. Each term under the square root is the square of a σ/n from Topic 4.1, so the standard deviation combines the variability of both sample means. Decide the order of subtraction at the start and keep it everywhere: x‾2−x‾1 has the same spread but the opposite center.

Conditions and shape

The standard deviation formula needs the sampled values to be independent. When you sample without replacement, two conditions make that reasonable:

  • Randomization condition: the data come from two independent random samples.
  • 10% condition: each sample is at most 10% of its own population, n1≤0.10N1 and n2≤0.10N2.

If the data come from an experiment instead, the only condition is randomization, and it is met when the treatments are randomly assigned to the experimental units.

The shape follows the same logic as for one mean, applied to both samples. If both populations can be modeled by normal distributions, the sampling distribution of x‾1−x‾2 is normal for any sample sizes. If they cannot, the sampling distribution is approximately normal when n1≥30 and n2≥30. Both, not one.

When can the sampling distribution of x‾1−x‾2 be modeled with a normal distribution?
The two populations areSample sizesNormal model for x‾1−x‾2?
Both approximately normalAny sizesYes
Not normal, or unknownn1≥30 and n2≥30Yes, approximately
Not normal, or unknownEither sample under 30Not justified

Worked exampleHow often does the gap look bigger than it is?

At a large orchard, Honeycrisp apple weights are approximately normal with mean 210 grams and standard deviation 30 grams. Gala apple weights are approximately normal with mean 180 grams and standard deviation 20 grams. A buyer picks independent random samples of 12 Honeycrisp and 15 Gala apples. Find the probability that the Honeycrisp sample mean is more than 40 grams larger than the Gala sample mean.

  1. Define the statistic. Let x‾H−x‾G be the Honeycrisp sample mean minus the Gala sample mean.

  2. Center and spread. μx‾H−x‾G=210−180=30 grams and σx‾H−x‾G=30212+20215=75+26.67≈10.08 grams.

  3. Conditions and shape. The samples are independent random samples, and 12 and 15 apples are far less than 10% of each variety at a large orchard. Both populations are approximately normal, so the sampling distribution is normal even though both samples are small.

  4. Calculate. z=40−3010.08≈0.99, and the area to the right is about 0.161.

  5. Interpret. In about 16% of pairs of random samples like these, the Honeycrisp sample mean would exceed the Gala sample mean by more than 40 grams, even though the true difference in mean weight is 30 grams.

Answer.

About 0.161.

Sampling distribution of x‾H−x‾G for samples of 12 and 15 apples

−0.249.8419.923040.0850.1660.24Honeycrisp sample mean minus Gala sample mean (grams)z = −3z = −2z = −1z = 0z = 1z = 2z = 3

Centered at the true difference of 30 grams. The shaded area, about 0.161, is the chance the sample difference exceeds 40 grams.

Read the picture from the other side too. A difference of 0 is almost 3 standard deviations below the center, z=(0−30)/10.08≈−2.98, so the chance that the Gala sample comes out heavier on average is only about 0.0015. With these sample sizes, a buyer comparing the two samples will nearly always see the right variety come out ahead, but the size of the gap can easily be off by 10 grams or more.

Check your understanding

1

Scores on a reading assessment have standard deviation 6 points in District 1 and 8 points in District 2, both large districts. Independent random samples of 36 students from District 1 and 32 students from District 2 are selected. Find the standard deviation of the sampling distribution of x‾1−x‾2. Round to three decimal places.

2

University records show that the mean commute distance is 11.2 miles for all graduate students and 7.5 miles for all undergraduates. Independent random samples of 40 graduate students and 50 undergraduates are selected. What is the mean of the sampling distribution of (undergraduate sample mean minus graduate sample mean)?

3

Household incomes in two large counties are strongly skewed to the right. An economist takes independent random samples of 45 households from County A and 18 households from County B. Which statement about the sampling distribution of x‾A−x‾B is correct?

4

At an orchard, Honeycrisp apples have mean weight 210 grams and Gala apples 180 grams. For independent random samples of 12 Honeycrisp and 15 Gala apples, the sampling distribution of x‾H−x‾G has standard deviation 10.08 grams. Which is a correct interpretation of 10.08 grams?

5

A sleep researcher randomly assigns 40 volunteers to wear either blue-light-blocking glasses or regular glasses in the evening and records how long each one takes to fall asleep. Which condition must these data meet for the mean and standard deviation formulas for the sampling distribution of x‾1−x‾2 to apply?

Exam strategy for this topic

  • Section I, Multiple Choice: 42 questions in 90 minutes.
  • Section II, Free Response: 4 questions in 90 minutes.
  • A graphing calculator with statistical capabilities is expected on both sections.

Questions students ask

Why does the variability add when the statistic is a subtraction?

The two sample means wobble independently. If the first comes out high while the second comes out low, the difference lands far above its center, and the reverse puts it far below. Either can happen, so the difference spreads out more than either sample mean does.

Do the two samples have to be the same size?

No. The formula works for any n1 and n2. Each sample is judged on its own when you check the sample size rule.

If both populations are normal, do I still need 30 in each sample?

No. When both populations can be modeled by normal distributions, the sampling distribution of x‾1−x‾2 is normal for any sample sizes. That is why the orchard example can use samples of only 12 and 15 apples.

Why is there no 10 percent condition for an experiment?

Nobody in an experiment was sampled from a population, so there is no population size to compare with. Random assignment of the treatments is the only condition.

How do I find a probability about the difference in sample means?

Find the center and the standard deviation, confirm the shape is normal, then standardize. For the apples, z=(40−30)/10.08≈0.99, and the area above it is about 0.161.

Course alignment, for teachers

AP Statistics topic 4.6, Unit 4: Inference for Quantitative Data: Means.

  • Skill 3.D: Calculate means, standard deviations, and parameters for probability distributions.
  • Skill 4.D: Interpret statistical calculations and results to assess meaning or a claim.
  • Skill 4.E: Justify the use of a chosen statistical inference method by verifying conditions.