Educerie · AP · Statistics
AP Statistics 4.7
Constructing a Confidence Interval for the Difference Between Two Population Means
How can a sample of numerical measurements tell us about the mean of a whole population, and how sure can we be?
What you will learn
- Understand when a two-sample t-interval is the right procedure and how to state its parameter
- Know the three conditions, including the check on both samples when one is under 30
- Know the standard error, margin of error and interval for a difference of means
- Understand the range for the degrees of freedom and how technology is used
You must be able to
- Name the procedure and define the parameter with order, variable and populations
- Verify the three conditions with numbers and a boxplot description
- Calculate the standard error, margin of error and interval
- Distinguish two independent samples from matched pairs from the design
- Check technology's degrees of freedom against the allowed range
- Interpret the interval in context
In the exam. Section I multiple choice: pick two-sample against matched pairs, find the standard error or the margin of error, or choose what a pair of boxplots shows about a condition. In Section II (Q3 and part of Q4) you name the procedure, define the difference of means with its order, verify the conditions with numbers, and calculate the interval. Common slips are treating two independent groups as pairs (or pairs as two groups), writing a parameter with no populations, and checking normality only for one group.
1Two independent samples, or matched pairs?
Decide this first, because the two methods give different answers.
- Two independent samples. Two separate groups of different units. A treatment group and a control group, or two schools. No unit is in both, and no unit in one group is linked to a unit in the other. Use the two-sample procedure.
- Matched pairs. Two measurements on each unit, or paired units. Use the one-sample procedure on the differences (Topic 4.2).
The test question: can you pick one value from group 1 and match it with one from group 2? If each value has a natural partner, it is pairs. If the groups are just two piles, it is two samples.
A randomized experiment with two treatment groups, units assigned at random with no pairing, is a two-sample design.
2The parameter
State the difference in the population means, the response variable, and the populations, in context, with the order.
Example: ", where is the mean quiz score for all students who would use the study app, and is the mean quiz score for all students who would not."
Notice that the parameter is a difference of means, not a mean difference. A mean difference (Topic 4.2) comes from pairs. A difference of means comes from two samples. The exam checks the wording.
3The conditions
A two-sample t-interval needs three conditions.
- Randomization. The data come from two independent random samples, or from a randomized experiment.
- The 10% condition. When you sample without replacement, and . This is unnecessary for a randomized experiment.
- The sample data condition. Each sample has at least 30 values, or it is stated that both populations are approximately normal. If either sample has fewer than 30 values, the data in both samples should show no strong skewness and no outliers.
The third condition has a trap: one small sample forces you to check both groups. A group of 40 with a group of 12 means both need a graph check.
Read Figure 1 as a condition check, one panel at a time.
- Left. The two groups of quiz scores (12 and 14 students) have symmetric boxes and no asterisks. No outliers and no strong skew, so the condition is met for both.
- Right. Group C has an asterisk at 112, far above the box. With , an outlier means the condition fails. Group D alone looks fine, but both groups must pass.
Say what you see: "Both boxplots are roughly symmetric with no outliers, and and are below 30, so the sample data condition is met for both groups."
4The standard error and the margin of error
The formula sheet gives the standard error of a difference of sample means:
The interval uses the pattern "statistic critical value standard error":
- Margin of error: .
- Degrees of freedom: technology finds the df and . The df lies between the smaller of and and . Use the range to check a calculator result.
- No pooling. The sheet has no pooled formula for two means. Each sample keeps its own .
If you must work without technology, use the smaller of and as df and look up in Table B. If that df has no row in the table (Table B prints 1 to 30, then 40, 50, 60, 80, 100 and 1000), use the next lower row. The interval is a little wider, which is safe.
5Worked example
A school runs an experiment on a study app. Twenty-six students are randomly assigned, 12 to use the app for a week and 14 not to. All take the same quiz afterwards.
| Group | Mean | Standard deviation | |
|---|---|---|---|
| App | 12 | 84.92 | 7.15 |
| No app | 14 | 76.29 | 6.31 |
The boxplots are those in Figure 1 (left).
Procedure. Two-sample t-interval for a difference between population means.
Parameter. , where is the mean quiz score of all students like these who would use the app, and is the mean score of those who would not.
Conditions.
- Randomization: a randomized experiment, with students randomly assigned to the two groups. The 10% condition is not needed.
- Sample data: and , and both boxplots show no outliers and no strong skew.
Calculation. The point estimate is .
Technology gives df and for 95%. This lies between 11 (the smaller of 11 and 13) and 24.
The 95% interval is 3.11 to 14.16 points.
By hand with Table B and df : , and the interval is . It is wider, as expected, and it tells the same story.
6Interpreting it
The interval has the form you met in Topic 4.3, with a difference as the parameter.
"We are 95% confident that the interval from 3.11 to 14.16 points captures the difference in the mean quiz scores, app minus no app, for all students like these."
Topic 4.8 covers the interpretation of the level and the claims you can make.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.