Mathematical Methods · Units 3 & 4

Confidence Intervals for a Proportion

Understand confidence intervals for a population proportion the easy way, with plain English intuition, the margin of error, worked examples and an auto marked practice test. VCE Maths Methods Units 3 and 4.

Learn

Imagine you taste one spoonful of a giant pot of soup to judge the whole pot. You cannot be sure the entire pot tastes exactly like that one spoon, but you can give a sensible range. A confidence interval does the same thing with a poll. You only ever measure a small sample, so instead of claiming one exact proportion for the whole population, you report a range and say how confident you are that the true value sits inside it. That honesty about uncertainty is the whole point.

-4-3-2-11234 0.10.20.30.4
A 95 per cent confidence interval captures the middle 95 per cent of the distribution, between z = -1.96 and z = 1.96. Only the two small tails are left outside.

What the interval actually is

You can never survey everyone, so you survey a sample of nn people and count how many said yes. That gives you the sample proportion p^\hat{p}, the fraction of your sample that agreed. The true population proportion pp is the number you really want, but it stays hidden. Your p^\hat{p} is a good guess, yet a different sample would have given a slightly different guess.

A confidence interval wraps a sensible range around your guess. It is built as the sample proportion give or take a cushion:

p^±zp^(1−p^)n\hat{p} \pm z\sqrt{\frac{\hat{p}(1-\hat{p})}{n}}

The square root piece is the standard error, a measure of how much p^\hat{p} tends to wobble from sample to sample. The zz is a fixed number that sets your confidence level. For the common 95%95\% interval, z=1.96z = 1.96.

The margin of error

The cushion you add and subtract has its own name. The margin of error is everything after the plus or minus sign:

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

Once you have MM, the interval is simply p^−M\hat{p} - M to p^+M\hat{p} + M. Two things shrink the margin and make your estimate sharper. A bigger sample size nn shrinks it, because nn sits under a square root in the denominator. A lower confidence level shrinks it too, because it uses a smaller zz.

Notice the trade off. If you demand more confidence, your zz goes up and the interval gets wider, so you are more sure but less precise. More confidence costs you precision. The only way to get both is to gather a larger sample.

Reading the interval correctly

This is where careful students pick up easy marks and rushed students throw them away. It is tempting to say “there is a 95%95\% chance the true proportion is inside my interval”, but that sentence is wrong. The true proportion pp is a fixed number. It is not bouncing around, so it does not have a probability of landing anywhere.

What actually varies is the interval. Each new sample gives a new p^\hat{p} and therefore a new interval. The correct reading is about the method, not one interval:

If you repeated the whole sampling process many times, about 95%95\% of the intervals you build would capture the true proportion pp, and about 5%5\% would miss it. Your one interval either caught pp or it did not, you just do not know which.

How to actually do it

Every confidence interval question follows the same short recipe.

  1. Find the sample proportion p^\hat{p} by dividing successes by the sample size nn.
  2. Work out the standard error p^(1−p^)/n\sqrt{\hat{p}(1-\hat{p})/n}.
  3. Multiply by the zz value for your confidence level to get the margin of error.
  4. Write the interval as p^\hat{p} plus or minus the margin of error.

Two traps catch students every year. The first is leaving out the zz and reporting only the standard error as the margin, which makes the interval far too narrow. The second is rounding. Confidence intervals are usually wanted correct to three decimal places, so keep full accuracy in your working and only round the final endpoints.

Lock it in with active recall

Cover the answer and say each one out loud before you flip. Rate yourself honestly — the cards you find hard come back sooner, the ones you know are spaced further out.

Active recall

Answer from memory first, then flip. Rate yourself and each card returns on a spaced schedule (1 → 3 → 7 → 16 days).

Write the formula for an approximate confidence interval for a proportion.
What is the margin of error, and what zz value goes with 95%95\% confidence?
What does a 95%95\% confidence interval actually mean?
Why is a 99%99\% interval wider than a 95%95\% one from the same sample?
Keeping p^\hat{p} fixed, you multiply the sample size nn by 44. What happens to the margin of error?
Recall · Sampling distributions of proportions
What are the mean and standard deviation of the sample proportion p^\hat{p}?
Recall · The normal distribution
Where does the z=1.96z = 1.96 for a 95%95\% interval come from?

See this recipe in action in the Worked Examples tab, then test yourself in Try It.

Worked examples

Worked Example 1Confidence level from a given interval, from a real exam

An inspector takes a random sample of 3232 tennis balls and determines a confidence interval for the population proportion of grade A balls produced. The confidence interval is (0.7382,0.9493)(0.7382, 0.9493), correct to four decimal places. Find the level of confidence that the population proportion of grade A balls is within the interval, as a percentage correct to the nearest integer.

  1. 1

    The sample proportion is the midpoint of the interval, and the margin of error is half its width.

    p^=0.7382+0.94932≈0.84375,E≈0.10555\hat{p} = \frac{0.7382 + 0.9493}{2} \approx 0.84375, \quad E \approx 0.10555
  2. 2

    Use E=zp^(1−p^)/32E = z\sqrt{\hat{p}(1-\hat{p})/32} and solve for zz.

    z=Ep^(1−p^)/32≈1.645z = \frac{E}{\sqrt{\hat{p}(1-\hat{p})/32}} \approx 1.645
  3. 3

    A zz value of about 1.6451.645 corresponds to a 90%90\% confidence level. The examiner report notes many students computed p^\hat{p} incorrectly or simply gave 95%95\%.

    confidence level=90%\text{confidence level} = 90\%
Answer
90%90\%

VCAA 2023 Mathematical Methods Exam 2, Section B Q4g

Worked Example 2Interval, then a wider one, from a real exam

In one random sample of 5050 pieces of luggage, 1010 are labelled heavy. (i) Use this sample to find an approximate 90%90\% confidence interval for pp, the population proportion of luggage labelled heavy, correct to three decimal places. (ii) A second random sample of 5050 pieces is selected, and its approximate 90%90\% confidence interval for pp is wider than the one in part (i). State the minimum and maximum possible number of pieces of luggage labelled heavy in the second sample.

  1. 1

    (i) The sample proportion is p^=1050=0.2\hat{p} = \frac{10}{50} = 0.2, and for 90%90\% confidence z=1.6449z = 1.6449.

    0.2±1.64490.2×0.850=(0.107,0.293)0.2 \pm 1.6449\sqrt{\frac{0.2 \times 0.8}{50}} = (0.107, 0.293)
  2. 2

    (ii) The width is proportional to p^(1−p^)\sqrt{\hat{p}(1-\hat{p})}, so a wider interval needs p^(1−p^)>0.16\hat{p}(1-\hat{p}) > 0.16, i.e. p^\hat{p} strictly between 0.20.2 and 0.80.8.

    0.2<p^<0.8  ⟹  10<X<400.2 < \hat{p} < 0.8 \implies 10 < X < 40
  3. 3

    So the heavy count XX ranges from 1111 to 3939. The report notes many found the minimum 1111 but gave a wrong maximum such as 5050.

    minimum X=11,maximum X=39\text{minimum } X = 11, \quad \text{maximum } X = 39
Answer
(i) (0.107,0.293);(ii) minimum 11, maximum 39(i)\ (0.107, 0.293); \quad (ii)\ \text{minimum } 11,\ \text{maximum } 39

VCAA 2024 Mathematical Methods Exam 2, Section B Q4e

Worked Example 3A 95% interval from a sample

A polling company surveys n=200n = 200 randomly chosen voters and finds 5050 support a new policy. Construct an approximate 95%95\% confidence interval for the population proportion pp, correct to three decimal places.

  1. 1

    Find the sample proportion p^\hat{p} from 5050 out of 200200.

    p^=50200=0.25\hat{p} = \frac{50}{200} = 0.25
  2. 2

    Find the standard error using p^(1−p^)/n\sqrt{\hat{p}(1-\hat{p})/n}.

    0.25×0.75200=0.0009375≈0.030619\sqrt{\frac{0.25 \times 0.75}{200}} = \sqrt{0.0009375} \approx 0.030619
  3. 3

    For 95%95\% confidence the zz value is 1.961.96. The margin of error is zz times the standard error.

    1.96×0.030619≈0.0601.96 \times 0.030619 \approx 0.060
  4. 4

    The interval is p^\hat{p} plus or minus the margin of error.

    0.25±0.0600.25 \pm 0.060
Answer
(0.190,0.310)(0.190, 0.310)
Worked Example 4Margin of error at 90% confidence

In a sample of n=100n = 100 households, the proportion owning an electric vehicle is p^=0.4\hat{p} = 0.4. Find the margin of error for an approximate 90%90\% confidence interval, then state the interval. Use z=1.645z = 1.645.

  1. 1

    Write the standard error with p^=0.4\hat{p} = 0.4 and n=100n = 100.

    0.4×0.6100=0.0024≈0.048990\sqrt{\frac{0.4 \times 0.6}{100}} = \sqrt{0.0024} \approx 0.048990
  2. 2

    The margin of error is zz times the standard error, with z=1.645z = 1.645 for 90%90\%.

    M=1.645×0.048990≈0.081M = 1.645 \times 0.048990 \approx 0.081
  3. 3

    Build the interval as p^±M\hat{p} \pm M.

    0.4±0.0810.4 \pm 0.081
Answer
(0.319,0.481)(0.319, 0.481)
Worked Example 5How big a sample do I need?

A researcher wants a 95%95\% confidence interval with a margin of error no larger than 0.040.04. Using the safest case p^=0.5\hat{p} = 0.5, find the smallest sample size nn needed. Use z=1.96z = 1.96.

  1. 1

    Start from the margin of error formula and set it to be at most 0.040.04.

    1.960.5×0.5n≤0.041.96 \sqrt{\frac{0.5 \times 0.5}{n}} \le 0.04
  2. 2

    Rearrange to make nn the subject.

    n≥(1.960.04)2×0.25n \ge \left(\frac{1.96}{0.04}\right)^2 \times 0.25
  3. 3

    Evaluate the right hand side.

    n≥492×0.25=600.25n \ge 49^2 \times 0.25 = 600.25
  4. 4

    Sample size must be a whole number, and you must round up so the margin stays under the limit.

    n=601n = 601
Answer
n=601n = 601

Practice questions

Practice test

Try it yourself

9 questions, 13 marks

Choose your answers, then submit to see your score and the full worked solutions. Multiple choice is marked for you, just like Exam 2 Section A.

Q1.A random sample of nn Victorian households is taken to estimate the proportion of all Victorian households that have vegetable gardens. The approximate 95%95\% confidence interval calculated using this sample is (0.248,0.552)(0.248, 0.552), correct to three decimal places. The number of households, nn, in the sample is:

1mark

VCAA 2025 Mathematical Methods Exam 2, Section A Q8

Q2.An approximate 95%95\% confidence interval for the proportion pp of households having solar panels installed was determined to be (0.04,0.16)(0.04, 0.16), with sample proportion p^=0.1\hat{p} = 0.1. Using z=2z = 2 to approximate the interval, find the size of the sample from which this confidence interval was obtained.

2marks

Work this on paper. The worked solution appears once you submit.

VCAA 2023 Mathematical Methods Exam 1, Q6b

Q3.In a town, 100100 people were randomly selected and surveyed, with 6060 indicating that they were unhappy with the roads. Determine an approximate 95%95\% confidence interval for the proportion of people in the town who are unhappy with the roads. Use z=2z = 2 for this confidence interval.

2marks

Work this on paper. The worked solution appears once you submit.

VCAA 2024 Mathematical Methods Exam 1, Q5c.i

Q4.A sample of n=400n = 400 people gives 160160 who agree with a statement. The sample proportion p^\hat{p} used to build a confidence interval is:

1mark
Need a hint?
The sample proportion is the number of successes divided by the sample size, not the raw count.

Q5.For a sample with p^=0.6\hat{p} = 0.6 and n=150n = 150, the margin of error of an approximate 95%95\% confidence interval (using z=1.96z = 1.96) is closest to:

1mark
Need a hint?
Work out the standard error first, then remember to multiply it by z=1.96z = 1.96.

Q6.A reporter writes: 'There is a 95%95\% probability that the true proportion lies between 0.420.42 and 0.480.48.' The correct interpretation of a 95%95\% confidence interval is:

1mark
Need a hint?
Remember that the true proportion is fixed, and it is the interval that changes from sample to sample.

Q7.Keeping p^\hat{p} fixed, a researcher increases the sample size nn by a factor of 44. The margin of error of the 95%95\% confidence interval is:

1mark
Need a hint?
The sample size nn sits under a square root, so think about what 4\sqrt{4} does to the margin.

Q8.Compared with a 95%95\% confidence interval from the same sample, a 99%99\% confidence interval is:

1mark
Need a hint?
Think about whether more confidence needs a bigger or smaller zz value, and what that does to the width.

Q9.A sample of n=100n = 100 has sample proportion p^=0.5\hat{p} = 0.5. Using z=1.96z = 1.96, find the approximate 95%95\% confidence interval for pp. Show your working.

3marks

Work this on paper. The worked solution appears once you submit.

Frequently asked questions

What does a 95% confidence interval actually mean?
It means that if you repeated the whole sampling process many times, about 95 per cent of the intervals you build would contain the true proportion. It is not a 95 per cent chance that the true proportion sits in your one interval, because the true proportion is a fixed number, not random. What changes from sample to sample is the interval.
Why does a higher confidence level give a wider interval?
More confidence needs a larger z value, and a larger z makes the margin of error bigger. So a 99 per cent interval is wider than a 95 per cent interval from the same sample. The trade off is that more confidence costs you precision, and the only way to get both is to take a bigger sample.
What z value do I use for a 95% confidence interval?
Use z = 1.96 for a 95 per cent interval. For 90 per cent use z = 1.645, and for 99 per cent use about z = 2.576. The z value sets how many standard errors wide the cushion is on each side of the sample proportion.