Unit 4 · Topic 4.7 · about 25 minutes
AP Statistics 4.7: Constructing a Confidence Interval for the Difference Between Two Population Means
Estimate the difference between two population means from independent samples or a randomized experiment, with conditions checked and the interval interpreted.
Unit 4: 10 to 20% of the multiple-choice section
What you'll be able to do
- Identify the two-sample t-interval as the procedure for estimating the difference between two population means, and define the parameter in context.
- Verify the conditions that justify a confidence interval for the difference between two population means.
- Calculate a confidence interval for the difference between two population means.
- Calculate the standard error and the margin of error for estimating the difference between two population means.
Key vocabulary
| Term | What it means | The exam trap |
|---|---|---|
| Two-sample t-interval | A confidence interval for from two independent random samples or a randomized experiment: . | Paired data, such as the same students timed with each hand, look like two columns but call for the one-sample interval on the differences. |
| Standard error | , the estimated standard deviation of , built from the sample standard deviations. | Forgetting to divide each squared standard deviation by its own sample size gives a value many times too large. |
| Margin of error | The critical value times the standard error, times . The interval is the point estimate plus or minus this amount. | Reporting the standard error as the margin of error drops and makes the interval far too narrow. |
| Sample data condition | Both samples have at least 30 observations, or both population distributions are approximately normal. If either sample is under 30, both sample distributions should be free from strong skewness and outliers. | Two samples of 30 or more meet it even when both are skewed; the graphs only decide things when a sample is smaller than 30. |
| Degrees of freedom | Computed by technology from both samples. The value falls between the smaller of and and . | The total sample size is never the answer, since nothing above is possible. |
Predict first
Three studies compare reaction times. Which one calls for a two-sample t-interval rather than a paired analysis?
Two independent groups
When the data come from two separate groups, either two independent random samples or two groups formed by random assignment in an experiment, there is no pairing to use. The point estimate of is the difference in sample means, , and the procedure is the two-sample t-interval for a difference between two population means:
The square root is the standard error of the difference: the formula from Topic 4.6 with the sample standard deviations and in place of and . The margin of error is times that standard error.
The parameter is , and defining it means naming both populations, the response variable and which group is subtracted from which. For an experiment on volunteers, the populations are people like the ones in the study under each treatment.
Degrees of freedom
The critical value comes from a t-distribution, but the degrees of freedom are no longer just . Technology computes them from both sample sizes and both standard deviations, and the result is usually not a whole number. Whatever it is, it falls between the smaller of and at the low end and at the high end.
Use the technology value when you can; on a TI-84, 2-SampTInt reports it (answer No to Pooled). If you are working from the printed table, the smaller of and , called the conservative degrees of freedom, gives a slightly larger and so a slightly wider interval, which errs on the safe side. AP scoring guidelines have accepted either choice when the work shows which one was used.
Three conditions
- Randomization condition: the data come from two independent random samples or from a randomized experiment.
- 10% condition: when sampling without replacement, each sample is at most 10% of its population, and . This condition is unnecessary when the data come from a randomized experiment.
- Sample data condition: both samples have at least 30 observations, or both population distributions are approximately normal. If either sample has fewer than 30, both sample distributions should be free from strong skewness and outliers.
The last rule catches people: one small sample means you graph both samples, not just the small one.
Recall quiz scores (out of 30) by note-taking method
Both groups are roughly symmetric with no outliers, so the sample data condition is met even though each group has only 16 students.
| Group | Mean | Standard deviation | |
|---|---|---|---|
| By hand | 16 | 20.875 | 3.649 |
| Laptop | 16 | 17.750 | 3.804 |
Worked exampleHand notes versus laptop notes
A psychology teacher recruits 32 student volunteers and randomly assigns 16 to take notes by hand and 16 to take notes on a laptop during the same 15-minute video lecture. A week later, all 32 take a 30-point recall quiz without their notes. The boxplots and summary statistics are above. Construct and interpret a 95% confidence interval for the difference in mean recall score.
Name it. Two-sample t-interval for , where is the true mean recall score for students like these who take notes by hand and is the true mean recall score for students like these who take notes on a laptop.
Check conditions. Random: the volunteers were randomly assigned to the two methods. 10%: not needed, because this is a randomized experiment. Sample data: both groups have fewer than 30 students, so both boxplots must be free of strong skewness and outliers, and they are.
Calculate. and . Technology gives and , so the margin of error is about 2.69 and the interval is about points. With the conservative , and the interval is about .
Interpret in context. We are 95% confident that the interval from 0.43 to 5.82 points contains the true difference in mean recall score (by hand minus laptop) for students like those in this study.
About 0.43 to 5.82 points, for the mean recall score by hand minus the mean recall score on a laptop. Topic 4.8 takes up what this interval says about the claim that the method matters.
Check your understanding
A nutrition researcher selects independent random samples of 35 adults from City A and 40 adults from City B and records each adult's daily sugar intake in grams. She wants to estimate how much the mean daily sugar intake differs between the two cities. Which procedure is appropriate?
Independent random samples give , and , . Find the standard error of . Round to three decimal places.
A two-sample t-interval is built from independent random samples of sizes and . Which value could be the degrees of freedom reported by technology?
In an experiment, 38 volunteers are randomly assigned to a new allergy medicine (18 people) or a standard one (20 people), and the hours of symptom relief are recorded. A boxplot for the new-medicine group is roughly symmetric, but the standard group's boxplot is strongly skewed to the right with two high outliers. Which statement about the conditions for a two-sample t-interval is correct?
A consumer group tests independent random samples of Brand X and Brand Y AA batteries from store shelves and records how many hours each one lasts in a digital camera. It builds a two-sample t-interval for . Which is the best definition of the parameter?
Exam strategy for this topic
- Section I, Multiple Choice: 42 questions in 90 minutes.
- Section II, Free Response: 4 questions in 90 minutes.
- A graphing calculator with statistical capabilities is expected on both sections.
Questions students ask
Why can't I just use for the degrees of freedom?
There are two samples, so there is no single n. Technology computes the degrees of freedom from both sample sizes and both standard deviations, and the result is usually not a whole number. For the note-taking data it was about 29.95.
What if I only have the t table?
Use the smaller of and , called the conservative degrees of freedom. It gives a slightly larger and so a slightly wider interval. In the note-taking example, gives and an interval of about 0.32 to 5.93 points instead of 0.43 to 5.82.
How do I describe the populations when the data come from volunteers?
Describe them as people like the ones in the study, under each treatment. In the note-taking experiment, is the true mean recall score for students like these who take notes by hand.
Do I check the 10 percent condition for a randomized experiment?
No. It is unnecessary there, because the volunteers were assigned to groups, not sampled from a population.
Why is the critical value a t value and not a z value?
The population standard deviations are unknown, so the standard error uses and in their place. That extra uncertainty is what the t-distribution accounts for.
Where is the interval centered?
At the point estimate, the difference in sample means . For the note-taking data that is points.
Course alignment, for teachers
AP Statistics topic 4.7, Unit 4: Inference for Quantitative Data: Means.
- Skill 2.C: Identify appropriate statistical inference methods.
- Skill 3.E: Calculate appropriate statistical inference method results.
- Skill 4.E: Justify the use of a chosen statistical inference method by verifying conditions.