Mistake Master
Carrying Out a Test for a Population Mean or Population Mean Difference
One Subtraction, One Tail Area, and a Sentence That Shows Its Work
You'll learnhow to compute the one-sample t statistic and read its p-value at the right degrees of freedom, why the conclusion must state the comparison to alpha in context, why a test and a confidence interval always agree, and where the robustness of t procedures runs out.
Twenty-five batteries came in at a mean of 124.6 hours against a claimed 128. The arithmetic that turns that into a verdict is one subtraction over one standard error, and it gives t = −1.85 at 24 degrees of freedom; the p-value is the tail area past it, 0.0385, integrated on this page rather than looked up. Everything hard about the topic happens after that number exists. Read it off the normal table and you get 0.0323 — sixteen percent smaller, and sixteen percent more convincing than the data earned. Announce "reject H0" without setting 0.0385 beside 0.05 and a reader has nothing to check. And at n = 8 with one wild value, the p-value stops meaning anything: this page slides a single measurement from 42 to 72 and you watch the sample mean travel further from the null while the evidence collapses. Twelve short steps; press Next for each one.
Read all 12 steps as text
The sample came in low
The setup from Topic 4.4 is already fixed: \(H_0: \mu = 128\) against \(H_a: \mu < 128\), with \(\alpha = 0.05\). The 25 batteries came back at a mean of 124.6 hours.
The curve on screen is what the null promises: if \(\mu\) really were 128, this is where the standardized version of a sample mean would land.
t is a distance in standard errors
Divide the gap by the standard error and the answer stops being in hours:
$$t = \frac{\bar{x} - \mu_0}{s/\sqrt{n}} = \frac{124.6 - 128}{9.2/\sqrt{25}} = \frac{-3.4}{1.84} \approx -1.85, \qquad df = 24.$$
The numerator carries the evidence's size and direction in hours; the denominator converts it into the units the t distribution is drawn in. For paired data nothing changes but the labels: \(t = \frac{\bar{x}_d - 0}{s_d/\sqrt{n}}\), with \(df\) one less than the number of pairs.
The alternative points left, so the tail does
\(H_a: \mu < 128\) says the evidence that counts is a mean that is low. So the region of interest is everything to the left of the mark: every sample mean this low or lower.
The p-value is that area
The shaded region integrates to 0.0385. Read what that says: if the mean lifetime really were 128 hours, samples of 25 would produce a mean this low or lower about 3.8 percent of the time.
It is a probability about data given a hypothesis — never the probability that the hypothesis is true, and never the probability that it is false. Had the alternative been two-sided, both tails would count and the p-value would be 0.0770, exactly twice as large.
The same mark under the wrong curve
The standard normal curve is laid over the same axis, with the same observed −1.85 marked on it. The tails past that mark are not the same size.
The t tail is 0.0385; the normal tail is 0.0323, both integrated here. The heavier tails of t are the extra uncertainty that estimating \(\sigma\) created, and the z table simply does not carry it.
A smaller tail is a stronger-looking result
The error has one direction and never the other. Take the point where the t procedure's own tail is exactly \(\alpha\): at \(t = -1.711\) the t area is 0.05 on the nose, and the normal reading at the same point is already 0.0436.
So the z habit rejects everything t rejects and a strictly wider band besides. Near \(\alpha\) that decides verdicts: a study whose t-based p is 0.052 has a z-based p of about 0.044, and one reading rejects while the other does not.
Show the comparison, then say it plainly
With \(p = 0.0385\) and \(\alpha = 0.05\), the finished sentence assembles in four parts: "Since the p-value of 0.0385 is less than \(\alpha = 0.05\), we reject \(H_0\). There is convincing evidence that the mean lifetime of all batteries of this type is less than 128 hours."
Each part earns its place. The comparison is what makes the conclusion checkable. The decision is reject or fail to reject, never accept and never prove. The context names the population and the direction, because a sentence about "the null hypothesis" has not concluded anything about batteries.
A large p-value narrows nothing
Suppose the same study had produced \(p = 0.31\) — a statistic near the middle of the curve. The report would read: there is not convincing evidence that the mean lifetime is less than 128 hours.
It would not read that the mean is 128, or that the claim was confirmed. Many means besides 128 would produce an unremarkable sample of 25, and the test cannot single one of them out — which is why a non-significant result is always reported with the sample size that produced it.
Two-sided asks a different question
Had the question been "is the mean different from 128?", surprise in either direction would count. The two-sided critical values at \(df = 24\) are \(\pm 2.064\), shaded on screen, and the observed −1.85 sits inside them.
The two-sided p-value is 0.0770 — twice the one-sided value, and above \(\alpha\). There is no contradiction with step 7: the one-sided test spends its whole 5 percent in the tail the research question named, instead of splitting it two ways.
The test and the interval are one fact
The bar is the 95 percent confidence interval, drawn on this same standardized axis: it runs from \(t - t^{*}\) to \(t + t^{*}\), which in hours is \(124.6 \pm 2.064 \times 1.84\), or \((120.80,\, 128.40)\).
An interval covers \(\mu_0\) exactly when \(\mu_0\) is within \(t^{*}\) standard errors of \(\bar{x}\), which is exactly when \(|t| < t^{*}\). So the bar reaching past 0 and the mark falling short of \(t^{*}\) are the same statement, and this page asserts that equivalence in both directions rather than describing it.
Eight measurements, tested against 40
A different study, and a much smaller one. Eight measurements sit on the strip, the null value of 40 is dashed, and the sample mean is the solid rule to its right.
As collected: mean 42.5, \(s = 2.45\), \(t = 2.89\), \(p = 0.023\) at \(df = 7\) — reject. Everything under the strip is computed from the eight dots you can see.
One wild point can kill the evidence
Watch one measurement slide from 42 out to 72 while nothing else changes. The sample mean travels to 46.25 — further from the null value of 40 — and yet \(s\) quadruples to 10.69, \(t\) falls to 1.65, and the p-value climbs to 0.142. Fail to reject.
That pairing is the whole argument: the estimate moved toward the alternative and the evidence got weaker, because at \(n = 8\) one value inflates the denominator faster than it moves the numerator. Robustness has a range — below \(n = 15\), t only for roughly symmetric data with no outliers; 15 to 30, mild skew is fine; \(n \ge 30\), almost any shape. And the move never available is deleting the outlier to make the procedure apply.