Skip to main content

Confidence intervals for a population mean (WACE Year 12 Mathematics Specialist Unit 4)

Syllabus dot point

“Construct and interpret confidence intervals for a population mean and find the required sample size”

8 min read

Quick answer

An approximate confidence interval for the population mean is xˉ±z σn\bar{x} \pm z\,\tfrac{\sigma}{\sqrt{n}}, with z≈1.96z \approx 1.96 for 95%95\% confidence. The term z σnz\,\tfrac{\sigma}{\sqrt{n}} is the margin of error. Correctly read, 95%95\% confidence means that in repeated sampling about 95%95\% of such intervals would contain the true mean.

Jump to a section
  1. What this dot point is asking
  2. The interval
  3. Interpreting the confidence level
  4. Where the interval comes from
  5. Reading the interval back to front
  6. Confidence versus precision
  7. Finding the required sample size
  8. Exam-style questions

What this dot point is asking

SCSA wants you to build the interval from a sample, choose the right critical value, interpret the level correctly, and rearrange to find the sample size needed for a target margin of error.

The interval

Confidence interval for a mean

xˉ±z σn,\bar{x} \pm z\,\frac{\sigma}{\sqrt{n}},

where zz is the standard-normal critical value for the chosen level: z≈1.645z \approx 1.645 for 90%90\%, z≈1.96z \approx 1.96 for 95%95\%, and z≈2.576z \approx 2.576 for 99%99\%. The half-width zσnz\tfrac{\sigma}{\sqrt{n}} is the margin of error EE.

Interpreting the confidence level

The repeated-sampling interpretation

A 95%95\% confidence interval does not give a 95%95\% probability that μ\mu is inside this particular interval. It means the procedure produces intervals that capture μ\mu in about 95%95\% of repeated samples. Once computed, the interval either contains μ\mu or it does not.

Where the interval comes from

The interval is not arbitrary; it falls straight out of the central limit theorem. Because Xˉ\bar{X} is approximately normal with mean μ\mu and standard error σn\dfrac{\sigma}{\sqrt{n}}, about 95%95\% of sample means lie within 1.961.96 standard errors of μ\mu, that is P ⁣(μ−1.96σn<Xˉ<μ+1.96σn)≈0.95P\!\left(\mu - 1.96\dfrac{\sigma}{\sqrt{n}} < \bar{X} < \mu + 1.96\dfrac{\sigma}{\sqrt{n}}\right) \approx 0.95. Rearranging the inequality to isolate μ\mu turns this into a statement about an interval centred on the observed xˉ\bar{x}, namely xˉ±1.96σn\bar{x} \pm 1.96\dfrac{\sigma}{\sqrt{n}}. Knowing this derivation makes the repeated-sampling interpretation natural: the randomness is in the sample, so it is the interval that varies from sample to sample, not the fixed but unknown μ\mu.

Reading the interval back to front

Many SCSA questions give you the interval and ask you to recover the ingredients. The sample mean is always the midpoint of the interval, and the margin of error is always half the width. From the margin you can recover the standard error by dividing by the critical value, and from the standard error you can recover nn if σ\sigma is known. Being able to move in both directions, from data to interval and from interval back to data, is a reliable source of marks and a useful check on your arithmetic.

Confidence versus precision

A higher confidence level uses a larger zz, widening the interval: more confidence costs precision. A larger sample reduces the standard error, narrowing the interval. The two competing effects are both visible in the margin of error zσnz\tfrac{\sigma}{\sqrt{n}}.

Finding the required sample size

Set the margin of error to the target EE and solve for nn:

E=z σn  ⟹  n=(zσE)2.E = z\,\frac{\sigma}{\sqrt{n}} \;\Longrightarrow\; n = \left(\frac{z\sigma}{E}\right)^2.

Round nn up to the next whole number, since a fractional sample is not possible and rounding down would exceed the target margin.

Notice the inverse-square relationship: because nn depends on 1E2\dfrac{1}{E^2}, halving the desired margin of error requires four times the sample size, and reducing it to a tenth requires a hundred times the sample. This is why high-precision estimates can demand very large samples, and it is a common point for a follow-up part asking students to comment on the practicality of a stated precision.

Worked example

A sample of n=100n = 100 has xˉ=25.0\bar{x} = 25.0, with σ=5\sigma = 5. Build a 95% confidence interval, then find the sample size needed for a margin of error of 0.50.5.

Step 1: Compute the standard error

The standard error measures how much the sample mean is expected to vary from the true mean. Dividing the population standard deviation by n\sqrt{n} accounts for the averaging effect of the sample.

σn=5100=510=0.5\frac{\sigma}{\sqrt{n}} = \frac{5}{\sqrt{100}} = \frac{5}{10} = 0.5

Step 2: Find the margin of error for the 95% interval

For a 95% confidence level the critical value is z=1.96z = 1.96. Multiplying zz by the standard error gives the half-width of the interval, which is the maximum distance the interval extends on either side of xˉ\bar{x}.

E=z×σn=1.96×0.5=0.98E = z \times \frac{\sigma}{\sqrt{n}} = 1.96 \times 0.5 = 0.98

Step 3: State the confidence interval

Adding and subtracting the margin of error from the sample mean produces the interval. Both endpoints are equally likely to be the true bound, so we write the result as a symmetric interval about xˉ\bar{x}.

25.0±0.98=(24.02, 25.98)25.0 \pm 0.98 = (24.02,\ 25.98)

Step 4: Find the required sample size for E=0.5E = 0.5

Rearranging the margin-of-error formula for nn gives the minimum sample size. Because a fractional sample is impossible and rounding down would cause the margin to exceed 0.50.5, we always round up to the next whole number.

n=(zσE)2=(1.96×50.5)2=(19.6)2=384.16n = \left(\frac{z\sigma}{E}\right)^2 = \left(\frac{1.96 \times 5}{0.5}\right)^2 = (19.6)^2 = 384.16

Round up to n=385n = 385.

Final answer: The 95% confidence interval is (24.02, 25.98)(24.02,\ 25.98), and a sample size of n=385n = 385 is required for a margin of error of 0.50.5.

Common traps
Wrong probability interpretation
Do not say there is a 95%95\% chance μ\mu lies in this interval; the 95%95\% refers to the long-run procedure.
Rounding the sample size down
Always round nn up so the margin of error stays within target.
Using the wrong zz
Match zz to the level: 1.961.96 for 95%95\%, 2.5762.576 for 99%99\%, not the reverse.

Exam-style questions

Questions in the style of SCSA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

WACE 2022-style7 marks
Calculator-assumed. A random sample of 6464 light globes has mean life xˉ=1200\bar{x} = 1200 hours. The population standard deviation is σ=96\sigma = 96 hours. (a) Construct a 95%95\% confidence interval for the mean life. (b) Interpret the interval. (c) How large a sample is needed for a 95%95\% margin of error of at most 1010 hours?
Show worked answer →

A full confidence-interval question.

(a) Standard error =σn=9664=968=12= \dfrac{\sigma}{\sqrt{n}} = \dfrac{96}{\sqrt{64}} = \dfrac{96}{8} = 12. With z=1.96z = 1.96, margin =1.96×12=23.52= 1.96 \times 12 = 23.52. Interval: 1200±23.52=(1176.48, 1223.52)1200 \pm 23.52 = (1176.48,\ 1223.52) hours.

(b) We are 95%95\% confident the true mean life lies between about 11761176 and 12241224 hours, in the sense that 95%95\% of intervals built this way from repeated samples would contain the true mean.

(c) Require 1.96×96n≤101.96 \times \dfrac{96}{\sqrt{n}} \le 10, so n≥1.96×9610=18.816\sqrt{n} \ge \dfrac{1.96 \times 96}{10} = 18.816, hence n≥354.0n \ge 354.0. Round up to n=355n = 355.

Markers reward the standard error, the correct zz, the interval, a repeated-sampling interpretation, and rounding nn up.

WACE 2024-style4 marks
Calculator-free. A 95%95\% confidence interval for a population mean is (48.0,52.0)(48.0, 52.0). State the sample mean and the margin of error, and explain how a 99%99\% interval from the same sample would differ.
Show worked answer →

Tests structure and the confidence-precision trade-off.

The sample mean is the midpoint, xˉ=48.0+52.02=50.0\bar{x} = \dfrac{48.0 + 52.0}{2} = 50.0. The margin of error is half the width, 52.0−48.02=2.0\dfrac{52.0 - 48.0}{2} = 2.0.

A 99%99\% interval uses a larger critical value (z≈2.576z \approx 2.576 instead of 1.961.96) with the same xˉ\bar{x} and standard error, so it would be wider and still centred at 50.050.0. More confidence costs precision. Markers reward the midpoint mean, the half-width margin, and the wider-interval explanation.

Practise this

Sources & how we know this

ExamExplained