QED
Statistics · step 10 of 13

t-tests & comparing two means

Three t-tests cover most comparisons, and choosing correctly is most of the mark. A one-sample test compares a mean to a fixed value; a PAIRED test compares two measurements on the same subjects by analysing the differences; a two-sample test compares independent groups. Using the two-sample test on paired data throws away the pairing and badly loses power.

Unlimited questions · marked criterion by criterion · no card needed

Method: how to approach it

The order below is what examiners expect to see, and each step carries its own marks.

  1. Identify the designAre the two samples independent, or matched pairs (before/after, twins, same subject)? This decides the test.
  2. Paired: analyse the differencesCompute dᵢ = after − before and run a one-sample t-test on them, with df = n − 1.
  3. Two-sample: use the appropriate standard errorWelch’s test uses √(s₁²/n₁ + s₂²/n₂) and does not assume equal variances — the safer default.
  4. State the df and conclude in contextPaired uses n − 1; Welch uses a computed approximation. Always report which test you ran.

Worked example

8 subjects are measured before and after a training programme. Which test applies, and what are the hypotheses?

  1. The same subjects appear in both conditions, so the observations are paired.
  2. Compute the 8 differences d = after − before.
  3. H₀: μ_d = 0 against H₁: μ_d ≠ 0 (or > 0 if improvement was predicted in advance).
  4. Test statistic: t = d̄/(s_d/√8) with df = 7.

Answer. A paired t-test on the 8 differences, with df = 7 — not a two-sample test, which would ignore the pairing and inflate the standard error.

Where marks get dropped

These are the specific errors that cost credit on t-tests & comparing two means questions — QED's rubric penalises each of them separately.

Practise this until it is automatic

Unlimited fresh questions

QED generates new t-tests & comparing two means problems on demand at warm-up, exam and challenge level, so you can drill this one skill until it stops costing you marks.

Marked like an examiner

Every answer is scored against a point-by-point rubric with partial credit, so you see exactly which step of the method broke down — not just a tick or a cross.

Answer in real notation

A one-tap symbol palette, a visual equation editor and a truth-table builder — or photograph your handwritten working and QED converts it to LaTeX.

Saved to your library

Every question you generate is kept and re-takeable as a timed exam, and your Statistics mastery is tracked so you know when this is exam-ready.

t-tests & comparing two means — frequently asked questions

When should I use a paired t-test?

Whenever each observation in one group corresponds to a specific observation in the other — before/after, matched subjects, or two measurements on the same item.

What are the assumptions?

Independence between units, and approximate normality of the differences (paired) or of each group (two-sample). The t-test is fairly robust to mild non-normality for moderate n.

What if the data are badly non-normal?

Use a non-parametric alternative: Wilcoxon signed-rank for paired data, Mann–Whitney U for independent groups.

The rest of Statistics

Describing data, distributions, estimation and hypothesis tests. Each subtopic below has its own method, worked example and mark-losing traps.

Ready to make t-tests & comparing two means exam-proof?

Generate your first questions free — no card, no setup, no personal data stored. Practise until the method is second nature.

Start practising free →