The second half of Unit 4 compares two means: two orchards, two machines, two treatments in an experiment. The statistic is the difference in sample means, . Like every statistic it varies from sample to sample, and its sampling distribution is the foundation for the intervals and tests that follow. You met the same idea for two proportions in Unit 3.
A difference of two sample means
Apple weights at orchard A have mean grams and standard deviation grams. At orchard B, and grams (invented data). A buyer takes independent random samples, 40 apples from A and 50 from B, and computes .
From the first topic of this unit, each sample mean has its own sampling distribution:
- : mean 180, standard deviation grams;
- : mean 170, standard deviation grams.
Center and spread
The center is what you would guess: the difference is centered at the difference of the population means,
The spread is where intuition often goes wrong. The means are subtracted, but the variability is not. Think about what can make come out far from 10: might be unusually high, or unusually low, or both. Each sample mean brings its own uncertainty, and for independent samples the uncertainties pile up. The rule is that variances add:
This formula is on the reference sheet. Notice its parts: each population variance is divided by its own sample size, the two are added, and then the square root is taken. Standard deviations themselves are never added, and the variances are never subtracted.
Worked example 1. Find the mean and standard deviation of the sampling distribution of .
Center:
Spread:
Check: 4.74 is larger than either 3.16 or 3.54, as it should be. (Adding the standard deviations would give , which is too large.)
Conditions behind the formula
- Independent samples: two separate random samples, or two groups formed by random assignment in an experiment. Paired data (the same runners timed twice, twins, before and after) are not independent; use the differences and the one-sample methods instead.
- 10% condition, for each sample: each sample is less than 10% of its own population. A sample of 60 nurses from a hospital of 450 fails it () even if a second hospital is large. Random assignment in an experiment has no population to sample from, so the 10% condition does not apply there.
Shape
| Populations | Sample sizes | Shape of |
|---|---|---|
| both normal | any | normal |
| not known to be normal | both and | approximately normal (central limit theorem) |
| skewed | either sample small | not reliably normal |
Each sample is checked on its own. A total of 90 apples does not help if one of the samples has only 8 from a skewed population.
Probabilities about a difference
Worked example 2. What is the probability that the buyer's sample from B comes out heavier on average than the sample from A, that is, ?
Shape: and , so the difference is approximately normal, with mean 10 and standard deviation 4.74 grams.
Expression and substitution:
Answer:
Worked example 3. Machine 1 fills bottles with mean 500.0 mL and SD 1.5 mL; machine 2 with mean 499.0 mL and SD 2.0 mL; both normal. With samples of 8 and 10 bottles, find .
Shape: both populations are normal, so the difference is normal even with small samples.
Center mL; spread
, so
In practice the population standard deviations are rarely known. The next topic replaces and with the sample standard deviations and and builds a confidence interval for .