Mistake Master
Constructing a Confidence Interval for the Difference Between Two Population Means
An Interval of Gaps, Not of Scores
You'll learnhow the two-sample t interval is assembled from its three pieces, why the critical value comes from the t family and what the z habit silently costs, which conditions run once and which run twice, what the four-part interpretation must contain, and what actually narrows an interval.
Method A scored 78.4 from 30 students; method B scored 71.2 from 28. The difference is 7.2 points — and 7.2 from one pair of samples is not the answer, it is the center of one. Reach t* standard errors both ways: 7.2 ± 2.052 × 2.341 = 7.2 ± 4.80, giving (2.40, 12.00). Every number in that range is a plausible GAP between the two population means — not a score — and zero is not among them, which is what lets the study say method A is plausibly ahead. Use z's 1.96 instead of t's 2.052 and the interval claims 95 percent while covering about 94: this page integrates the t distribution and prints the shortfall, rather than asking you to take the t table on faith. Twelve short steps; press Next for each one.
Read all 12 steps as text
One pair of samples, one gap
Method A gave \(\bar{x}_1 = 78.4\) from 30 students; method B gave \(\bar{x}_2 = 71.2\) from 28. Subtract, and the gap is 7.2 points, method A ahead.
Read the axis carefully: it is a scale of gaps, not of scores. 78.4 is a score, and it is nowhere on this line.
Reach out t* standard errors each way
The recipe every confidence interval uses:
$$(\bar{x}_1 - \bar{x}_2) \; \pm \; t^{*}\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}.$$
The standard error is Topic 4.6's: \(\sqrt{2.187 + 3.291} \approx 2.341\) points. The reach is \(t^{*} = 2.052\), the 95 percent critical value at the conservative \(df = \min(30, 28) - 1 = 27\). Watch the arms grow that far in each direction.
The interval is 2.40 to 12.00 points
$$7.2 \pm 2.052 \times 2.341 = 7.2 \pm 4.80,$$
so the interval runs from \(7.2 - 4.80 = 2.40\) up to \(7.2 + 4.80 = 12.00\). Both subtractions are exact at the precision shown, which is deliberate: every number on screen can be checked by eye.
Every value in it is a gap, and zero is not
Each number between 2.40 and 12.00 is a plausible value for the true difference between the two population mean scores — a gap, in points, method A minus method B.
Now look where zero is: outside, to the left. Zero is the value that means "no difference at all", and it is not among the candidates the data leave standing. Every plausible gap has method A ahead, by at least 2.40 points. Topic 4.8 turns that reading into a formal test.
Where the 2.052 comes from
Both standard deviations are estimates, so the standardized difference follows a t shape rather than the normal one. The table says 2.052 is the 95 percent value at \(df = 27\).
This page does not take that on faith. It integrates the t density at \(df = 27\) and finds that reaching 2.052 standard errors really does cover 95.0 percent — the table checks out.
The z habit claims 95 and covers 94
Reach z's 1.96 standard errors instead and the interval is a little narrower: \((2.61, 11.79)\). The same integral says it covers about 94 percent, not the 95 it advertises.
Nothing anywhere flags that. The number looks fine, the interval looks fine, and one sample in every hundred that should have been caught is quietly missed — which is why "use t, not z" is a measured shortfall rather than a style rule.
Either degrees-of-freedom answer is accepted
The df question from Topic 4.6 carries over with the same two accepted answers. The conservative \(df = 27\) gives \(t^{*} = 2.052\) and a margin of 4.80; technology's \(df \approx 53\) gives \(t^{*} = 2.006\) and a margin of 4.70.
The bottom bar is the technology interval: slightly narrower, equally legitimate, and its coverage checks out too. Either is fine — with its name stated, so a reader knows which interval they are looking at.
Two of the four checks run twice
Random — both samples random, or subjects randomly assigned — and independence between the groups — no student in both — are checked once. The other two run once per group: the 10 percent check against each group's own population, and shape, group by group.
This study's group A has \(n_1 = 30\) and clears the guideline; group B has \(n_2 = 28\) and does not, so its plot has to be examined and described. A sentence like "the boxplot of the 28 method-B scores is roughly symmetric with no outliers" is what turns the condition from a name into a check.
Four pieces, and none of them is optional
"We are 95 percent confident that the interval from 2.40 to 12.00 points captures the true difference in mean score, method A minus method B, for the two populations of students who would be taught by these methods."
Lose the order and the sign is unreadable — nobody can tell who is ahead. Lose the word difference and a claim about a gap becomes a claim about somebody's score, on the wrong scale entirely. And the struck sentence below is the other classic: it describes individual students, who vary by 8.1 and 9.6 points, not a difference between two population means.
Feed the group that dominates the sum
The interval is 9.6 points wide, and the width is \(2\,t^{*} \times SE\). To narrow it without weakening the 95 percent promise, shrink the standard error — and each variance is divided by its own \(n\), so the levers are the two sample sizes separately.
Doubling the larger group cuts the standard error 10.5 percent. Doubling the smaller group cuts it 16.4. Doubling both cuts it 29.3. New data buys the most where the current uncertainty is largest. What does not work: pooling the groups, swapping in \(df = 56\) for a smaller \(t^{*}\), or dropping to 90 percent confidence — that last is a trade, not an improvement.
One pool split by coin, or two classes as they came
Whether the 7.2-point gap may be credited to the method is a design question, settled before any data arrived.
Randomly assigned: the 58 students were one pool, split by coin flips, so the two groups differ only by chance and by method. An interval sitting entirely above zero then licenses the causal sentence — method A raises mean scores by 2.40 to 12.00 points.
Two intact classes that happened to use different methods: the same interval computes, and the classes may still differ in preparation, teacher, or time of day. The estimate stands; the verb weakens from causes to describes, and no widening repairs that, because the uncertainty an interval reports is sampling variability, not confounding.
An interval of gaps, not of scores
Build it: estimate ± t* × SE, here \(7.2 \pm 4.80\), giving (2.40, 12.00) points. The critical value comes from the t family because both spreads are estimates. Check it: random and independence once, 10 percent and shape once per group.
Read it: every value is a plausible gap, method A minus method B, for the two populations — level, difference, order, groups, all four present. Zero is outside, so method A is plausibly ahead; whether it caused the gap is the design's call. To narrow it, feed the smaller group.