Difference of two sample means practice

By Jude Wallis · Published

This set has 8 problems on the sampling distribution of the difference between two sample means. You find its center, add the two variances to get its standard deviation, decide when a normal model is justified, and compute probabilities about a difference. Solve each before opening the steps.

AP Statistics: Unit 4 (topics 4.6 Sampling Distributions for the Difference Between Two Sample Means). These problems cover Unit 4 topic 4.6 of the Fall 2026 AP Statistics course: the mean, the standard deviation, and the shape of the sampling distribution of the difference between two sample means, plus probabilities computed from it. Every problem gives population standard deviations, so the root produces a true standard deviation and the standardized value is a z rather than a t, with version B of problem 8 the one place sample standard deviations appear. A known sigma settles which reference curve, not whether a normal curve applies: shape is a separate condition, cleared by a normal population or by a sample that reaches 30, and problem 4 gives both population standard deviations and still fails it. Once only sample standard deviations are available, the same expression becomes the standard error behind the two-sample t procedures in topics 4.7 through 4.10. Unit 4 carries 10 to 20 percent of the multiple-choice section.

What these problems build

Topic 4.6 asks three questions about xˉ1xˉ2\bar{x}_1 - \bar{x}_2 (read 'x-bar-one minus x-bar-two'), the difference between two independent sample means: where it is centered, how much it varies, and when a normal curve describes it.

μxˉ1xˉ2=μ1μ2,σxˉ1xˉ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}}
  • Center. The difference of the sample means sits on the difference of the population means, at every pair of sample sizes and for every pair of population shapes.
  • Spread. The two quantities under the root, σ12n1\frac{\sigma_1^2}{n_1} and σ22n2\frac{\sigma_2^2}{n_2}, are the variances of xˉ1\bar{x}_1 and xˉ2\bar{x}_2. Add them, then take the square root once, at the end.
  • Shape. Checked once per sample, not once per problem. Each sample clears on one of two routes: its population is normal, which works at any nn, or its own sample size reaches 30. Both samples have to clear, and one failure closes the normal model for the difference.

Problems 1 through 3 are built on the spread formula, problem 4 on the shape argument, problems 5 and 6 on probabilities, problem 7 on choosing a sample size, and problem 8 on the one distinction that decides whether any of this is a zz calculation at all. For the concept behind all of it read sampling distributions explained and the central limit theorem guide, for the one-sample version work the x-bar set first, and for the topic page see 4.6. Check your areas against the normal distribution calculator or the z-table, and review how to find a z score if standardizing is shaky.

Why the variances add when you subtract

This is the whole set, and it is the most common error on the topic. Standard deviations never add. Variances do, for independent quantities, and they add for a difference exactly as they do for a sum. Problem 1 uses numbers that make the point visible: the two sample means have standard deviations 4 and 3.

MethodProblem 1's numbersResult
Add the variances, root at the end (correct)42+32=16+9\sqrt{4^2 + 3^2} = \sqrt{16 + 9}55
Add the standard deviations4+34 + 377, 40% too large
Subtract the variances4232=7\sqrt{4^2 - 3^2} = \sqrt{7}2.64582.6458, far too small

Variance measures squared distance from the center, so two independent sources of variability combine the way the legs of a right triangle do: 4 and 3 give 5, not 7. Adding the standard deviations always overstates the spread, which makes an observed gap look ordinary when it is not.

Subtracting is the error that feels most natural and lands furthest from right. Subtracting the means cancels nothing. Sample 1 misses its target by some amount, sample 2 misses its target by some amount, and both misses land in the gap between them, so the gap wobbles more than either mean alone does. Watch what 'subtract the variances' predicts when the two terms happen to be equal: a standard deviation of zero, meaning every pair of samples returns exactly the same difference. Problem 3 sets Cleo's version of that formula beside a simulation, and its solution works through the collapse. For why variance is the quantity that behaves this way, read why variance is in squared units, and note that the same sum reappears as the standard error of every two-sample t procedure.

Sigma or s, and why it decides the procedure

The other classic error on this topic is running a zz calculation on numbers that only support a tt procedure. The arithmetic is identical either way, which is exactly what makes the mistake easy to miss.

Topic 4.6, this setTopics 4.7 through 4.10
Spread figures givenpopulation σ1\sigma_1 and σ2\sigma_2sample s1s_1 and s2s_2
What the root producesa standard deviationa standard error
Reference curvestandard normal, zztt distribution
Question askeda probability about xˉ1xˉ2\bar{x}_1 - \bar{x}_2a confidence interval or a test

Every problem in this set hands you population standard deviations, so the root produces a genuine standard deviation and the standardized value is a zz. Real two-sample data almost never comes that way: you estimate the spread from the samples themselves, that estimate carries its own sampling error, and the reference curve widens into a tt. Problem 8 runs one study both ways so the difference is concrete, and its version B, the one place in this set where sample standard deviations appear, is the only tt below.

Keep the two conditions apart, because the Greek letter settles only one of them. Knowing σ\sigma tells you the spread, and the spread is what decides which curve you standardize against. Whether a normal curve applies at all is the shape condition from the first section, and it is cleared only by a normal population or by a sample that reaches 30. Those two checks are independent, and both have to pass before a normal-curve area exists. Problem 4 hands you σ1=24\sigma_1 = 24 and σ2=18\sigma_2 = 18 and still refuses the normal model, because its second sample is 20 observations from a skewed population.

See t test vs z test, standard error vs standard deviation, and z-interval vs t-interval. More sets are on the practice page.

Frequently asked questions

Why do the variances add when I am subtracting the means?

Because both samples miss their targets, and neither miss cancels the other. For independent quantities the variances add whether you subtract or combine any other way, so σxˉ1xˉ22=σ12n1+σ22n2\sigma_{\bar{x}_1 - \bar{x}_2}^2 = \frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2} and the square root comes last. Adding the two standard deviations instead always gives a number that is too large, as problems 1 and 2 quantify.

Do both samples need to reach 30, or just one?

Both, when the populations are not normal. The condition is checked once per sample: each one qualifies either because its population is stated to be normal, which works at any size, or because its own nn reaches 30. A sample of 45 from a skewed population does not cover a partner sample of 20 from another skewed population. Problem 4 is built on exactly that case.

Does it matter which group I call group 1?

Only for the sign. Swapping the labels flips the center from μ1μ2\mu_1 - \mu_2 to μ2μ1\mu_2 - \mu_1, but the standard deviation is identical, because swapping just exchanges two terms that are being added. Pick an order, state it in words, and keep it. A question about group 2 finishing higher is a question about a negative difference, which is what problem 6 works through.

Can the standard deviation of the difference ever be smaller than one group's own?

No. Since σ22n2\frac{\sigma_2^2}{n_2} is positive, the sum under the root is strictly larger than σ12n1\frac{\sigma_1^2}{n_1} alone, so the difference always varies more than either sample mean does. That is a hard floor: enlarging one group can push the standard deviation of the difference down toward the other group's value but never past it. Problem 7 uses it.

When is this a z problem and when is it a t problem?

Look at which letters the problem hands you. Population standard deviations σ1\sigma_1 and σ2\sigma_2 give a genuine standard deviation for the difference, so you standardize to a zz; that is topic 4.6. Sample standard deviations s1s_1 and s2s_2 give a standard error that carries its own sampling error, so the reference curve is a tt and you are in topics 4.7 through 4.10. The arithmetic under the root is identical, which is what makes the mixup easy. The letters decide the curve and nothing else: a normal model still has to be earned separately, once per sample, which is what problem 4 turns on. See t test vs z test.

Problem 1

Two coaching programs report scores on a common 100-point exam. Scores are approximately normal in both populations. Program 1 has μ1=78\mu_1 = 78 points and σ1=12\sigma_1 = 12 points; program 2 has μ2=71\mu_2 = 71 points and σ2=9\sigma_2 = 9 points. A researcher takes independent random samples of n1=9n_1 = 9 students from program 1 and n2=9n_2 = 9 from program 2. (a) Find the mean and the standard deviation of the sampling distribution of xˉ1xˉ2\bar{x}_1 - \bar{x}_2. (b) A student finds that xˉ1\bar{x}_1 has standard deviation 4 and xˉ2\bar{x}_2 has standard deviation 3, then reports 4+3=74 + 3 = 7. Say what is wrong and by how much the answer is off.

Show the worked solution
  1. (a) Center. μxˉ1xˉ2=μ1μ2=7871=7\mu_{\bar{x}_1 - \bar{x}_2} = \mu_1 - \mu_2 = 78 - 71 = 7 points. The difference of the sample means is centered on the difference of the population means, so this is just a subtraction.

  2. (a) First variance term. σ12n1=1229=1449=16\frac{\sigma_1^2}{n_1} = \frac{12^2}{9} = \frac{144}{9} = 16. This is the variance of xˉ1\bar{x}_1, and its square root, 123=4\frac{12}{3} = 4 points, is the standard deviation of xˉ1\bar{x}_1.

  3. (a) Second variance term. σ22n2=929=819=9\frac{\sigma_2^2}{n_2} = \frac{9^2}{9} = \frac{81}{9} = 9, so xˉ2\bar{x}_2 has standard deviation 93=3\frac{9}{3} = 3 points.

  4. (a) Add the variances, then take the root once. σxˉ1xˉ2=16+9=25=5\sigma_{\bar{x}_1 - \bar{x}_2} = \sqrt{16 + 9} = \sqrt{25} = 5 points.

  5. (b) Name the error. The numbers 4 and 3 are standard deviations, and standard deviations do not add. Their squares do: 16+9=2516 + 9 = 25, and the root of 25 is 5, not 7. The student's 7 is 75=1.4\frac{7}{5} = 1.4 times the correct value, so it overstates the spread by 40%.

  6. (b) Why squares. Variance is built from squared distances, so two independent sources of variability combine like the legs of a right triangle: legs of 4 and 3 give a hypotenuse of 5. Adding standard deviations would only be right if the two samples moved in perfect lockstep, and independent samples do not.

  7. Note the direction of the mistake. An inflated standard deviation makes any observed gap look closer to the center than it really is, so it hides real differences rather than inventing them.

(a) μxˉ1xˉ2=7\mu_{\bar{x}_1 - \bar{x}_2} = 7 points and σxˉ1xˉ2=1449+819=16+9=5\sigma_{\bar{x}_1 - \bar{x}_2} = \sqrt{\frac{144}{9} + \frac{81}{9}} = \sqrt{16 + 9} = 5 points. (b) The student added standard deviations; only variances add. 16+9=2516 + 9 = 25 gives 5 points, so 7 overstates the spread by 40%.

Problem 2

Commute times are right-skewed in two cities. City A has μA=34\mu_A = 34 minutes and σA=8\sigma_A = 8 minutes; city B has μB=31\mu_B = 31 minutes and σB=6\sigma_B = 6 minutes. Independent random samples of nA=40n_A = 40 commuters and nB=30n_B = 30 commuters are taken. (a) Justify a normal model for xˉAxˉB\bar{x}_A - \bar{x}_B and find its mean and standard deviation. (b) Find P(xˉAxˉB>5)P(\bar{x}_A - \bar{x}_B > 5). (c) An analyst instead computes the standard deviation of each sample mean and adds those two numbers. Report the standard deviation and the probability that mistake produces, and say which way the error pushes the conclusion.

Show the worked solution
  1. (a) Shape, checked once per sample. Both populations are right-skewed, so the normal-population route is closed for both. Sample A has nA=4030n_A = 40 \ge 30 and sample B has nB=3030n_B = 30 \ge 30, so the central limit theorem covers each sample mean, and the difference is approximately normal. Both had to clear 30; one sample at 40 would not rescue the other at 12.

  2. (a) Center. μxˉAxˉB=3431=3\mu_{\bar{x}_A - \bar{x}_B} = 34 - 31 = 3 minutes.

  3. (a) Spread. σA2nA=6440=1.6\frac{\sigma_A^2}{n_A} = \frac{64}{40} = 1.6 and σB2nB=3630=1.2\frac{\sigma_B^2}{n_B} = \frac{36}{30} = 1.2, so σxˉAxˉB=1.6+1.2=2.8=1.6733\sigma_{\bar{x}_A - \bar{x}_B} = \sqrt{1.6 + 1.2} = \sqrt{2.8} = 1.6733 minutes.

  4. (b) Standardize and find the area. z=531.6733=1.195z = \frac{5 - 3}{1.6733} = 1.195, and P(Z>1.195)=0.1160P(Z > 1.195) = 0.1160. Rounding zz to 1.20 for a table gives 0.1151, close enough to pick the same multiple-choice option.

  5. (c) Redo it the wrong way. The two sample means have standard deviations 1.6=1.2649\sqrt{1.6} = 1.2649 and 1.2=1.0954\sqrt{1.2} = 1.0954 minutes. Adding those gives 2.3604 minutes, which is 2.36041.6733=1.411\frac{2.3604}{1.6733} = 1.411 times the correct 1.6733, about 41% too large.

  6. (c) The damaged probability. z=532.3604=0.847z = \frac{5 - 3}{2.3604} = 0.847, and P(Z>0.847)=0.1984P(Z > 0.847) = 0.1984, about 1.7 times the correct 0.1160.

  7. (c) Direction. Adding standard deviations always inflates the spread, so a gap of 5 minutes looks far more ordinary than it is. Carried into inference, the same inflation widens confidence intervals and enlarges p-values, so the mistake pushes every conclusion toward 'no difference found'.

(a) Approximately normal by the central limit theorem, since nA=40n_A = 40 and nB=30n_B = 30 both reach 30; mean 3 minutes and standard deviation 1.6+1.2=1.6733\sqrt{1.6 + 1.2} = 1.6733 minutes. (b) z=1.195z = 1.195, so P0.1160P \approx 0.1160. (c) Adding the two standard deviations gives 2.3604 minutes, about 41% too large, and P0.1984P \approx 0.1984, about 1.7 times the correct value. The error always overstates the spread and understates how unusual a gap is.

Problem 3

A class simulates a difference of sample means. Population 1 is normal with μ1=80\mu_1 = 80 and σ1=10\sigma_1 = 10; population 2 is normal with μ2=74\mu_2 = 74 and σ2=15\sigma_2 = 15. Each repetition draws independent random samples of n1=25n_1 = 25 and n2=25n_2 = 25 and records xˉ1xˉ2\bar{x}_1 - \bar{x}_2. Across 10,000 repetitions the simulated differences have mean 6.04 and standard deviation 3.58. Three students propose a formula for the standard deviation: Ana uses σ1n1+σ2n2\frac{\sigma_1}{\sqrt{n_1}} + \frac{\sigma_2}{\sqrt{n_2}}, Ben uses σ12n1+σ22n2\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}, and Cleo uses σ22n2σ12n1\sqrt{\frac{\sigma_2^2}{n_2} - \frac{\sigma_1^2}{n_1}}. (a) Evaluate all three. (b) Say which one the simulation supports and why the other two fail. (c) Explain why the simulated mean is 6.04 rather than exactly 6.

Show the worked solution
  1. Set up the two building blocks. σ12n1=10025=4\frac{\sigma_1^2}{n_1} = \frac{100}{25} = 4 and σ22n2=22525=9\frac{\sigma_2^2}{n_2} = \frac{225}{25} = 9. Their square roots, 2 and 3, are the standard deviations of xˉ1\bar{x}_1 and xˉ2\bar{x}_2.

  2. (a) Ana. 1025+1525=2+3=5\frac{10}{\sqrt{25}} + \frac{15}{\sqrt{25}} = 2 + 3 = 5.

  3. (a) Ben. 4+9=13=3.6056\sqrt{4 + 9} = \sqrt{13} = 3.6056.

  4. (a) Cleo. 94=5=2.2361\sqrt{9 - 4} = \sqrt{5} = 2.2361.

  5. (b) Compare with the simulation. The simulated standard deviation is 3.58, which matches Ben's 3.6056 and nothing else. Ana's 5 is 39% too large and Cleo's 2.2361 is 38% too small, both far outside what 10,000 repetitions would miss by.

  6. (b) Why Ana fails. She added standard deviations. Only variances add for independent quantities, so the root has to come after the addition, not before.

  7. (b) Why Cleo fails. She read 'difference of means' as 'difference of variances'. Subtracting the sample means does not remove either sample's variability, it combines both. Her formula also collapses in two obvious ways: it returns 0 whenever the two terms are equal, predicting a difference that never varies at all, and it asks for the root of a negative number whenever the first term is larger.

  8. (c) Simulation error. A simulated mean is itself a statistic computed from 10,000 draws, so it estimates the true center rather than landing on it. The exact values are μ1μ2=6\mu_1 - \mu_2 = 6 and 13=3.6056\sqrt{13} = 3.6056; the simulation returned 6.04 and 3.58, and more repetitions would tighten both toward those numbers.

(a) Ana 5, Ben 13=3.6056\sqrt{13} = 3.6056, Cleo 5=2.2361\sqrt{5} = 2.2361. (b) The simulated 3.58 supports Ben. Ana added standard deviations instead of variances, which always overstates. Cleo subtracted the variances, which understates, returns 0 when the two terms match, and goes imaginary when the first is larger. (c) 6.04 and 3.58 are estimates from 10,000 repetitions; the exact values are 6 and 3.6056.

Problem 4

Daily app-use times are strongly right-skewed in two user groups. Group 1 has μ1=68\mu_1 = 68 minutes and σ1=24\sigma_1 = 24 minutes; group 2 has μ2=61\mu_2 = 61 minutes and σ2=18\sigma_2 = 18 minutes. Independent random samples of n1=45n_1 = 45 and n2=20n_2 = 20 users are taken. (a) Find the mean and standard deviation of xˉ1xˉ2\bar{x}_1 - \bar{x}_2. (b) Can you compute P(xˉ1xˉ2>15)P(\bar{x}_1 - \bar{x}_2 > 15)? Justify, and say which of your part (a) answers survive your verdict. (c) Suppose instead that group 2's use times were stated to be approximately normal, with everything else unchanged. Answer (b) again.

Show the worked solution
  1. (a) Center. μxˉ1xˉ2=6861=7\mu_{\bar{x}_1 - \bar{x}_2} = 68 - 61 = 7 minutes.

  2. (a) Spread. σ12n1=57645=12.8\frac{\sigma_1^2}{n_1} = \frac{576}{45} = 12.8 and σ22n2=32420=16.2\frac{\sigma_2^2}{n_2} = \frac{324}{20} = 16.2, so σxˉ1xˉ2=12.8+16.2=29=5.3852\sigma_{\bar{x}_1 - \bar{x}_2} = \sqrt{12.8 + 16.2} = \sqrt{29} = 5.3852 minutes. Note that the smaller sample contributes the larger variance term even though its population is less variable, because nn sits in the denominator.

  3. (b) Check each sample separately. Sample 1: the population is skewed, so the normal-population route is closed, but n1=4530n_1 = 45 \ge 30, so the central limit theorem covers it. Sample 2: the population is skewed and n2=20<30n_2 = 20 < 30, so neither route applies.

  4. (b) Verdict. One failure is enough. Sample 2 clears no route, so xˉ2\bar{x}_2 cannot be modeled as normal, so neither can the difference, and no normal-curve probability may be computed. The answer is no.

  5. (b) What survives. Both answers in part (a) stand. Neither the center nor the standard deviation depends on the shape of a population, so μxˉ1xˉ2=7\mu_{\bar{x}_1 - \bar{x}_2} = 7 minutes and σxˉ1xˉ2=5.3852\sigma_{\bar{x}_1 - \bar{x}_2} = 5.3852 minutes are still exactly right. Only the area under a normal curve becomes unavailable.

  6. (c) Recheck the shape. A normal population qualifies its sample at any size, so with group 2 normal, sample 2 clears at n2=20n_2 = 20. Sample 1 still clears through the central limit theorem at n1=45n_1 = 45. Both samples clear, so the difference is approximately normal, with the same center 7 and the same standard deviation 5.3852 minutes.

  7. (c) Standardize and find the area. z=1575.3852=1.486z = \frac{15 - 7}{5.3852} = 1.486, and P(Z>1.486)=0.0687P(Z > 1.486) = 0.0687.

(a) μxˉ1xˉ2=7\mu_{\bar{x}_1 - \bar{x}_2} = 7 minutes and σxˉ1xˉ2=12.8+16.2=29=5.3852\sigma_{\bar{x}_1 - \bar{x}_2} = \sqrt{12.8 + 16.2} = \sqrt{29} = 5.3852 minutes. (b) No: group 2's population is skewed and n2=20<30n_2 = 20 < 30, so that sample clears neither route to normality; the center and standard deviation from (a) are unaffected, since neither depends on shape. (c) Yes: a normal population qualifies sample 2 at any size, so z=1575.3852=1.486z = \frac{15 - 7}{5.3852} = 1.486 and P0.0687P \approx 0.0687.

Problem 5

Mature heights of two tomato varieties are approximately normal. Variety A has μA=48\mu_A = 48 cm and σA=6\sigma_A = 6 cm; variety B has μB=44\mu_B = 44 cm and σB=8\sigma_B = 8 cm. A grower measures independent random samples of nA=12n_A = 12 variety A plants and nB=16n_B = 16 variety B plants. (a) Describe the sampling distribution of xˉAxˉB\bar{x}_A - \bar{x}_B, including why the sample sizes are not a problem. (b) Find P(xˉAxˉB>8)P(\bar{x}_A - \bar{x}_B > 8). (c) The grower doubles both sample sizes, to 24 and 32. Recompute the probability and explain what changed.

Show the worked solution
  1. (a) Shape. Both populations are stated to be approximately normal, so each sample mean is approximately normal at any sample size and so is their difference. The central limit theorem is not needed, which is why nA=12n_A = 12 raises no objection here even though it is well under 30.

  2. (a) Center and spread. μxˉAxˉB=4844=4\mu_{\bar{x}_A - \bar{x}_B} = 48 - 44 = 4 cm. σA2nA=3612=3\frac{\sigma_A^2}{n_A} = \frac{36}{12} = 3 and σB2nB=6416=4\frac{\sigma_B^2}{n_B} = \frac{64}{16} = 4, so σxˉAxˉB=3+4=7=2.6458\sigma_{\bar{x}_A - \bar{x}_B} = \sqrt{3 + 4} = \sqrt{7} = 2.6458 cm.

  3. (b) Standardize and find the area. z=842.6458=1.512z = \frac{8 - 4}{2.6458} = 1.512, and P(Z>1.512)=0.0653P(Z > 1.512) = 0.0653, roughly 1 sample pair in 15.

  4. (c) Recompute the spread. 3624=1.5\frac{36}{24} = 1.5 and 6432=2\frac{64}{32} = 2, so the two variance terms are each exactly half what they were, their sum falls from 7 to 3.5, and σxˉAxˉB=3.5=1.8708\sigma_{\bar{x}_A - \bar{x}_B} = \sqrt{3.5} = 1.8708 cm. Doubling both sample sizes halved the total variance, so the standard deviation fell by a factor of 2\sqrt{2}, from 2.6458 to 1.8708.

  5. (c) Recompute the probability. z=841.8708=2.138z = \frac{8 - 4}{1.8708} = 2.138, and P(Z>2.138)=0.0163P(Z > 2.138) = 0.0163, roughly 1 sample pair in 61.

  6. (c) Read it back. The true gap between the varieties is still 4 cm; larger samples never move the center. What changed is precision: a sampled gap of 8 cm now sits 2.14 standard deviations from the center instead of 1.51, so it fell from about a 1 in 15 result to about a 1 in 61 result.

(a) Approximately normal because both populations are normal, so no sample-size threshold applies; mean 4 cm and standard deviation 3+4=7=2.6458\sqrt{3 + 4} = \sqrt{7} = 2.6458 cm. (b) z=1.512z = 1.512, so P0.0653P \approx 0.0653. (c) σxˉAxˉB=1.5+2=3.5=1.8708\sigma_{\bar{x}_A - \bar{x}_B} = \sqrt{1.5 + 2} = \sqrt{3.5} = 1.8708 cm, z=2.138z = 2.138, and P0.0163P \approx 0.0163. Doubling both sample sizes halved the total variance and divided the standard deviation by 2\sqrt{2}, leaving the center at 4 cm.

Problem 6

Two job-training programs are compared on an end-of-course test. Scores are somewhat skewed in both populations. Program 1 has μ1=76\mu_1 = 76 points and σ1=9\sigma_1 = 9 points; program 2 has μ2=73\mu_2 = 73 points and σ2=12\sigma_2 = 12 points. Independent random samples of 36 graduates are taken from each program. (a) Find the mean and standard deviation of xˉ1xˉ2\bar{x}_1 - \bar{x}_2, justifying the normal model. (b) Find the probability that program 2's sample mean comes out higher than program 1's. (c) Interpret that number for someone about to run this study.

Show the worked solution
  1. (a) Shape. Both populations are skewed, so the normal-population route is closed for both, but n1=n2=3630n_1 = n_2 = 36 \ge 30, so the central limit theorem covers each sample mean and the difference is approximately normal.

  2. (a) Center and spread. μxˉ1xˉ2=7673=3\mu_{\bar{x}_1 - \bar{x}_2} = 76 - 73 = 3 points. σ12n1=8136=2.25\frac{\sigma_1^2}{n_1} = \frac{81}{36} = 2.25 and σ22n2=14436=4\frac{\sigma_2^2}{n_2} = \frac{144}{36} = 4, so σxˉ1xˉ2=2.25+4=6.25=2.5\sigma_{\bar{x}_1 - \bar{x}_2} = \sqrt{2.25 + 4} = \sqrt{6.25} = 2.5 points.

  3. (b) Translate the event before computing anything. 'Program 2's sample mean is higher' means xˉ2>xˉ1\bar{x}_2 > \bar{x}_1, which is the same as xˉ1xˉ2<0\bar{x}_1 - \bar{x}_2 < 0. Written that way it is an ordinary left-tail question about the distribution from part (a).

  4. (b) Standardize and find the area. z=032.5=1.20z = \frac{0 - 3}{2.5} = -1.20, and P(Z<1.20)=0.1151P(Z < -1.20) = 0.1151.

  5. (c) Interpret. Program 1 really is 3 points better on average, yet about 11.5% of studies built this way, roughly one in nine, would report program 2 ahead. Nothing would have gone wrong in those studies; sampling variability alone reverses the ranking that often.

  6. (c) Say what drives it. The true gap of 3 points is only 32.5=1.2\frac{3}{2.5} = 1.2 standard deviations above zero, so zero is not far out in this distribution. Larger samples shrink σxˉ1xˉ2\sigma_{\bar{x}_1 - \bar{x}_2} and push the reversal probability down; nothing else in the design will.

(a) Approximately normal by the central limit theorem, since both samples reach 36; mean 3 points and standard deviation 2.25+4=2.5\sqrt{2.25 + 4} = 2.5 points. (b) The event is xˉ1xˉ2<0\bar{x}_1 - \bar{x}_2 < 0, so z=032.5=1.20z = \frac{0 - 3}{2.5} = -1.20 and P0.1151P \approx 0.1151. (c) Even though program 1 is truly 3 points better, about 11.5% of studies of this size, roughly one in nine, would show program 2 ahead, because the true gap is only 1.2 standard deviations from zero.

Problem 7

A greenhouse study compares plant growth under two treatments. Treatment A has already been run on nA=25n_A = 25 plants, and long-run records give σA=10\sigma_A = 10 cm. Treatment B has σB=9\sigma_B = 9 cm, and the researcher can still choose nBn_B. (a) Find the smallest nBn_B for which the standard deviation of xˉAxˉB\bar{x}_A - \bar{x}_B is at most 2.5 cm. (b) Is there any nBn_B that brings it to 1.9 cm or below? Justify your answer.

Show the worked solution
  1. Identify what is fixed. Treatment A is done, so σA2nA=10025=4\frac{\sigma_A^2}{n_A} = \frac{100}{25} = 4 is locked in. Only the second variance term, 81nB\frac{81}{n_B}, is still under the researcher's control.

  2. (a) Set up the inequality. Require 4+81nB2.5\sqrt{4 + \frac{81}{n_B}} \le 2.5. Square both sides: 4+81nB6.254 + \frac{81}{n_B} \le 6.25, so 81nB2.25\frac{81}{n_B} \le 2.25.

  3. (a) Solve. nB812.25=36n_B \ge \frac{81}{2.25} = 36, so the smallest whole number that works is nB=36n_B = 36.

  4. (a) Check both sides of the cutoff. At nB=36n_B = 36, 4+8136=4+2.25=6.25=2.5\sqrt{4 + \frac{81}{36}} = \sqrt{4 + 2.25} = \sqrt{6.25} = 2.5 exactly, which satisfies 'at most 2.5'. At nB=35n_B = 35, 4+8135=6.3143=2.5128>2.5\sqrt{4 + \frac{81}{35}} = \sqrt{6.3143} = 2.5128 > 2.5, so 35 fails.

  5. (b) Find the floor. 81nB\frac{81}{n_B} is positive for every sample size, so 4+81nB>44 + \frac{81}{n_B} > 4 and therefore σxˉAxˉB>4=2\sigma_{\bar{x}_A - \bar{x}_B} > \sqrt{4} = 2 cm no matter how large nBn_B becomes. Since 1.9<21.9 < 2, no nBn_B works.

  6. (b) State the general lesson. The standard deviation of a difference can never fall below the standard deviation of either sample mean on its own, here 1025=2\frac{10}{\sqrt{25}} = 2 cm. Pouring data into one group has diminishing returns and then stops helping; getting under 2 cm requires enlarging sample A.

(a) 81nB2.25\frac{81}{n_B} \le 2.25, so nB36n_B \ge 36 and the smallest value is nB=36n_B = 36, which gives exactly 2.5 cm (nB=35n_B = 35 gives 2.5128 cm). (b) No. 4+81nB>4=2\sqrt{4 + \frac{81}{n_B}} > \sqrt{4} = 2 cm for every nBn_B, and 1.9<21.9 < 2, so only a larger sample from treatment A can push the standard deviation below 2 cm.

Problem 8

A dietitian compares sodium per serving in two soup brands, and sodium content is approximately normal for both. Independent random samples of n1=30n_1 = 30 cans of brand 1 and n2=25n_2 = 25 cans of brand 2 are analyzed. Assume the two brands truly have the same mean sodium content. (a) Version A: the manufacturers' long-run process records give σ1=45\sigma_1 = 45 mg and σ2=60\sigma_2 = 60 mg. Find the standard deviation of xˉ1xˉ2\bar{x}_1 - \bar{x}_2 and the probability that the two sample means differ by more than 30 mg in either direction. (b) Version B: no process records exist, and the only spread figures are the sample standard deviations from these very cans, s1=45s_1 = 45 mg and s2=60s_2 = 60 mg. State what changes and what does not.

Show the worked solution
  1. (a) Center. The brands are assumed equal, so μxˉ1xˉ2=μ1μ2=0\mu_{\bar{x}_1 - \bar{x}_2} = \mu_1 - \mu_2 = 0 mg.

  2. (a) Spread. σ12n1=202530=67.5\frac{\sigma_1^2}{n_1} = \frac{2025}{30} = 67.5 and σ22n2=360025=144\frac{\sigma_2^2}{n_2} = \frac{3600}{25} = 144, so σxˉ1xˉ2=67.5+144=211.5=14.5430\sigma_{\bar{x}_1 - \bar{x}_2} = \sqrt{67.5 + 144} = \sqrt{211.5} = 14.5430 mg.

  3. (a) Shape. Both populations are approximately normal, so the difference is approximately normal at these sizes and n2=25n_2 = 25 needs no appeal to the central limit theorem.

  4. (a) Probability. 'Differ by more than 30 mg in either direction' is a two-tailed event. z=3014.5430=2.063z = \frac{30}{14.5430} = 2.063, so P=2×P(Z>2.063)=2×0.01956=0.0391P = 2 \times P(Z > 2.063) = 2 \times 0.01956 = 0.0391.

  5. (b) What does not change. The arithmetic. 45230+60225=14.5430\sqrt{\frac{45^2}{30} + \frac{60^2}{25}} = 14.5430 mg either way, because the expression is the same one. The center is still 0 mg under the assumption of equal means, and the variances still add.

  6. (b) What does change. In version A, 14.5430 mg is a known standard deviation, so the standardized value is a zz and its tail area comes from the standard normal curve. In version B it is a standard error: an estimate built from the same 55 cans, carrying its own sampling error. The standardized value is then a tt, compared against a tt distribution rather than the standard normal.

  7. (b) Size of the difference it makes. Referring the same statistic 2.063 to a tt distribution with the unpooled (Welch) degrees of freedom, df=43.81df = 43.81, gives a two-sided value of 0.0451 rather than 0.0391. The tt curve has heavier tails, so it always returns the larger area.

  8. (b) The rule to carry. A Greek σ\sigma decides which curve you standardize against, not whether a normal model exists. With σ\sigma known the root is a true standard deviation, so once the shape condition is met the reference curve is the standard normal: that is topic 4.6. A Roman ss computed from the data makes the root a standard error and the reference curve a tt: that is topics 4.7 through 4.10. This problem carries one letter in each version, which is why it can be asked both ways. Problem 4 is the reminder that the shape condition is a separate check, and that it can fail while σ\sigma is known.

(a) σxˉ1xˉ2=67.5+144=211.5=14.5430\sigma_{\bar{x}_1 - \bar{x}_2} = \sqrt{67.5 + 144} = \sqrt{211.5} = 14.5430 mg, z=2.063z = 2.063, and P=2×0.01956=0.0391P = 2 \times 0.01956 = 0.0391. (b) The number 14.5430 mg is unchanged, but it becomes a standard error rather than a known standard deviation, the standardized value follows a tt distribution instead of the standard normal (two-sided 0.0451 at df=43.81df = 43.81 instead of 0.0391), and the question moves from a topic 4.6 probability to the two-sample t procedures of topics 4.7 through 4.10.