Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›AP Statistics
  3. ›4 Inference for Quantitative Data: Means
  4. ›4.6 Differences in sample means

AP Statistics · Unit 4 · Inference for Quantitative Data: Means

4.6 Differences in sample means

Calculate the mean and standard deviation of the difference of two sample means, describe its sampling distribution, and check the conditions for a normal approximation.

  • 4 min read
  • 5 parts
  • 10 questions
  • Draft
Start a Quick 5 on this topic→Jump to the 10 questions
1/5The difference of two sample means varies from sample to sample
  1. 1The difference of two sample means varies from sample to sample
  2. 2The mean of the difference equals the difference of the means
  3. 3The spread of the difference combines the spread of both samples
  4. 4The sampling distribution is approximately normal under the right conditions
  5. 5Checking conditions justifies the normal approximation
  6. Check your recall
  7. Practice: 10 questions
1

Part 1 of 5: The difference of two sample means varies from sample to sample

Suppose you want to compare average commute times in two cities. You take a random sample from each city and subtract one sample mean from the other. A second pair of samples gives a different difference. Each group has its own mean, standard deviation and sample size, so we label them 1 and 2.

The pattern of those differences is the sampling distribution of the difference. It describes every value that xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​ can take across repeated pairs of samples. To describe it, you need its center, spread and shape.

Notation for two groups

QuantityGroup 1Group 2
Population meanμ1\mu_1μ1​μ2\mu_2μ2​
Population standard deviationσ1\sigma_1σ1​σ2\sigma_2σ2​
Sample sizen1n_1n1​n2n_2n2​
Sample meanxˉ1\bar{x}_1xˉ1​xˉ2\bar{x}_2xˉ2​
Sample standard deviations1s_1s1​s2s_2s2​
Quantity
Population mean
Group 1
μ1\mu_1μ1​
Group 2
μ2\mu_2μ2​
Quantity
Population standard deviation
Group 1
σ1\sigma_1σ1​
Group 2
σ2\sigma_2σ2​
Quantity
Sample size
Group 1
n1n_1n1​
Group 2
n2n_2n2​
Quantity
Sample mean
Group 1
xˉ1\bar{x}_1xˉ1​
Group 2
xˉ2\bar{x}_2xˉ2​
Quantity
Sample standard deviation
Group 1
s1s_1s1​
Group 2
s2s_2s2​

Key term

sampling distribution of the difference

The sampling distribution of the difference is the distribution of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​ over all possible pairs of independent random samples of sizes n1n_1n1​ and n2n_2n2​.

Part 1 done

2

Part 2 of 5: The mean of the difference equals the difference of the means

Now consider where those differences are centered. Each sample mean is centered at its own population mean. So the differences are centered at the gap between the two population means.

In symbols, μxˉ1−xˉ2=μ1−μ2\mu_{\bar{x}_1-\bar{x}_2}=\mu_1-\mu_2μxˉ1​−xˉ2​​=μ1​−μ2​. Suppose group 1 has a true mean of 80 and group 2 has a true mean of 75. Over many pairs of samples, the differences average 5. The statistic xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​ is a point estimate of μ1−μ2\mu_1-\mu_2μ1​−μ2​.

Exam tip

Order matters. If you swap the groups, the mean of the difference changes sign, but the spread stays the same.

Key term

point estimate

A point estimate is a single value computed from sample data and used to estimate a population parameter.

Part 2 done

Quick check

One question on the part you just read

Easy

Identify the mean of the sampling distribution of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​.
Show answer and explanation

Answer: A · Worked explanation

Each sample mean is centered at its own population mean, so the difference is centered at μ1−μ2\mu_1-\mu_2μ1​−μ2​. Adding the means treats the operation as a sum. The statistic xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​ is a single sample value, not the center of all possible differences.
3

Part 3 of 5: The spread of the difference combines the spread of both samples

Subtracting one sample mean from another does not cancel their variability. Each mean adds its own randomness to the difference.

When the two groups are independent samples, the variances of the two sample means add. This gives σxˉ1−xˉ2=σ12n1+σ22n2\sigma_{\bar{x}_1-\bar{x}_2}=\sqrt{\frac{\sigma_1^2}{n_1}+\frac{\sigma_2^2}{n_2}}σxˉ1​−xˉ2​​=n1​σ12​​+n2​σ22​​​. Variances add, but standard deviations do not.

In practice, σ1\sigma_1σ1​ and σ2\sigma_2σ2​ are usually unknown. Replace them with s1s_1s1​ and s2s_2s2​ to get the standard error of the difference, s12n1+s22n2\sqrt{\frac{s_1^2}{n_1}+\frac{s_2^2}{n_2}}n1​s12​​+n2​s22​​​.

Common mistake

A minus sign does not subtract the spreads. The result is always at least as large as either sample mean's own standard deviation.

Worked example

Mean and standard deviation of a difference

Population 1 has test scores with μ1=80\mu_1=80μ1​=80 and σ1=12\sigma_1=12σ1​=12 points, and a random sample of n1=36n_1=36n1​=36 is taken. Population 2 has μ2=75\mu_2=75μ2​=75 and σ2=10\sigma_2=10σ2​=10 points, and an independent random sample of n2=25n_2=25n2​=25 is taken. Find the mean and standard deviation of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​.
  1. 1
    Mean: μxˉ1−xˉ2=μ1−μ2=80−75=5\mu_{\bar{x}_1-\bar{x}_2}=\mu_1-\mu_2=80-75=5μxˉ1​−xˉ2​​=μ1​−μ2​=80−75=5.
  2. 2
    Group 1 part: σ12n1=12236=14436=4\frac{\sigma_1^2}{n_1}=\frac{12^2}{36}=\frac{144}{36}=4n1​σ12​​=36122​=36144​=4.
  3. 3
    Group 2 part: σ22n2=10225=10025=4\frac{\sigma_2^2}{n_2}=\frac{10^2}{25}=\frac{100}{25}=4n2​σ22​​=25102​=25100​=4.
  4. 4
    Standard deviation: σxˉ1−xˉ2=4+4=8≈2.83\sigma_{\bar{x}_1-\bar{x}_2}=\sqrt{4+4}=\sqrt{8}\approx 2.83σxˉ1​−xˉ2​​=4+4​=8​≈2.83.

Answer: The mean is 5 points and the standard deviation is about 2.83 points.

Key terms · tap one for its definition

independent samples

Independent samples are two samples in which the individuals chosen for one have no influence on the individuals chosen for the other.

standard error of the difference

The standard error of the difference is s12/n1+s22/n2\sqrt{s_1^2/n_1+s_2^2/n_2}s12​/n1​+s22​/n2​​, the estimate of the standard deviation of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​ when population standard deviations are unknown.

Part 3 done

4

Part 4 of 5: The sampling distribution is approximately normal under the right conditions

We now know the center and the spread. The remaining question is shape. When the conditions in the next section hold, the sampling distribution of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​ is approximately normal.

  • Shape: approximately normal.
  • Center: μ1−μ2\mu_1-\mu_2μ1​−μ2​.
  • Spread: σ12n1+σ22n2\sqrt{\frac{\sigma_1^2}{n_1}+\frac{\sigma_2^2}{n_2}}n1​σ12​​+n2​σ22​​​.

A normal model therefore describes the difference. Values near the center are common, and values far from it are rare. About 95% of differences fall within 2 standard deviations of the mean.

Shape depends on the data. Normal populations give a normal difference for any sample sizes. Large samples give an approximately normal difference even when the populations are skewed.

Figure 1. Differences of sample means cluster around 5, with a standard deviation of about 2.83.

Part 4 done

Quick check

One question on the part you just read

Easy

Identify the standard deviation of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​ for independent samples.
Show answer and explanation

Answer: A · Worked explanation

Variances of independent sample means add, and the standard deviation is the square root of that sum. Adding the two standard deviations of the means overstates the spread. Subtracting variances treats subtraction as if it removed variability. The final form is the variance, not the standard deviation.
5

Part 5 of 5: Checking conditions justifies the normal approximation

A normal model is only an approximation, and it needs support from the study design and the data.

  • Random: each sample is random, or treatments were randomly assigned.
  • Independent groups: the two samples do not influence each other, and neither is paired.
  • 10% condition: each sample is less than 10% of its own population when sampling without replacement.
  • Normal or large: each population is approximately normal, each n≥30n\geq30n≥30, or each sample has no strong skewness or outliers.

The shape check applies to both groups separately. One large sample does not rescue a small, strongly skewed one.

Exam tip

Write the check for each group by name, using its sample size or graph, instead of one statement covering both.

Note read

Check your recall[13 marks]

5 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.Calculate[3 marks]

    Calculate the mean and standard deviation of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​ when μ1=50\mu_1=50μ1​=50, σ1=8\sigma_1=8σ1​=8, n1=64n_1=64n1​=64, μ2=44\mu_2=44μ2​=44, σ2=6\sigma_2=6σ2​=6 and n2=36n_2=36n2​=36.

    Show mark schemeHide mark scheme

    Model answer

    The mean is 50−44=650-44=650−44=6. The standard deviation is 8264+6236=1+1=2≈1.41\sqrt{\frac{8^2}{64}+\frac{6^2}{36}}=\sqrt{1+1}=\sqrt{2}\approx1.416482​+3662​​=1+1​=2​≈1.41.

    • 1 mark for finding the mean as μ1−μ2=6\mu_1-\mu_2=6μ1​−μ2​=6
    • 1 mark for substituting correctly into the standard deviation formula
    • 1 mark for obtaining 2≈1.41\sqrt{2}\approx1.412​≈1.41
  2. 2.Describe[3 marks]

    Describe the sampling distribution of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​ when the conditions are met.

    Show mark schemeHide mark scheme

    Model answer

    It is approximately normal in shape. Its center is μ1−μ2\mu_1-\mu_2μ1​−μ2​. Its standard deviation is σ12n1+σ22n2\sqrt{\frac{\sigma_1^2}{n_1}+\frac{\sigma_2^2}{n_2}}n1​σ12​​+n2​σ22​​​.

    • 1 mark for stating approximately normal shape
    • 1 mark for stating the center as μ1−μ2\mu_1-\mu_2μ1​−μ2​
    • 1 mark for stating the spread formula
  3. 3.Describe[3 marks]

    Describe the conditions that support using a normal model for xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​.

    Show mark schemeHide mark scheme

    Model answer

    Each sample must be random or randomly assigned, and the two samples must be independent. Each sample must be less than 10% of its population when sampling without replacement. Each population must be approximately normal, or each sample size at least 30, or each sample free of strong skewness and outliers.

    • 1 mark for stating random selection or assignment and independent groups
    • 1 mark for stating the 10% condition for each sample
    • 1 mark for stating the normal or large sample condition for each group
  4. 4.Explain[2 marks]

    Explain why the standard deviation of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​ is not found by subtracting the two standard deviations of the sample means.

    Show mark schemeHide mark scheme

    Model answer

    Each sample mean contributes its own randomness. For independent samples the variances add, so the combined spread is larger than either one alone.

    • 1 mark for stating that variances of independent sample means add
    • 1 mark for linking this to a combined spread at least as large as either one alone
  5. 5.Justify[2 marks]

    Group 1 has n1=45n_1=45n1​=45 values with no strong skewness. Group 2 has n2=15n_2=15n2​=15 values that are strongly skewed with an outlier. Justify whether a normal model is appropriate for xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​.

    Show mark schemeHide mark scheme

    Model answer

    A normal model is not appropriate. The condition must hold for each group, and group 2 is small and shows strong skewness and an outlier.

    • 1 mark for concluding that the normal model is not appropriate
    • 1 mark for citing group 2 being small, skewed and having an outlier, since the check applies to each group

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the 2 quick checks in the note above.

3.

Easy·Identify[1 mark]

Identify the situation that involves two independent samples.
Show answer and explanation

Answer: A · Worked explanation

Independent samples are chosen separately, so choosing one sample has no influence on the other. Before-and-after readings come from the same patients, so they are linked. Twins and married couples are naturally linked pairs, so the two groups are paired, not independent, and need a different analysis.
4.

Medium·Calculate[2 marks]

Population 1 has μ1=70\mu_1=70μ1​=70, σ1=9\sigma_1=9σ1​=9 and n1=36n_1=36n1​=36. Population 2 has μ2=64\mu_2=64μ2​=64, σ2=12\sigma_2=12σ2​=12 and n2=64n_2=64n2​=64. The samples are independent. Calculate the standard deviation of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​.
Show answer and explanation

Answer: A · Worked explanation

The two parts are 8136=2.25\frac{81}{36}=2.253681​=2.25 and 14464=2.25\frac{144}{64}=2.2564144​=2.25. So the standard deviation is 2.25+2.25=4.5≈2.12\sqrt{2.25+2.25}=\sqrt{4.5}\approx2.122.25+2.25​=4.5​≈2.12. The value 4.50 is the variance before taking the root. The value 3.00 comes from adding 96=1.5\frac{9}{6}=1.569​=1.5 and 128=1.5\frac{12}{8}=1.5812​=1.5 directly, which treats standard deviations as if they added. Only variances add for independent samples.
5.

Medium·Predict[1 mark]

Both sample sizes are quadrupled while the population standard deviations stay the same. Predict what happens to the standard deviation of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​.
Show answer and explanation

Answer: A · Worked explanation

Each variance term has nnn in the denominator. Quadrupling nnn divides the sum under the root by 4, so the standard deviation is divided by 4=2\sqrt{4}=24​=2. A quarter would result only if the standard deviation itself were divided by 4, which forgets the square root.
6.

Medium·Determine[1 mark]

Group 1 has n1=45n_1=45n1​=45 and group 2 has n2=18n_2=18n2​=18 with strong skewness and outliers. Determine whether the normal condition holds for xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​.
Show answer and explanation

Answer: A · Worked explanation

The shape check applies to each group, and group 2 is small with strong skewness and outliers. A combined total of 63 does not repair group 2. A large group 1 cannot compensate for group 2. Equal sample sizes are not a condition at all.
7.

Medium·Calculate[2 marks]

The sampling distribution of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​ is approximately normal with mean 5 and standard deviation 2.83. Calculate the z-score of an observed difference of 10.0.
Show answer and explanation

Answer: A · Worked explanation

The z-score is 10.0−52.83≈1.77\frac{10.0-5}{2.83}\approx1.772.8310.0−5​≈1.77. The value 3.53 comes from dividing 10.0 by 2.83 without subtracting the mean. The value 5.00 is the raw distance from the mean, with no division by the standard deviation. The value 0.50 divides that distance by 10.
8.

Hard·Calculate[2 marks]

Population 1 has μ1=40\mu_1=40μ1​=40, σ1=5\sigma_1=5σ1​=5 and n1=25n_1=25n1​=25. Population 2 has μ2=48\mu_2=48μ2​=48, σ2=6\sigma_2=6σ2​=6 and n2=36n_2=36n2​=36. The samples are independent. Calculate the mean and standard deviation of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​.
Show answer and explanation

Answer: A · Worked explanation

The mean is 40−48=−840-48=-840−48=−8. The parts are 2525=1\frac{25}{25}=12525​=1 and 3636=1\frac{36}{36}=13636​=1, so the standard deviation is 2≈1.41\sqrt{2}\approx1.412​≈1.41. A mean of 8 reverses the order of subtraction. A standard deviation of 0 results from subtracting the parts, and 2.00 comes from skipping the square root.
9.

Hard·Calculate[2 marks]

The sampling distribution of xˉ1−xˉ2\bar{x}_1-\bar{x}_2xˉ1​−xˉ2​ is approximately normal with mean 5 and standard deviation 2.83. Calculate the probability that xˉ1−xˉ2>0\bar{x}_1-\bar{x}_2>0xˉ1​−xˉ2​>0.
Show answer and explanation

Answer: A · Worked explanation

The z-score of 0 is 0−52.83≈−1.77\frac{0-5}{2.83}\approx-1.772.830−5​≈−1.77, and the area above -1.77 is about 0.96. The value 0.04 is the area below -1.77, which is the opposite event. The value 0.08 doubles that tail, and 0.50 would apply only if the mean were 0.
10.

Hard·Identify[2 marks]

Two samples each have n=40n=40n=40, so a student says the normality check is complete. Identify a condition that must still be checked.
Show answer and explanation

Answer: A · Worked explanation

Large samples address shape only. Random selection and independence between the groups still have to be confirmed, along with the 10% condition. Nothing in the normal approximation requires equal standard deviations, equal means or equal sample sizes, so those do not need checking.

Keep going

Next topic4.7 Interval for a difference of two meansPrevious topic4.5 Carrying out a test for a mean or mean difference

More in Unit 4 · Inference for Quantitative Data: Means

  1. 4.2Interval for a mean or mean differenceNotes · 10 questions
  2. 4.3Claims from a mean intervalNotes · 10 questions
  3. 4.4Setting up a test for a mean or mean differenceNotes · 10 questions
  4. 4.5Carrying out a test for a mean or mean differenceNotes · 10 questions
  5. 4.6Differences in sample meansNotes · 10 questions
  6. 4.7Interval for a difference of two meansNotes · 10 questions
  7. 4.8Claims about a difference of meansNotes · 10 questions
  8. 4.9Setting up a two-mean testNotes · 10 questions
  9. 4.10Carrying out a two-mean testNotes · 10 questions

All AP Statistics topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by College Board or any exam board.

On this page

0/5 read

  1. 1The difference of two sample means varies from sample to sample
  2. 2The mean of the difference equals the difference of the means
  3. 3The spread of the difference combines the spread of both samples
  4. 4The sampling distribution is approximately normal under the right conditions
  5. 5Checking conditions justifies the normal approximation
  6. Check your recall
  7. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe

Sampling distribution of a difference

Density-505101500.050.10.15Difference of sample means, x̄₁ − x̄₂ (points)
  • Sampling distribution
  • Mean, μ₁ − μ₂ = 5
  • No difference