Confidence Interval
for a Proportion
Learn to build and interpret z-intervals that estimate a population proportion \( p \) with a measurable level of confidence.
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.
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.
Sampling Distribution of \( \hat{p} \)
When certain conditions are met, the sampling distribution of \( \hat{p} \) is approximately normal with:
Conditions for the z-Interval
Before constructing the interval, three conditions must be checked:
The z-Interval Formula
Once conditions are met, the confidence interval for \( p \) is:
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
Example 1: Voter Poll
A random sample of \( n = 400 \) voters finds \( x = 220 \) support a measure. Construct a 95% confidence interval for \( p \).
Visualising Example 1
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.
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?
What Affects Width?
The margin of error \( ME = z^{*}\sqrt{\hat{p}(1-\hat{p})/n} \) depends on three quantities:
How to Interpret a CI
The interpretation must include three elements:
Common Mistakes
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: