In short
To compare two independent groups, test against Hₐ: μ₁ − μ₂ > 0, < 0 or ≠ 0, defining μ₁ and μ₂ in context. Check: two independent random samples or random assignment; 10% for each sample; normal/large sample for each group. Use a paired test instead when values are naturally linked.
What you need to know
- Write hypotheses for a two-sample t-test, defining both parameters.
- Choose between a two-sample t-test and a paired t-test.
- Verify the conditions for a two-sample t-test.
- Explain how the design affects the conclusion that can be drawn.
Hypotheses
In the teaching experiment (topic 4.7), 47 volunteers were randomly assigned to Method A (worked examples) or Method B (videos). The researcher wants to know whether the two methods give different mean scores.
where μ_A and μ_B are the true mean test scores for students like these taught with Method A and Method B. The alternative is two-sided because the question asks whether the methods 'give different' means. If the researcher had suspected in advance that worked examples are better, Hₐ would be μ_A − μ_B > 0.
Two-sample or paired?
| Design | Procedure | Parameter |
|---|---|---|
| Two separate groups (different individuals) | Two-sample t-test | μ₁ − μ₂ |
| Each individual measured twice, or matched pairs | Paired t-test on the differences | μ_d |
Example: to compare two energy drinks on reaction time, giving each of 20 people both drinks (in random order, on different days) is paired; giving one drink to 10 people and the other to 10 different people is two-sample. Pairing usually gives a more powerful test, because each person is compared with themselves, removing person-to-person variation.
A paired design is not always possible: you can't give the same patient two different surgeries, or put the same plot of land in two fertiliser trials in the same season. Then two independent groups formed by random assignment are the right design.
Conditions
- Random: two independent random samples, or random assignment of individuals to two treatments.
- 10%: each sample is less than 10% of its population (sampling only).
- Normal/large sample: for each group, n ≥ 30 or a graph of that group's data shows no strong skewness or outliers.
For the teaching experiment: random assignment holds; n_A = 25 and n_B = 22 are both below 30, but both dotplots are roughly symmetric with no outliers, so the two-sample t-test is reasonable.
Also decide α in advance (0.05 unless told otherwise). The scope of the eventual conclusion depends on the design: random assignment allows a cause-and-effect conclusion for subjects like these; independent random samples allow generalising to the two populations but not causation.
Key terms
- Two-sample t-test
- A significance test comparing the means of two independent groups.
- H₀: μ₁ − μ₂ = 0
- The null hypothesis of no difference between the population means.
- Matched pairs design
- An experiment in which each subject receives both treatments, or subjects are paired and each member of a pair gets a different treatment.
- Unpooled test
- A test that does not assume the two populations have equal standard deviations.
Common mistakes
Defining only 'μ = mean score'.
Define μ₁ and μ₂ separately, each with its group and context.
Using a two-sample test for matched pairs.
Linked data need a paired test on the differences.
Checking normality on the combined data.
Check each group's graph separately.
How this topic is tested
- State both parameters and the order of subtraction.
- Name the test: 'two-sample t-test for μ₁ − μ₂'.
- Describe each group's graph for the normal condition when n < 30.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · SP 1 · Formulate Questions
A nutritionist suspects children who eat breakfast have a higher mean test score than children who don't. Which alternative is correct (B = breakfast, N = no breakfast)?
Question 2 · SP 1 · Formulate Questions
Twenty people each try two brands of running shoe, in random order, and their times are recorded. Which procedure fits?
Question 3 · SP 2 · Collect Data
In a two-sample t-test with n₁ = 18 and n₂ = 45, which graphs are needed for the normal condition?
Question 4 · SP 4 · Interpret Results
Independent random samples of men and women are compared and a significant difference in mean sleep is found. What scope is justified?
Question 5 · SP 2 · Collect Data
Why is a matched pairs design often more powerful than two independent groups?
Free-response practice
Write your answer first, then mark it against the scoring guide.
Inference (set-up) · 4 points
A company wants to know whether a new website layout reduces the mean time customers take to complete a purchase. It randomly assigns 60 customers: 30 to the new layout and 30 to the old.
- (a) State hypotheses, defining parameters.
- (b) Identify the test and verify the conditions.
Scoring guide: one point for each of the following
Part (a)
- H₀: μ_new − μ_old = 0; Hₐ: μ_new − μ_old < 0.
- μ_new and μ_old are the true mean purchase times for customers like these using the new and old layouts.
Part (b)
- Two-sample t-test for μ_new − μ_old.
- Random assignment; each group has n = 30, so the normal/large sample condition is met.
Connected topics
Frequently asked questions
Why don't we pool for means when we pool for proportions?
For proportions, H₀ implies equal spreads, so pooling makes sense. For means, equal means don't imply equal standard deviations.
Do the groups need equal sizes?
No. Equal sizes help a little with power, but the test works with any sizes.
What if one group is skewed and small?
State that the normal condition isn't met for that group and that results may be unreliable.