Skip to content
Family Table Math
Auto

Confidence Interval for a Population Proportion

A sample proportion is a good guess for a population proportion, but it’s almost never exactly right. A confidence interval turns that single guess into a range of plausible values, together with an honest statement of how reliable the method is. This is the first full inference procedure in AP Statistics, and the same structure (conditions, calculation, interpretation in context) returns in every interval you’ll build later.

Every confidence interval in AP Statistics has the same form:

point estimate±margin of errororstatistic±(critical value)(standard error)\text{point estimate} \pm \text{margin of error} \qquad\text{or}\qquad \text{statistic} \pm (\text{critical value})(\text{standard error})

For a population proportion pp, the point estimate is the sample proportion p^\hat{p}. The procedure is called a one-sample z-interval for a population proportion:

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

In the sampling distribution of p̂, the standard deviation is p(1−p)n\sqrt{\dfrac{p(1 - p)}{n}}. When you’re building an interval, pp is exactly what you don’t know, so you replace it with p^\hat{p}. The result is the standard error:

SEp^=p^(1−p^)nSE_{\hat{p}} = \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}

The standard error estimates the typical distance between p^\hat{p} and pp in repeated random samples of size nn. The margin of error is z∗z^* times the standard error. It’s half the width of the interval.

The critical value z∗z^* marks off the middle C%C\% of the standard normal distribution, where C%C\% is the confidence level. The most common ones:

Confidence level90%90\%95%95\%99%99\%
z∗z^*1.6451.6451.9601.9602.5762.576

For any other level, the area to the left of z∗z^* is C%C\% plus half of what’s left over. On a TI-84, z∗=z^* = invNorm((1 + C)/2). For 92%92\% confidence, that’s invNorm(0.96) =1.751= 1.751.

ConditionWhat to check
RandomThe data come from a random sample from the population of interest.
10%When sampling without replacement, n≤10%n \le 10\% of the population.
Large CountsThe observed numbers of successes and failures, np^n\hat{p} and n(1−p^)n(1 - \hat{p}), are both at least 1010.

For an interval you check Large Counts with the observed counts, because pp is unknown. (For a significance test you’ll use the hypothesized value instead; see the test for a proportion.)

Interpreting the interval and the confidence level

Section titled “Interpreting the interval and the confidence level”

These are two different sentences, and the AP exam often asks for both.

  • The interval: “We are 95%95\% confident that the interval from 0.5580.558 to 0.6420.642 captures the true proportion of all Alberta teens who get less than 88 hours of sleep on school nights.” Always name the parameter, the population, and the context.
  • The confidence level: “If we took many random samples of 520520 Alberta teens and built a 95%95\% interval from each, about 95%95\% of those intervals would capture the true proportion.” The confidence level describes the method, not one particular interval.

Once you’ve built an interval, it either contains pp or it doesn’t. You just don’t know which. That’s why you say “confident”, not “there’s a 95%95\% probability”.

Twenty-five vertical 95% confidence intervals from simulated samples of 100 when p = 0.60. A dashed horizontal line marks p = 0.60. Twenty-four intervals cross the line; interval 17, centred at 0.49, lies entirely below it. 0.40 0.50 0.60 0.70 0.80 1 5 10 15 20 25 sample number p = 0.60 misses
Twenty-five simulated 95%95\% intervals, each from a random sample of 100100 when p=0.60p = 0.60. Each interval is centred at its own p^\hat{p}; 2424 of the 2525 capture pp.

A confidence interval gives the plausible values of pp. To judge a claim about pp:

  • If the claimed value is outside the interval, the data give convincing evidence against the claim.
  • If the claimed value is inside the interval, it’s plausible. That doesn’t prove the claim; other values in the interval are plausible too.
  • Higher confidence → wider interval. A bigger z∗z^* means a bigger margin of error.
  • Bigger sample → narrower interval. The width is roughly proportional to 1n\dfrac{1}{\sqrt{n}}, so you need about four times the sample size to halve the margin of error.

To get a margin of error of at most MEME, solve z∗p^(1−p^)n≤MEz^*\sqrt{\dfrac{\hat{p}(1 - \hat{p})}{n}} \le ME for nn:

n≥(z∗ME)2p^(1−p^)n \ge \left(\frac{z^*}{ME}\right)^2 \hat{p}(1 - \hat{p})

Use a guess for p^\hat{p} from an earlier study. With no guess, use p^=0.5\hat{p} = 0.5, which gives the largest (safest) sample size. Always round up.

The formula sheet gives the general form statistic±(critical value)(standard error)\text{statistic} \pm (\text{critical value})(\text{standard error}) and SEp^SE_{\hat{p}}. A complete answer has four parts:

  1. State: the parameter (in context) and the confidence level.
  2. Plan: name the procedure (one-sample z-interval for pp) and check the three conditions with numbers.
  3. Do: calculate the interval (show the formula with numbers substituted; 1-PropZInt on a TI-84 is a good check).
  4. Conclude: interpret the interval in context.

Find z∗z^* for (a) 95%95\% confidence and (b) 92%92\% confidence.

Solution.

(a) The middle 95%95\% leaves 2.5%2.5\% in each tail, so z∗z^* has area 0.9750.975 to its left: z∗=1.960z^* = 1.960.

(b) The middle 92%92\% leaves 4%4\% in each tail, so z∗z^* has area 0.960.96 to its left: invNorm(0.96) =1.751= 1.751.

Example 2: Building and interpreting an interval

Section titled “Example 2: Building and interpreting an interval”

A health researcher surveys a random sample of 520520 Alberta teens. Of them, 312312 say they usually get less than 88 hours of sleep on school nights.

  • (a) Construct and interpret a 95%95\% confidence interval for the proportion of all Alberta teens who usually get less than 88 hours of sleep on school nights.
  • (b) Interpret the confidence level.

Solution.

(a) State. Let pp be the true proportion of all Alberta teens who usually get less than 88 hours of sleep on school nights. We’ll estimate pp with 95%95\% confidence.

Plan. One-sample z-interval for pp.

  • Random: a random sample of Alberta teens.
  • 10%: 520520 is less than 10%10\% of all Alberta teens (there are well over 52005200).
  • Large Counts: 312312 successes and 520−312=208520 - 312 = 208 failures, both at least 1010.

Do. p^=312520=0.60\hat{p} = \dfrac{312}{520} = 0.60.

SE=0.60(0.40)520=0.0215ME=1.96(0.0215)=0.04210.60±0.0421⇒(0.558, 0.642)\begin{aligned} SE &= \sqrt{\frac{0.60(0.40)}{520}} = 0.0215 \\ ME &= 1.96(0.0215) = 0.0421 \\ 0.60 &\pm 0.0421 \quad\Rightarrow\quad (0.558,\ 0.642) \end{aligned}

Conclude. We are 95%95\% confident that the interval from 0.5580.558 to 0.6420.642 captures the true proportion of all Alberta teens who usually get less than 88 hours of sleep on school nights.

(b) If we took many random samples of 520520 Alberta teens and built a 95%95\% confidence interval from each, about 95%95\% of those intervals would capture the true proportion of Alberta teens who get less than 88 hours of sleep.

Example 3: Does the interval support a claim?

Section titled “Example 3: Does the interval support a claim?”

Use the interval from Example 2.

  • (a) A newspaper says that “a majority of Alberta teens” get less than 88 hours of sleep on school nights. Does the interval support this?
  • (b) A school board says two-thirds of teens get less than 88 hours. Is that plausible?

Solution.

(a) Yes. Every value in the interval (0.558, 0.642)(0.558,\ 0.642) is greater than 0.50.5, so the interval gives convincing evidence that more than half of Alberta teens get less than 88 hours of sleep.

(b) Two-thirds is 0.6670.667, which is above the interval. So 0.6670.667 is not a plausible value for pp: the data give convincing evidence that the proportion is less than two-thirds.

A city wants to estimate the proportion of residents who support a new bike lane, with 95%95\% confidence and a margin of error of at most 33 percentage points.

  • (a) How many residents should it survey if it has no idea what the proportion will be?
  • (b) How many if a similar city found about 20%20\% support?

Solution.

(a) Use p^=0.5\hat{p} = 0.5:

n≥(1.960.03)2(0.5)(0.5)=1067.1n \ge \left(\frac{1.96}{0.03}\right)^2 (0.5)(0.5) = 1067.1

Round up: survey at least 10681068 residents.

(b) Use p^=0.20\hat{p} = 0.20:

n≥(1.960.03)2(0.20)(0.80)=682.95n \ge \left(\frac{1.96}{0.03}\right)^2 (0.20)(0.80) = 682.95

Round up: survey at least 683683 residents. A good prior guess can save a lot of surveying, but if the guess is wrong (true support turns out near 50%50\%), the margin of error will be bigger than planned.

Saying there’s a 95% probability that p is in the interval. Once the interval is calculated, pp is either in it or not. The 95%95\% describes how often the method works in repeated sampling. Say “we are 95%95\% confident that the interval captures pp”.

Interpreting the interval as describing individuals. ”95%95\% of teens sleep between 0.5580.558 and 0.6420.642” makes no sense. The interval is about the population proportion, not about individuals or the sample.

Making the interval about p̂. You already know p^\hat{p} exactly; it’s always in the middle of its own interval. The interval estimates the unknown parameter pp.

Checking Large Counts with a guessed p. For an interval, use the observed successes and failures (np^n\hat{p} and n(1−p^)n(1 - \hat{p})), which are just the counts in your sample.

Thinking higher confidence gives a narrower interval. It’s the opposite: to be more confident you capture pp, you need a wider net.

Forgetting that the margin of error ignores bias. The margin of error only covers random sampling variability. A biased sample (undercoverage, non-response, leading questions) can be far off no matter how small the margin of error is.

1. (Warm-up) Find z∗z^* for (a) 90%90\%, (b) 98%98\%, and (c) 80%80\% confidence.

Solution

(a) Area to the left 0.950.95: z∗=1.645z^* = 1.645.

(b) Area to the left 0.990.99: z∗=2.326z^* = 2.326.

(c) Area to the left 0.900.90: z∗=1.282z^* = 1.282.

2. (Warm-up) In a random sample of 400400 customers, 140140 bought a hot drink. Find the standard error and the margin of error for a 90%90\% confidence interval for pp.

Solution

p^=140400=0.35\hat{p} = \dfrac{140}{400} = 0.35.

SE=0.35(0.65)400=0.0238ME=1.645(0.0238)=0.0392SE = \sqrt{\frac{0.35(0.65)}{400}} = 0.0238 \qquad ME = 1.645(0.0238) = 0.0392

3. (Warm-up) A 95%95\% confidence interval for a proportion is (0.42, 0.50)(0.42,\ 0.50). Find the sample proportion and the margin of error.

Solution

The sample proportion is the midpoint: p^=0.42+0.502=0.46\hat{p} = \dfrac{0.42 + 0.50}{2} = 0.46. The margin of error is half the width: ME=0.50−0.422=0.04ME = \dfrac{0.50 - 0.42}{2} = 0.04.

4. (Core) A coffee chain takes a random sample of 250250 of its recent transactions from across the country. Of these, 8585 were paid with the chain’s mobile app. Construct and interpret a 99%99\% confidence interval for the proportion of all its transactions paid with the app.

Solution

State. pp = the true proportion of all the chain’s transactions paid with the mobile app; 99%99\% confidence.

Plan. One-sample z-interval for pp. Random: random sample of transactions. 10%: 250250 is far less than 10%10\% of all the chain’s transactions. Large Counts: 8585 successes and 165165 failures, both at least 1010.

Do. p^=85250=0.34\hat{p} = \dfrac{85}{250} = 0.34.

0.34±2.5760.34(0.66)250=0.34±0.0772⇒(0.263, 0.417)0.34 \pm 2.576\sqrt{\frac{0.34(0.66)}{250}} = 0.34 \pm 0.0772 \quad\Rightarrow\quad (0.263,\ 0.417)

Conclude. We are 99%99\% confident that the interval from 0.2630.263 to 0.4170.417 captures the true proportion of all the chain’s transactions that are paid with the mobile app.

5. (Core) A 95%95\% confidence interval for the proportion of Saskatchewan farms that use drone imaging is (0.213, 0.287)(0.213,\ 0.287), based on a random sample of farms. Interpret (a) the interval and (b) the confidence level.

Solution

(a) We are 95%95\% confident that the interval from 0.2130.213 to 0.2870.287 captures the true proportion of all Saskatchewan farms that use drone imaging.

(b) If we took many random samples of the same size from Saskatchewan farms and built a 95%95\% confidence interval from each, about 95%95\% of the intervals would capture the true proportion of farms that use drone imaging.

6. (Core) A town council claims that at least 40%40\% of households compost their food waste. A random sample gives a 95%95\% confidence interval of (0.33, 0.39)(0.33,\ 0.39) for the proportion of households that compost. Does the interval support the council’s claim? Explain.

Solution

No. Every plausible value in the interval is below 0.400.40, so 0.400.40 (and anything above it) is not a plausible value for pp. The interval gives convincing evidence that fewer than 40%40\% of households compost.

7. (Core) A pollster wants a 90%90\% confidence interval with a margin of error of at most 0.040.04. A pilot study suggests pp is about 0.150.15. How large a sample does she need?

Solutionn≥(1.6450.04)2(0.15)(0.85)=215.6n \ge \left(\frac{1.645}{0.04}\right)^2 (0.15)(0.85) = 215.6

Round up: at least 216216 people.

8. (Challenge) A random sample of 300300 voters gives p^=0.50\hat{p} = 0.50 and a 95%95\% margin of error of 0.0570.057.

  • (a) Without recomputing from scratch, estimate the margin of error if the sample had been 12001200 voters (with the same p^\hat{p}).
  • (b) Estimate the 99%99\% margin of error for the original sample of 300300.
  • (c) The pollster says: “To halve the margin of error, I’ll double the sample size.” Is she right?
Solution

(a) 12001200 is 44 times 300300, so the standard error is divided by 4=2\sqrt{4} = 2: ME≈0.0572=0.028ME \approx \dfrac{0.057}{2} = 0.028. (Check: 1.960.251200=0.02831.96\sqrt{\dfrac{0.25}{1200}} = 0.0283.)

(b) Only z∗z^* changes: ME≈0.057×2.5761.960=0.0749ME \approx 0.057 \times \dfrac{2.576}{1.960} = 0.0749. (Directly: 2.5760.25300=0.07442.576\sqrt{\dfrac{0.25}{300}} = 0.0744; the small difference is from rounding 0.0570.057.)

(c) No. Doubling nn divides the margin of error by 2≈1.41\sqrt{2} \approx 1.41, so it only shrinks to about 71%71\% of its size. To halve it, she needs four times the sample, 12001200 voters.

9. (Challenge) A student wants a 95%95\% confidence interval for the proportion of students at her school of 400400 who have visited the Yukon. She surveys a random sample of 6060 students, and 77 have been. Which conditions fail, and why does each matter?

Solution
  • 10%: 10%10\% of 400400 is 4040, and 60>4060 \gt 40. The observations aren’t close enough to independent, so the standard error formula overstates the variability.
  • Large Counts: only 77 successes, which is less than 1010. The sampling distribution of p^\hat{p} is likely skewed right, so using z∗z^* from the normal distribution isn’t justified, and the "95%95\%" may not be accurate.

The Random condition is met (a random sample). She should either sample differently or use a method not based on the normal model.

Try these independently after the practice questions. Show your setup and explain your reasoning. Check every condition with numbers and in context, and interpret your answers in context. Homework solutions are not provided on the published site.

All data in these questions are hypothetical.

H1. (Foundations) Find z∗z^* for (a) 85%85\% confidence and (b) 96%96\% confidence. Show how you found each one.

H2. (Foundations) A transit authority takes a random sample of 350350 of the 64 00064\,000 riders who used a new rapid bus route last month. Of these, 238238 said they would recommend the route.

  • (a) Define the parameter in context.
  • (b) Check the conditions for a one-sample z-interval for pp.

H3. (Core) In a random sample of 900900 Canadian adults, 549549 said they would prefer to stop changing the clocks twice a year. Construct and interpret a 95%95\% confidence interval for the proportion of all Canadian adults who would prefer this.

H4. (Core) A survey produces a 95%95\% confidence interval of (0.578, 0.642)(0.578,\ 0.642) for the proportion of Canadian adults who would prefer to stop changing the clocks. For each statement, say whether it is a correct interpretation, and explain.

  • (a) “There is a 95%95\% probability that the true proportion is between 0.5780.578 and 0.6420.642.”
  • (b) “About 95%95\% of Canadian adults are between 0.5780.578 and 0.6420.642 in favour.”
  • (c) “If many random samples of the same size were taken, about 95%95\% of the resulting intervals would capture the true proportion.”
  • (d) “We are 95%95\% confident that between 57.8%57.8\% and 64.2%64.2\% of the people in the sample would prefer this.”

H5. (Core) Use the interval (0.578, 0.642)(0.578,\ 0.642) from H4.

  • (a) A politician says a majority of Canadian adults would prefer to stop changing the clocks. Is this supported? Explain.
  • (b) A columnist says two out of three Canadian adults would prefer it. Is this plausible? Explain.

H6. (Core) A province wants to estimate the proportion of drivers who use a phone while driving, with 99%99\% confidence and a margin of error of at most 0.0250.025. It has no earlier estimate. Using z∗=2.576z^* = 2.576, how many drivers must it observe?

H7. (Challenge) A calculator reports a confidence interval of (0.4409, 0.5191)(0.4409,\ 0.5191) for a proportion, from a random sample of 500500.

  • (a) Find p^\hat{p}, the margin of error, and the number of successes.
  • (b) Find the confidence level that was used.

H8. (Challenge) From one random sample, a researcher builds a 90%90\% confidence interval of (0.52, 0.60)(0.52,\ 0.60) for a proportion.

  • (a) Find the 95%95\% and 99%99\% confidence intervals from the same sample.
  • (b) Estimate the sample size.
  • (c) Which of the three intervals give convincing evidence that p>0.5p \gt 0.5?

H9. (Challenge) A class of 2020 students each take their own random sample and build a 95%95\% confidence interval for the same population proportion.

  • (a) How many of the 2020 intervals would you expect to miss pp?
  • (b) Assuming the samples are independent, find the probability that all 2020 intervals capture pp.
  • (c) A student says: “My interval captured pp with probability 0.950.95, so after seeing it, I know there’s a 95%95\% chance pp is inside.” Explain the flaw.

H10. (Challenge) A city of 80 00080\,000 households wants to estimate the proportion that would sign up for a green-bin program, with 95%95\% confidence and a margin of error of at most 33 percentage points. A pilot survey suggests about 70%70\% would sign up.

  • (a) How many households should it survey?
  • (b) Is the 10% condition likely to be met? Explain.
  • (c) The city plans to post the survey on its website and use whoever responds. Explain why a large number of responses wouldn’t make the margin of error a fair summary of the error in the estimate.