CI for a
Proportion
Learn how to construct a confidence interval for a population proportion using the z-interval method: the foundation of statistical inference in biostatistics.
What Is a Proportion?
A proportion is the fraction of a population or sample that has a particular characteristic. We write the population proportion as \( p \) and the sample proportion as \( \hat{p} \).
Why Use a Confidence Interval?
A single sample proportion \( \hat{p} \) is a point estimate: one number. But every sample is different, so \( \hat{p} \) varies from sample to sample. A confidence interval gives a range of plausible values for the true \( p \), reflecting that uncertainty.
The Sampling Distribution of \( \hat{p} \)
When the sample size is large enough, the sampling distribution of \( \hat{p} \) is approximately normal. This fact is the engine behind the z-interval.
The z-Interval Formula
The confidence interval for a population proportion is:
Common \( z^{*} \) Values
The critical value \( z^{*} \) depends on the confidence level you choose. Higher confidence requires a wider interval.
| Confidence Level | \( z^{*} \) | \( \alpha \) |
|---|---|---|
| 90% | 1.645 | 0.10 |
| 95% | 1.960 | 0.05 |
| 99% | 2.576 | 0.01 |
Checking the Conditions
Before computing a z-interval for a proportion, three conditions must be satisfied:
Proportion CI vs. Mean CI
Students sometimes confuse the confidence interval for a proportion with the interval for a mean. They differ in structure:
| Feature | CI for Proportion | CI for Mean |
|---|---|---|
| Parameter | \( p \) | \( \mu \) |
| Point estimate | \( \hat{p} \) | \( \bar{x} \) |
| Standard error | \( \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \) | \( \frac{s}{\sqrt{n}} \) |
| Distribution | \( z \) (normal) | \( t \) (for small \( n \)) |
| Data type | Categorical (yes/no) | Quantitative |
How to Compute the Interval
Example 1: Vaccine Response
In a clinical trial, 72 out of 300 participants developed an immune response. Construct a 95% confidence interval for the true proportion \( p \).
Visualizing the Interval
Example 2: Hand Hygiene
A hospital infection-control team observes that 186 out of 500 healthcare workers properly wash their hands. Build a 99% confidence interval for \( p \).
Example 3: Small Sample Warning
A pilot study finds 3 out of 25 patients experience a side effect. Can we build a 95% z-interval?
What Affects Interval Width?
The margin of error \( E = z^{*}\sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \) is controlled by three factors:
Common Mistakes
Summary Checklist
| Step | Action | Check |
|---|---|---|
| 1 | Compute \( \hat{p} = x/n \) | ✓ |
| 2 | Random sample? | ✓ |
| 3 | Independence (10% rule)? | ✓ |
| 4 | \( n\hat{p} \geq 10 \) and \( n(1-\hat{p}) \geq 10 \)? | ✓ |
| 5 | Choose confidence level, find \( z^{*} \) | Table |
| 6 | Compute \( \hat{p} \pm z^{*}\cdot\text{SE} \) | Formula |
| 7 | Interpret in context | ✓ |
Question 1 of 5
In a random sample of 400 adults, 120 say they exercise daily. What is \( \hat{p} \)?
Question 2 of 5
Which \( z^{*} \) value is used for a 95% confidence interval?
Question 3 of 5
A sample has \( n = 50 \) and \( \hat{p} = 0.08 \). Is the large counts condition met for a z-interval?
Question 4 of 5
If \( \hat{p} = 0.60 \), \( n = 200 \), and \( z^{*} = 1.96 \), what is the margin of error?
Question 5 of 5
To halve the margin of error while keeping the same confidence level and proportion, you should: