We often need to compare two independent random measurements by subtracting them, which means finding both the average difference and how much that difference varies.
1
Why Variances Add When Subtracting
Suppose Box A weighs around 50 lb, give or take 4 lb, and an independent Box B weighs around 30 lb, give or take 3 lb. We want to find the average and the standard deviation of the weight difference between them, A−B.
Why Variances Add When Subtracting
Text solution
Subtract the averages to find the centerThe average gap between the two boxes is simply the difference between their individual average weights.
Average difference=50−30=20 lb
Combine the standard deviations on a right triangle to find the spreadBecause the two boxes vary independently, we square each standard deviation to get the variances, add those variances together, and take the square root.
Combined standard deviation=42+32=16+9=25=5 lb
So Box A is heavier than Box B by an average of 20 lb, give or take 5 lb.
Try changing Box B's spread to see how the right triangle changes the spread of the difference.
Even when you subtract one box from another, their spreads combine like the legs of a right triangle, making the difference wider than either box alone but shorter than both laid end-to-end.
2
Center and Spread for a Difference in Means
In most real comparisons, we don't just weigh two individual items; we take a random sample from Group 1 and an independent random sample from Group 2, and we want to find the center and spread of the difference between their sample averages, xˉ1−xˉ2.
Before combining the two groups, remember that a sample average xˉ varies much less than a single measurement: averaging n items divides the individual population standard deviation σ by n.
Standard deviation of xˉ=nσ
Suppose phone batteries from Brand A have Normally distributed lifetimes with mean μ=100 hours and standard deviation σ=12 hours, and batteries from Brand B have Normally distributed lifetimes with mean μ=95 hours and standard deviation σ=12 hours. If we test an independent random sample of nA=9 batteries from Brand A and nB=16 batteries from Brand B, what are the center and standard deviation of the difference between their sample averages, xˉA−xˉB?
Center and Spread for a Difference in Means
Text solution
Subtract the population means to find the centerEach sample average centers on its own population mean, so their difference centers on the gap between the two population means.
μ1−μ2=100−95=5 hours
Divide each population standard deviation by n to get the sample mean spreadsWe first find how much each group's sample average varies on its own.
Standard deviation of xˉA=912=312=4 hoursStandard deviation of xˉB=1612=412=3 hours
Combine the two sample mean spreads on a right triangleBecause the two samples were chosen independently, we square the two sample mean standard deviations to get their variances, add them, and take the square root.
σ of (xˉA−xˉB)=42+32=16+9=25=5 hours
Across repeated sample tests of 9 and 16 batteries, Brand A's sample average beats Brand B's by 5 hours on average, give or take 5 hours.
Squaring each leg nσ turns the denominator into n, so the right-triangle step for two independent sample means can be written in a single formula:
Centerσ of (xˉ1−xˉ2)=μ1−μ2=varianceof xˉ1n1σ12+varianceof xˉ2n2σ22
3
Shape and Probability for a Difference in Means
Now that we have the center (5 hours) and standard deviation (5 hours) of xˉA−xˉB, we want to find the probability that our sample of Brand B actually beats our sample of Brand A in the test, even though Brand A is truly the better battery.
Shape and Probability for a Difference in Means
P(xˉB>xˉA)=?
xˉA−xˉB
0
5 hours
5
Normal?nA=9nB=16
Text solution
Check that both sample means follow a Normal curveAlthough nA=9 and nB=16 are both under 30, both battery populations start out Normal, which makes xˉA,xˉB, and their difference xˉA−xˉB Normal for any sample size.
Both populations are Normal⟹xˉA−xˉB is Normal
Mark 0 as the cutoff where Brand B beats Brand ABecause we subtracted in the order xˉA−xˉB, any negative difference means Sample B had a higher average than Sample A.
Sample B beats Sample A whenxˉA−xˉB<0
Find how many standard deviations 0 sits below the centerWe calculate the Z-score for 0 and use the 68–95–99.7 rule to find the area in the left tail.
Z=50−5=−1⟹Probability≈16%
So even though Brand A lasts 5 hours longer on average, random variation from sample to sample gives the weaker Brand B about a 16% chance of winning the sample test.
Move Brand B's average closer to Brand A's to see how the overlap between the two groups changes the shaded tail below 0.
Whenever the two curves overlap, part of the difference curve reaches below 0, where Sample B comes out higher than Sample A.
4
Center and Spread for a Difference in Proportions
When we compare two groups on a yes/no question rather than a numerical measurement, such as comparing poll support across two voter groups, we subtract their sample proportions, p^1−p^2, and we want to find the center and standard deviation of that difference.
For a single sample proportion p^ from a population with true proportion p, the standard deviation comes from p,1−p, and the sample size n:
Standard deviation of p^=np(1−p)
Suppose that across a state, 60% of young voters (p1=0.60) and 50% of older voters (p2=0.50) support a ballot proposition. If a news station polls independent random samples of n1=150 young voters and n2=100 older voters, what are the center and standard deviation of the difference in sample support, p^1−p^2?
Center and Spread for a Difference in Proportions
Young voters
p1=0.60
poll: n1=150
Older voters
p2=0.50
poll: n2=100
Center of p^1−p^2Standard deviation of p^1−p^2=?=?
Text solution
Subtract the population proportions to find the centerEach sample proportion centers on its true population proportion, so the difference between the polls centers on p1−p2.
p1−p2=0.60−0.50=0.10 (or 10 percentage points)
Find the standard deviation of each sample proportion on its ownUsing each group's true proportion and sample size, we find how much each poll varies by itself.
Standard deviation of p^1=1500.60(0.40)=1500.24=0.0016=0.04 (or 4%)
Standard deviation of p^2=1000.50(0.50)=1000.25=0.0025=0.05 (or 5%)
Combine the two poll standard deviations on a right triangleBecause the two voter groups were sampled independently, we square both standard deviations to get the variances, add them, and take the square root.
σ of (p^1−p^2)=(0.04)2+(0.05)2=0.0016+0.0025=0.0041≈0.064 (or 6.4%)
Across repeated polls of this size, young voters lead older voters by an average of 10 percentage points, give or take about 6.4 percentage points.
Squaring each group's standard deviation np(1−p) removes the inner square root, leaving the two variances added under a single square root:
Centerσ of (p^1−p^2)=p1−p2=variance of p^1n1p1(1−p1)+variance of p^2n2p2(1−p2)
5
Shape and Probability for a Difference in Proportions
Using the center (0.10) and standard deviation (0.064) of p^1−p^2, we now want to find the probability that the news station's poll comes back with older voters showing higher support than young voters.
Shape and Probability for a Difference in Proportions
P(p^2>p^1)=?
p^1−p^2
0
0.10
0.064
Normal?n1=150n2=100
Text solution
Check for at least 10 expected yeses and 10 expected noes in both groupsBoth individual sample proportions must have enough expected supporters and non-supporters to follow a Normal curve.
Group 1: 150(0.60)150(0.40)Group 2: 100(0.50)100(0.50)=90 yeses,=60 noes=50 yeses,=50 noes
Mark 0 as the cutoff where older voters lead the pollBecause we subtracted Young minus Older (p^1−p^2), older voters come out ahead whenever the difference is negative.
Older voters lead the poll whenp^1−p^2<0
Find the Z-score of 0 and look up the left-tail probabilityWe divide the distance from the center down to 0 by the combined standard deviation.
Even though support among young voters is truly 10 percentage points higher statewide, a poll of 150 young voters and 100 older voters still has about a 6% chance of making older voters appear more supportive.
xˉA−xˉB
0
5 hours
≈16%
5
Z=−1
p^1−p^2
0
0.10
≈6%
0.064
Z≈−1.56
Key concepts
Whether you are comparing two individual measurements, two sample means (xˉ1−xˉ2), or two sample proportions (p^1−p^2), every problem follows the same four steps:
Center, subtract the population centers
The average of a difference is always the difference of the averages, such as 50−30=20 lb for two boxes, μ1−μ2=100−95=5 hours for two sample means, or p1−p2=0.60−0.50=0.10 for two sample proportions.
Spread, combine the two independent standard deviations on a right triangle
Never subtract standard deviations. First make sure you have the standard deviation of the values you are actually subtracting:
If you are subtracting two single items (like one Box A and one Box B), put their individual standard deviations directly on the right triangle: 42+32=5 lb (do not divide by n when there is only 1 item per group).
If you are subtracting two sample means (xˉ1−xˉ2), divide each group's σ by n first, then add their variances:
If you are subtracting two sample proportions (p^1−p^2), add the two sample proportion variances under one square root:
Shape, check that BOTH sample means (or proportions) are Normal on their own
For means, each group needs either a Normal population (so even nA=9 and nB=16 work) or a sample size of at least 30; for proportions, both groups need at least 10 expected yeses and 10 expected noes. If even one group fails (such as n1=100 with a heavily skewed n2=5), do not use a Normal curve.
Probability, use 0 as the cutoff
When subtracting Group 1−Group 2, Group 2 beats Group 1 whenever the difference drops below 0, so find Z=Standard Deviation0−Center and shade the tail beyond 0.
6
Practice
1
A coffee shop's large cup holds an average of 16 oz of coffee with a standard deviation of 0.8 oz, and its small cup holds an average of 10 oz with a standard deviation of 0.6 oz. If one large cup and one small cup are filled independently, what are the mean and standard deviation of the difference in their amounts of coffee (Large−Small)?
Are we comparing averages of many cups or just two single cups, and how do independent standard deviations combine when subtracting?
The mean of the difference is 16−10=6 oz. Because the two cups are filled independently, their standard deviations combine on a right triangle (watch out: subtracting the standard deviations to get 0.8−0.6=0.2 oz or adding them directly to get 1.4 oz ignores how independent uncertainties combine):
Standard deviation=0.82+0.62=0.64+0.36=1.00=1 oz
2
Commuters on Route 1 have an average trip time of 42 minutes with a standard deviation of 10 minutes. Commuters on Route 2 have an average trip time of 35 minutes with a standard deviation of 24 minutes. In independent random samples of n1=25 trips on Route 1 and n2=36 trips on Route 2, what are the mean and standard deviation of the sampling distribution of xˉ1−xˉ2?
Before putting the two groups on the legs of a right triangle, how much does each sample average vary on its own?
The mean of xˉ1−xˉ2 is 42−35=7 minutes. The individual sample mean standard deviations are 2510=2 minutes and 3624=4 minutes (putting the single-trip standard deviations 10 and 24 directly on the triangle gives 26 minutes, while forgetting to square 2 and 4 before adding gives 2+4≈2.45 minutes). Combining the two sample mean standard deviations on a right triangle gives:
σ of (xˉ1−xˉ2)=22+42=4+16=20≈4.47 minutes
3
For each case below, state whether the sampling distribution of the difference is approximately Normal and explain why. (a) xˉ1−xˉ2, where both populations are Normally distributed and n1=8,n2=12. (b) xˉ1−xˉ2, where Population 1 is Normal with n1=120 and Population 2 is heavily skewed with n2=15. (c) p^1−p^2, where p1=0.20 with n1=100 and p2=0.05 with n2=120.
Does each of the two groups pass its own Normal check, or does one group fail it?
(a) Yes: both populations start out Normal, so both sample means and their difference are Normal even for small samples (don't say no just because n1=8 and n2=12 are under 30, because we only need n≥30 when a population is not already Normal). (b) No: both sample means must be Normal on their own, and Group 2 is heavily skewed with a sample size under 30 (n2=15<30), which can still make the difference skewed (don't add the sample sizes together to get 120+15=135≥30, because a large sample in Group 1 cannot fix skewness in Group 2). (c) No: Group 1 has 20 expected yeses and 80 expected noes (both ≥10), but Group 2 has only 120×0.05=6 expected yeses, which is less than 10 (don't assume n2=120 is large enough without multiplying by p2=0.05).
4
Lightbulbs from Maker A have lifetimes that are Normally distributed with a mean of 830 hours and a standard deviation of 48 hours. Lightbulbs from Maker B have lifetimes that are Normally distributed with a mean of 800 hours and a standard deviation of 45 hours. You test independent random samples of nA=16 bulbs from Maker A and nB=25 bulbs from Maker B. Using the 68–95–99.7 rule, what is the approximate probability that the Maker B sample has a higher average lifetime than the Maker A sample?
By the 68–95–99.7 rule, 95% of the curve sits within 2 standard deviations of the center, leaving half of the remaining 5% in the left tail below Z=−2 (don't report the full two-tailed 5%).
Once you find the center and right-triangle spread of xˉA−xˉB, what value on the difference scale marks the cutoff where Maker B beats Maker A?
The difference xˉA−xˉB is Normal with center 830−800=30 hours. The sample mean standard deviations are 1648=12 hours and 2545=9 hours, giving a combined standard deviation of 122+92=144+81=225=15 hours (subtracting 12−9=3 hours would wrongly put 0 at Z=−10). Maker B beats Maker A when xˉA−xˉB<0, which has Z=150−30=−2. By the 68–95–99.7 rule, 95% of the curve sits within 2 standard deviations of the center, leaving half of the remaining 5% in the left tail below Z=−2 (don't report the full two-tailed 5%):
Probability≈2.5%
5
Across a region, 80% of subscribers to Plan 1 (p1=0.80) and 70% of subscribers to Plan 2 (p2=0.70) renew their service. A company surveys independent random samples of n1=100 subscribers from Plan 1 and n2=140 subscribers from Plan 2. Check that p^1−p^2 is approximately Normal, then find the probability that Plan 2 shows a higher renewal rate than Plan 1 in the survey.
After checking all four expected yes and no counts, combine the two sample proportion variances under a single square root and find how many standard deviations 0 sits below the center.
Expected counts are 80 yeses and 20 noes in Plan 1, and 98 yeses and 42 noes in Plan 2; all four counts are at least 10, so p^1−p^2 is approximately Normal. The center is 0.80−0.70=0.10, and the combined standard deviation is 1000.80(0.20)+1400.70(0.30)=0.0016+0.0015=0.0031≈0.0557 (watch out: forgetting to take the square root of the variance 0.0031 gives Z=−32.3, while subtracting the variances gives 0.0001=0.01 and Z=−10). Plan 2 beats Plan 1 when p^1−p^2<0, which gives Z=0.05570−0.10≈−1.80 and a left-tail probability of:
Probability≈0.036 (or 3.6%)
6
Battery Brand A (Normal, μA=100 hours,σA=12 hours) and Brand B (Normal, μB=95 hours,σB=12 hours) are compared in a sample test. Using the 68–95–99.7 rule, if engineers test nA=36 batteries from Brand A, how many batteries nB from Brand B must they test so that the probability of Brand B's sample beating Brand A's sample drops to about 2.5%?
Using the right triangle, the variance of xˉB must be 2.52−22=6.25−4=2.25, so the standard deviation of xˉB is 2.25=1.5 hours (subtracting the standard deviations directly as 2.5−2=0.5 hours instead of subtracting the variances would wrongly give nB=576).Solving nB12=1.5 gives nB=8 (remember to square 8 to solve for nB).
A 2.5% left tail below 0 tells you what the hypotenuse (combined standard deviation) of the right triangle must be; use the Brand A leg to solve for the Brand B leg first.
The center of xˉA−xˉB is 100−95=5 hours. By the 68–95–99.7 rule, a 2.5% left tail below 0 requires 0 to lie 2 standard deviations below the mean (Z=−2), so the combined standard deviation (the hypotenuse) must be 25=2.5 hours. With nA=36, the standard deviation of xˉA (one leg) is 3612=2 hours. Using the right triangle, the variance of xˉB must be 2.52−22=6.25−4=2.25, so the standard deviation of xˉB is 2.25=1.5 hours (subtracting the standard deviations directly as 2.5−2=0.5 hours instead of subtracting the variances would wrongly give nB=576). Solving nB12=1.5 gives nB=8 (remember to square 8 to solve for nB):