Maximize your score with these resources:
- Albert.io AP® Statistics question banks
- Free AP® Statistics cheat sheets
- Free AP® Statistics score calculator
You’ve built confidence intervals comparing two means. Now flip the perspective: instead of estimating the difference, you’re testing whether the difference is real. A two-sample t-test answers “Is there convincing evidence that two populations have different means?” The setup — hypotheses, conditions, and test statistic — determines everything that follows.
Stating Hypotheses for Two Means
The null hypothesis always claims no difference between population means:

H₀: μ₁ = μ₂ (equivalently: μ₁ − μ₂ = 0)
The alternative depends on your research question:
| Research Question | Alternative Hypothesis | Test Type |
|---|---|---|
| “Do the means differ?” | Hₐ: μ₁ ≠ μ₂ | Two-sided (most common) |
| “Is μ₁ greater than μ₂?” | Hₐ: μ₁ > μ₂ | Right-tailed |
| “Is μ₁ less than μ₂?” | Hₐ: μ₁ < μ₂ | Left-tailed |
Critical rule: Hypotheses are written about population parameters (μ), not sample statistics (x̅). Writing H₀: x̅₁ = x̅₂ is a fundamental error — we can see the sample means directly; we’re making inferences about the populations they came from.
Checking Three Conditions

| Condition | Requirement | How to Check |
|---|---|---|
| Random | Both samples from random sampling or random assignment | Look for “randomly selected” or “randomly assigned” in the problem |
| Independent | Samples are independent of each other; each n ≤ 0.10N | Groups must be different people/units; apply 10% rule |
| Normal | Each population approximately normal | n₁ ≥ 30 AND n₂ ≥ 30: CLT applies. Smaller n: check for extreme skew or outliers |
Independence vs. paired data: If the same subjects appear in both groups (before/after, matched pairs), this is NOT a two-sample t-test — use a paired t-test instead. Two-sample requires two truly separate groups.
The Test Statistic
\(t = \frac{(\bar{x}_1 – \bar{x}_2) – 0}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}}\)
The numerator is the observed difference; the denominator is the standard error of that difference. The statistic answers: how many standard errors is our observed difference from zero?
Degrees of freedom: Conservative: df = min(n₁ − 1, n₂ − 1). Technology (Welch’s approximation): larger df, slightly more power. Both are acceptable on the AP exam.
Complete Setup Example
Does a new tutoring program raise math scores? Control group (no tutoring): n₁ = 35, x̅₁ = 74.2, s₁ = 11.8. Treatment group (tutoring): n₂ = 32, x̅₂ = 81.5, s₂ = 10.3. Test at α = 0.05.
Loading the t-test calculator…
Hypotheses:
H₀: μ_control = μ_tutoring
Hₐ: μ_control < μ_tutoring (one-sided — testing whether tutoring increases scores)
Conditions:
- Random: Students were randomly assigned to groups ✓
- Independent: Assignment is random; groups are separate ✓. The 10% condition is not needed because subjects were randomly assigned, not sampled
- Normal: n₁ = 35 ≥ 30 and n₂ = 32 ≥ 30, so CLT applies ✓
Test statistic:
\(t = \frac{74.2 – 81.5}{\sqrt{\frac{11.8^2}{35} + \frac{10.3^2}{32}}} = \frac{-7.3}{\sqrt{3.977 + 3.316}} = \frac{-7.3}{\sqrt{7.293}} = \frac{-7.3}{2.700} = -2.70\)df = min(35 − 1, 32 − 1) = min(34, 31) = 31. Left-tailed test, so p-value = P(T ≤ −2.70) with df = 31. From a t-table: p ≈ 0.006. Since 0.006 < 0.05, reject H₀.
Conclusion: “Since p = 0.006 < α = 0.05, we reject H₀. There is convincing evidence that students in the tutoring program have higher mean math scores than the control group.”
Test-Taking Strategies
Mnemonic — RIN for conditions. Random, Independent (10% rule + groups separate), Normal (CLT or shape check). Run RIN before any calculation. All three must be checked explicitly — each is a scoring item.
Write hypotheses in μ, not x̅. Before writing anything, confirm you’re writing about population means. H₀: μ₁ = μ₂. This applies even when you have sample data. The sample gives you evidence; the hypothesis is about the population.
Identify paired vs. two-sample early. Before choosing this test, ask: “Is each observation in group 1 matched to a specific observation in group 2?” If yes (same subjects measured twice, matched pairs), use a one-sample t-test on differences instead. If no (separate, independent groups), use the two-sample t-test.
Don’t forget the 10% rule for each group. With two groups, you need n₁ ≤ 0.10N₁ AND n₂ ≤ 0.10N₂. State both. If population sizes aren’t given, say “assume the populations are large enough.”
Avoid these mistakes. Don’t write hypotheses using x̅. Don’t confuse paired and two-sample designs. Don’t forget to check normality for both groups (not just one). Don’t drop the “−0” from the numerator — it’s technically correct to show it, demonstrating you understand the null value being tested.
Time management. Hypotheses: 1 minute. Conditions: 2 minutes (state all three with brief justification). Test statistic: 2–3 minutes (show denominator computation step by step). Total setup: 5–6 minutes. Spend the time on conditions — they’re consistently scored on AP rubrics and students consistently skip them.
Check for Understanding
Think you’ve got it? Complete the quiz below to make sure. Download your results at the end.