Home › IB Maths AI SL › Exam practice › Statistical Testing

IB Maths AI SL · Unit 4

Statistical Testing: AI SL exam practice with markscheme

Covers chi-squared test for independence; chi-squared goodness-of-fit test. Work through the 10 questions on paper as if it were the exam, then open each solution and mark your work against the markscheme.

10 questions · 43 marks · about 48 minutes · 5 Paper 1 style, 5 Paper 2 style

Download the PDF 6 pages, worked solutions after the questions

Question 1

3 marks · Paper 1 style · calculator allowed

A 3×3 contingency table has a grand total of 150 entries. A χ2 test for independence is conducted. The expected frequency for the cell in the 2nd row and 3rd column is calculated to be 12. Given that the sum of the observed frequencies in the entire 2nd row is 45, find the sum of the observed frequencies in the entire 3rd column.

[3]

Show solution

Expected frequency: E=row total×column totalgrand total
Substitute: 12=45×C3150 M1
Rearrange: C3=12×15045 A1
C3=40 A1

Answer: 40

Question 2

3 marks · Paper 1 style · calculator allowed

A contingency table has 3 rows and 4 columns. The total of row 2 is 60, the total of column 3 is 45 and the grand total is 150.

(a) Find the expected frequency for the cell in row 2, column 3. [2]

(b) Find the number of degrees of freedom. [1]

Show solution

(a)

60×45150 (M1)

18 A1

(b)

(3−1)(4−1)=6 A1

Answer: (a) 18; (b) 6

Question 3

3 marks · Paper 1 style · calculator allowed

A goodness of fit test is carried out on data in 7 categories, using expected frequencies from a given distribution with no parameters estimated.

(a) Write down the number of degrees of freedom. [1]

(b) The p-value is 0.031. State the conclusion at the 5% level and at the 1% level. [2]

Show solution

(a)

6 A1

(b)

5%: reject H0 A1

1%: do not reject H0 A1

Answer: (a) 6

Question 4

4 marks · Paper 1 style · calculator allowed

A χ2 test for independence on a 3×2 table gives χ2=7.21. The test is at the 5% level and the critical value is 5.991.

(a) Write down the number of degrees of freedom. [1]

(b) State the conclusion, giving a reason. [2]

(c) Find the p-value of the test statistic. [1]

Show solution

(a)

(3−1)(2−1)=2 A1

(b)

7.21>5.991 R1

reject H0: the variables are not independent A1

(c)

0.0272 A1

Answer: (a) 2; (c) 0.0272

Question 5

4 marks · Paper 2 style · calculator allowed

The number of accidents at a factory on each weekday over a year is shown. Test at the 5% level whether accidents are equally likely on each day.

DayMonTueWedThuFri
Accidents2820182232

(a) State the hypotheses. [1]

(b) Find the p-value. [2]

(c) State the conclusion. [1]

Show solution

(a)

H0: accidents are equally likely on each day; H1: they are not A1

(b)

expected 24 each (M1)

p=0.225 A1

(c)

0.225>0.05: do not reject H0 R1

Answer: (b) p=0.225

Question 6

5 marks · Paper 1 style · calculator allowed

A university canteen sells baskets of candies. Each basket contains a collectible sticker featuring a famous mathematician. The canteen claims the stickers are distributed according to the following percentages:

Mathematician Euler Pythagoras Lagrange Laplace Fourier
Percentages (%) 50 20 15 10 5

A staff member buys 140 baskets of candy for his students.

  1. Calculate the expected frequency of finding a Pythagoras sticker.

  2. Calculate the expected frequency of finding a Fourier sticker.

  3. State the number of degrees of freedom for a χ2 goodness-of-fit test.

[5]

Show solution
  1. Pythagoras is 20%. Expected =0.20×140. (M1)
    =28 stickers. A1

  2. Fourier is 5%. Expected =0.05×140. (M1)
    =7 stickers. A1

  3. df=5−1=4. A1

Answer: (a) 28; (b) 7; (c) 4

Question 7

5 marks · Paper 2 style · calculator allowed

A die is rolled 120 times to test whether it is fair. A χ2 goodness of fit test is carried out at the 5% level.

Score123456
Frequency152218251723

(a) Write down the expected frequency for each score. [1]

(b) Write down the number of degrees of freedom. [1]

(c) Find the p-value and state the conclusion. [3]

Show solution

(a)

20 A1

(b)

5 A1

(c)

χ2=3.8 (A1)

p=0.579 A1

0.579>0.05: do not reject H0; no evidence the die is biased R1

Answer: (a) 20; (b) 5; (c) p=0.579; no evidence of bias

Question 8

5 marks · Paper 2 style · calculator allowed

A company claims that 50% of its customers choose small, 30% medium and 20% large cups. In a sample of 200 customers, 110 chose small, 50 medium and 40 large.

(a) Find the expected frequencies. [2]

(b) Find the χ2 statistic and the p-value. [2]

(c) State, with a reason, whether the claim is supported at the 5% level. [1]

Show solution

(a)

100, 60 A1

40 A1

(b)

χ2=2.67 A1

p=0.264 A1

(c)

0.264>0.05, so do not reject H0: the data are consistent with the claim R1

Answer: (a) 100, 60, 40; (b) χ2=2.67, p=0.264

Question 9

6 marks · Paper 2 style · calculator allowed

A survey asks 120 people whether they shop mostly online or in shops. The results are shown. A χ2 test for independence is carried out at the 5% significance level.

OnlineIn shops
Under 303822
30 and over2733

(a) Write down the null hypothesis. [1]

(b) Find the expected frequency for under-30s who shop online. [2]

(c) Find the χ2 statistic and the p-value. [2]

(d) State the conclusion of the test. [1]

Show solution

(a)

H0: where people shop is independent of age group A1

(b)

60×65120 (M1)

32.5 A1

(c)

χ2=4.06 A1

p=0.0439 A1

(d)

0.0439<0.05, so reject H0: there is evidence that where people shop depends on age group R1

Answer: (b) 32.5; (c) χ2=4.06, p=0.0439

Question 10

5 marks · Paper 2 style · calculator allowed

200 people were asked which of three films they liked best. The results by gender are shown. A χ2 test for independence is carried out at the 1% significance level.

Film AFilm BFilm C
Group 1253045
Group 2354025

(a) Find the expected frequency for Group 1 and Film C. [2]

(b) Find the p-value. [2]

(c) State the conclusion of the test. [1]

Show solution

(a)

100×70200 (M1)

35 A1

(b)

χ2=8.81 (A1)

p=0.0122 A1

(c)

0.0122>0.01: do not reject H0 at the 1% level R1

Answer: (a) 35; (b) p=0.0122

How the marks work: M marks are for a correct method, A marks for an accurate answer that follows it, R marks for a reason, and AG means the answer is given in the question. A mark in brackets, like (M1), can be implied by later correct work.

Notes, worked examples and more questions on this topic: AI SL Statistical Testing. Previous topic: Sampling Techniques. Next topic: Two-Sample t-Test. Every AI SL topic.

Revise first with the AI SL revision notes, then finish on real papers: IB Maths AI SL past papers.