Sample Mean Difference — Definition, Formula & Example
The sample mean difference is the gap between the averages of two independent samples. The difference between population means is one fixed, usually unknown number. The sample mean difference is different: it changes every time you draw new samples.
For independent random samples of sizes and from populations with means and standard deviations , the statistic is a random variable. Its sampling distribution has mean , so it is an unbiased estimator of that parameter. Its standard deviation is , which assumes the two samples are independent. Each sample should also be at most 10% of its population when sampling without replacement. The distribution is exactly normal when both populations are normal. Otherwise, it is approximately normal by the Central Limit Theorem as long as each sample from a non-normal population is large (AP Statistics uses ).
Key Formula
Where:
- = Means of sample 1 and sample 2
- = Means of population 1 and population 2
- = Standard deviations of population 1 and population 2
- = Sizes of the two independent samples
Worked Example
Problem: Machine A fills snack bags with weights that are normally distributed with mean 16.2 oz and standard deviation 0.4 oz. Machine B's fill weights are normally distributed with mean 16.0 oz and standard deviation 0.3 oz. An inspector takes 32 random bags from A and 18 random bags from B. What is the probability that the sample from A has a lower mean weight than the sample from B? That event is .
Step 1: Find the center of the sampling distribution of .
Step 2: Find its standard deviation. Both populations are normal, so this distribution is exactly normal, even though one sample has only 18 bags.
Step 3: Standardize the cutoff of 0 and use the standard normal table.
Answer: The probability is about 0.0228. So in only about 2.3% of such inspections would the sample from Machine A average less than the sample from Machine B.
Why It Matters
The two-sample t procedures for comparing two means in AP Statistics, both confidence intervals and significance tests, are built on the sampling distribution of . Companies running A/B tests use the same idea to judge whether a gap between two groups is larger than random sampling would produce.
Common Mistakes
Mistake: Using the two-sample formula on paired data, such as the same students' scores before and after a course.
Correction: The formula requires independent samples. For paired data, first compute each pair's difference. Then treat those differences as a single sample and use the mean difference with standard deviation .
