Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Statistics · Unit 4 · Step-Through Animation

Carrying Out a Test for the Difference Between Two Population Means

The p-Value Is Where the Interval Touches Zero

You'll learnhow the two-sample t statistic is assembled, how to read its p-value at either accepted df, what a conclusion must contain to be checkable, why pooling has no license here even when it barely changes the answer, and exactly how the test and the interval are the same statement.

One subtraction over one standard error: t = 7.2 / 2.341 = 3.08, and at the conservative 27 degrees of freedom the one-sided p-value is 0.0024. Then the part usually taught as a rule to memorise. The test and the interval do not merely "agree" — build the interval at confidence 1 − p and its critical value is the t whose tail area is p, which is 3.08 itself, so the half-width is 3.08 × 2.341 = 7.2 and the interval is exactly (0.00, 14.40). The p-value is the confidence level at which the lower endpoint lands on zero, and this page asserts it to the last bit rather than asking you to take it on faith. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · THE STATISTIC · THE p-VALUE · TEST AND INTERVAL · v2

t = 7.2 / 2.341 = 3.08, and the interval at 1 − p starts exactly at zero.
Before you start
What you're looking at
The teaching-methods study one last time: a difference of 7.2 points, a standard error of 2.341, and the t distribution that says how surprising that is.
The question
The test and the interval are taught as two procedures that happen to agree. Why do they agree — and is "agree" even the right word?
Step 1 / 12

Read all 12 steps as text
Step 1

If the two means were equal, t lands here

The setup from Topic 4.9 is done: \(H_0: \mu_1 = \mu_2\) against \(H_a: \mu_1 > \mu_2\), with \(\alpha = 0.05\). The study found method A ahead by 7.2 points.

This curve is what the null promises. If the two population means really were equal, the standardized difference between two sample means would land somewhere under it, almost always between −3 and 3.

Step 2

t is the difference over its standard error

One subtraction over one standard error, and the units come out as a count:

$$t = \frac{\bar{x}_1 - \bar{x}_2}{\sqrt{s_1^2/n_1 + s_2^2/n_2}} = \frac{78.4 - 71.2}{2.341} = \frac{7.2}{2.341} \approx 3.08.$$

The numerator subtracts nothing extra: the null puts \(\mu_1 - \mu_2\) at zero, so the hypothesised difference being subtracted is zero. The denominator is Topic 4.6's standard error, each group's own \(s^2/n\) added under one root.

Step 3

The p-value is the area beyond it

The alternative points one way — method A higher — so the p-value is the single tail to the right of 3.08. Watch it fill.

Read what the shaded area says: if the two population means were equal, a sample difference this large or larger would turn up about that often. It is a statement about data given a hypothesis, and never about the hypothesis given the data.

Step 4

p = 0.0024 at 27 degrees of freedom

The tail integrates to 0.0024. If the two population means were equal, a gap of 7.2 points or more would appear in about 2 samples in every thousand.

Both accepted degrees of freedom are worth reporting because they differ: the conservative \(df = 27\) gives 0.0024 and technology's \(df \approx 53\) gives 0.0017. Neither changes the decision here, and whichever was used has to be stated.

Step 5

The other accepted df, drawn beside it

Here is the same statistic against the second accepted answer: \(df \approx 53\), technology's fractional value. The curve has slightly lighter tails, so the same 3.08 cuts off slightly less area — 0.0017 instead of 0.0024.

Both are legitimate, the difference is small, and the reason to say which one you used is that a reader cannot reconstruct your p-value without it.

Step 6

Show the comparison, then say it about students

The finished sentence has four parts, and it is worth writing them out separately once: "Since \(p = 0.0024 < \alpha = 0.05\), we reject \(H_0\). There is convincing evidence that the mean score for all students taught by method A is higher than for all students taught by method B."

The comparison is what makes it checkable. The decision is reject or fail to reject, never accept and never prove. The direction says which mean is higher. And the populations get named, because a sentence about "the null hypothesis" has concluded nothing about students.

Step 7

A large p-value leaves the tail wide open

The other outcome, drawn to scale. A statistic near the middle cuts off most of the right half of the curve, and the p-value is large.

That is a failure to detect, not a finding of equality. The correct sentence names the failure — there is not convincing evidence of a difference — and the interval is what says how much the study could have missed.

Step 8

Pooling barely moves this study

Some textbooks offer a pooled standard error, which averages the two sample variances into one and uses it for both groups. Nothing licenses that here: a two-proportion test pools because its null forces one shared proportion, and a proportion determines its own variance, while two equal means say nothing about two variances.

Do it anyway on this study and the standard error moves from 2.341 to 2.327 — under a percent — and the statistic from 3.08 to 3.09. No decision changes, which is precisely how the habit survives.

Step 9

The same step, 70 percent wrong on the next study

Now a study where 10 tightly clustered observations (\(s = 4\)) are compared with 40 widely spread ones (\(s = 12\)), and the observed gap is 7.0.

The correct standard error is 2.280 and the statistic is 3.07. Pool, and the small tight group is handed the big group's spread: the standard error becomes 3.873 — 70 percent longer — and the statistic falls to 1.81, straight across the 5 percent boundary. Same wrong step, one decision changed.

Step 10

The 95 percent interval excludes zero

Topic 4.7's interval, on a difference axis this time: \(7.2 \pm 2.052 \times 2.341\), which is \((2.40,\, 12.00)\) points. Zero sits outside it, to the left.

The test rejected and the interval excludes zero. Those are usually presented as two procedures that happen to agree — which is true, and much weaker than what is actually going on.

Step 11

The p-value is where the interval touches zero

Build the interval at confidence \(1 - p\) instead of 95 percent. Its critical value is, by definition, the t whose two-sided tail area is \(p\) — and that is \(|t| = 3.08\) itself.

So the half-width is \(|t| \times SE = (d/SE) \times SE = d\), which is the observed difference, and the interval runs from exactly \(0\) to \(2d\). The second bar on screen is that interval, and its lower endpoint is on zero to the last bit — not close to it. The test and the interval are not two procedures that agree; they are one statement written two ways.

Step 12

One quotient, one tail, one sentence, one interval

The quotient: 7.2 over 2.341 is 3.08 standard errors. The tail: 0.0024 at \(df = 27\), or 0.0017 at 53, integrated on this page and reported with the df that produced it. The sentence: comparison, decision, direction, populations — all four.

The interval: report it beside the test, because they cannot disagree and they do not answer the same question. The test says whether zero is plausible; the interval says how big the difference is. And pooling stays out of it — unlicensed here, harmless on one study and decisive on the next.