AP Statistics · Topic 3.3 · Reading guide, about 5 min

Building a one-proportion z-interval

How to name, check, compute and interpret a confidence interval for one population proportion, and how sample size sets its width.

In one minute

A point estimate gives one number, but it will almost never equal the true proportion. A confidence interval adds a margin on each side of the estimate to show how far off it could plausibly be. This topic covers how to build the interval for one population proportion, with every step the exam expects.

You will also learn to choose a sample size ahead of time, so that the interval ends up as narrow as you need.

Key terms

Confidence interval
A range of plausible values for a parameter, built from sample data with a method that captures the parameter a stated percent of the time.
One-sample z-interval for pp
The procedure that estimates a single population proportion with a normal-based interval.
Confidence level
The percent CC of the time that the method captures the parameter over many repeated samples.
Critical value z∗z^*
The number of standard errors that leaves the middle CC% of a standard normal curve between −z∗-z^* and z∗z^*.
Standard error
The estimated standard deviation of a statistic; here p^(1−p^)/n\sqrt{\hat{p}(1-\hat{p})/n}.
Margin of error
The amount added and subtracted from the estimate, equal to z∗z^* times the standard error; half the interval width.
Successes and failures
The counts np^n\hat{p} and n(1−p^)n(1-\hat{p}) seen in the sample, which must both be at least 10.
Interval estimate
A statement that gives a range of values instead of a single guess.

Naming the procedure and defining the parameter

Start every interval by naming it and saying what you are estimating. For example: "one-sample z-interval for pp, where pp is the proportion of all students at this school who sleep fewer than 8 hours on school nights." The definition must mention the proportion, the response being counted, and the population. A vague line like "pp is the proportion" earns little credit.

Conditions to check

There are three checks, each written in the context of the problem. First, the data must come from a random sample (or a randomized experiment). Second, the 10% condition: if sampling without replacement, n≤0.10Nn \le 0.10N, which supports independence. Third, the normality check uses the observed counts: np^≥10n\hat{p} \ge 10 and n(1−p^)≥10n(1-\hat{p}) \ge 10.

The key contrast with a test is that an interval has no claimed value, so the counts come from the sample. A test, covered later, uses the claimed p0p_0 instead.

Critical values you should recognize
Confidence levelz∗z^*
90%1.645
95%1.960
99%2.576

The formula and a fully worked example

The interval is p^±z∗p^(1−p^)/n\hat{p} \pm z^* \sqrt{\hat{p}(1-\hat{p})/n}. The first part is the point estimate; the square root is the standard error; the whole thing after the plus-minus sign is the margin of error. For a level not in the table, such as 92%, the middle 92% leaves 0.04 in each tail, so z∗z^* is the 96th percentile of the standard normal curve, about 1.751.

Here is an invented survey. A random sample of n=250n = 250 students from a school of 3,000 is asked about sleep, and 160 say they sleep fewer than 8 hours on school nights. Find a 95% confidence interval for pp.

Conditions: the students were randomly selected. The 10% condition holds because 250≤0.10(3000)=300250 \le 0.10(3000) = 300. The counts are np^=160n\hat{p} = 160 and n(1−p^)=90n(1-\hat{p}) = 90, both at least 10.

Calculation: p^=160/250=0.64\hat{p} = 160/250 = 0.64. The standard error is 0.64(0.36)/250=0.0009216≈0.03036\sqrt{0.64(0.36)/250} = \sqrt{0.0009216} \approx 0.03036. With z∗=1.96z^* = 1.96 the margin of error is 1.96(0.03036)≈0.05951.96(0.03036) \approx 0.0595. The interval is 0.64±0.05950.64 \pm 0.0595. Carried at full precision, the margin of error is about 0.0595014, so the interval is (0.5804986,0.6995014)(0.5804986, 0.6995014), which is (0.580,0.700)(0.580, 0.700) to three decimals.

Conclusion in context: we are 95% confident that the true proportion of all students at this school who sleep fewer than 8 hours on school nights lies between 0.580 and 0.700.

Choosing a sample size

Before collecting data, you can decide how small the margin of error must be and solve for nn: n=(z∗)2 p^(1−p^)/(MOE)2n = (z^*)^2\, \hat{p}(1-\hat{p})/(\text{MOE})^2. Always round up, since rounding down would give a margin slightly too big. If you have a reasonable earlier estimate, use it for p^\hat{p}. If you have none, use p^=0.5\hat{p} = 0.5, which makes p^(1−p^)\hat{p}(1-\hat{p}) as large as possible and so gives a sample size that is safe.

Example: you want a 95% interval with a margin of error no more than 0.03. With no estimate, n=(1.96)2(0.5)(0.5)/(0.03)2=0.9604/0.0009≈1067.1n = (1.96)^2(0.5)(0.5)/(0.03)^2 = 0.9604/0.0009 \approx 1067.1, so use n=1068n = 1068. If the survey above suggests p^=0.64\hat{p} = 0.64, then n=3.8416(0.64)(0.36)/0.0009≈983.4n = 3.8416(0.64)(0.36)/0.0009 \approx 983.4, so n=984n = 984. Using what you already know saves about 84 respondents.

How it connects

  • Back to 3.2: the standard deviation of p^\hat{p} is the starting point; the standard error replaces pp with p^\hat{p}.
  • Back to 3.1: the point estimate p^\hat{p} is the center of the interval.
  • Forward to 3.4: you will learn to interpret the interval and the confidence level precisely.
  • Forward to 3.7: the test statistic uses p0p_0 in the denominator instead.

Common mistakes

  • **Using p0p_0 or 0.50.5 in the standard error.** For an interval, use p^\hat{p}. Only the sample size planning formula falls back to 0.5.
  • Rounding the sample size down. A computed 1067.1 means 1068, because 1067 would not meet the margin target.
  • Leaving out the context in conditions. Write "the 250 students were randomly selected" rather than "random".
  • Treating the margin of error as the full width. The margin is half the width; the interval goes from p^\hat{p} minus it to p^\hat{p} plus it.

How it shows up on the exam

  • A free-response task gives sample counts and asks for the full procedure: name, parameter, conditions, calculation and a conclusion in context.
  • A multiple-choice item asks for the critical value, the standard error or the margin of error from given values.
  • A planning question asks for the minimum sample size for a stated margin of error and confidence level, with the rounding rule applied.

Check yourself

  1. How do you define pp in context so that it earns full credit?
  2. Which counts do you check for an interval, and why are they from the sample?
  3. Why does using p^=0.5\hat{p} = 0.5 give a sample size that is always large enough?
  4. What is the relationship between margin of error and the width of the interval?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.