Heptavo Get the app

Practice questions · IB Maths AI · SL · 16 marks

4.14 Chi-squared and t-test hypothesis testing

Five IB Maths AI questions on this topic, straight from the Heptavo app: 3 multiple choice and 2 written, climbing from the basics to exam style. Each one comes with its explanation or mark scheme.

Start

Question 1 · Rung 1 · 1 mark

The chi-squared statistic is calculated as

Show the answer and why

Answer: C

Each squared difference is divided by its own expected frequency, so a discrepancy counts for more where fewer observations were expected. Without the squaring the positive and negative differences would cancel to zero every time.

Question 2 · Rung 2 · 1 mark

A contingency table is 3 rows by 4 columns. Find the degrees of freedom.

Show the answer and why

Answer: A

(3 − 1)(4 − 1) = 2 × 3 = 6. The 12 is the number of cells, which is not the degrees of freedom for any table, and 8 subtracts one from the rows but not from the columns.

Question 3 · Rung 3 · 1 mark

Increasing the sample size while keeping the proportions identical will

Show the answer and why

Answer: B

Both observed and expected frequencies scale up, and the statistic scales with them — doubling every frequency doubles χ2\chi^{2}. This is why a large enough sample can make even a trivial association significant.

Question 4 · Rung 4 · 6 marks

A die is rolled 120 times, giving frequencies 15, 25, 18, 22, 20, 20.
(a) State the expected frequency for each face if the die is fair.
(b) Calculate the χ2\chi^{2} statistic.
(c) State the degrees of freedom.

Show the mark scheme
  • (a) 120/6 = 20 for each face (A1)
  • (b) contributions 25/20, 25/20, 4/20, 4/20, 0, 0 (M1)
  • = 1.25 + 1.25 + 0.2 + 0.2 + 0 + 0 (M1)
  • χ2=2.9\chi^{2} = 2.9 (A1)(A1)
  • (c) 6 − 1 = 5 (A1)

What the examiner is looking for

A face matching its expected frequency exactly contributes nothing, which is why two of the six terms vanish. With 5 degrees of freedom the 5% critical value is 11.07, so 2.9 leaves the fair-die hypothesis entirely intact.

Question 5 · Rung 5 · 7 marks

A coin is tossed 100 times, giving 60 heads and 40 tails. A goodness-of-fit test is used to test fairness.
(a) State H0H_{0} and H1H_{1}.
(b) Find the expected frequencies.
(c) Calculate the χ2\chi^{2} statistic.
(d) Given a 5% critical value of 3.841 with 1 degree of freedom, state the conclusion.

Show the mark scheme
  • (a) H0H_{0}: the coin is fair; H1H_{1}: the coin is not fair (A1)(A1)
  • (b) 50 heads and 50 tails (A1)
  • (c) (60−50)2/50+(40−50)2/50(60 - 50)^{2}/50 + (40 - 50)^{2}/50 (M1)
  • = 100/50 + 100/50 = 4 (A1)
  • (d) 4 > 3.841, so reject H0H_{0} (M1)
  • there is evidence at the 5% level that the coin is biased (A1)

What the examiner is looking for

The verdict is marginal — 4 against 3.841 — and a candidate should say so rather than overclaim. With 55 heads the statistic would be 1 and the same coin would pass, which shows how much a borderline result depends on a handful of tosses.

Your score

0/16

Answer the questions above and your marks add up here.

Heptavo has 55 questions on 4.14 Chi-squared and t-test hypothesis testing: 26 multiple choice and 29 written, each with its mark scheme. Free to start.

Practise 4.14 in Heptavo

What 4.14 asks

Hypothesis testing with χ² tests and the t-test; questions ask you to state hypotheses, find expected frequencies and degrees of freedom, obtain a p-value and conclude in context.

You need to be able to

  • Write H₀ and H₁ in words for the context.
  • Find expected frequencies as row total × column total ÷ grand total, with (r − 1)(c − 1) degrees of freedom for independence and k − 1 for a goodness of fit test.
  • Compare the p-value with the significance level and conclude in context, without claiming H₀ is proved.

Key terms

  • null hypothesis
  • alternative hypothesis
  • p-value
  • significance level
  • degrees of freedom
  • expected frequency

Common trap Writing that H₀ is accepted or proved; you either reject H₀ or have insufficient evidence to reject it.

Formulas for 4.14