Skip to main content

Margin of error and sample size: WACE Year 12 Mathematics Methods Unit 4

Syllabus dot point

“Relate the margin of error to confidence level and sample size, and determine the sample size needed for a required margin of error”

8 min read

Quick answer

The margin of error is E=zp^(1−p^)nE=z\sqrt{\dfrac{\hat{p}(1-\hat{p})}{n}}. It widens with a higher confidence level (larger zz) and narrows with a larger sample (since n\sqrt{n} is in the denominator). Rearranging gives the sample size needed for a target margin.

Jump to a section
  1. What this dot point is asking
  2. The margin of error
  3. The square-root relationship
  4. Why p^=0.5\hat{p}=0.5 is the worst case
  5. Determining the sample size
  6. Exam-style questions

What this dot point is asking

SCSA Unit 4 develops the margin of error as the half-width of a confidence interval for a proportion. This dot point asks you to relate it to the confidence level and sample size, and to find the sample size required for a given precision. It is examined in both sections, with sample-size calculations common in the calculator-assumed section.

The margin of error

A confidence interval for a proportion has the form p^±E\hat{p}\pm E, where EE is the margin of error.

Margin of error

E=zp^(1−p^)n,E = z\sqrt{\frac{\hat{p}(1-\hat{p})}{n}},

where zz is the standard normal multiplier (z≈1.96z\approx 1.96 for 95%95\%, z≈1.645z\approx 1.645 for 90%90\%, z≈2.576z\approx 2.576 for 99%99\%).

Two levers control EE: the confidence level through zz, and the sample size through nn. A higher confidence level needs a larger zz and so a wider interval. A larger sample shrinks the standard error and so narrows the interval.

Margin of error and the effect of confidence level

In a sample of n=500n=500 with p^=0.5\hat{p}=0.5, find the margin of error at 95%95\% and at 99%99\%.

Step 1: Calculate the standard error (shared by both confidence levels)

The standard error depends only on p^\hat{p} and nn, not on the confidence level, so it is the same for both intervals.

SE=0.5×0.5500=0.0005≈0.02236\mathrm{SE} = \sqrt{\frac{0.5\times 0.5}{500}}=\sqrt{0.0005}\approx 0.02236

Step 2: Apply each zz-multiplier to get the margin of error

A higher confidence level requires a larger zz-score, which stretches the margin of error. At 95%95\% the multiplier is 1.961.96; at 99%99\% it is 2.5762.576.

At 95%95\%: E=1.96×0.02236≈0.0438E=1.96\times 0.02236\approx 0.0438.

At 99%99\%: E=2.576×0.02236≈0.0576E=2.576\times 0.02236\approx 0.0576.

Final answer: raising the confidence from 95%95\% to 99%99\% widens the margin from about 0.0440.044 to 0.0580.058.

The square-root relationship

Because EE depends on 1n\dfrac{1}{\sqrt{n}}, precision improves slowly with sample size. To halve the margin of error you must roughly quadruple nn, since 4=2\sqrt{4}=2. This is why large gains in precision become expensive.

The effect of quadrupling the sample

How the margin responds to a larger sample

A 95%95\% confidence interval with p^=0.5\hat{p}=0.5 and n=400n=400 has margin of error E=1.960.25400=1.96×0.025=0.049E=1.96\sqrt{\dfrac{0.25}{400}}=1.96\times 0.025=0.049. Suppose the sample is increased to n=1600n=1600.

The new standard error is 0.251600=0.0125\sqrt{\dfrac{0.25}{1600}}=0.0125, exactly half the old 0.0250.025, because 1600=2400\sqrt{1600}=2\sqrt{400}. So the new margin of error is

E=1.96×0.0125=0.0245,E=1.96\times 0.0125=0.0245,

half the original. Quadrupling the sample halved the margin of error, illustrating the square-root law directly. Markers reward recognising that n→4nn\to 4n gives E→12EE\to\tfrac{1}{2}E.

Why p^=0.5\hat{p}=0.5 is the worst case

The product p^(1−p^)\hat{p}(1-\hat{p}) inside the formula is a downward parabola in p^\hat{p}, largest at p^=0.5\hat{p}=0.5 where it equals 0.250.25. Because a larger p^(1−p^)\hat{p}(1-\hat{p}) means a larger margin of error for the same nn, and a larger required nn for the same target margin, using p^=0.5\hat{p}=0.5 when no estimate is available guarantees the sample is big enough whatever the true proportion turns out to be. If a reliable prior estimate of p^\hat{p} exists, using it gives a smaller, cheaper sample, but the conservative 0.50.5 is never too small.

Determining the sample size

Rearranging the margin-of-error formula for nn lets you find the sample size needed for a target margin EE.

Required sample size

n=z2 p^(1−p^)E2.n = \frac{z^{2}\,\hat{p}(1-\hat{p})}{E^{2}}.

When no estimate of p^\hat{p} is available, use p^=0.5\hat{p}=0.5, which maximises p^(1−p^)\hat{p}(1-\hat{p}) and gives the largest (safest) required nn.

Finding the required sample size

What sample size gives a 95%95\% margin of error of at most 0.030.03, using p^=0.5\hat{p}=0.5?

Step 1: Choose the conservative value of p^\hat{p} and identify the parameters

When no prior estimate of the proportion is available, using p^=0.5\hat{p}=0.5 gives the largest possible margin of error for any nn, so the resulting sample size is guaranteed to be large enough regardless of the true proportion. Here z=1.96z=1.96 for 95%95\% confidence and E=0.03E=0.03.

Step 2: Substitute into the sample-size formula

Rearranging E=zp^(1−p^)nE = z\sqrt{\dfrac{\hat{p}(1-\hat{p})}{n}} for nn gives n=z2p^(1−p^)E2n = \dfrac{z^{2}\hat{p}(1-\hat{p})}{E^{2}}.

n=1.962×0.5×0.50.032=3.8416×0.250.0009=0.96040.0009≈1067.1n = \frac{1.96^{2}\times 0.5\times 0.5}{0.03^{2}} = \frac{3.8416\times 0.25}{0.0009} = \frac{0.9604}{0.0009} \approx 1067.1

Step 3: Round up to ensure the margin is met

Because nn must be a whole number and rounding down would give a margin slightly larger than 0.030.03, always round up.

Final answer: n=1068n = 1068.

Common errors
Rounding the sample size down
Always round nn up; rounding down would exceed the allowed margin of error.
Using p^=0.5\hat{p}=0.5 when an estimate is given
Use the given p^\hat{p} if available; reserve 0.50.5 for when none is known.
Squaring errors in the formula
Both zz and EE are squared in the sample-size formula; a missed square gives a wildly wrong nn.
Believing precision scales with nn
It scales with n\sqrt{n}, so quadrupling the sample only halves the margin.

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 2021-style6 marks
Calculator-assumed. A market researcher wants a 95%95\% confidence interval for a proportion with a margin of error no greater than 0.040.04. (a) Using p^=0.5\hat{p}=0.5, find the minimum sample size. (b) If a pilot study suggests p^≈0.2\hat{p}\approx 0.2, find the minimum sample size and comment.
Show worked answer →

A sample-size determination with two scenarios.

(a) n=z2p^(1−p^)E2=1.962(0.5)(0.5)0.042=3.8416×0.250.0016=600.25n=\dfrac{z^{2}\hat{p}(1-\hat{p})}{E^{2}}=\dfrac{1.96^{2}(0.5)(0.5)}{0.04^{2}}=\dfrac{3.8416\times 0.25}{0.0016}=600.25, round up to 601601.

(b) With p^=0.2\hat{p}=0.2: n=3.8416×0.160.0016=384.16n=\dfrac{3.8416\times 0.16}{0.0016}=384.16, round up to 385385. Because p^(1−p^)\hat{p}(1-\hat{p}) is smaller away from 0.50.5, fewer respondents are needed; using 0.50.5 gives the safe worst-case size.

Markers reward the rearranged formula, rounding up, and the comment that 0.50.5 is the conservative choice.

WACE 2023-style4 marks
Calculator-free. A 95%95\% confidence interval for a proportion has margin of error 0.050.05 from a sample of size 400400 with p^=0.5\hat{p}=0.5. (a) Explain how the margin of error would change if the sample size were increased to 16001600. (b) State the new margin of error.
Show worked answer →

A square-root-law reasoning question.

(a) The margin of error is proportional to 1n\dfrac{1}{\sqrt{n}}. Increasing nn from 400400 to 16001600 multiplies nn by 44, so n\sqrt{n} doubles and the margin of error is halved.

(b) Half of 0.050.05 is 0.0250.025.

Markers reward the 1n\dfrac{1}{\sqrt{n}} relationship and the halved value 0.0250.025.

Practise this

Sources & how we know this

ExamExplained