AI Glossary / Statistics and probability / Intermediate

Confidence interval

Definition

A confidence interval is a range calculated from data by a procedure designed to cover an unknown population quantity at a stated rate over repeated sampling, under specified assumptions. A 95% confidence procedure aims for 95% coverage in that repeated-use sense. The resulting interval communicates sampling uncertainty about a parameter, such as a mean or proportion, rather than the spread of individual observations.

What it means

A sample estimate can change when a different sample is collected. A confidence interval describes the precision of that estimate using a method whose coverage properties are studied under an assumed sampling process or model.
In the standard frequentist interpretation, the parameter is fixed and the interval varies across samples. After one interval has been calculated, it either contains the parameter or it does not. The 95% label belongs to the procedure's repeated-sampling performance; it is not, by itself, a posterior probability that this particular fixed interval contains the parameter.

How it works

Define the parameter and choose an interval method suited to the data and design. A familiar form is estimate plus or minus a critical value times its standard error, but not all confidence intervals are symmetric or use this formula.
For an independent random sample from a normal population with unknown variance, a two-sided interval for the mean uses the sample mean, sample standard deviation, sample size, and a Student t critical value. Other targets and designs require other methods. Proportions near boundaries, clustered samples, and complex surveys cannot always be handled safely by a generic normal approximation.
Choose the confidence level and analysis plan before examining results. Higher confidence generally requires a wider interval under the same method and data. More independent information usually improves precision, while greater variability tends to reduce it.
Check assumptions, data quality, and whether repeated testing or selective reporting affects the stated coverage. A nominal 95% interval can perform poorly if its method is inappropriate. Ordinary sampling intervals do not automatically account for systematic measurement errors, unrepresentative data, or every uncertainty in model construction. Interpret the interval with the estimate, study design, and practical decision threshold.

Three practical examples

  • A service team reports an interval for average handling time rather than only its sample average.
  • An AI evaluation report gives an interval for a performance difference using a method appropriate to paired test cases.
  • A survey analyst reports a population proportion with an interval that accounts for the actual survey design and weighting.

Think of it this way

Think of a confidence procedure as a method for casting a net around a fixed target. Across repeated samples, the nets vary, and a well-calibrated 95% method catches the target about 95% of the time under its assumptions. One completed net does not reveal whether it caught the target merely because it carries that label.

Worked example

Consider an original hypothetical sample of 25 independent service times from a normal population. The sample mean is 12 minutes and the sample standard deviation is three minutes. Assume the sampling and distributional conditions needed for the usual t interval are appropriate.
The estimated standard error is 3/sqrt(25)=0.6 minutes. For a two-sided 95% interval with 24 degrees of freedom, use the rounded t critical value 2.064. The margin is 2.064 times 0.6=1.2384 minutes. The interval is therefore 12 plus or minus 1.2384, or approximately 10.762 to 13.238 minutes.
This is an interval for the population mean. It does not claim that 95% of individual service times fall between those endpoints. It also does not state that the mean has a 95% posterior probability of lying there.
Suppose an operational target is a mean below 11 minutes. The interval includes values below and above 11, so the estimate is not precise enough to support a clear conclusion at that threshold using this interval alone. The calculation does not validate the assumed normality or independence; those are separate questions.

Illustrative case study

In a fictional company, Summit Support compares two AI-assisted workflows and initially focuses on which sample mean is smaller. The analyst asks whether the same cases were evaluated under both workflows and whether multiple observations come from the same customer.
The team chooses an interval for the relevant difference that reflects this dependence structure. It reports the estimated change, the interval, and the smallest improvement that would matter operationally. A wide interval spanning useful improvement and deterioration leads to a more cautious decision than the point estimate alone.
This fictional case illustrates interpretation and method selection. It does not report real experimental results or imply that any confidence interval removes all uncertainty about a business decision.

Common misconceptions and mistakes

A 95% confidence interval is not an interval containing 95% of the data. It is not automatically a Bayesian credible interval or a prediction interval. A narrow interval can still center on a biased estimate. Including zero does not prove no effect, and excluding zero does not establish practical importance. Overlap between two separate intervals is not a universal test of their difference. Repeatedly checking ordinary intervals until a desired result appears can invalidate their nominal coverage.

Business use

Businesses use confidence intervals to judge precision, compare results with meaningful thresholds, and plan further evidence collection. AI performance reports benefit when intervals reflect the actual evaluation unit and dependence among cases. Present the parameter, confidence level, method, sample basis, and important assumptions. Use the full range in planning instead of treating the point estimate as a guaranteed outcome.

People also ask

Does 99% confidence mean a narrower interval?

Usually the opposite for the same data and method: higher coverage requires a wider interval.

Can a confidence interval be asymmetric?

Yes; many valid methods produce asymmetric limits.

Does increasing sample size eliminate bias?

No. It can reduce sampling variation while leaving systematic errors unchanged.

Check your understanding

What is the worked example's standard error?

Answer: It is 0.6 minutes.

What quantity does its interval target?

Answer: The population mean service time.

Would the same interval describe a future individual service time?

Answer: No; that requires a prediction method accounting for individual variability.

Why report a practical threshold?

Answer: Statistical precision alone does not determine whether a result is useful.

Related terms

  • Standard error
  • Sampling distribution
  • Prediction interval
  • Statistical significance
  • Precision
  • confidence level
  • coverage probability
  • margin of error
  • credible interval
  • parameter estimation

Learn next

Learn sampling distributions and standard errors, then compare confidence, prediction, and credible intervals. Practice identifying the independent sampling unit before choosing a method. Next study intervals for differences and proportions, including situations where simple symmetric approximations perform poorly.

More in Statistics and probability

  • Conditional probability - Conditional probability is the probability of an event or statement given specified information.
  • Conditional probability distribution - A conditional probability distribution specifies the probabilities of possible outcomes after particular information is given.
  • Conditional probability table - A conditional probability table, or CPT, is a tabular representation of a discrete variable's probability distribution for each specified combination of...
  • Confidence values - Confidence values are scores that an AI or statistical system attaches to predictions, extracted information, or other outputs to express estimated...
  • Conformal prediction - Conformal prediction is a framework for constructing prediction sets or intervals with finite-sample coverage guarantees under specified conditions...
  • Confounded - Variables or effects are confounded when their contributions cannot be distinguished adequately in the comparison or design being used.

Sources

NIST/SEMATECH e-Handbook, Confidence Limits for the Mean: https://www.itl.nist.gov/div898/handbook/eda/section3/eda352.htm Australian Bureau of Statistics, Statistical terms and concepts glossary: https://www.abs.gov.au/statistics/understanding-statistics/statistical-terms-and-concepts/statistical-terms-and-concepts-glossary U.S. Census Bureau, survey glossary, Confidence Interval: https://www.census.gov/programs-surveys/sas/about/glossary.html

Previous: Confabulation (neural networks) Next: Confidence values

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer