Confidence Intervals for Proportions
Medication dosages, IV drip rates, vital monitoring
Discounts, tax, tips, profit margins
A confidence interval gives a range of plausible values for a population parameter, along with a measure of how certain we are that the true value falls within that range. Instead of reporting a single number and hoping for the best, a confidence interval tells you both your best estimate and how much uncertainty surrounds it. In this lesson, you will learn how to construct confidence intervals specifically for population proportions β the fraction of a population that has some characteristic.
From Point Estimates to Intervals
When you conduct a survey or study, you calculate a sample proportion β the fraction of your sample with the characteristic of interest. For example, if 312 out of 400 surveyed customers say they are satisfied, then .
This single number is called a point estimate. It is your best guess for the true population proportion . But how close is to the actual value of ? A point estimate alone cannot answer this question. It gives no indication of whether the true value might be 0.75 or 0.82 or something else entirely.
A confidence interval solves this problem by adding a margin of error around the point estimate:
The result is an interval β a lower bound and an upper bound β that we are reasonably confident contains the true population proportion. The width of this interval depends on three things: the sample size, the variability in the data, and the level of confidence you choose.
The Confidence Interval Formula for Proportions
The standard confidence interval for a population proportion is:
Each piece of this formula plays a specific role:
- is the sample proportion (your point estimate)
- is the sample size (how many individuals you observed)
- is the standard error (SE), which measures the typical sampling variability of
- is the critical value from the standard normal distribution, determined by your chosen confidence level
- The product is the margin of error (ME)
Common Critical Values
| Confidence Level | |
|---|---|
| 90% | 1.645 |
| 95% | 1.960 |
| 99% | 2.576 |
Higher confidence requires a larger critical value, which produces a wider interval. A 99% confidence interval is wider than a 95% interval for the same data β greater certainty demands a larger range.
Conditions for a Valid Confidence Interval
Before constructing a confidence interval for a proportion, you must verify three conditions. If these are not met, the formula above may give unreliable results.
- Random sample β the data must come from a random sampling process (simple random sample, stratified random sample, etc.)
- Independence β individual observations must be independent of each other. A practical check: the sample size should be less than 10% of the total population (the β10% conditionβ), or sampling should be done with replacement.
- Success/failure condition β the sample must contain enough successes and failures for the normal approximation to be valid:
- (at least 10 successes)
- (at least 10 failures)
If the success/failure condition is not met (for example, you have a very small sample or the proportion is very close to 0 or 1), you should use an alternative method such as the Wilson interval or an exact binomial interval.
Worked Examples
Example 1: Customer Satisfaction
A company surveys 400 randomly selected customers and finds that 312 are satisfied with their service. Construct a 95% confidence interval for the true proportion of satisfied customers.
Step 1: Calculate the sample proportion.
Step 2: Check the conditions.
- Random sample: stated in the problem β
- Independence: 400 is almost certainly less than 10% of all customers β
- Success/failure: β and β
Step 3: Calculate the standard error.
Step 4: Calculate the margin of error using for 95% confidence.
Step 5: Construct the interval.
Answer: We are 95% confident that between 73.9% and 82.1% of all customers are satisfied with the companyβs service.
Example 2: Defective Products
A quality control inspector examines a random sample of 500 items from a production run and finds 15 defective. Construct a 99% confidence interval for the defect rate.
Step 1: Calculate the sample proportion.
Step 2: Check the conditions.
- Random sample: stated β
- Independence: 500 items is less than 10% of a typical production run β
- Success/failure: β and β
Step 3: Calculate the standard error.
Step 4: Calculate the margin of error using for 99% confidence.
Step 5: Construct the interval.
Answer: We are 99% confident that the true defect rate is between 1.0% and 5.0%.
Interpreting Confidence Intervals
The interpretation of a confidence interval is one of the most commonly misunderstood concepts in statistics. Here is what a 95% confidence interval means β and what it does not.
Correct interpretation: βIf we repeated this study many times, each time drawing a new random sample and constructing a 95% confidence interval, about 95% of those intervals would contain the true population proportion.β
The 95% refers to the method, not to any single interval. The procedure captures the true value 95% of the time across many repetitions.
Incorrect interpretations to avoid:
- βThere is a 95% probability that is in this interval.β This is wrong because is a fixed (but unknown) number β it is either in the interval or it is not. Probability does not apply to a fixed quantity.
- β95% of the data falls in this interval.β The confidence interval is about the population proportion, not about individual data points.
- βIf we repeated the survey, 95% of sample proportions would fall in this interval.β The interval was built around one particular ; other samples would produce different intervals.
A useful way to think about it: before you collect data, there is a 95% chance your procedure will produce an interval that captures . After you collect data and compute the interval, the true value is either inside or not β but you are confident in the process that generated it.
Margin of Error and Sample Size
The margin of error (ME) is the half-width of the confidence interval: . Researchers and pollsters often want to control the margin of error β for example, ensuring that a survey result is accurate to within 3 percentage points.
You can determine the required sample size by solving the margin of error formula for :
If you do not have a prior estimate of , use . This is the most conservative choice because is maximized at 0.5, which gives the largest required sample size. Using 0.5 guarantees the margin of error will be at most regardless of the true proportion.
Example 3: Planning a Survey
A market research firm wants to estimate the proportion of adults who prefer online shopping, with a margin of error of no more than 3 percentage points at 95% confidence. No prior estimate is available. How large a sample is needed?
Step 1: Use the conservative estimate .
Step 2: Identify the values: , .
Step 3: Calculate.
Step 4: Round up (always round up when calculating sample size β rounding down gives a margin of error slightly larger than desired).
Answer: The firm needs a sample of at least 1,068 adults.
Notice how demanding a small margin of error can be. Cutting the margin of error in half (from 6% to 3%) would require roughly four times the sample size, because is proportional to .
Real-World Application: Nursing β Estimating Infection Rates
Hospital-acquired infections (HAIs) are a critical quality metric in healthcare. A hospitalβs infection control team randomly reviews 600 patient charts from the past year and identifies 24 cases of central line-associated bloodstream infections (CLABSIs).
Construct a 95% confidence interval for the hospitalβs CLABSI rate.
Check conditions: random sample β, β, β.
Interpretation: The hospital is 95% confident that its true CLABSI rate is between 2.4% and 5.6%. If the national benchmark is 3.0%, this interval includes 3.0%, so the hospital cannot conclude that its rate is significantly different from the benchmark. If the hospital wants a more precise estimate to resolve this question, it would need to review more charts (a larger sample size narrows the interval).
Practice Problems
Test your understanding with these problems. Click to reveal each answer.
Problem 1: In a random sample of 250 voters, 140 say they support a ballot measure. Construct a 95% confidence interval for the true proportion of supporters.
Answer: We are 95% confident that between 49.8% and 62.2% of all voters support the measure. Note that this interval includes 50%, so the race is too close to call based on this sample.
Problem 2: A manufacturer tests 800 light bulbs and finds 32 defective. Construct a 90% confidence interval for the defect rate.
Check: β, β.
Answer: We are 90% confident that the defect rate is between 2.9% and 5.1%.
Problem 3: A 95% confidence interval for a proportion is (0.42, 0.58). What are the point estimate and the margin of error?
The point estimate is the midpoint of the interval:
The margin of error is half the width:
Answer: The point estimate is and the margin of error is 0.08 (8 percentage points).
Problem 4: You want to estimate a proportion with a margin of error of no more than 2% at 99% confidence. You have a preliminary estimate of . What sample size do you need?
Round up: .
Answer: You need a sample of at least 3,484.
Problem 5: A nurse reviews 300 patient records and finds that 261 received their flu vaccination on time. Construct a 99% confidence interval for the on-time vaccination rate.
Check: β, β.
Answer: We are 99% confident that between 82.0% and 92.0% of patients receive their flu vaccination on time.
Key Takeaways
- A confidence interval for a proportion has the form , where is the sample proportion, is the sample size, and is the critical value for your confidence level
- Before constructing the interval, verify three conditions: random sample, independence (10% condition), and success/failure ( and )
- The margin of error shrinks as increases β but cutting the margin in half requires roughly four times the sample size
- A 95% confidence interval means: if we repeated the procedure many times, about 95% of the resulting intervals would contain the true proportion β it does not mean there is a 95% probability that is in this particular interval
- To determine the required sample size for a desired margin of error, use and round up. If no prior estimate exists, use for the most conservative result
- In healthcare settings, confidence intervals help quantify the precision of infection rates, vaccination coverage, and other quality metrics β enabling evidence-based comparisons to national benchmarks
Return to Statistics for more topics in this section.
Next Up in Statistics
All Statistics topicsLast updated: March 29, 2026