Confidence intervals for the difference of two means
Confidence intervals for the difference of two means
A confidence interval for the difference of two means estimates how different two population means are, based on sample data. This is useful when comparing two groups — such as teachers versus police officers, a treatment group versus a control group, or one school versus another — and you want to quantify the gap between their averages.
Sampling distribution of
Conditions for inference
Before finding a confidence interval or conducting a t-test, make sure these conditions are met:
- The samples are random (ideally simple random samples).
- The samples are taken independently of one another.
- If sampling without replacement, each sample is less than of its respective population.
Confidence interval form
Practice problem
Example:
A sociologist surveys high school teachers and police officers about their planned retirement age.
- randomly selected high school teachers have a sample mean planned retirement age of and a sample standard deviation of years.
- randomly selected police officers have a sample mean planned retirement age of and a sample standard deviation of years.
Part a.
Construct a confidence interval for the difference in population means , where is the population mean planned retirement age of teachers and is the population mean planned retirement age of police officers.
From the problem:
Compute the point estimate:
Compute the standard error:
Find the critical value for a confidence interval:
Compute the margin of error:
Construct the interval:
Solution:
Lower bound:
Upper bound:
The confidence interval is .
Interpretation: We are confident that teachers plan to retire, on average, between and years later than police officers.
Part b.
Based on your interval, is there convincing evidence that the average teacher’s planned retirement age is more than years greater than the average police officer’s planned retirement age?
To answer this, check whether the entire confidence interval lies above .
Solution:
No. Because the confidence interval includes values below , the data do not provide convincing evidence that .
A difference greater than years is plausible, but it isn’t strongly supported at the confidence level. You’d have stronger evidence for the claim if the entire confidence interval were above .