Home › IB Maths AI HL › Exam practice › Confidence Intervals and Hypothesis Testing for Means

IB Maths AI HL · Unit 4

Confidence Intervals and Hypothesis Testing for Means: AI HL exam practice with markscheme

Covers confidence intervals for a mean (GDC). 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 · 44 marks · about 53 minutes · 3 Paper 1 style, 7 Paper 2 style

Download the PDF 5 pages, worked solutions after the questions

Question 1

2 marks · Paper 2 style · calculator allowed

A 90% confidence interval for a mean is [42.6, 47.8].

Find the sample mean and the margin of error. [2]

Show solution

x¯=45.2 A1

2.6 A1

Answer: 45.2; 2.6

Question 2

3 marks · Paper 2 style · calculator allowed

The masses (g) of eight biscuits are 12.1, 11.8, 12.4, 12.0, 11.6, 12.3, 12.2, 11.9.

Find a 95% confidence interval for the mean mass. [3]

Show solution

t-interval, x¯=12.0375, sn−1=0.2722 M1A1

[11.81, 12.26] A1

Answer: [11.81, 12.26] g

Question 3

3 marks · Paper 2 style · calculator allowed

The lifetimes of 40 bulbs have x¯=1240 hours. The population standard deviation is 85 hours.

Find a 95% confidence interval for the mean lifetime. [3]

Show solution

z-interval M1

1240±1.96×8540 A1

[1214, 1266] A1

Answer: [1214, 1266] hours

Question 4

5 marks · Paper 2 style · calculator allowed

A machine should fill bags with a mean of 500 g. A sample of 10 bags has x¯=496.2 g and sn−1=5.1 g. Test at the 5% level whether the mean is less than 500 g.

Carry out the test. [5]

Show solution

H0:μ=500, H1:μ<500 A1

one-tailed t-test, t=−2.36 M1A1

p=0.0214 A1

p<0.05: reject H0 R1

Answer: t=−2.36, p=0.0214; reject H0

Question 5

5 marks · Paper 2 style · calculator allowed

A teacher claims the mean reading time is 30 minutes. A sample of 12 students has x¯=33.4 and sn−1=6.2. Test at the 10% level whether the mean differs from 30.

Carry out the test. [5]

Show solution

H0:μ=30, H1:μ≠30 A1

t=1.90 A1

two-tailed p=0.0840 M1A1

p<0.10: reject H0 R1

Answer: t=1.90, p=0.0840; reject H0

Question 6

7 marks · Paper 1 style · calculator allowed

A 90% confidence interval for a population mean μ was calculated using a sample of n=25 observations. The population standard deviation σ was unknown, so the t-distribution was used. The calculated interval is: 120.4<μ<129.6.
Determine the exact sample standard deviation (sn−1) that was calculated from the raw data to generate this interval.

[7]

Show solution

Find the sample mean x¯ (midpoint of interval): [M1]
x¯=120.4+129.62=125.0. [A1]
Margin of error: E=129.6−125.0=4.6. [A1]
Margin of error for a t-interval: E=t∗sn−1n, with df=25−1=24. [M1]
For 90% confidence, the area to the left of t∗ is 0.95: InvT(0.95, 24) ⟹t∗=1.71088... [A1]
Set up the equation: 4.6=1.71088×sn−125 [M1]
sn−1=4.6×51.71088=13.4 (13.443...) [A1]

Answer: 13.4

Question 7

3 marks · Paper 2 style · calculator allowed

The lengths of a species of fish are normally distributed with standard deviation 6 cm. A random sample of 25 fish has mean length 48.2 cm. Find a 95% confidence interval for the population mean length.

[3]

Show solution

48.2±1.96×625 (z-interval, σ known) (M1)
(45.8,50.6) A1A1

Answer: (Lower limit) 45.8; (Upper limit) 50.6

Question 8

4 marks · Paper 1 style · calculator allowed

A machine fills bags with flour. The true population standard deviation of the fill weight is known to be σ=4.2 grams. A random sample of 35 bags is taken, and the sample mean weight is x¯=502.5 grams.
Calculate a 95% confidence interval for the true mean weight of the flour bags. Give your limits to 1 decimal place.

[4]

Show solution

Because the population standard deviation (σ) is known, we use a Z-interval. [M1]
Using GDC: STAT → INTR → Z → 1-Sample.
Inputs: C-Level =0.95, σ=4.2, x¯=502.5, n=35. [M1]
Lower Limit =501.108... [A1]
Upper Limit =503.891... [A1]
Interval: (501.1,503.9) to 1 d.p.

Answer: (Lower limit) 501.1; (Upper limit) 503.9

Question 9

5 marks · Paper 2 style · calculator allowed

The masses, in grams, of a random sample of 10 apples from an orchard are
152, 148, 160, 155, 149, 158, 151, 147, 163, 154.
The masses are assumed to be normally distributed.

  1. Find the sample mean and the unbiased estimate of the population standard deviation. [2]

  2. Find a 95% confidence interval for the mean mass of apples from the orchard. [3]

Show solution
  1. x¯=153.7 A1
    sn−1=5.33 A1

  2. t-interval with 9 degrees of freedom (σ unknown) (M1)
    (149.9,157.5) g A1A1

Answer: (Sample mean (g) 153.7; (s (g) 5.33; (Lower limit (g) 149.9; (Upper limit (g) 157.5

Question 10

7 marks · Paper 1 style · calculator allowed

A farmer measures the daily milk yield (in litres) of 5 cows before and after changing their diet. Let d=(After−Before). The differences for the 5 cows are: d1=1.2,d2=0.8,d3=x,d4=1.5,d5=0.5 The farmer runs a paired t-test and finds that the mean difference d¯=1.1.
(a) Find the missing value x. [2 marks]
(b) Calculate the p-value for the test H0:μd=0 vs H1:μd>0. [5 marks]

[7]

Show solution

(a) The mean difference d¯=∑dn:
1.1=1.2+0.8+x+1.5+0.55 [M1]
5.5=4.0+x⟹x=1.5. [A1]
(b) H0:μd=0, H1:μd>0 (right-tailed test).
Put the differences into List 1: 1.2,0.8,1.5,1.5,0.5. [M1]
Run a 1-sample t-test on List 1 with μ0=0, μ>μ0. [M1]
d¯=1.1, sd=0.4416..., df=4. [A1]
GDC: t=5.57 (5.5700...) [A1]
p-value =0.00254 (0.0025449...) [A1]

Answer: (a) 1.5; (b) 0.00254

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 Confidence Intervals and Hypothesis Testing for Means. Previous topic: Chi-Square Goodness of Fit, Independence and Error Types. Next topic: Data Collection and Non-Linear Regression. Every AI HL topic.

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