Confidence interval for a population proportion
How can we estimate the proportion of university students who use generative AI tools?
Survey example and estimation settings
Try it
The initial data are a teaching example, not an actual survey. Simulated sampling assumes 60% of the simulated population use AI tools. With replacement (each selected unit is returned before the next draw), sampling is simulated with independent draws; without replacement, a finite population is generated first and then sampled without replacement.
Interval estimation resultsNormal approximation
- Sample proportion p̂
- 64.00%
- Critical value z
- 1.960
- Margin of error Δ
- 6.65%
95% confidence interval for the population proportion[57.35%, 70.65%]
- Population proportion confidence interval
- Sample proportion
Current sample: students surveyed = 200, AI tool users = 128; sample proportion = 64.00%.
Adjust sample size, sample proportion, and confidence level to observe how the interval changes.
Critical values and the standard normal distribution
- Central confidence level
- Two tail regions
- Critical points
Central area 95%, with 2.5% in each tail; critical points ±1.9600. This plot shows standard normal critical values, rather than the distribution curve of the sample proportion itself.
Formula and calculation steps
- Step 1: calculate the sample proportion
- Step 2: determine the confidence level and critical value: 95%, α = 0.05
- Step 3: calculate the standard error
- Step 4: calculate the margin of error
- Step 5: construct the confidence interval
- [57.35%, 70.65%]
Sampling with replacement uses independent random draws; sampling without replacement uses simple random sampling from a finite population. Convenience sampling or voluntary response surveys may involve selection bias.
Think about it
- How does the standard error differ between sampling with and without replacement?
- Why is estimation often less precise at a sample proportion near 50%, for the same sample size?
- What problems can a normal-approximation interval have when the sample proportion is near 0 or 1?
The confidence level describes the interval construction method's long-run coverage under repeated sampling, rather than the probability that a particular interval already calculated contains the population proportion.