Mistake Master
Constructing a Confidence Interval for a Population Mean or Population Mean Difference
Two Columns Are Not Two Samples, and 1.96 Is Not 2.064
You'll learnhow a one-sample t interval is assembled from its three parts, what using a z critical value actually costs in delivered coverage, how a paired design collapses into a single sample of differences, and which object the finished interval is a claim about.
Twenty-five batteries give a mean of 124.6 hours and a standard deviation of 9.2, and the 95 percent interval is 124.6 plus or minus 2.064 times 1.84 — about 120.8 to 128.4 hours. Every number in that sentence is built on this page, including the wrong ones: the 1.96 that produces an interval delivering only 93.8 percent, integrated here rather than asserted, and the band that would actually hold 95 percent of individual batteries, which is nearly five times wider than the interval a student mistakes for it. Then the design question that decides everything downstream: six students measured before and after are not two samples of six. Subtract first and the interval on the differences clears zero; run the two columns as independent groups and the standard error triples, the interval spans zero, and the improvement the pairing plainly shows disappears into noise the design was built to cancel. Twelve short steps; press Next for each one.
Read all 12 steps as text
One sample, one number, and a bigger question
Twenty-five batteries were tested and lasted 124.6 hours on average — a fact about those 25, and only a starting point for a claim about every battery of this type.
Put a margin around it
Rather than offering one number, report a range that the method captures the true mean 95% of the time: the estimate, plus or minus a margin.
Three parts, and where each one comes from
The center is the sample mean, the standard error is \(\frac{s}{\sqrt{n}} = \frac{9.2}{5} = 1.84\), and the multiplier is the t critical value at \(df = n - 1 = 24\), which this page integrates to 2.064.
Reach for 1.96 and the net shrinks
Using the normal's 1.96 where t belongs gives a visibly narrower bracket, and integrating the t density between those endpoints shows what it actually delivers: 93.8%, not 95%.
The interval is about the mean, not the batteries
The band that would hold 95% of individual batteries has halfwidth \(1.96 \times 9.2 \approx 18\) hours — nearly five times the interval's 3.80 — because individuals vary by \(s\) and the mean of 25 varies by \(\frac{s}{\sqrt{25}}\).
Six students, measured twice each
A different study: the same six students take a test before and after a programme, so each row of this table is one student who produced two numbers.
Subtract within each student first
Subtracting inside each row collapses the two columns into one sample of six differences, mean 3.67 with sd 3.14, and the interval on that single column runs from 0.37 to 6.96.
Below thirty, the plot is the evidence
With six observations the t procedure needs the population to be roughly normal, and the only way to judge that is to plot the six values and look for strong skew or an outlier.
One outlier nearly triples the margin
Same n, same procedure, one changed value: the margin goes from 3.30 to 9.54 and the interval that cleanly cleared zero now spans it, which is why the shape condition is not paperwork.
More confidence buys a wider net
Going from 95% to 99% changes only the multiplier — from 2.064 to 2.797 — so the center stays at 124.6 while the margin grows from 3.80 to 5.15.
The same six students, analyzed two ways
Treat the two columns as independent samples and the standard error triples, from 1.28 to 3.81: the interval widens to (−4.81, 12.15) and the improvement the pairing plainly shows vanishes into noise.
Why subtracting first wins
The before and after scores rise and fall together — their correlation is 0.94 — and subtracting within a student removes exactly that shared variation, which is the whole reason the paired standard error is so much smaller.