Specialist Mathematics topic guides All topics

Unit 4 · Topic 5.2 · Statistical inference

Confidence intervals

A confidence interval turns one sample into a range of likely values for the population mean. It builds on Topic 5.1, Sample means. The interval is centred on $\bar x$, and its width comes from $\frac{s}{\sqrt n}$, the same spread you used for sample means. Tick off each skill once you can do it without help.

Skills in this topic

Only tick a skill when you could do it in an exam.

Explain what a confidence level means, and how the width of an interval depends on $n$ and the confidence level. Part 1
Calculate a confidence interval and use it to judge a claim. Part 2
Find an unknown sample mean, sample size or $z$-value from a confidence interval. Part 3

Part 1

What a confidence interval is

A sample mean $\bar x$ is a point estimate of $\mu$. It is almost never exactly right, so you give a range of values instead. That range is an interval estimate, called a confidence interval. It is centred on $\bar x$ and is likely to contain $\mu$.

In Methods you built confidence intervals for a proportion. In Specialist you build them for a mean, and the formula has the same shape:

$$\left(\bar x-z\frac{s}{\sqrt n},\ \bar x+z\frac{s}{\sqrt n}\right)$$

The margin of error is half the width of the interval:

$$E=z\frac{s}{\sqrt n}$$

Use the sample standard deviation $s$ unless the question tells you to use the population standard deviation $\sigma$. The value of $z$ depends on the confidence level:

Confidence level90%95%99%
$z$$1.645$$1.96$$2.576$

Learn 1.96 by heart. Marking guides also accept 1.64 or 1.65 for 90% and 2.58 for 99%. On Technology-free papers the question usually gives you a friendlier value, such as $z=2$. On Technology-active papers, your calculator's one-sample z interval does the whole calculation.

What the confidence level means

If you took many samples and built a 95% interval from each one, about 95% of the intervals would contain $\mu$. Any one interval either contains $\mu$ or it doesn't. The interval is always centred on $\bar x$, so $\bar x$ is always inside it, but $\mu$ might not be.

The width is $2z\frac{s}{\sqrt n}$. Raising the confidence level raises $z$ and widens the interval, while a larger sample makes it narrower. Multiplying $n$ by 4 halves the width.

The idea

Twenty samples, one population mean

Practise

Exam questions: what a confidence interval tells you

2022 Paper 1, Question 2

Multiple choice · Technology-free · [1 mark]

Which statement regarding sample means is true?

$\bar x$ is a statistic, so it changes from one sample to the next. $\mu$ is a parameter of the population, so it stays fixed, which rules out (D).

$X$ can have any distribution, which rules out (A). $\bar X$ is only normal when the population is normal, and only approximately normal when $n\ge30$, which rules out (B).

Answer
(C)

2022 Paper 1, Question 5

Multiple choice · Technology-free · [1 mark]

Four random samples of different sizes were taken to estimate a certain population mean, given a known population standard deviation. A 95% confidence interval was calculated for each sample.

Sample 1Sample 2Sample 3Sample 410152025303540

Which sample used the largest sample size?

The standard deviation and the confidence level are the same for all four samples, so the width $2z\frac{\sigma}{\sqrt n}$ only changes with $n$. The largest sample gives the narrowest interval.

Sample 1 runs from about 21 to 24.6, a width of about 3.6. The other three are all wider.

Answer
(A)

2023 Paper 1, Question 5

Multiple choice · Technology-free · [1 mark]

A confidence interval for a parameter is a range of values within which the

Every confidence interval is centred on the sample estimate, $\bar x$, so the sample estimate is always inside it.

(C) is tempting, but some intervals miss the parameter, as the animation above shows. Most intervals do contain it, which rules out (D).

Answer
(A)

2024 Paper 1, Question 1

Multiple choice · Technology-free · [1 mark]

Repeated random samples will be used to calculate a large number of 90% confidence intervals for a population mean $\mu$.

Which statement best describes the possible outcomes?

Each interval either contains $\mu$ or it doesn't. Over a large number of intervals the proportion that contain $\mu$ is close to 90%, but random sampling means it won't be exactly 90%.

Answer
(A)

2021 Paper 1, Question 7

Multiple choice · Technology-free · [1 mark]

The mass of a particular variety of cake is claimed to be normally distributed with a mean of 660 grams. A random sample of five of these cakes is found to have a mean mass of 600 grams.

Which option represents an approximate confidence interval for $\mu$ based on this sample?

(A)
600660grams
(B)
600660grams
(C)
600660grams
(D)
600660grams

A confidence interval is centred on the sample mean, 600 g. The claimed mean of 660 g plays no part in building it.

Only (B) is centred on 600. In (A), 600 is the upper end, and in (C) it is the lower end.

Answer
(B)

2021 Paper 2, Question 1

Multiple choice · Technology-active · [1 mark]

The time taken to complete orders at a pizza store is normally distributed with a mean time $(\mu)$ of 10 minutes.

The owner of the pizza store records the time taken to complete orders for a random sample of 20 pizzas each day over a 30-day period. From this data, an approximate 90% confidence interval for $\mu$ is calculated at the end of each day.

How many of these confidence intervals would be expected to contain $\mu$?

Each day gives one 90% interval, so about 90% of the 30 intervals should contain $\mu$.

$$0.9\times30=27$$

Answer
(C)

2021 Paper 2, Question 10

Multiple choice · Technology-active · [1 mark]

A random variable is normally distributed with a mean $\mu$. An approximate 95% confidence interval for $\mu$ from a sample from this distribution is $(209.7,\ 221.9)$.

An approximate confidence interval for $\mu$ based on the same sample, using a confidence level greater than 95%, could be

The sample is the same, so the centre stays at $\bar x$:

$$\bar x=\frac{209.7+221.9}{2}=215.8$$

A higher confidence level uses a larger $z$, so the interval is wider. (B) is centred on 215.8 and is wider than the original. (A) is centred on 214.9, (C) is narrower and (D) is centred on 221.9.

Answer
(B)

2020 Paper 1, Question 9

Multiple choice · Technology-free · [1 mark]

The scores on a test are assumed to be normally distributed.

Researchers use the results from a random sample of scores to calculate a confidence interval for the population mean. However, a shorter confidence interval width is required so the researchers decide to use a second sample for their calculations.

Assuming that the standard deviations for both samples are the same, the researchers can ensure that a shorter confidence interval width is produced by

The width is $2z\frac{s}{\sqrt n}$. A larger $n$ makes it shorter. A lower confidence level gives a smaller $z$, which also makes it shorter. Doing both is the only option that guarantees a shorter interval.

Answer
(C)

Part 2

Calculating intervals and judging claims

To check a claimed value of $\mu$, build the interval and see whether the claimed value is inside it. If it is inside, the claim is reasonable. If it is outside, the claim is not reasonable, or at least there is reason to doubt it. Quote the interval and the claimed value in your answer, because the reasoning mark depends on them.

Try it

This uses the smartphones in 2024 Paper 2, Question 11: $\bar x=9.31$ hours and $s=0.52$ hours, with a claimed mean of 9.5 hours. Change the confidence level and the sample size, and watch whether the interval reaches the claim.

claim 8.89.09.29.49.69.8

The claimed 9.5 hours is inside this interval, so this interval supports the claim.

The claimed 9.5 hours is outside this interval, so this interval doesn't support the claim.

At $n=40$, the 95% and 99% intervals are parts a) and b) of the question.

Practise

Exam questions: calculating confidence intervals

2024 Paper 2, Question 2

Multiple choice · Technology-active · [1 mark]

Rounded to two decimal places, the $z$-value used in the calculation of an approximate 95% confidence interval for $\mu$ is

The middle 95% of the standard normal distribution lies between $-z$ and $z$, which leaves 2.5% in each tail.

$$P(Z\le z)=0.975$$

$$z\approx1.96$$

Answer
(C)

2025 Paper 1, Question 14

Short response · Technology-free · [5 marks]

A factory produces cans of juice. Each can has a labelled volume of 500 mL.

The factory manager conducted a random sample of 100 cans to assess whether the labelled volume was being met satisfactorily in production.

The mean volume of the sample was 498.9 mL with a sample standard deviation of 4.0 mL.

a)Based on this sample and using a $z$-value of 2, determine an approximate confidence interval for the population mean volume.[3 marks]

Industry regulation requires that the mean volume must meet or exceed the labelled volume.

b)Use your result from Question 14a) to state whether the current production meets the regulation. Justify your decision using mathematical reasoning.[2 marks]

Part a)

$$n=100,\quad\bar x=498.9,\quad s=4.0,\quad z=2$$

1 markCorrectly translates given information into relevant variables.

$$\left(498.9-2\times\frac{4}{\sqrt{100}},\ 498.9+2\times\frac{4}{\sqrt{100}}\right)$$

1 markSubstitutes into confidence interval formula.

$$=(498.9-0.8,\ 498.9+0.8)$$

$$=(498.1,\ 499.7)\text{ mL}$$

1 markDetermines required confidence interval.

Part b)

The labelled volume of 500 mL is above the upper end of the interval, 499.7 mL.

1 markDiscusses the labelled juice volume in relation to the confidence interval values.

So the current production does not meet the regulation.

1 markComments on the reasonableness of the current production.

This is Technology-free, so the numbers are chosen to be friendly: $\sqrt{100}=10$ and $z=2$. Saying the whole interval lies below 500 mL also gets the first mark of part b).

Answer
a) $(498.1,\ 499.7)$ mL, b) it does not meet the regulation

2024 Paper 2, Question 11

Short response · Technology-active · [4 marks]

A company claims that the mean battery life of their latest model of smartphone is 9.5 hours.

To test this claim, the battery lives of a random sample of 40 of the smartphones were measured.

A sample mean of 9.31 hours and a standard deviation of 0.52 hours were calculated from this data.

a)Determine an approximate 95% confidence interval for $\mu$. Give your answer to at least two decimal places.[1 mark]
b)Determine an approximate 99% confidence interval for $\mu$. Give your answer to at least two decimal places.[1 mark]

A manager comments that either confidence interval could be used to support the company's claim.

c)Use your results from Questions 11a) and 11b) to evaluate the reasonableness of the manager's comment. Justify your decision using mathematical reasoning.[2 marks]

Part a)

$$n=40,\quad\bar x=9.31,\quad s=0.52,\quad z=1.96$$

$$\text{CI}\approx(9.15,\ 9.47)\text{ hours}$$

1 markCorrectly calculates 95% confidence interval to at least two decimal places.

Part b)

$$z=2.576$$

$$\text{CI}\approx(9.10,\ 9.52)\text{ hours}$$

1 markCorrectly calculates 99% confidence interval to at least two decimal places.

Part c)

The 95% interval doesn't contain the claimed 9.5 hours, but the 99% interval does.

1 markJustifies decision using mathematical reasoning.

So the manager's comment is not reasonable. Only the 99% interval supports the claim.

1 markProvides appropriate statement of reasonableness.

Your calculator's one-sample z interval does parts a) and b) directly. Enter 0.52 where it asks for the standard deviation. The statement in part c) only gets its mark if it follows from your reasoning about both intervals.

Answer
a) $(9.15,\ 9.47)$, b) $(9.10,\ 9.52)$, c) not reasonable

2023 Paper 2, Question 13

Short response · Technology-active · [4 marks]

The wait time for customers put on hold when calling complaint departments is assumed to be normally distributed. A company claims that the mean wait time for their customers is 7.6 minutes.

The following data represents the wait time (minutes) from a random sample of 12 customers who called the complaint department of this company.

$8.3$$12.7$$9.1$$7.3$$10.3$$5.4$$8.5$$10.7$$6.9$$12.5$$7.2$$11.9$
a)Determine the mean of this data.[1 mark]

The standard deviation of this data is calculated to be 2.384 minutes.

b)Use an approximate 95% confidence interval for the mean to evaluate the reasonableness of the company's claim. Justify your decision using mathematical reasoning.[3 marks]

Part a)

$$\bar x=\frac{110.8}{12}\approx9.23\text{ minutes}$$

1 markCorrectly determines the mean of the data.

Part b)

$$\bar x\pm1.96\times\frac{2.384}{\sqrt{12}}$$

$$\text{CI}\approx(7.88,\ 10.58)\text{ minutes}$$

1 markCalculates 95% confidence interval.

The company's claim is not reasonable.

1 markStates an appropriate evaluation of the reasonableness of the claim.

The claimed mean of 7.6 minutes lies below the lower end of the interval, 7.88 minutes.

1 markUses mathematical reasoning to justify the decision.

The guide also accepts $(7.9,\ 10.6)$ from using $z=2$. With only 12 customers, this interval relies on the wait times being normally distributed, which the question tells you to assume.

Answer
a) $9.23$ minutes, b) $(7.88,\ 10.58)$, so the claim is not reasonable

2022 Paper 2, Question 5

Multiple choice · Technology-active · [1 mark]

A random sample of the petrol price per litre at 50 petrol stations produced a sample mean of $\text{\textdollar}1.52$ and a standard deviation of $\text{\textdollar}0.14$.

Based on this sample and using a $z$-value of 1.5, an approximate confidence interval for $\mu$ is

$$E=1.5\times\frac{0.14}{\sqrt{50}}\approx0.0297$$

$$(1.52-0.03,\ 1.52+0.03)=(1.49,\ 1.55)$$

Answer
(C)

2020 Paper 2, Question 7

Multiple choice · Technology-active · [1 mark]

The heights of all students at a school were measured. A mean height of 157.0 cm was calculated from this data.

A random sample of 35 students from this school was selected. The mean height of this sample was 159.7 cm with a standard deviation of 8.7 cm.

The smallest confidence level that could be used to produce a confidence interval that contains $\mu$, based on this sample, is

157.0 cm is the mean of every student at the school, so $\mu=157.0$. The interval has to reach from 159.7 down to 157.0.

$$z\times\frac{8.7}{\sqrt{35}}\ge159.7-157.0$$

$$z\ge\frac{2.7}{1.4706}\approx1.836$$

$$P(-1.836\lt Z\lt1.836)\approx0.934$$

So the confidence level must be at least 93.4%. Of the options, 85% and 90% are too small, and 95% is the smallest that works.

Answer
(C)

2020 Paper 2, Question 10

Multiple choice · Technology-active · [1 mark]

The time taken by the Year 7 students at a particular school to complete a standardised test is known to be normally distributed. A researcher claims that the population mean is 8.2 minutes.

The mean time taken to complete this test by a sample of 10 of these students is 8.1 minutes with a standard deviation of 1.2 minutes.

The 95% confidence interval for $\mu$ based on this sample is

$$E=1.96\times\frac{1.2}{\sqrt{10}}\approx0.744$$

$$(8.1-0.744,\ 8.1+0.744)\approx(7.36,\ 8.84)$$

The interval is centred on the sample mean, 8.1. (B) and (D) are centred on the claimed 8.2, and (C) divides by $10$ in place of $\sqrt{10}$.

Answer
(A)

Part 3

Finding unknowns

Work backwards from the interval $(a,b)$. Its centre is $\bar x$ and half its width is $E$:

$$\bar x=\frac{a+b}{2}\qquad E=\frac{b-a}{2}$$

Then solve $E=z\frac{s}{\sqrt n}$ for whichever of $z$, $s$ or $n$ is missing. Round a sample size to a whole number.

Practise

Exam questions: finding unknown values

2025 Paper 1, Question 9

Multiple choice · Technology-free · [1 mark]

An approximate confidence interval for a population mean is calculated based on a sample size of 16 and is found to have width, $w$.

A second confidence interval is calculated from another sample with the same sample standard deviation.

Given that the same $z$-value was used for both intervals and the width of the second interval is $2w$, what is the size of the second sample?

The width is $2z\frac{s}{\sqrt n}$. With $z$ and $s$ unchanged, doubling the width means halving $\sqrt n$.

$$\sqrt{n_2}=\frac{\sqrt{16}}{2}=2$$

$$n_2=4$$

Answer
(B)

2025 Paper 2, Question 9

Multiple choice · Technology-active · [1 mark]

The masses (grams) of a random sample of 40 chocolate muffins produced by a local bakery are recorded.

Using the sample standard deviation of 0.845 grams, an approximate confidence interval for the population mean mass of chocolate muffins produced by this bakery is $(149.68,\ 150.12)$ grams.

The $z$-value used in this calculation is

$$E=\frac{150.12-149.68}{2}=0.22$$

$$z\times\frac{0.845}{\sqrt{40}}=0.22$$

$$z\approx1.65$$

This is the $z$-value for a 90% interval.

Answer
(B)

2024 Paper 2, Question 8

Multiple choice · Technology-active · [1 mark]

$T$ is a random variable. A random sample of four values of $T$ is collected and used to produce an approximate confidence interval for the population mean of $(3.3,\ 4.1)$.

Given that three of the sample values are 3.4, 3.6 and 3.9, the remaining sample value is

The centre of the interval is the sample mean.

$$\bar t=\frac{3.3+4.1}{2}=3.7$$

$$3.4+3.6+3.9+t=4\times3.7=14.8$$

$$t=3.9$$

Answer
(D)

2021 Paper 2, Question 12

Short response · Technology-active · [6 marks]

The life span of batteries manufactured by a company is assumed to be normally distributed with an unknown mean and standard deviation.

A supervisor at the company randomly selects $n$ batteries and uses the life spans from this sample to calculate an approximate 95% confidence interval for the population mean of $(2321.4,\ 2423.6)$ hours.

a)Determine the mean life span for this sample of batteries.[1 mark]

The standard deviation of the life spans of batteries in this sample is 125 hours.

b)Determine $n$.[3 marks]
c)Use the result from Question 12b) to explain whether the assumption that the life span of batteries is normally distributed is required to support the supervisor's calculations.[2 marks]

Part a)

$$\bar x=\frac{2321.4+2423.6}{2}=2372.5\text{ hours}$$

1 markCorrectly determines the mean lifetime of the sample.

Part b)

Use the upper end of the interval.

$$2372.5+1.96\times\frac{125}{\sqrt n}=2423.6$$

1 markDetermines an equation in terms of $n$.

$$\sqrt n\approx4.79$$

$$n\approx22.98$$

1 markSolves equation for $n$.

The sample used 23 batteries.

1 markExpresses sample size rounded to a whole number.

Part c)

Yes, the assumption is required.

1 markMakes a suitable statement.

The sample size is less than 30, so the distribution of the sample mean can't be assumed to be normal unless the population is normal.

1 markDiscusses the sample size and its relation to a normal distribution.
Answer
a) $2372.5$ hours, b) $n=23$, c) yes, because $n\lt30$

2022 Paper 2, Question 13

Short response · Technology-active · [5 marks]

An article claims that the mean starting salary of graduates in Australia is currently $\text{\textdollar}64\,800$ with a standard deviation of $\text{\textdollar}4500$.

To check the validity of this claim, an employment agent intends to collect data on the starting salaries of a random sample of 360 graduates.

a)Determine the probability that the sample mean starting salary will be between $\text{\textdollar}64\,000$ and $\text{\textdollar}65\,000$.[2 marks]

From the data, the agent calculates a confidence interval for the population mean starting salary of $(\text{\textdollar}64\,589,\ \text{\textdollar}65\,811)$.

b)Determine the sample mean.[1 mark]
c)Comment on the reasonableness of the article's claim based on this confidence interval.[2 marks]

Part a)

$n=360\ge30$, so $\bar X$ is approximately normal.

$$\mu_{\bar X}=64\,800$$

$$\sigma_{\bar X}=\frac{4500}{\sqrt{360}}\approx237.2$$

1 markCorrectly calculates $\sigma_{\bar X}$.

$$P(64\,000\le\bar X\le65\,000)\approx0.80$$

1 markCalculates required probability.

Part b)

$$\bar x=\frac{64\,589+65\,811}{2}=65\,200$$

1 markCorrectly determines the value of $\bar x$.

Part c)

The claimed mean of $\text{\textdollar}64\,800$ lies inside the interval $(\text{\textdollar}64\,589,\ \text{\textdollar}65\,811)$.

1 markCorrectly recognises that the population mean lies within the confidence interval.

So the article's claim is reasonable.

1 markCorrectly evaluates the reasonableness of the claim using a suitable comment.

Part a) is about the sample mean before any data is collected, so it uses the claimed $\mu$ and $\sigma$. Parts b) and c) use the interval the agent calculated afterwards.

Answer
a) $\approx0.80$, b) $\text{\textdollar}65\,200$, c) the claim is reasonable

2022 Paper 2, Question 17

Short response · Technology-active · Complex familiar · [6 marks]

The mass of a population of elephants is known to be normally distributed.

A biologist randomly selects a number of elephants from this population and measures their masses. The mean mass of the sample is 5206 kg with a standard deviation of 356 kg.

The biologist uses the data to calculate a 90% confidence interval for the population mean mass of $(5159.1,\ 5252.9)$ kg.

Determine a 99% confidence interval for the population mean mass based on the same data.

The sample size isn't given. Find it from the 90% interval, then use it for the 99% interval.

$$\bar x=5206,\quad s=356,\quad z_{90\%}=1.645$$

1 markCorrectly determines the required value of $z$ for a 90% CI.

$$5206-1.645\times\frac{356}{\sqrt n}=5159.1$$

1 markEstablishes an equation in terms of $n$.

$$n\approx155.9$$

1 markSolves the equation to determine $n$.

The sample has 156 elephants.

1 markRounds $n$ to an integer value.

$$5206\pm2.576\times\frac{356}{\sqrt{156}}$$

$$\text{CI}\approx(5132.6,\ 5279.4)\text{ kg}$$

1 markDetermines a 99% confidence interval.

Define each value before you use it, and link the steps with short statements such as "solving for $n$".

1 markShows logical organisation communicating key steps.

The guide accepts $n=155$ or $157$ as well, and the matching intervals. The 99% interval is wider than the 90% one and has the same centre, which is a quick check on your answer.

Answer
$(5132.6,\ 5279.4)$ kg

The full walkthrough of 2022 Paper 2, Question 17 goes through it mark by mark.

Practise

Exam questions: modelling with confidence intervals

2025 Paper 2, Question 17

Short response · Technology-active · Complex unfamiliar · [5 marks]

A variable, $X$, is assumed to be normally distributed with $\mu=24.311$ and $\sigma=5.102$.

Two 90% confidence intervals for $\mu$ were calculated from two different random samples from $X$, with the second sample being smaller than the first sample by 60.

Both confidence intervals were calculated using the population standard deviation rather than their respective sample standard deviations.

The confidence interval produced from the first sample was $(23.560,\ 25.498)$.

Determine the probability that the confidence interval produced from the second sample overlaps the confidence interval from the first sample.

Start with the first interval. Its centre is the first sample mean, and half its width is the margin of error.

$$\bar x_1=\frac{23.560+25.498}{2}=24.529$$

$$E_1=25.498-24.529=0.969$$

1 markCorrectly determines the margin of error for the CI from the first sample.

$$1.645\times\frac{5.102}{\sqrt{n_1}}=0.969$$

$$n_1\approx75$$

1 markDetermines first sample size.

$$n_2=75-60=15$$

$$E_2=1.645\times\frac{5.102}{\sqrt{15}}\approx2.167$$

1 markDetermines the margin of error for the CI from the second sample.

The second interval overlaps the first when its centre is within $E_2$ of the first interval.

$$23.560-2.167\le\bar x_2\le25.498+2.167$$

$$21.393\le\bar x_2\le27.665$$

1 markDetermines range of values of second sample mean that allows the second CI to overlap the first CI.

For samples of 15, the sample mean is normal because $X$ is normal.

$$\bar X_2\sim N\left(24.311,\ \left(\frac{5.102}{\sqrt{15}}\right)^2\right)$$

$$P(21.393\le\bar X_2\le27.665)\approx0.98$$

1 markDetermines probability that the CI from the second sample overlaps the CI from the first sample.

The second interval is about twice as wide as the first, because the second sample is much smaller. This question is worked step by step in the complex unfamiliar collection.

Answer
$\approx0.98$

2023 Paper 2, Question 19

Short response · Technology-active · Complex unfamiliar · [7 marks]

The height of Year 9 students at a school is assumed to be normally distributed with a population mean height of $\mu$ cm.

A teacher at the school measured the height of all the students in her Year 9 class. This data was used to calculate an approximate 95% confidence interval for $\mu$ of $(163.7,\ 166.9)$ cm.

The teacher repeated the procedure using data from another Year 9 class. Although this class had the same number of students, its data produced an approximate 95% confidence interval for $\mu$ of $(167.8,\ 172.4)$ cm.

Using the same data, the teacher recalculated the approximate confidence intervals for $\mu$ for each class using a confidence level of $x\%$. She observed that the upper bound of the confidence interval from her Year 9 class now equalled the lower bound of the confidence interval from the other Year 9 class.

Determine the value of $x$. Give your answer rounded to one decimal place.

$$z_{95\%}=1.96$$

1 markCorrectly determines the $z$-score associated with a 95% CI.

$$\bar x_1=\frac{163.7+166.9}{2}=165.3$$

$$\bar x_2=\frac{167.8+172.4}{2}=170.1$$

1 markCorrectly determines the sample means for each class.

Both classes have the same $n$, so write each margin of error in terms of $\frac{s}{\sqrt n}$.

$$1.96\frac{s_1}{\sqrt n}=1.6$$

$$\frac{s_1}{\sqrt n}\approx0.816$$

1 markDetermines a relationship between the sample standard deviation and the sample size for the teacher's class.

$$1.96\frac{s_2}{\sqrt n}=2.3$$

$$\frac{s_2}{\sqrt n}\approx1.173$$

1 markDetermines a relationship between the sample standard deviation and the sample size for the other class.

With a new $z$-value, $z_x$, the upper end for the teacher's class equals the lower end for the other class.

$$165.3+0.816z_x=170.1-1.173z_x$$

1 markDetermines two expressions in terms of the $z$-score associated with the new CIs using the data from the two classes.

$$z_x=\frac{4.8}{1.990}\approx2.412$$

1 markDetermines the $z$-score associated with the new CI calculations.

$$P(-2.412\lt Z\lt2.412)\approx0.984$$

So $x=98.4$.

1 markDetermines the confidence level for the new CI calculations, rounded to one decimal place.

The guide also accepts 98.3 from early rounding. You never need $n$ or either $s$ on its own. This question is worked step by step in the complex unfamiliar collection.

Answer
$x=98.4$

2020 Paper 2, Question 18

Short response · Technology-active · Complex unfamiliar · [6 marks]

The mass of a certain species of kangaroo is known to be normally distributed with a mean mass of $\mu$ kg and standard deviation of $\sigma$ kg.

When one of the kangaroos is randomly selected, the probability that its mass is greater than 83.2 kg is 0.145.

When a sample of 12 kangaroos is randomly selected, the probability that the sample mean mass is less than 74.1 kg is 0.079.

A 90% approximate confidence interval for $\mu$ is calculated using a random sample of $n$ of the kangaroos that has a sample mean mass of 79.1 kg and a sample standard deviation equal to $\sigma$.

Determine the possible range of values that $n$ could have been, given that the confidence interval did not contain $\mu$.

Use the two probabilities to find $\mu$ and $\sigma$.

$$P(X\gt83.2)=0.145$$

$$\frac{83.2-\mu}{\sigma}=1.058\quad(1)$$

1 markCorrectly uses the sample of 1 to determine an equation in terms of $\mu$ and $\sigma$.

$$P(\bar X\lt74.1)=0.079$$

$$\frac{74.1-\mu}{\sigma/\sqrt{12}}=-1.412\quad(2)$$

1 markCorrectly uses the sample of 12 to determine an equation in terms of $\mu$ and $\sigma$.

$$\mu\approx76.63,\quad\sigma\approx6.21$$

1 markSolves simultaneous equations to determine the values of $\mu$ and $\sigma$.

$\bar x=79.1$ is above $\mu$, so the interval misses $\mu$ when its lower end is above 76.63. Find where the lower end equals $\mu$.

$$79.1-1.645\times\frac{6.21}{\sqrt n}=76.63$$

$$n\approx17.1$$

1 markDetermines solution of $n$.

A larger $n$ makes the interval narrower, which pushes its lower end up. So the interval misses $\mu$ when $n\ge18$, with $n$ a whole number.

1 markEvaluates the reasonableness of the solution to the equation to determine suitable integer values of $n$.

Label each equation and say which sample it comes from, so the marker can follow your steps.

1 markShows logical organisation communicating key steps.

The guide uses $z=1.64$, which gives the same range. This question is worked step by step in the complex unfamiliar collection.

Answer
$n\ge18$, $n\in\mathbb Z$

Game plan

Confidence interval game plan

For the whole topic on one page, see Game plan 9 · Statistical inference in the External Game plan.

  1. 1Write down $\bar x$, $s$, $n$ and the confidence level.
  2. 2Find $z$: 1.645 for 90%, 1.96 for 95% and 2.576 for 99%, unless the question gives you a value.
  3. 3Calculate $E=z\frac{s}{\sqrt n}$, then the interval $(\bar x-E,\ \bar x+E)$.
  4. 4To judge a claim, say whether the claimed value is inside or outside the interval, then say whether the claim is reasonable.
  5. 5To find an unknown, use the centre of the interval for $\bar x$ and half its width for $E$, then solve.
  6. 6Round a sample size to a whole number, and check which way the question needs you to round.

Mistakes I see a lot

  • using 1.96 whatever the confidence level
  • using the whole width of the interval as $E$
  • centring the interval on the claimed mean in place of $\bar x$
  • dividing by $n$ in place of $\sqrt n$
  • stating a decision without quoting the interval and the claimed value

Practice

Practice questions

Ten questions of my own, worth 52 marks in total. Each one is labelled with the skill it practises, so if one goes wrong you know which part of the guide to go back to. Check whether each one is Technology-free or Technology-active before you start.

Question 1 of 10

Judging a standard with a confidence interval · Technology-free · Simple familiar · [5 marks]

A company produces cans of energy drink. Each can is labelled as containing 80 mg of caffeine.

A food inspector selects a random sample of 64 cans to assess whether the caffeine content stated on the label is being satisfied in production. The mean caffeine content of the sample is 78.5 mg with a sample standard deviation of 4.0 mg.

a)Based on this sample and using a $z$-value of 2, determine an approximate confidence interval for the population mean caffeine content.[3 marks]

Food standards require that the mean caffeine content must not exceed the labelled amount.

b)Use your result from Question 1a) to state whether the current production meets the food standards. Justify your decision using mathematical reasoning.[2 marks]

Part a)

$n=64$, $\overline{x}=78.5$, $s=4.0$, $z=2$

1 markCorrectly translates given information into relevant variables.

$\displaystyle \left(\overline{x}-z\frac{s}{\sqrt{n}},\ \overline{x}+z\frac{s}{\sqrt{n}}\right)=\left(78.5-2\times\frac{4}{\sqrt{64}},\ 78.5+2\times\frac{4}{\sqrt{64}}\right)$

1 markSubstitutes into confidence interval formula.

$=(78.5-1,\ 78.5+1)=(77.5,\ 79.5)$ mg

1 markDetermines required confidence interval.

Part b)

The labelled caffeine content of 80 mg lies above the upper value of the confidence interval, so the whole interval lies below 80 mg.

1 markDiscusses the labelled caffeine content in relation to the confidence interval values.

Current production meets the food standards.

1 markStates whether the current production meets the food standards.

The standard here is a maximum, so an interval below 80 mg is good news. Saying production fails because 80 mg is outside the interval loses the second mark of part b).

Answer
a) $(77.5,\ 79.5)$ mgb) whole interval below 80 mg; meets the food standards

Question 2 of 10

Finding $\overline{x}$ and $s$ from an interval · Technology-active · Simple familiar · [5 marks]

A council claims that the mean time its residents spend travelling to work each day is 35 minutes. Travel times are assumed to be normally distributed.

A researcher selects a random sample of 120 residents and uses their travel times to calculate an approximate 95% confidence interval for the population mean travel time of $(31.62,\ 34.18)$ minutes.

a)Determine the sample mean.[1 mark]
b)Determine the sample standard deviation. Give your answer rounded to two decimal places.[2 marks]
c)Use the confidence interval to evaluate the reasonableness of the council's claim. Justify your decision using mathematical reasoning.[2 marks]

Part a)

$\displaystyle \overline{x}=\frac{31.62+34.18}{2}=32.9$ minutes

1 markCorrectly determines the value of $\overline{x}$.

Part b)

$\displaystyle E=\frac{34.18-31.62}{2}=1.28$

1 markDetermines the margin of error.

$\displaystyle 1.96\times\frac{s}{\sqrt{120}}=1.28\Rightarrow s=\frac{1.28\sqrt{120}}{1.96}\approx7.15$ minutes

1 markDetermines the sample standard deviation rounded to two decimal places.

Part c)

The claimed mean of 35 minutes lies above the upper value of the confidence interval, $34.18$ minutes.

1 markUses mathematical reasoning to justify the decision.

The council's claim is not reasonable.

1 markStates an appropriate evaluation of the reasonableness of the claim.

Using the full width, 2.56, as $E$ gives $s\approx14.31$ and loses the second mark of part b).

Answer
a) $\overline{x}=32.9$ minb) $s\approx7.15$ minc) 35 lies above the interval; claim not reasonable

Question 3 of 10

A confidence interval from raw data · Technology-active · Simple familiar · [5 marks]

The time taken to fully charge the battery of a particular model of electric scooter is assumed to be normally distributed. The manufacturer claims that the mean charging time is 4.5 hours.

The following data represents the charging time (hours) for a random sample of 10 of these scooters.

$4.2$$4.9$$4.6$$4.1$$4.8$$4.4$$5.0$$4.3$$4.7$$4.5$
a)Determine the mean of this data.[1 mark]

The standard deviation of this data is calculated to be 0.303 hours.

b)Use an approximate 90% confidence interval for the mean to evaluate the reasonableness of the manufacturer's claim. Justify your decision using mathematical reasoning.[3 marks]
c)Explain whether your evaluation in Question 3b) would change if an approximate 99% confidence interval from the same data had been used instead.[1 mark]

Part a)

Using technology: $\overline{x}=4.55$ hours

1 markCorrectly determines the mean.

Part b)

$n=10$, $s=0.303$, $z=1.645$

Using technology: CI(90%) $=(4.39,\ 4.71)$ hours

1 markCorrectly determines an approximate 90% confidence interval.

The claimed mean charging time of 4.5 hours lies within the confidence interval.

1 markUses mathematical reasoning to justify the decision.

The manufacturer's claim is reasonable.

1 markStates an appropriate evaluation of the reasonableness of the claim.

Part c)

A 99% interval from the same data is wider than the 90% interval and has the same centre, so it also contains 4.5 hours. The evaluation would not change.

1 markExplains using the width of the interval at the higher level of confidence.

Calculating the 99% interval, $(4.30,\ 4.80)$ hours, is also fine for part c). Using your calculator's $s\approx0.3028$ gives the same interval.

Answer
a) $\overline{x}=4.55$ hb) $(4.39,\ 4.71)$ contains 4.5; claim reasonablec) 99\% interval is wider, still contains 4.5; no change

Question 4 of 10

Changing the confidence level · Technology-free · Simple familiar · [5 marks]

The time spent on homework each night by a random sample of 36 students is recorded. Using a $z$-value of 2, an approximate confidence interval for the population mean time is calculated to be $(41.2,\ 44.8)$ minutes.

a)Determine the sample mean.[1 mark]
b)Determine the sample standard deviation.[2 marks]

A second approximate confidence interval is calculated from the same sample using a $z$-value of 2.5.

c)Determine this second interval.[1 mark]
d)State which of the two intervals has the higher level of confidence. Justify your response.[1 mark]

Part a)

$\displaystyle \overline{x}=\frac{41.2+44.8}{2}=43$ minutes

1 markCorrectly determines the value of $\overline{x}$.

Part b)

$\displaystyle E=\frac{44.8-41.2}{2}=1.8$

1 markDetermines the margin of error.

$\displaystyle 2\times\frac{s}{\sqrt{36}}=1.8\Rightarrow\frac{s}{3}=1.8\Rightarrow s=5.4$ minutes

1 markDetermines the sample standard deviation.

Part c)

$\displaystyle E=2.5\times\frac{5.4}{6}=2.25$; interval $(43-2.25,\ 43+2.25)=(40.75,\ 45.25)$ minutes

1 markDetermines the second interval.

Part d)

The interval using $z=2.5$, because a larger $z$-value gives a wider interval that captures $\mu$ for a greater proportion of samples.

1 markStates the interval and justifies using the size of the $z$-value.

You can do part c) without $s$: $E=1.8\times\frac{2.5}{2}=2.25$. Using $n$ in place of $\sqrt n$ in part b) gives $s=32.4$, but part c) can still follow through.

Answer
a) 43 minb) $s=5.4$ minc) $(40.75,\ 45.25)$ mind) the $z=2.5$ interval

Question 5 of 10

Two samples from one production line · Technology-active · Simple familiar · [5 marks]

Two inspectors at a cereal factory independently select random samples of boxes from the same production line and record the mass of cereal in each box. The population mean mass of cereal in a box is $\mu$ grams.

Sample sizeSample mean (g)Sample standard deviation (g)
Inspector A$45$$507.8$$6.3$
Inspector B$80$$504.1$$7.0$
a)Determine an approximate 95% confidence interval for $\mu$ from each inspector's sample. Give your answers rounded to two decimal places.[2 marks]
b)Explain why at least one of the intervals in Question 5a) does not contain $\mu$.[1 mark]
c)Explain why Inspector B's interval is narrower than Inspector A's interval, even though Inspector B's sample standard deviation is larger.[1 mark]

Each week for 40 weeks, both inspectors repeat this procedure using new, independent random samples.

d)Determine the expected number of weeks in which both inspectors' approximate 95% confidence intervals contain $\mu$.[1 mark]

Part a)

Using technology: A: $(505.96,\ 509.64)$ g

1 markCorrectly calculates the 95% confidence interval for Inspector A to two decimal places.

Using technology: B: $(502.57,\ 505.63)$ g

1 markCorrectly calculates the 95% confidence interval for Inspector B to two decimal places.

Part b)

The intervals do not overlap: the upper value of B's interval ($505.63$) is below the lower value of A's interval ($505.96$). $\mu$ is a single fixed value, so it cannot lie in both intervals.

1 markExplains using the fact that the intervals do not overlap.

Part c)

Width is proportional to $\dfrac{s}{\sqrt{n}}$: A: $\dfrac{6.3}{\sqrt{45}}\approx0.94$; B: $\dfrac{7.0}{\sqrt{80}}\approx0.78$. B's larger sample size more than offsets its larger standard deviation.

1 markExplains using $\frac{s}{\sqrt n}$ for both samples.

Part d)

$P(\text{both contain }\mu)=0.95\times0.95=0.9025$

Expected number $=40\times0.9025=36.1$ weeks

1 markDetermines the expected number of weeks.

Working out $40\times0.95=38$ for one inspector only loses the mark in part d). In part b), saying the inspectors made a mistake doesn't get the mark.

Answer
a) A $(505.96,\ 509.64)$, B $(502.57,\ 505.63)$b) no overlapc) $\frac{s}{\sqrt n}$: $0.78<0.94$d) 36.1 weeks

Question 6 of 10

An interval for the mean against one for single values · Technology-active · Simple familiar · [5 marks]

The masses of eggs produced at a farm are assumed to be normally distributed. A random sample of 64 eggs has a mean mass of 58.4 g and a sample standard deviation of 4.0 g.

a)Determine an approximate 90% confidence interval for the population mean mass, $\mu$. Give your answer rounded to two decimal places.[1 mark]
b)Use the sample mean and sample standard deviation to determine an interval that would contain the masses of approximately the middle 90% of individual eggs from this farm. Give your answer rounded to two decimal places.[1 mark]

A second random sample, of 256 eggs, is planned.

c)Assuming that the sample mean and sample standard deviation are unchanged, describe the effect of the larger sample on the width of each of the intervals in Questions 6a) and 6b).[2 marks]

A shopper states that approximately 90% of eggs from this farm have a mass between 57.58 g and 59.22 g.

d)Use your results from Questions 6a) and 6b) to comment on the reasonableness of the shopper's statement.[1 mark]

Part a)

Using technology: CI(90%) $=(57.58,\ 59.22)$ g

1 markCorrectly calculates the 90% confidence interval to two decimal places.

Part b)

$58.4\pm1.645\times4.0=(51.82,\ 64.98)$ g

1 markCorrectly determines the interval for individual eggs.

Part c)

The confidence interval width $2\times1.645\frac{s}{\sqrt n}$ halves (from $1.65$ g to $0.82$ g), because $\sqrt{256}=2\sqrt{64}$.

1 markDescribes the effect on the confidence interval with reference to $\sqrt n$.

The interval for individual eggs, $\overline{x}\pm1.645s$, does not depend on $n$, so its width (about $13.16$ g) is unchanged.

1 markDescribes the effect on the interval for individual values.

Part d)

$(57.58,\ 59.22)$ estimates the population mean, not individual masses. About 90% of eggs lie in the much wider interval $(51.82,\ 64.98)$, so the shopper's statement is not reasonable.

1 markComments on the reasonableness of the statement using both intervals.

Only about 16% of single eggs have a mass in $(57.58,\ 59.22)$, which is why the interval in part b) is so much wider. Saying the interval for single eggs also halves loses the second mark of part c).

Answer
a) $(57.58,\ 59.22)$ gb) $(51.82,\ 64.98)$ gc) CI width halves; individual interval unchangedd) not reasonable

Question 7 of 10

Reading a diagram of intervals · Technology-free · Simple familiar · [5 marks]

A teacher uses software to select five random samples, of different sizes, from a normally distributed population with mean $\mu=50$ and standard deviation $\sigma=6$. For each sample, an approximate confidence interval for $\mu$ is calculated using

$\left(\overline{x}-2\,\frac{\sigma}{\sqrt{n}},\ \overline{x}+2\,\frac{\sigma}{\sqrt{n}}\right).$

The five intervals are shown.

μ = 50Sample 14854Sample 245.549.5Sample 34553Sample 449.551.5Sample 550.454.444454647484950515253545556
a)State the number of these intervals that contain $\mu$.[1 mark]
b)Determine the size of Sample 4.[2 marks]

A sixth random sample, of size 64, is selected from the same population and an interval is calculated in the same way.

c)Determine the possible range of values of the sample mean for which this interval would contain $\mu$.[2 marks]

Part a)

Samples 1, 3 and 4 contain $\mu=50$: 3 intervals.

1 markStates the number of intervals.

Part b)

Sample 4: width $=51.5-49.5=2$, so $E=1$

1 markDetermines the margin of error from the diagram.

$\displaystyle 2\times\frac{6}{\sqrt{n}}=1\Rightarrow\sqrt{n}=12\Rightarrow n=144$

1 markDetermines the sample size.

Part c)

$\displaystyle E=2\times\frac{6}{\sqrt{64}}=1.5$

1 markDetermines the margin of error for $n=64$.

The interval contains $\mu$ when $|\overline{x}-50|<1.5$, that is, $48.5<\overline{x}<51.5$.

1 markDetermines the range of values of $\overline{x}$.

Writing $48.5\le\overline{x}\le51.5$ is also accepted in part c). Using the width, 2, as $E$ in part b) gives $n=36$ and loses the second mark.

Answer
a) 3b) $n=144$c) $48.5<\overline{x}<51.5$

Question 8 of 10

Finding the confidence level · Technology-active · Simple familiar · [5 marks]

A caf\'e chain claims that the mean time customers wait for a coffee is 6.0 minutes. Waiting times are assumed to be normally distributed.

A random sample of 50 customers has a mean waiting time of 6.42 minutes with a standard deviation of 1.35 minutes.

a)Determine an approximate 95% confidence interval for the population mean waiting time. Give your answer rounded to two decimal places.[1 mark]
b)An approximate confidence interval calculated from this sample has a lower limit of exactly 6.0 minutes. Determine the level of confidence of this interval. Give your answer as a percentage rounded to one decimal place.[3 marks]
c)Use your result from Question 8b) to state the levels of confidence for which an approximate confidence interval from this sample would contain the claimed mean.[1 mark]

Part a)

Using technology: CI(95%) $=(6.05,\ 6.79)$ minutes

1 markCorrectly calculates the 95% confidence interval to two decimal places.

Part b)

$\displaystyle 6.42-z\times\frac{1.35}{\sqrt{50}}=6.0$

1 markEstablishes an equation in terms of $z$.

$z\approx2.20$

1 markSolves the equation to determine $z$.

Level $=P(-2.20<Z<2.20)\approx0.972$, that is, $97.2\%$

1 markDetermines the level of confidence as a percentage rounded to one decimal place.

Part c)

Levels of confidence greater than $97.2\%$ (e.g.\ 99%)

1 markStates the required levels of confidence.

Using one tail only, $P(Z\lt2.20)\approx98.6\%$, loses the third mark of part b). Part c) can still follow through.

Answer
a) $(6.05,\ 6.79)$ minb) $z\approx2.20$, $97.2\%$c) levels above $97.2\%$

Question 9 of 10

Two intervals from one enlarged sample · Technology-free · Complex familiar · [6 marks]

A water authority estimates the mean daily water use of households in a town. From a random sample of $n$ households, and using a $z$-value of 2, an approximate confidence interval for the population mean daily water use is calculated to be $(232,\ 248)$ litres.

A further 28 households are then randomly selected and added to the sample. The sample mean and the sample standard deviation are unchanged, and an approximate confidence interval calculated from the enlarged sample, again using a $z$-value of 2, is $(234,\ 246)$ litres.

Determine the value of $n$ and the sample standard deviation.

Both intervals are centred at $\overline{x}=240$.

Original: $E_1=8$; enlarged: $E_2=6$

1 markDetermines the sample mean and both margins of error.

$\displaystyle 2\times\frac{s}{\sqrt{n}}=8\quad\dots(1)$

1 markEstablishes an equation for the original sample.

$\displaystyle 2\times\frac{s}{\sqrt{n+28}}=6\quad\dots(2)$

1 markEstablishes an equation for the enlarged sample.

(1)$\div$(2): $\displaystyle \sqrt{\frac{n+28}{n}}=\frac43\Rightarrow\frac{n+28}{n}=\frac{16}{9}\Rightarrow9n+252=16n\Rightarrow n=36$

1 markSolves the equations to determine $n$.

$\displaystyle \frac{2s}{6}=8\Rightarrow s=24$ litres

1 markDetermines the sample standard deviation.

$n=36$ and $s=24$ litres

1 markShows logical organisation, having fully attempted the question.

Check: $\frac{2\times24}{\sqrt{64}}=6$. Using $\sqrt{28}$ in equation (2) treats 28 as the new sample size and loses the third mark.

Answer
$n=36$, $s=24$ litres

Question 10 of 10

Confidence level, sample size and coverage · Technology-active · Complex familiar · [6 marks]

An environmental laboratory monitors the concentration of nitrate in a river. Each week, it collects a random sample of 60 water specimens and reports an approximate 99% confidence interval for the population mean nitrate concentration for that week.

To reduce costs, the laboratory manager proposes reporting approximate 90% confidence intervals instead, using the smallest weekly sample size that keeps the margin of error no larger than it is now. Assume that the sample standard deviation is unchanged.

The manager claims that this change would more than halve the weekly sample size, and that over a year of 52 weeks it would be expected to produce fewer than 4 additional intervals that do not contain the population mean.

Evaluate the reasonableness of the manager's claim. Justify your decision using mathematical reasoning.

Current margin of error: $\displaystyle E=2.576\frac{s}{\sqrt{60}}$

Require $\displaystyle 1.645\frac{s}{\sqrt{n}}\le2.576\frac{s}{\sqrt{60}}$

1 markEstablishes an inequality relating the two margins of error.

$\displaystyle \sqrt{n}\ge\frac{1.645\sqrt{60}}{2.576}\Rightarrow n\ge60\left(\frac{1.645}{2.576}\right)^2\approx24.47$, so $n=25$

1 markDetermines the smallest sample size.

$25<30$, so the weekly sample size would be more than halved; this part of the claim is correct.

1 markCompares the new sample size with half of 60.

Expected number of intervals not containing $\mu$ over 52 weeks:

99%: $52\times0.01=0.52$; 90%: $52\times0.10=5.2$

Additional: $5.2-0.52=4.68$

1 markDetermines the expected numbers of intervals that do not contain the population mean.

$4.68>4$, so the change would be expected to produce more than 4 additional intervals that do not contain the population mean.

1 markUses mathematical reasoning to justify the decision.

The manager's claim is not reasonable.

1 markStates an appropriate evaluation of the reasonableness of the claim.

Using 1.65 and 2.58 gives $n\ge24.54$, so the answer is still 25. Forgetting to square the ratio of $z$-values gives $n\ge38.32$ and loses the second mark. Checking only the sample size part of the claim loses the last three marks.

Answer
$n\ge24.47\Rightarrow25$ (more than halved); additional misses $5.2-0.52=4.68>4$; claim not reasonable

Keep practising

Ready for something harder?

2025 Paper 2, Question 17, 2023 Paper 2, Question 19 and 2020 Paper 2, Question 18 are the hardest confidence interval questions so far. All three are in the complex unfamiliar collection, along with the others.

Past questions and marking-guide steps are from the 2020–2025 QCAA Specialist Mathematics external assessments, © State of Queensland (QCAA) 2020–2025, licensed under CC BY 4.0, and have been adapted. Tangent Tuition is not affiliated with the QCAA.