The Two-Sample t-Test on Your GDC | Applications and Interpretation IB Maths notes

Free preview: The Two-Sample t-Test on Your GDC

Comparing Two Means

Applications and interpretation: SL and HL (SL 4.11)

Let's start with an experiment. A gardener grows 8 plants with fertiliser A and 10 plants with fertiliser B, and measures their heights in cm.

FertiliserHeights (cm)
A25.1, 22.8, 26.4, 24.0, 23.5, 27.2, 21.9, 24.8
B21.4, 23.9, 20.2, 22.7, 24.1, 19.8, 22.0, 23.3, 21.1, 22.6
  • The sample means are 24.46 cm for A and 22.11 cm for B. A looks better.
  • But plants vary. With small samples, a difference of about 2 cm could just be luck.
  • A two-sample t-test asks: is the difference between the sample means big enough to suggest a real difference between the population means?

Hypotheses

  • Let μA and μB be the mean heights of all plants grown with A and with B.
  • H0:μA=μB (no difference).
  • Two-tailed, "the means differ": H1:μA≠μB.
  • One-tailed, "A gives taller plants": H1:μA>μB.
  • Decide the tail from the wording of the question, before you look at the data.

What the test measures

  • The test statistic t compares the difference of the sample means with how much that difference would vary by chance.
  • A big |t| means the gap is large compared with the spread of the data, so it is unlikely to be luck.
  • The GDC turns t into a p-value: the probability of a difference at least this extreme if H0 is true.
  • Small p-value (below the significance level): reject H0.

Conditions

  • Both populations are normally distributed. The test assumes this, and questions usually tell you to assume it.
  • The two samples are independent random samples: different plants, chosen at random.
  • The data are measurements (continuous), not counts in categories. Counts in categories need χ² instead.

💡 In plain words

  • Two separate groups, one measurement each, and a question about their means: think two-sample t-test.
  • The GDC does the calculation. Your job is the hypotheses, the p-value and the conclusion.

✏️ YOUR TURN 1

Try this first:

A farmer claims that a new feed gives a greater mean weight gain for lambs than the old feed. Define the parameters, write the hypotheses, and say which alternative you would choose on the GDC with the new feed as list 1.

Answer:

Answer: let μN and μO be the mean weight gains of all lambs on the new and old feed. H0:μN=μO, H1:μN>μO (one-tailed, because the claim names a direction). On the GDC choose μ1>μ2.

The Two-Sample t-Test on Your GDC

Let's test the fertiliser data at the 5% level, two-tailed.

📝 On your GDC: the two-sample t-test

  1. Put the A heights in list 1 and the B heights in list 2.
  2. Choose your GDC's two-sample t-test tool. Input: Data, with list 1 and list 2 as the samples (frequencies 1).
  3. Choose the alternative to match H1: μ1≠μ2 here.
  4. Pooled: Yes if you are told to assume equal population variances, otherwise No (see the next page).
  5. Calculate. The screen gives t, p, df and the two sample means and standard deviations.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Hypothesis testing (SL 4.11)

  1. The Language of Hypothesis Testing
  2. Chi-Squared Tests for Independence in Contingency Tables
  3. Chi-Squared Goodness of Fit for Uniform, Binomial and Poisson Models
  4. The Two-Sample t-Test on Your GDC

What's inside for this topic

4 teacher notes, 65 practice questions, 33 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Chi-Squared Goodness of Fit for Uniform, Binomial and Poisson Models

All Applications and Interpretation IB Maths topics · IB Maths