Learn / Biostatistics / Sampling and estimation
Confidence intervals for means and proportions
14 minute read · 6-question quiz
What you will learn
Calculate 95% confidence intervals for a mean and a proportion
Interpret a confidence interval correctly, and spot the common misreadings
Understand how sample size, variability and confidence level change the width
A single number (a point estimate) such as "27% of women are anaemic" hides its uncertainty. A confidence interval (CI) gives a range of values that are plausible for the true population value, given the data. A 95% CI is the standard.
The general recipe
estimate ± (critical value) × SE
The critical value is 1.96 for a 95% interval when the normal approximation holds. For means from small samples, we use the t distribution with n - 1 degrees of freedom, which has fatter tails and gives a slightly larger critical value (2.064 for n = 25), approaching 1.96 as n grows.
What a 95% CI means
If you repeated the study many times and calculated a 95% CI each time, about 95% of those intervals would contain the true value. The figure shows ten such studies: each drew 100 adults from a population whose true mean SBP is 120. Nine of ten intervals contain 120; one (sample 5) misses. That is what "95%" promises on average, not a guarantee for every study.
What changes the width?
width ≈ 2 × 1.96 × (s)/(sqrt(n))
- Larger n gives a narrower interval (as the square root).
- More variable data (larger s) gives a wider interval.
- Higher confidence needs a bigger critical value: 90% uses 1.645, 95% uses 1.96, 99% uses 2.576. Greater confidence costs precision.
Why CIs are better than p-values alone
A CI shows both the size of an effect and the uncertainty. A mean difference of 0.3 mmHg with CI -0.1 to 0.7 and a difference of 8 mmHg with CI -2 to 18 might both give p > 0.05, but they say entirely different things: the first excludes any important effect, the second is simply inconclusive. Modern reporting standards (CONSORT, STROBE) require intervals for the main results.
Summary
A CI is estimate ± critical value × SE: 1.96 for large samples, t for small samples.
95% of intervals constructed this way over repeated studies contain the true value.
Width falls with larger n and rises with larger variability and higher confidence level.
Prefer intervals to bare p-values: they show effect size and uncertainty together.
Check your understanding
Draft study guide. Spotted an error or something unclear? Tell us at hello@scintria.com. This is educational material, not clinical or regulatory advice.