- Introduced by
- Jerzy Neyman
- Year
- 1937
- Type
- Concept
- Family
- interval-estimation
What does it do?
A confidence interval (CI) is a range of values, calculated from sample data, that is constructed to contain the true population parameter with a stated long-run frequency.
Jerzy Neyman introduced the concept in 1937 as an interval estimate, which reports the uncertainty around an estimate rather than a single point value. A 95% CI is the most common choice in published research, and it conveys both the size and the precision of an effect in the units of the measurement.
The intuition behind the method
A confidence interval represents the uncertainty in your estimate. If you repeated your study 100 times with different random samples, a 95% CI means approximately 95 of those intervals would contain the true population parameter (e.g., true mean, true effect size). The width of the interval reflects precision: narrower intervals indicate greater precision, meaning less sampling variability in the estimate (which comes from a larger sample size or lower variability in the data), while wider intervals indicate less precision. Unlike a p-value, a CI directly quantifies the plausible range of the true effect, making it easier for researchers to judge practical significance. For example, if a 95% CI for a drug's blood pressure reduction is [2 mmHg, 8 mmHg], you know the likely range of the true effect—more informative than 'p = 0.02' alone.
History
Jerzy Neyman's 1937 paper, 'Outline of a Theory of Statistical Estimation Based on the Classical Theory of Probability,' set out estimation of population constants from samples, the setting in which interval estimates are used. Neyman's interpretation emphasises repeated sampling: the confidence level describes the long-run behaviour of the procedure, not the probability that a particular interval contains the parameter. Much later, Cumming (2014) argued for moving away from reliance on null-hypothesis significance testing toward estimation based on effect sizes, confidence intervals and meta-analysis.
When to use it
Choose a confidence interval when the question is how large an effect or parameter is and how precisely it is estimated, rather than only whether it differs from zero. It suits clinical and applied studies where decisions depend on the magnitude and direction of an effect, and reports read by people who judge practical importance. Use it for means, proportions and between-group differences, where a standard error and a reference distribution can be specified. Be cautious with very small samples or rare events, where the standard formulas may be inaccurate; a Wilson score interval, a Bayesian credible interval, or a bootstrap interval may then be more suitable.
Limitations and considerations
- CI width scales with the standard error (SE = SD / √n), so large samples produce narrow intervals even for trivial effects, which may mislead readers into believing small effects are important.
- The frequentist interpretation requires conceptual understanding; many readers mistakenly interpret a 95% CI as '95% probability the parameter is in this interval' (confusing it with a Bayesian credible interval).
- Each parameter needs its own formula and reference distribution (z or t for means, specific formulas for proportions); for complex designs or derived quantities, bootstrapping or simulation is often needed.
- For rare events or very small samples, standard CI calculations may be invalid; alternative methods (Wilson score interval, Bayesian credible intervals) may be preferable.
- Intervals reported together are each valid on their own but not jointly: with unadjusted simultaneous intervals, the chance that all of them cover their true values falls as the number of intervals grows, so a family of intervals needs an adjusted or joint procedure.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Gives a range of plausible values for the parameter in the original units of measurement (for example, mmHg in a blood pressure trial), rather than only a point estimate or a significant/non-significant verdict.
- Combines the observed estimate with its standard error in one display, so readers can judge both the size and the precision of the effect.
- Shows the direction and approximate magnitude of an effect at a glance: an interval lying entirely above zero supports a different conclusion from one spanning zero, and the position of the whole interval relative to a meaningful threshold can be read directly.
- Allows side-by-side comparison of intervals across groups or studies, for instance on the forest plots used in meta-analysis.
- Because the width is built from the same standard error as the estimate, the interval shows how much information the sample carried, which a p-value alone does not display.
Applications
- Clinical trials: reporting 95% CIs for treatment effects (e.g., reduction in symptom severity, adverse event rates) to guide medical decisions.
- Epidemiology: estimating and comparing prevalence or incidence rates with confidence intervals to assess public health interventions.
- Meta-analysis: combining effect sizes from multiple studies and presenting pooled estimates with forest plots showing individual and overall CIs.
- Survey sampling: estimating population proportions (e.g., proportion of voters supporting a candidate) with margins of error equivalent to CIs.
- Quality control and manufacturing: monitoring process parameters (mean output, defect rate) with control limits analogous to CIs to detect process shifts.
- Bioequivalence testing: regulatory assessment of generic drugs compares a confidence interval for the ratio of exposure measures (generic to reference) against regulator-specified limits; the interval level and the limits are set by the applicable regulatory guideline, not by the general 95% convention described on this page.
How it works
How it works
Collect your sample data and calculate the sample statistic (e.g., sample mean, sample proportion, difference between group means). Before scoring, check the assumptions behind the standard formula: the sample is randomly drawn or representative of the population of interest, observations are independent, the model used to compute the statistic is correctly specified, and the reference distribution is a fair approximation to the sampling distribution (a normal approximation for large samples; a t distribution with n − 1 degrees of freedom for a mean from a small sample of a normal population). If these conditions fail, the stated coverage may not hold. Decide on your confidence level, typically 95% (α = 0.05), though 90% or 99% are also common. The choice of confidence level should reflect the precision required in your field.
Formula
\text{Calculate sample statistic (mean, proportion, difference)}; \text{ select confidence level } (1-\alpha), \text{ typically 95\%}Calculate the standard error of your statistic (SE = SD / √n for a mean; specific formulas exist for other statistics). Identify the critical value from the appropriate distribution (z for large samples, t for small samples, etc.); for a 95% CI with a normal distribution, z ≈ 1.96. Compute the interval: CI = point estimate ± (critical value × SE). For example, if sample mean = 50, SE = 2, and critical value = 1.96, then 95% CI = [50 − 3.92, 50 + 3.92] = [46.08, 53.92].
Formula
\text{CI} = \text{point estimate} \pm (\text{critical value} \times \text{standard error})Report the interval with the confidence level: '95% CI [46.1, 53.9].' This means that if the study were repeated many times under the same conditions, 95% of the calculated intervals would contain the true population mean. For a difference between groups, an interval that excludes zero indicates a difference at the corresponding significance level, and an interval that spans zero is compatible with no difference. Whether the difference matters in practice is a separate judgement: compare the whole interval with the smallest effect that would be clinically or practically meaningful. An interval that spans both negative and positive effects leaves the direction of the effect unresolved. Do not interpret a 95% CI as 'there is a 95% probability the true value lies in this interval'; that statement belongs to a Bayesian credible interval, not a frequentist CI.
Formula
\text{Interval contains the true parameter with } (1-\alpha)\times 100\% \text{ confidence across repeated sampling}Common pitfalls
- Visually overlapping confidence intervals do not by themselves show a non-significant difference; the question is answered by a formal test of the difference, not by overlap alone.
- Constructing sequential CIs without adjusting the confidence level, which inflates the false positive rate (analogous to p-hacking with p-values).
- Reporting only the point estimate without the interval, losing the uncertainty information that makes CIs valuable.
- Using the wrong distribution (e.g., z-distribution instead of t-distribution for small samples), producing too-narrow intervals and underestimating uncertainty.
- Misinterpreting a CI that excludes zero as definitive evidence of a true effect; consider study power and pre-specification.
Frequently asked questions
What is the correct interpretation of a 95% confidence interval?
A 95% CI is the range of values calculated from sample data such that if the sampling procedure were repeated many times, approximately 95% of the calculated intervals would contain the true population parameter. Critically, this does NOT mean there is a 95% probability the true value is in this specific interval (that is the Bayesian interpretation). The frequentist CI is either correct or incorrect; the 95% refers to the long-run behavior of the procedure.
Should I use a 95% or 99% confidence interval?
95% is standard in most fields and balances precision against confidence. Use 99% when a wrong conclusion would be especially costly and a wider interval is acceptable, or 90% when a narrower interval is preferred and a lower confidence level is acceptable. The choice is context-dependent and should be pre-specified. 95% is conventional and defensible.
If two studies have non-overlapping confidence intervals, is the difference significant?
Under the usual normal approximation with independent groups, non-overlapping 95% intervals are sufficient evidence that the difference is statistically significant. The converse does not hold: overlapping intervals can still correspond to a significant difference, so visual overlap is only a rough guide. For a precise conclusion, run a formal test of the difference, because the standard error of the difference determines the answer. Always conduct a formal test when the decision is critical.
Can I construct a confidence interval for any parameter?
In principle, yes. Standard formulas exist for means, proportions, medians, and differences between groups (normal or non-normal data). For complex parameters (e.g., custom effect sizes, multilevel model coefficients), use bootstrapping or Bayesian methods. Most statistical software can compute CIs via resampling if closed-form formulas are unavailable.
Does a narrower confidence interval always indicate a better study?
Not necessarily. A very narrow CI may result from a very large sample size, which makes even trivial effects appear precise. Instead, evaluate precision in the context of the effect size and practical significance. A narrow CI around a clinically insignificant effect is not as valuable as a wide CI around a large, meaningful effect.
Related methods
Sources
Neyman, J. (1937). Outline of a Theory of Statistical Estimation Based on the Classical Theory of Probability. Philosophical Transactions of the Royal Society, 236, 333–380.
Open DOI referenceAltman, D. G., Machin, D., Bryant, T. N., & Gardner, M. J. (1989). Statistics with Confidence. British Medical Journal.
ISBN: 0-7279-0222-XCumming, G. (2014). The New Statistics: Why and How. Psychological Science, 25(1), 7–29.
Open DOI referenceIntroduction to Econometrics, Global Edition (2020), p. 185