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

IB Maths AI HL · Unit 4

Statistical Testing: AI HL 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 · 35 marks · about 42 minutes · 1 Paper 1 style, 9 Paper 2 style

Download the PDF 5 pages, worked solutions after the questions

Question 1

1 mark · Paper 1 style · calculator allowed

A contingency table has 3 rows and 4 columns.

Find the number of degrees of freedom for a test of independence. [1]

Show solution

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

Answer: 6

Question 2

2 marks · Paper 2 style · calculator allowed

The number of goals per match in 100 matches is recorded and tested for a Poisson fit with mean 1.5. The χ2 statistic is 3.82 with 3 degrees of freedom.

Find the p-value and state the conclusion at the 5% level. [2]

Show solution

p=0.282 A1

p>0.05: Poisson model fits R1

Answer: p=0.282; the Poisson model fits

Question 3

2 marks · Paper 2 style · calculator allowed

In a test of independence, one expected frequency is 3.2.

Explain why this is a problem and how it could be dealt with. [2]

Show solution

expected frequencies should be at least 5 R1

combine rows or columns A1

Answer: a proof: the worked solution above is the full answer

Question 4

2 marks · Paper 2 style · calculator allowed

A goodness-of-fit test has 5 categories and one parameter estimated from the data.

Find the number of degrees of freedom. [2]

Show solution

5−1−1 M1

3 A1

Answer: 3

Question 5

4 marks · Paper 2 style · calculator allowed

The 2×2 table shows whether 120 patients improved after a new drug or a placebo. Test at the 1% level.

ImprovedNot improved
Drug4218
Placebo2832

Carry out the test. [4]

Show solution

H0: improvement independent of treatment A1

χ2=6.72, df=1 A1

p=0.00953 A1

p<0.01: reject H0 R1

Answer: χ2=6.72, p=0.00953; reject H0

Question 6

5 marks · Paper 2 style · calculator allowed

A survey of 150 people records whether they prefer tea or coffee, by age group. Test at the 5% level whether preference is independent of age.

Under 3030 to 50Over 50
Tea182230
Coffee322820

Carry out the test. [5]

Show solution

H0: preference is independent of age A1

df=2 A1

χ2=6.00 A1

p=0.0498 A1

p<0.05: reject H0 R1

Answer: χ2=6.00, p=0.0498; reject H0

Question 7

4 marks · Paper 2 style · calculator allowed

A population is normally distributed with a known standard deviation of σ=12. A researcher wishes to estimate the population mean, μ, using a 95% confidence interval.

Determine the minimum sample size, n, required to ensure that the margin of error is no more than 3.

[4]

Show solution

For a 95% confidence interval, the z-critical value is approximately 1.96. M1
Margin of error formula: E=z×σn⟹3=1.96×12n. M1
n=1.96×123=1.96×4=7.84. A1
n=7.842≈61.46.
Since n must be an integer, the minimum sample size is 62. A1

Answer: 62

Question 8

5 marks · Paper 2 style · calculator allowed

A spinner is supposed to land on A, B, C, D with probabilities 0.4, 0.3, 0.2, 0.1. In 200 spins the results are 72, 66, 40, 22. Test at the 5% level.

Carry out the test. [5]

Show solution

expected 80, 60, 40, 20 A1

df=3 A1

χ2=1.6 A1

p=0.659 A1

do not reject H0 R1

Answer: χ2=1.6, p=0.659; do not reject

Question 9

4 marks · Paper 2 style · calculator allowed

A random sample of 50 students from a large university was surveyed about their weekly study hours. The sample mean was 18.5 hours with a sample standard deviation of 4.2 hours.

Calculate a 95% confidence interval for the true mean study hours of all students at the university.

[4]

Show solution

Since population standard deviation is unknown, we use a t-distribution. M1
Using GDC to compute T-Interval (Stats):
x¯=18.5, s=4.2, n=50, C-Level = 0.95. M1
Lower bound ≈17.3 A1
Upper bound ≈19.7 A1
Interval is (17.3,19.7).

Answer: (Lower limit) 17.3; (Upper limit) 19.7

Question 10

6 marks · Paper 2 style · calculator allowed

A manufacturer claims that the mean breaking strength of their cables is 50 kg. A skeptic believes it is greater, setting up hypotheses H0:μ=50 and H1:μ>50. The breaking strength is known to be normally distributed with a standard deviation of 8 kg. A random sample of 30 cables is tested. The skeptic decides to reject H0 if the sample mean, x¯, is greater than 53 kg.

  1. State the distribution of the sample mean, X¯, assuming H0 is true.
  2. Calculate the probability of making a Type I error with this test.

[6]

Show solution
  1. The population is normal, so the sample mean of n=30 cables is exactly normal with variance σ2n:
    X¯∼N(50,8230), so the mean is 50 and the variance is 3215≈2.13. A1A1
  2. Type I error occurs when H0 is rejected while true.
    P(Type I Error)=P(X¯>53|μ=50). M1
    Using Normal CDF on GDC with lower = 53, upper = ∞, μ=50, σ=830≈1.4606. M1A1
    Probability =0.019990…≈0.0200 (3 s.f.) (or 2.00%). A1

Answer: (a) mean of X̄ (kg) 50; (a) variance of X̄ (kg²) 32/15; (b) 0.0200

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 HL Statistical Testing. Previous topic: Sampling Techniques. Next topic: Two-Sample t-Test. Every AI HL topic.

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