IB Maths AI HL Hypothesis Testing for Population Parameters Paper 1 & 2 ~9 min read

Hypothesis Testing for Mean (Two Sample)

A two-sample test compares the means of two populations. Same z-vs-t decision as before (variances known → z, unknown → pooled t), but there’s a sharper trap here: when the two samples are actually linked — same people measured twice, or matched pairs — you must run a paired t-test on the differences instead. Spotting “paired vs two-sample” is the marks-deciding skill on this page.

📘 What you need to know

Two-sample: z or t?

Both compare the means of two independent normally distributed populations. As with one sample, the only choice is whether the population variances are given.

Variances known z-test Enter σ1 and σ2. Can use summary stats directly.
Variances unknown pooled t-test Assume equal variances, choose the pooled option, enter the two data lists.

🤔 What does “pooled” mean?

When the variances are unknown but assumed equal, both samples are combined to make one shared estimate of the population variance — a “pooled” estimate. More data behind the estimate gives a more reliable t-test. On the GDC you just tick the Pooled: Yes option.

The steps

🧭 Recipe — two-sample test on the GDC

  1. Hypotheses: H0: μ1 = μ2, then H1. Define each μ clearly (which population is 1, which is 2).
  2. z or t? Variances known → two-sample z; unknown → two-sample t with Pooled: Yes.
  3. Enter data as two lists (or summary stats for a z-test); read the p-value.
  4. Decide & conclude: p < significance level → reject; state in context.
Conclusion wording: with H1: μ1 < μ2, rejecting means “the mean of population 1 is smaller”. With ≠, “the two means are different”. Accepting flips each to “not smaller / not different”. Always name the real populations.

Paired or two-sample?

This is the examiner’s favourite trap. Two columns of data with the same length can look like a two-sample setup, but if each row is the same subject (measured twice, or before/after), it’s paired — and you test the differences.

Telling them apart
TWO-SAMPLE PAIRED Two independent groups (e.g. children vs adults) Compare μ₁ and μ₂ → two-sample pooled t Same subjects, two scores (e.g. French vs Spanish) Test differences μ_D = 0 → one-sample t on d Ask: is each row the SAME individual? Yes → paired · No → two-sample
Same number of values in each group does NOT make it paired — the rows must be the same subjects.

🧠 Paired = “differences become one sample”

For a paired test, compute d = (value A − value B) for each subject, then run a one-sample t-test on the list of d‘s against 0. Keep the subtraction order consistent. You only need the differences to be normally distributed, not the populations.

Worked examples

WE 1–3 use the puzzle-times data (two-sample pooled t). WE 4–5 use the French/Spanish scores (paired t).

WE 1

Two-sample — hypotheses

Children’s and adults’ puzzle times (minutes) are recorded. The creator claims children are faster. A t-test runs at 1%. State the hypotheses.

let μ_C, μ_A = mean times for children, adults “faster” = shorter time → testing μ_C < μ_A (one-tailed). H₀: μ_C = μ_A  H₁: μ_C < μ_A
WE 2

Two-sample — p-value

Variances are unknown. Find the p-value for the test.

variances unknown → two-sample pooled t-test enter the two lists in the GDC, choose Pooled: Yes. p = 0.007259… p = 0.00726 (3sf)
WE 3

Two-sample — conclusion

Is the creator’s claim supported at the 1% level? Give a reason.

compare p with significance level 0.00726 < 0.01 reject H₀ sufficient evidence that children are generally faster than adults — this supports the creator’s claim.
WE 4

Paired — spot it & state hypotheses

Nine students each sit a French and a Spanish test. The head wants to know if there’s a difference in scores between subjects. 10% level. State the hypotheses.

same student does both → paired test let d = French − Spanish; μ_D = mean difference for the population. “a difference” → two-tailed H₀: μ_D = 0  H₁: μ_D ≠ 0
WE 5

Paired — p-value & conclusion

The differences (French − Spanish) are −13, 3, −6, 14, 4, −10, −7, −10, −4. Run a one-sample t-test on these. The GDC gives p = 0.296. Conclude at 10%.

enter the 9 differences as a list → one-sample t p = 0.2958… → 0.296 (3sf) compare with significance level 0.296 > 0.10 accept H₀ insufficient evidence of a difference in scores between French and Spanish.

💡 Top tips

⚠ Common mistakes

Next up — Binomial Hypothesis Testing, where the parameter being tested is a proportion rather than a mean. These tests are always one-tailed, and you’ll meet a new way to decide: the critical region, found with the inverse binomial function.

Need help with Hypothesis Testing for Population Parameters?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →