From one number to a range of values
In Topic 3.2 you saw that a sample proportion p̂ varies from sample to sample. So when you use one sample to estimate a population proportion p, a single number (a point estimate) is almost certainly a little wrong. You do not know by how much.
A confidence interval fixes this. It is an interval estimate: a range of plausible values for the parameter, built from the sample. It has the form
point estimate ± margin of error
For one population proportion, the course uses the one-sample z-interval for a population proportion:
p̂ ± z √[ p̂(1 − p̂) / n ]*
Here p̂ is the sample proportion, n is the sample size and z* is a critical value from the standard normal distribution. This guide explains each piece, the conditions you must check first, and how to plan a sample size. Interpreting the interval and using it to judge a claim is Topic 3.4.
Step 1: name the procedure and define the parameter
On an exam, you are expected to identify the method by name (or by formula). Write: “one-sample z-interval for a population proportion”.
Then define the parameter p in words. A good definition has three parts:
- the proportion (not “the number” or “the percentage of the sample”);
- the response variable, i.e. what counts as a “success”;
- the population, not the sample.
Weak: “p = proportion who said yes.” Strong: “p = the proportion of all adult residents of Hollin Vale who used the town library in the past month.”
The parameter is always about the population. The sample gives you p̂, which is a statistic, not the parameter.
Step 2: check the three conditions
The interval is only trustworthy when these conditions hold. Check each one in context, with numbers.
| Condition | What to check | Why it matters |
|---|---|---|
| Random | The data come from a random sample. | Without randomness, p̂ may be biased and the interval’s confidence level means nothing. |
| 10% | When sampling without replacement, n ≤ 10% of the population size N, that is, N ≥ 10n. | Keeps the observations close enough to independent for the standard-error formula to hold. |
| Large counts (normality) | The observed successes np̂ and observed failures n(1 − p̂) are both at least 10. | Makes the sampling distribution of p̂ approximately normal, so z* is the right multiplier. |
Two points students often miss:
- The large-counts check uses observed counts from the sample. In Topic 3.2 you used np and n(1 − p) because p was known. Here p is unknown, so you use p̂.
- Writing “SRS ✓” earns little. Say what was random: “The 750 adults were selected at random from the town’s electoral roll.”
Step 3: the critical value z*
The critical value z* is the number of standard errors you go out on each side of p̂. It comes from the standard normal distribution: −z* and z* are the boundaries of the middle C% of the curve, where C% is the confidence level.
To find z* for any confidence level C:
- Each tail holds (1 − C)/2.
- So the area to the left of z* is (1 + C)/2.
- Use the inverse normal function with that area, mean 0 and standard deviation 1.
| Confidence level C | Area in each tail | Area to the left of z* | z* |
|---|---|---|---|
| 80% | 0.10 | 0.90 | 1.282 |
| 90% | 0.05 | 0.95 | 1.645 |
| 95% | 0.025 | 0.975 | 1.960 |
| 98% | 0.01 | 0.99 | 2.326 |
| 99% | 0.005 | 0.995 | 2.576 |
A common slip is to put C itself into the inverse normal function. For 90%, invNorm(0.90) gives 1.282, which is the 80% critical value.
Step 4: standard error and margin of error
Standard error. In Topic 3.2 the standard deviation of p̂ was √[p(1 − p)/n]. We cannot calculate it now, because p is unknown. So we replace p with p̂. The result is the standard error of p̂:
SE(p̂) = √[ p̂(1 − p̂) / n ]
The standard error estimates the standard deviation of the sampling distribution of p̂. In words: it is roughly how far p̂ typically lands from the true p in repeated random samples of this size.
Margin of error. The margin of error (MOE) is the critical value times the standard error:
MOE = z × SE(p̂) = z √[ p̂(1 − p̂) / n ]**
The margin of error is half the width of the interval. The interval runs from p̂ − MOE to p̂ + MOE.
Working backwards. Because the interval is symmetric about p̂, you can recover both pieces from any reported interval (a, b):
- point estimate p̂ = (a + b) ÷ 2
- margin of error = (b − a) ÷ 2
For example, a report gives the 95% interval (0.312, 0.388). Then p̂ = 0.700 ÷ 2 = 0.350 and MOE = 0.076 ÷ 2 = 0.038. The standard error is 0.038 ÷ 1.96 ≈ 0.01939, and solving 0.35 × 0.65 ÷ n = 0.01939² gives n ≈ 605 people.
Worked example 1: a 95% interval from start to finish
Question. Hollin Vale, a fictional town, has about 42,000 adult residents. The council selected 750 adults at random from the electoral roll and asked whether they had used the town library in the past month. 279 said yes. Construct a 95% confidence interval for the proportion of all adult residents who used the library in the past month.
Identify. One-sample z-interval for a population proportion. Let p = the proportion of all adult residents of Hollin Vale who used the town library in the past month.
Check conditions.
- Random: the 750 adults were chosen at random from the electoral roll.
- 10%: 750 ≤ 10% of 42,000 = 4,200. ✓
- Large counts: 279 successes and 750 − 279 = 471 failures, both at least 10. ✓
Calculate.
- p̂ = 279 ÷ 750 = 0.372.
- SE = √(0.372 × 0.628 ÷ 750) = 0.01765.
- For 95% confidence, z* = 1.960.
- MOE = 1.960 × 0.01765 = 0.0346.
- Interval: 0.372 ± 0.0346 = (0.337, 0.407).
Check. A calculator’s one-proportion z-interval with x = 279, n = 750 and C-level 0.95 gives the same interval. The interval is centred on 0.372, and its half-width is the margin of error.
Conclude (preview of Topic 3.4). We are 95% confident that the interval from 0.337 to 0.407 captures the proportion of all adult residents of Hollin Vale who used the library in the past month.
Worked example 2: a different confidence level and a small success count
Question. A fictional online shop sent 15,000 orders last month. A manager took a random sample of 200 of these orders; 23 of them arrived late. (a) Construct a 99% confidence interval for the proportion of last month’s orders that arrived late. (b) Without recalculating, would a 95% interval be wider or narrower?
(a) Identify. One-sample z-interval for p, where p = the proportion of all orders sent last month that arrived late.
Check conditions.
- Random: the 200 orders were a random sample of last month’s orders.
- 10%: 200 ≤ 10% of 15,000 = 1,500. ✓
- Large counts: 23 late (successes) and 177 on time (failures). Both are at least 10. ✓ (23 is not far above 10, but the condition is met.)
Calculate.
- p̂ = 23 ÷ 200 = 0.115.
- SE = √(0.115 × 0.885 ÷ 200) = 0.02256.
- For 99% confidence, the area to the left of z* is 0.995, so z* = 2.576.
- MOE = 2.576 × 0.02256 = 0.0581.
- Interval: 0.115 ± 0.0581 = (0.057, 0.173).
(b) Narrower. A 95% interval uses z* = 1.960 instead of 2.576, so the margin of error is smaller. (The 95% interval is (0.071, 0.159).) Topic 3.4 explores this trade-off.
What if the condition had failed? Suppose only 6 of the 200 orders had been late. Then np̂ = 6 < 10, the sampling distribution of p̂ would be noticeably skewed, and the z-interval should not be used. Say so clearly rather than calculating anyway.
Worked example 3: choosing a sample size
Question. A fictional sports club wants to estimate the proportion of its members who would pay for a new indoor court, with 90% confidence and a margin of error of no more than 0.03 (3 percentage points). (a) How many members should it survey if it has no prior estimate? (b) A pilot survey suggests about 20% would pay. How many now?
Set up. Start from MOE = z* √[p̂(1 − p̂)/n] and solve for n:
n = (z / MOE)² × p̂(1 − p̂)*
For 90% confidence, z* = 1.645.
(a) With no estimate, use p̂ = 0.5, so p̂(1 − p̂) = 0.25.
n = (1.645 ÷ 0.03)² × 0.25 = 751.67…
Round up to 752 members. Rounding down to 751 would give a margin of error slightly above 0.03.
(b) With p̂ = 0.2, p̂(1 − p̂) = 0.16.
n = (1.645 ÷ 0.03)² × 0.16 = 481.07…
Round up to 482 members.
Why p̂ = 0.5 is the safe choice. The product p̂(1 − p̂) is 0.09 at 0.1, 0.21 at 0.3, 0.25 at 0.5 and 0.21 at 0.7. It is largest at 0.5. So using 0.5 gives an upper bound on the sample size: 752 members is enough whatever the true proportion is.
Check. The 10% condition still matters. If the club has only 3,000 members, a sample of 752 is more than 300, so the 10% condition would fail and the plan should be rethought.
Common misconceptions
- “The parameter is p̂.” p̂ is the sample proportion you calculate. The parameter p is the unknown population proportion you are estimating.
- Defining p as “the proportion of the 750 adults”. That is p̂. The parameter refers to all adults in the population.
- Checking large counts with n ≥ 30. For proportions the check is about counts: at least 10 successes and at least 10 failures in the sample.
- Using np and n(1 − p) with a made-up p. For a confidence interval, use the observed counts np̂ and n(1 − p̂).
- Using invNorm(C) for z.* Use the area to the left, (1 + C)/2. For 95%, that is invNorm(0.975) = 1.960.
- “The margin of error is the width.” The width is 2 × MOE. The MOE is the distance from p̂ to either end.
- Rounding a required sample size to the nearest whole number. Always round up, or the margin of error will be a little too big.
- “The margin of error covers every kind of mistake.” It only allows for random sampling variation. It does not fix bias from a poor sampling method, non-response or a leading question.
Where this leads
Next, Topic 3.4 shows how to interpret the interval and the confidence level in context, how to use an interval to judge a claim, and how sample size and confidence level change the width: see Justifying a Claim Based on a Confidence Interval for a Population Proportion. Try the practice questions now, then use the revision notes and the checklist to consolidate. If the sampling distribution of p̂ still feels shaky, revisit Topic 3.2.
Quick questions
Why do the conditions use p̂ and not p?
You are estimating p because you do not know it. So the large-counts check uses the observed numbers of successes and failures, np̂ and n(1 − p̂), which you can count from the sample.
Why use p̂ = 0.5 when planning a sample size?
The product p̂(1 − p̂) is largest when p̂ = 0.5 (it equals 0.25). Using 0.5 gives the biggest sample size you could need, so the margin of error will be no larger than planned whatever the true proportion turns out to be.