From the free course AP Statistics on Lykke
3.3 Constructing a Confidence Interval for a Population Proportion
Key concepts: One-sample z-interval — the procedure for a single population proportion · Parameter in context — proportion, response variable and population named · Conditions — random sample, 10% rule, at least 10 successes and failures · Standard error — SE = √(p̂(1−p̂)/n), the estimated spread of p̂ · Critical value z* — cuts off the middle C% of the standard normal · Margin of error z*·SE, and n ≈ (z*/MOE)²p̂(1−p̂) for a target margin
A point estimate, such as a sample proportion ($\hat{p}$), provides a single "best guess" for a population parameter. However, because of sampling variability, we know this single value is almost certainly not exactly equal to the true population proportion ($p$).
A point estimate, such as a sample proportion ($\hat{p}$), provides a single "best guess" for a population parameter. However, because of sampling variability, we know this single value is almost certainly not exactly equal to the true population proportion ($p$). To account for this uncertainty, we construct a confidence interval: an interval of plausible values for the parameter, calculated from sample data. For a single population proportion, the standard procedure is the one-sample $z$-interval for a population proportion.
The Anatomy of an Interval
The construction of a confidence interval follows a consistent logic: take the point estimate and add/subtract a margin of error (MOE). This margin of error represents the maximum expected difference between the sample statistic and the population parameter at a specific confidence level.
The General Formula: $$\text{Point Estimate} \pm \text{Margin of Error}$$ $$\hat{p} \pm (z^*)(\text{SE}_{\hat{p}})$$
Components of the Calculation
- Point Estimate ($\hat{p}$): The proportion of successes observed in the sample.
- Critical Value ($z^*$): A multiplier based on the desired confidence level. It represents how many standard deviations you must move away from the mean of a standard Normal distribution to capture the central $C%$ of the area. For a $95%$ confidence level, $z^* \approx 1.96$.
- Standard Error ($\text{SE}_{\hat{p}}$): Since the true population proportion $p$ is unknown, we cannot calculate the true standard deviation of the sampling distribution. Instead, we use the sample proportion to estimate it: $\text{SE}_{\hat{p}} = \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}$.
Justifying the Method: Verifying Conditions
Before calculating, we must justify the use of the $z$-interval by verifying three critical conditions. If these are not met, the resulting interval may be misleading or mathematically invalid.
| Condition | Requirement | Statistical Purpose |
|---|---|---|
| Random | Data must come from a random sample or a randomized experiment. | Ensures the sample is representative and the estimator is unbiased. |
| Independent | When sampling without replacement, the sample size $n$ should be $\le 10%$ of the population $N$. | Allows us to use the standard error formula as if observations were independent. |
| Normal (Large Counts) | Both $n\hat{p} \ge 10$ and $n(1 - \hat{p}) \ge 10$. | Ensures the sampling distribution of $\hat{p}$ is approximately Normal, justifying the use of $z^*$. |
Worked Example: The Urban Transit Study
Suppose a city planner wants to estimate the proportion of residents who support a new bike lane. A random sample of $200$ residents finds that $114$ support the proposal. Construct a $95%$ confidence interval for the true proportion of all residents who support the lane.
- Identify Procedure: One-sample $z$-interval for $p$.
- Verify Conditions:
- Random: Stated as a random sample.
- Independent: $200$ is likely less than $10%$ of all city residents.
- Normal: $n\hat{p} = 114 \ge 10$ and $n(1-\hat{p}) = 86 \ge 10$. Conditions met.
- Calculate:
- $\hat{p} = 114/200 = 0.57$
- $\text{SE}_{\hat{p}} = \sqrt{\frac{0.57(0.43)}{200}} \approx 0.035$
- $\text{Interval} = 0.57 \pm 1.96(0.035) = 0.57 \pm 0.0686$
- Result: $(0.5014, 0.6386)$
Determining Sample Size
Often, researchers want to ensure their margin of error does not exceed a specific value. We can rearrange the MOE formula to solve for the required sample size $n$: $$n = \frac{(z^*)^2 \hat{p}(1 - \hat{p})}{(MOE)^2}$$
The Conservative Approach
If you are planning a study and do not yet have a sample proportion ($\hat{p}$), you should use $\hat{p} = 0.5$. This value provides the largest possible product for $\hat{p}(1-\hat{p})$, ensuring the calculated $n$ is large enough to meet the MOE requirement regardless of what the actual proportion turns out to be.
Misconception Check: The "Probability" Trap
A common error is to claim there is a "$95%$ probability" that the true proportion $p$ falls within a specific calculated interval (e.g., $0.50$ to $0.64$). This is incorrect. Once the interval is calculated, the true $p$ is either in it or it isn't—there is no longer any "probability" involved for that specific set of numbers. The $95%$ refers to the process: if we took many random samples and built many intervals, approximately $95%$ of them would successfully capture the true population proportion.
Interpretation Check
A researcher calculates a $90%$ confidence interval for a proportion to be $(0.22, 0.30)$. If the researcher wanted to reduce the margin of error to half its current size while keeping the same confidence level, by what factor would they need to increase the sample size?
Check your reasoning: Since the width of the interval is approximately proportional to $1/\sqrt{n}$, reducing the MOE by half requires increasing the sample size by a factor of $4$ (because $\sqrt{4} = 2$).
