Unit 4 · Topic 4.6 Beta

Sampling Distributions for the Difference Between Two Sample Means

For independent random samples (or randomly assigned groups), x-bar_1 − x-bar_2 has mean μ_1 − μ_2 and standard deviation √((σ_1²)/(n_1) + (σ_2²)/(n_2)) , and it is approximately normal when each sample mean is.

Practice 3: Analyze DataPractice 4: Interpret Results

Part 1 · Hook

Why this matters

Orchard A grows heavier apples on average than orchard B, by 10 grams. A buyer weighs 40 apples from A and 50 from B. Could her sample from B still come out heavier? To answer, you need the sampling distribution of a difference: where x¯A−x¯B\bar{x}_A - \bar{x}_B centers, how much it varies, and its shape.

Part 2 · Before you start

What this builds on

Part 3 · Prerequisite check

Quick check before you start

1. For random samples of size nn (under 10% of the population), the standard deviation of x¯\bar{x} is

  1. σn\frac{\sigma}{\sqrt{n}}
  2. σ2n\frac{\sigma^2}{n}
  3. σn\frac{\sigma}{n}
  4. σ\sigma
Show the answer

σn\frac{\sigma}{\sqrt{n}}; its square, σ2n\frac{\sigma^2}{n}, is the variance of x¯\bar{x}.

  • Correct: σn\frac{\sigma}{\sqrt{n}}:
  • σ2n\frac{\sigma^2}{n}:
  • σn\frac{\sigma}{n}:
  • σ\sigma:

2. For two independent samples, the standard deviation of p^1−p^2\hat{p}_1 - \hat{p}_2 is

  1. p1(1−p1)n1+p2(1−p2)n2\sqrt{\frac{p_1(1 - p_1)}{n_1} + \frac{p_2(1 - p_2)}{n_2}}
  2. p1(1−p1)n1−p2(1−p2)n2\sqrt{\frac{p_1(1 - p_1)}{n_1} - \frac{p_2(1 - p_2)}{n_2}}
  3. p1−p2n1+n2\frac{p_1 - p_2}{n_1 + n_2}
  4. p1−p2\sqrt{p_1 - p_2}
Show the answer

The two variances add, then take the square root.

  • Correct: p1(1−p1)n1+p2(1−p2)n2\sqrt{\frac{p_1(1 - p_1)}{n_1} + \frac{p_2(1 - p_2)}{n_2}}:
  • p1(1−p1)n1−p2(1−p2)n2\sqrt{\frac{p_1(1 - p_1)}{n_1} - \frac{p_2(1 - p_2)}{n_2}}:
  • p1−p2n1+n2\frac{p_1 - p_2}{n_1 + n_2}:
  • p1−p2\sqrt{p_1 - p_2}:

Part 4 · See it

See it first

Top: two normal curves for the sample mean apple weight, orchard A centered at 180 grams with standard deviation 3.16 and orchard B centered at 170 grams with standard deviation 3.54. Bottom: a wider normal curve for the difference of the two sample means, centered at 10 grams with standard deviation 4.74; the area below 0, shaded, is 0.0175.
Top: the sampling distributions of x¯A\bar{x}_A (mean 180, SD 3.16) and x¯B\bar{x}_B (mean 170, SD 3.54). Bottom: the sampling distribution of x¯A−x¯B\bar{x}_A - \bar{x}_B, centered at 10 with SD 4.74, wider than either. The shaded area, 0.0175, is the chance that B's sample mean comes out larger. LevlPrep original diagram.

Part 5 · Step by step

How it works, step by step

  1. Each sample mean is centered at its population meanthe difference is centered at μ1−μ2\mu_1 - \mu_2
  2. Each sample mean has its own variability, σ12n1\frac{\sigma_1^2}{n_1} and σ22n2\frac{\sigma_2^2}{n_2}for independent samples the variances add, so the difference varies more than either mean
  3. Take the square root of the sumσx¯1−x¯2\sigma_{\bar{x}_1 - \bar{x}_2}=σ12n1+σ22n2= \sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}
  4. If each sample mean is approximately normal (normal population or n≥30n \ge 30 for each)the difference is approximately normal, and z-scores give probabilities

Part 6 · Key ideas

Key ideas

  • Center: μx¯1−x¯2\mu_{\bar{x}_1 - \bar{x}_2}=μ1−μ2= \mu_1 - \mu_2.
  • Spread: σx¯1−x¯2\sigma_{\bar{x}_1 - \bar{x}_2}=σ12n1+σ22n2= \sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}} for independent samples (or groups formed by random assignment), each under 10% of its population when sampling.
  • Variances add, never standard deviations, and never subtract.
  • Shape: normal if both populations are normal; approximately normal if both n1≥30n_1 \ge 30 and n2≥30n_2 \ge 30.

Part 7 · Misconception

A common mistake

The wrong idea: The means are subtracted, so the variability of the difference is the first variance minus the second.

What actually happens: Both sample means wobble, and both wobbles end up in the difference. For independent samples the variances add: σ12n1+σ22n2\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}.

Part 8 · Check yourself

Check yourself

Exam-style questions. Anything you miss goes into your review queue.

Table

Apples from two orchards

Apple weights at two large orchards (invented data): at orchard A the mean is 180 grams with standard deviation 20 grams; at orchard B the mean is 170 grams with standard deviation 25 grams. A buyer takes independent random samples of 40 apples from A and 50 apples from B, each from the thousands harvested, and computes x¯A−x¯B\bar{x}_A - \bar{x}_B, the difference in sample means.

The two populations and the two samples
OrchardPopulation meanPopulation SDSample size
A180 g20 g40
B170 g25 g50

1. What is the mean of the sampling distribution of x¯A−x¯B\bar{x}_A - \bar{x}_B?

  1. 0 grams
  2. 10 grams
  3. 350 grams
  4. 4.74 grams
Show the answer

μx¯A−x¯B\mu_{\bar{x}_A - \bar{x}_B}=μA−μB= \mu_A - \mu_B=180−170= 180 - 170=10= 10 grams.

  • 0 grams: That would be true only if the two orchards had the same mean weight.
  • Correct: 10 grams: The mean of a difference of sample means is the difference of the population means: 180−170=10180 - 170 = 10 grams.
  • 350 grams: That adds the means. The statistic is a difference, so subtract.
  • 4.74 grams: That is the standard deviation of the difference, not its mean.

2. What is the standard deviation of the sampling distribution of x¯A−x¯B\bar{x}_A - \bar{x}_B, in grams?

Type a number, in grams. A table answer and a calculator answer are both accepted.

Show the answer

σx¯A−x¯B\sigma_{\bar{x}_A - \bar{x}_B}=σA2nA+σB2nB= \sqrt{\frac{\sigma_A^2}{n_A} + \frac{\sigma_B^2}{n_B}}=20240+25250= \sqrt{\frac{20^2}{40} + \frac{25^2}{50}}=10+12.5= \sqrt{10 + 12.5}=4.74= 4.74 grams.

  • Answer: 4.74 grams

3. Write the expression for the standard deviation of x¯A−x¯B\bar{x}_A - \bar{x}_B. Type it as on the exam, for example sqrt(a^2/m + b^2/n).

Type the expression as on the exam, with the values substituted.

Show the answer

20240+25250\sqrt{\frac{20^2}{40} + \frac{25^2}{50}}=4.74= 4.74 grams: each population variance divided by its own sample size, added, then the square root.

  • Answer: 20240+25250\sqrt{\frac{20^{2}}{40} + \frac{25^{2}}{50}}

4. What is the probability that the sample mean weight from orchard A is less than the sample mean weight from orchard B (that is, x¯A−x¯B<0\bar{x}_A - \bar{x}_B < 0)?

Type a number. A table answer and a calculator answer are both accepted.

Show the answer

x¯A−x¯B\bar{x}_A - \bar{x}_B is approximately normal with mean 10 and standard deviation 4.74. P(x¯A−x¯B<0)P(\bar{x}_A - \bar{x}_B < 0)=P(z<0−104.74)= P\left(z < \frac{0 - 10}{4.74}\right)=P(z<−2.11)= P(z < -2.11)=0.0175= 0.0175 (Table A gives 0.0174).

  • Answer: 0.0175

5. Why does the standard deviation of x¯1−x¯2\bar{x}_1 - \bar{x}_2 add the two variances, even though the means are subtracted?

  1. Because subtracting a negative number is the same as adding a positive one
  2. Because the two samples are the same size
  3. Because the second mean is usually smaller than the first
  4. Each sample mean varies on its own, and both kinds of variation show up in the difference
Show the answer

For independent samples, σx¯1−x¯22\sigma^2_{\bar{x}_1 - \bar{x}_2}=σ12n1= \frac{\sigma_1^2}{n_1}+σ22n2+ \frac{\sigma_2^2}{n_2}: uncertainty from both samples accumulates.

  • Because subtracting a negative number is the same as adding a positive one: The rule is about variability, not about signs.
  • Because the two samples are the same size: The rule holds for any sample sizes, as long as the samples are independent.
  • Because the second mean is usually smaller than the first: The sizes of the means do not matter; their variability does.
  • Correct: Each sample mean varies on its own, and both kinds of variation show up in the difference: A difference can be off because x¯1\bar{x}_1 is high, because x¯2\bar{x}_2 is low, or both, so its spread is larger than either one's.

6. A coach records each of 25 runners' mile time in the morning and again in the evening. Why should the formula σ12n1+σ22n2\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}} not be used for the morning mean minus the evening mean?

  1. The two sets of times come from the same runners, so they are not independent samples
  2. The sample of 25 is smaller than 30
  3. Mile times are not normally distributed
  4. The formula is for proportions, not for means
Show the answer

The variance formula needs two independent samples. Measurements on the same individuals are paired, so use the differences and a one-sample method.

  • Correct: The two sets of times come from the same runners, so they are not independent samples: A fast runner is fast both times, so the two means move together. Paired data are analyzed through the differences instead.
  • The sample of 25 is smaller than 30: Sample size affects the shape, not whether this formula applies.
  • Mile times are not normally distributed: Shape is a separate condition; the issue is dependence.
  • The formula is for proportions, not for means: This is the formula for means; it needs independent samples.

Part 9 · Summary

Summary

For independent random samples (or randomly assigned groups), 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}}, and it is approximately normal when each sample mean is. Use zz=(x¯1−x¯2)−(μ1−μ2)σx¯1−x¯2= \frac{(\bar{x}_1 - \bar{x}_2) - (\mu_1 - \mu_2)}{\sigma_{\bar{x}_1 - \bar{x}_2}} for probabilities.

Part 10 · Up next

What comes next

Part 11 · Connections

Connections