01 / 21
%

Confidence Interval
for a Proportion

Learn to build and interpret z-intervals that estimate a population proportion \( p \) with a measurable level of confidence.

College Statistics

What Is a Proportion?

A proportion is the fraction of individuals in a population (or sample) that have a particular characteristic. We use \( p \) for the true population proportion and \( \hat{p} \) for the sample proportion.

\( p \): Population
The true, usually unknown, fraction we want to estimate.
\( \hat{p} \): Sample
The observed fraction: \( \hat{p} = \frac{x}{n} \), where \( x \) = successes, \( n \) = sample size.

Why Build a Confidence Interval?

A single sample proportion \( \hat{p} \) is almost certainly not exactly equal to the true \( p \). A confidence interval gives a range of plausible values for \( p \) along with a stated level of confidence.

0.45 0.50 0.55 0.60
\(\hat{p} = 0.55\)
Lower Upper

Sampling Distribution of \( \hat{p} \)

When certain conditions are met, the sampling distribution of \( \hat{p} \) is approximately normal with:

Mean
\( \mu_{\hat{p}} = p \)
Standard Error
\( SE = \sqrt{\frac{p(1-p)}{n}} \)
p 2.5% 2.5% 95% of samples

Conditions for the z-Interval

Before constructing the interval, three conditions must be checked:

1
Random: The data must come from a random sample or randomised experiment.
2
Large Counts (Normal): Both \( n\hat{p} \geq 10 \) and \( n(1-\hat{p}) \geq 10 \) so the Normal approximation is valid.
3
Independence (10% Rule): If sampling without replacement, the sample size must be < 10% of the population: \( n \leq 0.10N \).

The z-Interval Formula

Once conditions are met, the confidence interval for \( p \) is:

\( \hat{p} \)
Point estimate (sample proportion)
\( z^{*} \)
Critical value from the standard Normal distribution
\( \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \)
Standard error of \( \hat{p} \)

Common \( z^{*} \) Values

Confidence Level \( z^{*} \) Tail Area \( \alpha/2 \)
90% 1.645 0.05
95% 1.960 0.025
99% 2.576 0.005

CI vs Hypothesis Test

Feature Confidence Interval Hypothesis Test
Goal Estimate a range for \( p \) Decide if \( p = p_0 \)
SE uses \( \hat{p} \) (sample) \( p_0 \) (hypothesised)
Output Interval \((\text{L},\;\text{U})\) \(p\)-value + decision
Conditions \( n\hat{p}\geq10,\;n(1-\hat{p})\geq10 \) \( np_0\geq10,\;n(1-p_0)\geq10 \)

How to Construct the Interval

1
Identify parameters: State \( n \), \( x \), and compute \( \hat{p} = x / n \).
2
Check conditions: Random, Large Counts (\( n\hat{p}\geq10 \) and \( n(1-\hat{p})\geq10 \)), 10% Rule.
3
Choose confidence level and find \( z^{*} \) (e.g., 1.960 for 95%).
4
Compute SE: \( SE = \sqrt{\hat{p}(1-\hat{p})/n} \).
5
Build the interval: \( \hat{p} \pm z^{*} \cdot SE \).
6
Interpret: "We are C% confident that the true proportion is between L and U."

Example 1: Voter Poll

A random sample of \( n = 400 \) voters finds \( x = 220 \) support a measure. Construct a 95% confidence interval for \( p \).

1
\( \hat{p} = 220/400 = \) 0.55
2
Large Counts: \( 400(0.55) = 220 \geq 10 \) ✓ and \( 400(0.45) = 180 \geq 10 \) ✓
3
\( SE = \sqrt{\frac{0.55 \times 0.45}{400}} = \sqrt{0.00061875} \approx \) 0.02487
4
\( \text{ME} = 1.960 \times 0.02487 \approx \) 0.04875

Visualising Example 1

0.45 0.50 0.55 0.60 0.65 0.501 0.599
\(\hat{p} = 0.55\)
ME ME

Example 2: Defective Parts

A factory inspects a random sample of \( n = 150 \) items and finds \( x = 12 \) defective. Build a 99% confidence interval for the defect rate.

1
\( \hat{p} = 12/150 = \) 0.08
2
Counts: \( 150(0.08) = 12 \geq 10 \) ✓ and \( 150(0.92) = 138 \geq 10 \) ✓
3
\( SE = \sqrt{\frac{0.08 \times 0.92}{150}} \approx \) 0.02215
4
\( \text{ME} = 2.576 \times 0.02215 \approx \) 0.05706

Example 3: Sample Size Planning

How large a sample is needed to estimate a proportion within \( \pm 0.03 \) at the 95% confidence level, if no prior estimate is available?

1
No prior estimate: use the conservative \( \hat{p} = 0.5 \) (maximises product).
2
\( n = \left(\frac{1.960}{0.03}\right)^{2}(0.5)(0.5) = (65.33)^{2}(0.25) \approx 1067.1 \)
3
Always round up: \( n = \) 1068.

What Affects Width?

The margin of error \( ME = z^{*}\sqrt{\hat{p}(1-\hat{p})/n} \) depends on three quantities:

\( z^{*} \) (Confidence)
Higher confidence \(\rightarrow\) larger \( z^{*} \) \(\rightarrow\) wider interval.
\( n \) (Sample Size)
Larger \( n \) \(\rightarrow\) smaller SE \(\rightarrow\) narrower interval.
\( \hat{p} \)
\( \hat{p}(1-\hat{p}) \) is maximised at 0.5 and decreases toward 0 or 1.

How to Interpret a CI

The interpretation must include three elements:

1
Confidence level: "We are 95% confident that..."
2
Parameter in context: "...the true proportion of [population] who [characteristic]..."
3
Interval bounds: "...is between L and U."

Common Mistakes

✕ Using \( p_0 \) in SE
The CI formula uses \( \hat{p} \) in the SE, not a hypothesised \( p_0 \). That is only for hypothesis tests.
✕ Skipping Conditions
Always verify Random, Large Counts, and 10% Rule before computing.
✕ Wrong Interpretation
Saying "95% probability the parameter is in the interval" is incorrect. The confidence is about the process.

Question 1 of 5

A random sample of 500 adults finds 320 favour a policy. What is the sample proportion \( \hat{p} \)?

Question 2 of 5

Which \( z^{*} \) value corresponds to a 99% confidence level?

Question 3 of 5

In the formula \( \hat{p} \pm z^{*}\sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \), the expression under the square root estimates the:

Question 4 of 5

A 95% CI for a proportion is \( (0.42,\; 0.58) \). If you increase the confidence level to 99% with the same data, the interval will:

Question 5 of 5

You want to estimate a proportion within \( \pm 0.04 \) at 95% confidence with no prior estimate. The minimum sample size (rounded up) is: