Priority labels: ImportantNeutralLess important show where to spend revision time.
From one group to a differenceImportant
Comparing groups keeps the same machinery but moves the parameter from a single value to a difference: μ₁ − μ₂ for means, p₁ − p₂ for proportions. The first design question is always: are the two sets of measurements independent, or is each value in one set linked to a value in the other?
Sampling distribution of a difference in meansImportant
For independent groups, variances add (they never subtract), so the standard error of ȳ₁ − ȳ₂ uses both samples:
The ratio of the observed difference to this SE follows a t model with degrees of freedom supplied by software (the Welch–Satterthwaite approximation).
The two-sample t-test (Welch, unpooled)Important
- H₀: μ₁ − μ₂ = Δ₀ against ≠, > or <.
- The Welch df is generally not an integer and never exceeds n₁ + n₂ − 2. You do not memorise the formula; the calculator or R supplies it.
- Decide as always: p < α → reject; then state the result in context, naming the groups and the response variable.
Two training formats
Group 1 (n₁ = 40) averages ȳ₁ = 52.0 with s₁ = 9.0; group 2 (n₂ = 45) averages ȳ₂ = 47.5 with s₂ = 11.0. Test for a difference at α = 0.05 and give a 95% interval.
Standard error
Test statistic and df
p-value
Interval
Reject H₀. Group 1 scores higher on average, by somewhere between about 0.2 and 8.8 points. The interval excludes 0, matching the test, but it is wide: the effect is detectable yet imprecisely known.
Confidence interval for μ₁ − μ₂Important
A test only says whether a difference exists; the interval estimates its size. If the interval contains 0, you cannot claim a difference at that confidence level.
The pooled t-testNeutral
If you may assume equal population variances (homoscedasticity) you can pool the spreads and gain a little precision:
Equal variances are hard to verify and the pooled test misleads when they are not equal, whereas Welch loses almost nothing when they are. Default to Welch unless the design clearly justifies equal spreads. R: t.test(y ~ group) is Welch; add var.equal = TRUE for the pooled version.
ConditionsImportant
| Condition | How to check |
|---|---|
| Independence within groups | Random sampling or random assignment in each group |
| Independence between groups | Study design: the groups must be unrelated (not paired). No test can verify this |
| 10% condition | Each sample ≤ 10% of its population (not needed for randomised experiments) |
| Nearly Normal in each group | A histogram per group; large groups (≈30+) make the test robust. One failing group violates the condition |
Comparing two proportionsImportant
For a binary response use z methods. The interval keeps each group's own estimate; the test, whose null says p₁ = p₂, pools the successes to estimate the shared proportion.
Success/failure checks use at least 10 successes and 10 failures in each group (pooled counts for the test). TI-84: 6:2-PropZTest and B:2-PropZInt.
Click-through in two layouts
Layout A: 96 clicks from 200 visitors. Layout B: 72 clicks from 180. Is there a difference?
Proportions
Pooled SE
z and p
Interval (unpooled)
No significant difference at α = 0.05: the interval includes 0, though differences up to 18 points remain plausible. A bigger sample would settle it.
Paired versus independent: the recurring trapImportant
Treating paired data as independent inflates the SE and wastes power; treating independent data as paired is conceptually wrong (and needs equal sizes). Look at the study design, not the numbers. For paired data compute each difference dᵢ, then use t = d̄/(s_d/√n) with n − 1 df.
Paired example (8 stores, before and after)
Differences in weekly sales (after − before): 4, 7, 1, 6, 3, 5, 2, 8.
Summaries
Statistic
Strong evidence of an increase. With a before-after design and no control group, remember that time itself could be part of the effect.
PitfallsImportant
| Pitfall | Remedy |
|---|---|
| Paired data analysed as independent | Ask whether each unit appears in both conditions |
| Pooled test with unequal spreads | Use Welch |
| Nearly-Normal condition ignored for small n | Plot each group; consider a non-parametric test |
| Significant but tiny difference | Report the interval and judge practical size |
| Causal claims from an observational comparison | Only randomised designs support them |
ToolsNeutral
| Welch | Pooled | Paired | |
|---|---|---|---|
| SE | √(s₁²/n₁ + s₂²/n₂) | s_p√(1/n₁ + 1/n₂) | s_d/√n |
| df | technology (Satterthwaite) | n₁ + n₂ − 2 | n − 1 |
| Extra assumption | none | σ₁² = σ₂² | data genuinely paired |
| TI-84 | 4:2-SampTTest, Pooled: No | 4:2-SampTTest, Pooled: Yes | T-Test on L1 − L2 |
| R | t.test(y ~ g) | var.equal = TRUE | paired = TRUE |
Key takeaways
- Independent groups: add variances; default to Welch. Paired data: analyse the differences.
- Two proportions: pool for the test, don't pool for the interval.
- Pair the test with an interval that shows how big the difference is.