AP STATISTICS • INFERENCE FOR CATEGORICAL DATA: PROPORTIONS

Constructing a Confidence Interval for a Population Proportion

Estimate the true proportion of a population from sample data with a quantified margin of error.

Historical Context & Motivation

Long before modern polling agencies estimated election outcomes or pharmaceutical companies quantified drug efficacy, statisticians grappled with a fundamental question: how can a single sample drawn from a vast population yield a reliable estimate of an unknown parameter? The development of confidence intervals was the answer — a framework that combines a point estimate with a measure of uncertainty. The story of how we arrived at this framework traces through several centuries of probability theory, from early work on the normal curve to the formalization of inferential methods in the twentieth century.

1733
De Moivre's Normal Approximation
Abraham de Moivre demonstrated that the binomial distribution could be approximated by a bell-shaped curve for large sample sizes, laying the mathematical groundwork for using the normal distribution in inference about proportions.
1812
Laplace's Central Limit Theorem
Pierre-Simon Laplace generalized de Moivre's result, proving that the sum of a large number of independent random variables tends toward a normal distribution regardless of the original distribution — the Central Limit Theorem.
1934
Neyman's Confidence Interval Framework
Jerzy Neyman formally introduced the concept of a confidence interval, defining it as a random interval constructed from sample data that captures the true parameter at a specified long-run rate — a procedure-based, frequentist interpretation.
1940s–1960s
Rise of Survey Sampling
Organizations such as Gallup and the U.S. Census Bureau adopted confidence interval methodology for political polling and demographic surveys, making the ± margin of error a fixture of public discourse.

Today, when a news headline reports that "58% of voters favor the policy, with a margin of error of ±3 percentage points," it is invoking exactly the procedure you are about to learn. The central question this lesson addresses is: given a sample proportion from n observations, how do we construct an interval of plausible values for the true population proportion p, and how do we quantify our confidence in that interval?

Core Principles & Definitions

Before diving into calculations, it is essential to understand the conceptual pillars that support every confidence interval for a population proportion. These principles connect the randomness of sampling to the precision of our estimates and establish the language used throughout inferential statistics.

1

Population Proportion (p)

The true, fixed but unknown fraction of individuals in the entire population who possess a characteristic of interest. This is the parameter we aim to estimate.
2

Sample Proportion (p̂)

Computed as the number of successes divided by the sample size (p̂ = X / n), this statistic varies from sample to sample and serves as the point estimate for p.
3

Sampling Distribution of p̂

If repeated random samples of size n are drawn, the distribution of all possible p̂ values is approximately normal (under certain conditions) with mean p and standard deviation √(p(1 − p)/n).
4

Confidence Level (C)

The long-run proportion of intervals — constructed by repeating the sampling process — that would capture the true p. Common levels are 90%, 95%, and 99%. It is not the probability that p lies inside a particular computed interval.
5

Margin of Error (ME)

The product of the critical value z* and the standard error of p̂. It quantifies the maximum expected distance between p̂ and p at the chosen confidence level.
KEY TAKEAWAY
Think of constructing a confidence interval like casting a fishing net. Your point estimate p̂ determines where you center the net, and the margin of error determines its width. A 95% confidence level means that if you repeated the fishing trip many times — each time drawing a new random sample and casting a new net — about 95% of those nets would capture the true fish (the parameter p). Any single net either caught the fish or it didn't; the 95% describes the reliability of the method, not the probability for one particular cast.

Visual Explanation: The Sampling Distribution & Confidence Interval

The diagram below illustrates the relationship between the sampling distribution of p̂ and the construction of a 95% confidence interval. The bell-shaped curve represents the approximate normal distribution of all possible sample proportions from repeated sampling. The central 95% of this distribution is shaded, and the critical values z* = ±1.96 mark the boundaries. Below the curve, a specific confidence interval is shown, centered at an observed p̂ with the margin of error extending in both directions.

The violet bell curve shows the sampling distribution of p̂ centered at the true proportion p. The cyan-shaded central region captures 95% of all possible sample proportions. The pink line below represents the resulting confidence interval for a specific sample, centered at the observed p̂ with the margin of error (ME) extending in each direction.

Notice the conceptual inversion at the heart of this diagram. The sampling distribution is centered at the unknown true parameter p, yet when we construct a confidence interval, we center it at our observed statistic p̂ and use the standard error (computed from p̂) rather than the true standard deviation (computed from p). This substitution is what makes inference practical — we can build the interval without knowing p — and it works because, for large samples, p̂ is close enough to p that the approximation is reliable.

Mathematical Framework

The confidence interval for a population proportion is sometimes called a one-sample z-interval for p. Its derivation follows directly from the sampling distribution of p̂ and the properties of the standard normal distribution. Below are the key equations and the conditions that must be verified before the interval can be trusted.

POINT ESTIMATE
p̂ = X / n
where X is the number of successes (individuals with the trait) and n is the sample size.
STANDARD ERROR OF p̂
SE = √( p̂(1 − p̂) / n )
The standard error replaces p with p̂ in the standard deviation formula because p is unknown. This estimate of the spread of the sampling distribution is valid when the sample is large enough.
CONFIDENCE INTERVAL FORMULA
p̂ ± z* × √( p̂(1 − p̂) / n )
z* is the critical value from the standard normal distribution corresponding to the desired confidence level C. Common values: z* = 1.645 for 90%, z* = 1.960 for 95%, z* = 2.576 for 99%. The term z* × SE is the margin of error (ME).

Conditions for Inference

Before constructing the interval, three conditions must be checked. On the AP exam, verifying and communicating these conditions in context is essential for earning full credit.

  • Random: The data come from a random sample or a randomized experiment. This ensures that p̂ is an unbiased estimator of p and that the sampling distribution theory applies.
  • Independence (10% Condition): When sampling without replacement, the sample size n must be no more than 10% of the population size N (n ≤ 0.10N). This keeps individual observations approximately independent.
  • Large Counts (Normal Approximation): Both np̂ ≥ 10 and n(1 − p̂) ≥ 10 must hold, ensuring the sampling distribution of p̂ is approximately normal. This is the condition that justifies using the z* critical value.
📝 AP Exam Tip
When asked to "construct and interpret" a confidence interval on the AP exam, always structure your response in four parts: (1) state the parameter and confidence level, (2) check all three conditions in context, (3) perform the calculation showing the formula with substituted values, and (4) interpret the interval in context. Skipping the conditions check is the most common way students lose points on FRQs.

Interpretation & Meaning of Confidence Level

One of the most subtle and frequently tested aspects of confidence intervals is correct interpretation. The confidence level describes a property of the procedure, not of any single interval. Once the interval has been computed from a particular sample, the true proportion p either is or is not inside it — there is no probability to assign. The percentage refers to what would happen across many repetitions of the entire sampling-and-estimating process.

Twenty 95% confidence intervals from 20 independent random samples. The golden dashed line marks the true population proportion p = 0.40. Green intervals capture p; the single red interval does not. Over many repetitions, approximately 19 out of 20 (95%) of such intervals will contain the true proportion.

Correct vs. Incorrect Interpretations

Common correct and incorrect confidence interval interpretations
StatementCorrect?Why
"We are 95% confident that the true proportion of adults who favor the policy is between 0.53 and 0.63."✓ YesUses "we are 95% confident," identifies the parameter in context, and gives both endpoints.
"There is a 95% probability that p is between 0.53 and 0.63."✗ NoAssigns probability to the fixed parameter. In frequentist inference, p is fixed; the interval is random.
"95% of all adults favor the policy."✗ NoConfuses the confidence level with the proportion itself.
"If we took many samples, about 95% of the resulting intervals would contain the true p."✓ YesCorrectly describes the long-run frequency interpretation of the confidence level.

Worked Example

A university's student health center wants to estimate the proportion of undergraduates who received a flu vaccine this year. A simple random sample of 400 undergraduates is selected from the 9,200 enrolled, and 148 report having received the vaccine. Construct a 95% confidence interval for the true proportion of all undergraduates at this university who received the flu vaccine.

One-Sample z-Interval for a Proportion
1
Step 1 — Define the ParameterLet p = the true proportion of all undergraduates at this university who received a flu vaccine this year. We will construct a 95% confidence interval for p.
2
Step 2 — Check ConditionsRandom: The problem states that a simple random sample of 400 undergraduates was selected. ✓ Independence (10% condition): n = 400 ≤ 0.10 × 9,200 = 920. The sample is less than 10% of the population, so individual responses are approximately independent. ✓ Large Counts: np̂ = 400 × 0.37 = 148 ≥ 10 and n(1 − p̂) = 400 × 0.63 = 252 ≥ 10. ✓ All conditions are met.
3
Step 3 — Compute the Point Estimatep̂ = 148 / 400 = 0.37
p̂ = 0.37
4
Step 4 — Compute the Standard ErrorSE = √( p̂(1 − p̂) / n ) = √( 0.37 × 0.63 / 400 ) = √( 0.2331 / 400 ) = √0.00058275 ≈ 0.02414
SE ≈ 0.0241
5
Step 5 — Find the Critical Value and Margin of ErrorFor 95% confidence, z* = 1.960. The margin of error is ME = z* × SE = 1.960 × 0.02414 ≈ 0.04731.
ME ≈ 0.0473
6
Step 6 — Construct the Intervalp̂ ± ME = 0.37 ± 0.0473 → (0.37 − 0.0473, 0.37 + 0.0473) = (0.3227, 0.4173).
95% CI: (0.323, 0.417)
7
Step 7 — Interpret in ContextWe are 95% confident that the true proportion of all undergraduates at this university who received a flu vaccine this year is between 0.323 and 0.417 (approximately 32.3% to 41.7%).

Factors Affecting the Width of the Interval

A confidence interval is most useful when it is narrow enough to provide actionable information. Understanding what drives the width of the interval empowers you to design better studies and to anticipate how changes in sample size or confidence level will affect your conclusions.

How each factor influences the margin of error
FactorChangeEffect on Interval WidthExplanation
Sample size (n)Increase nNarrowern appears in the denominator under the square root, so larger n reduces SE and thus ME. To cut the margin of error in half, you must quadruple n.
Confidence level (C)Increase C (e.g., 95% → 99%)WiderHigher confidence requires a larger z*, which inflates ME. Greater certainty comes at the cost of precision.
Sample proportion (p̂)p̂ closer to 0.5WiderThe product p̂(1 − p̂) is maximized at p̂ = 0.5, producing the largest SE. Extreme proportions yield narrower intervals.
⚖️ KEY TAKEAWAY
There is always a tradeoff between confidence and precision — like adjusting the zoom on a camera. Zooming in (higher precision, narrower interval) risks missing the subject; zooming out (higher confidence, wider interval) is safer but less informative. The only way to get both higher confidence and a narrower interval is to collect more data — increase n.

Connection to Hypothesis Testing & Advanced Methods

The one-sample z-interval for a proportion does not exist in isolation. It connects directly to hypothesis testing and serves as a stepping stone to more advanced inference procedures. Understanding these links strengthens your conceptual framework for the entire inference unit on the AP exam.

Confidence Interval vs. Significance Test for a single proportion
FeatureConfidence Interval for pSignificance Test for p
GoalEstimate p with a range of plausible valuesTest a claim about a specific value of p
Standard error usesp̂ (since p is unknown)p₀ (the null hypothesis value)
Large Counts conditionnp̂ ≥ 10 and n(1 − p̂) ≥ 10np₀ ≥ 10 and n(1 − p₀) ≥ 10
OutputAn interval (L, U)A p-value
ConnectionIf p₀ lies outside a 95% CI, the two-sided test rejects H₀ at α = 0.05If the two-sided test rejects at α = 0.05, then p₀ lies outside the 95% CI

Beyond the one-sample case, the same logic extends to two-sample z-intervals for the difference of two proportions (p₁ − p₂), which you will encounter later in the AP Statistics curriculum. The structure is identical — point estimate ± (critical value × standard error) — but the standard error formula accounts for two independent samples. Furthermore, when the normal approximation is unreliable (small samples or extreme proportions), alternatives such as the Wilson score interval or the Agresti–Coull interval provide better coverage properties. While these are beyond the AP exam, knowing they exist gives you perspective on the limits of the Wald interval you are learning here.

Practice Problems

1
A researcher constructs a 95% confidence interval for the proportion of residents in a city who support a new recycling program and obtains (0.41, 0.53). Which of the following is a correct interpretation of this interval?
2
In a random sample of 500 registered voters, 280 say they plan to vote for Candidate A. What is the 90% confidence interval for the true proportion of all registered voters who plan to vote for Candidate A?
3
A 99% confidence interval for a population proportion is calculated to be (0.28, 0.52). What are the values of the point estimate p̂ and the margin of error?
PROBLEM 4APPLIED
A quality control engineer at a semiconductor manufacturing plant selects a simple random sample of 250 microchips from the day's production run of 8,000 chips and finds that 18 are defective. (a) Construct a 95% confidence interval for the true proportion of defective chips in the day's production run. Show your work, including verification of conditions. (b) Based on your interval, is there convincing evidence that the defect rate exceeds the company's target maximum of 5%? Explain.
PROBLEM 5CRITICAL THINKING
A polling organization wants to estimate the proportion of adults in a state who favor a proposed education reform. They want the margin of error for a 95% confidence interval to be no more than 0.03 (3 percentage points). (a) If the organization has no prior estimate for p, what is the minimum sample size required? Show your derivation. (b) A previous survey suggested that approximately 65% of adults favor the reform. How does using this prior estimate change the required sample size? Explain mathematically why the answer differs from part (a). (c) A colleague suggests that instead of increasing the sample size, the organization could simply use a 90% confidence level to achieve the desired margin of error with fewer respondents. Discuss the statistical tradeoff involved in this approach.

Summary

A confidence interval for a population proportion takes the form p̂ ± z* × √(p̂(1 − p̂)/n), where the point estimate p̂ = X/n is the center, the critical value z* determines the confidence level (1.645 for 90%, 1.960 for 95%, 2.576 for 99%), and the standard error measures the variability of p̂ from sample to sample. The product of z* and the standard error is the margin of error.

Before constructing the interval, verify three conditions: the data come from a random sample, the sample is no more than 10% of the population (independence/10% condition), and both np̂ and n(1 − p̂) are at least 10 (Large Counts condition). When interpreting, state: "We are C% confident that the true proportion of [context] is between [lower bound] and [upper bound]." The confidence level describes the long-run capture rate of the method, not the probability that a specific interval contains p. Increasing sample size narrows the interval; increasing the confidence level widens it.

Varsity Tutors • AP Statistics • Constructing a Confidence Interval for a Population Proportion