4.10 - Carrying Out a Test for the Difference Between Two Population Means
Overview
With the test set up (Topic 4.9), what's left is computing a test statistic, finding the -value, and making a decision in context. The structure is the same as every significance test in this course: State, Plan, Do, Conclude. This topic covers the Do and Conclude steps for the two-sample -test, including how to interpret the -value.
The test statistic
The test statistic measures how far the observed difference in sample means is from the null value of 0, in standard errors:
This is the formula sheet's standardized test statistic, , with the statistic and the null value 0. A value of means the sample difference is 2.55 standard errors above what predicts.
When the null hypothesis is true, has a -distribution. Technology finds the degrees of freedom (the same df as the two-sample -interval), and they fall between the smaller of and and . Without technology, use the smaller of and .
Finding the -value
The -value is the area under the -distribution beyond the test statistic, in the direction of :

- : the area to the right of .
- : the area to the left of .
- : the area in both tails, beyond and . That's double the one-tail area.
With technology
On a TI-84, press STAT, arrow to TESTS, and choose 4:2-SampTTest. Enter the data or the summary statistics, choose the alternative (, , or ), set Pooled: No, and select Calculate. The output shows , , and df. You can also find a tail area directly with
tcdf(lower, upper, df), for example tcdf(2.55, 1E99, 21.2) for the right tail beyond 2.55.With Table B
Use the conservative df (the smaller of and , moving to the next smaller row if that df isn't in the table). Find where falls in that row; the column headings give bounds on the one-tail area. Double the bounds for a two-sided test. A table gives a range, like , which is enough to compare with .
Interpreting the -value
The -value is the probability of getting a test statistic as extreme as, or more extreme than, the one observed (in the direction of ), given that the null hypothesis is true. For two means, assuming is true means assuming the two population means are equal. A good interpretation follows this pattern:
Assuming the true mean [variable] is the same for [population 1] and [population 2], there is a [-value] probability of getting a difference in sample means of [observed difference] or more [in the direction of the alternative] by chance alone.
An interpretation that leaves out the "assuming is true" part is incomplete. And the -value is not the probability that is true.
Making a decision and a conclusion
A formal decision explicitly compares the -value to the significance level :
- If the -value , reject . There is convincing evidence for .
- If the -value , fail to reject . There is not convincing evidence for .
Then write the conclusion in context: in terms of , with non-definitive language, naming the parameters and the populations. For example:
Because the -value of 0.0093 is less than , we reject . There is convincing statistical evidence that the true mean height after three weeks is greater for bean plants like these grown with the plant food than for bean plants like these grown with plain water.
The results of the test are the statistical reasoning behind the answer to the investigative question about the two populations, so state that answer in the problem's own words. A few more rules:
- Never "accept " or say the test "proves" anything. Failing to reject means the evidence wasn't strong enough, not that the means are equal.
- Talk about the population means ("the true mean," "all phone players"), not the sample means.
- For a randomized experiment, rejecting supports a cause-and-effect conclusion for units like those in the study. For random samples from two populations, the conclusion applies to those populations but doesn't show cause and effect.
Example 1: Plant food for bean plants
This finishes the test set up in Topic 4.9, Example 2. Twenty-four bean seedlings were randomly assigned to plant food or plain water, 12 each. Heights after three weeks, in cm:
Group | Heights (cm) |
Plant food | 23.1, 25.4, 21.8, 26.0, 24.7, 22.9, 27.3, 24.2, 25.8, 23.6, 26.5, 24.9 |
Water only | 22.6, 23.9, 21.3, 24.8, 23.0, 20.9, 25.1, 22.7, 23.8, 21.9, 24.4, 23.2 |
Is there convincing evidence at that the plant food increases the mean height after three weeks?
State: and , where and are the true mean heights after three weeks for bean plants like these grown with plant food and with plain water. We'll use .
Plan: Two-sample -test for . Conditions:
- Randomization: the treatments were randomly assigned to the 24 seedlings.
- 10%: not needed, because this is a randomized experiment.
- Sample data: both groups have 12 plants, and boxplots of both groups (Topic 4.9) show no outliers and no strong skewness.
Do: From the data, , , , and cm.
Technology gives df and a -value of .

Without technology: df . In the df = 11 row of Table B, 2.55 falls between 2.328 (tail area 0.02) and 2.718 (tail area 0.01), so .
Interpret the -value: Assuming the plant food has no effect on mean height (the true means are equal), there is about a 0.0093 probability of getting a difference in sample means of 1.55 cm or more in favor of the plant food just from the random assignment.
Conclude: Because , we reject . There is convincing statistical evidence that the true mean height after three weeks is greater for bean plants like these grown with the plant food than for those grown with plain water. Because the treatments were randomly assigned, this is evidence that the plant food causes taller growth, on average, for plants like these.
Example 2: Phone and console players (AP-style)
This finishes the test set up in Topic 4.9, Example 1. The samples gave these results:
Group | (minutes) | (minutes) | |
Phone players | 50 | 38.5 | 14.2 |
Console players | 42 | 43.1 | 17.9 |
Is there convincing evidence at that the mean session length differs between phone and console players?
State: and , where and are the true mean session lengths, in minutes, for all phone players and all console players of the game. We'll use .
Plan: Two-sample -test for . Conditions (checked in Topic 4.9): two independent random samples; each sample is far less than 10% of its population; and both samples have at least 30 players, so the skewed session lengths aren't a problem.
Do:
Technology gives df and a two-sided -value of about 0.182 (0.091 in each tail).

Without technology: df , which isn't in Table B, so use the df = 40 row. falls between 1.303 (tail area 0.10) and 1.684 (tail area 0.05), so one tail is between 0.05 and 0.10, and the two-sided -value is between 0.10 and 0.20.
Interpret the -value: Assuming the true mean session length is the same for phone and console players, there is about a 0.182 probability of getting a difference in sample means of 4.6 minutes or more, in either direction, by chance alone.
Conclude: Because , we fail to reject . There is not convincing statistical evidence that the true mean session length differs between all phone players and all console players of this game.
Notice what this does not say: it doesn't say the means are equal. The console players in the sample averaged 4.6 minutes more, but a difference that size isn't unusual by chance when the true means are equal. A 95% two-sample -interval for is minutes, which contains 0, matching the decision.
Common mistakes
- Skipping the explicit comparison. Write "," not just "the -value is small."
- Concluding about the samples ("the plant food group had a larger mean") instead of the populations, or using definite words like "proves."
- Accepting the null hypothesis. After a large -value, you fail to reject ; you never accept it.
- Getting the tail wrong. Use the direction of , and double the one-tail area for a two-sided test.
- Leaving the assumption out of a -value interpretation. It must say the -value is computed assuming is true. It is not the probability that is true.
- Using z instead of t, or turning pooling on in the calculator.
- A sign that doesn't match the setup. If is about , compute in that order.