Confidence Intervals (CIs)

A confidence interval is a range computed from data by a procedure with a stated success rate. The NIST handbook gives the purpose plainly โ€” it “provides a range of values which is likely to contain the population parameter of interest” โ€” and then gives the meaning of the level, which is the part worth memorizing:

It means that if the same population is sampled on numerous occasions and interval estimates are made on each occasion, the resulting intervals would bracket the true population parameter in approximately 95 % of the cases.

The 95% describes the procedure, not the interval in front of you. Across many samples, 95% of the intervals the method produces contain the true value. Yours either does or does not, and nothing in the data tells you which.

How it is built

For the mean of independent, normally distributed observations with known \(\sigma\), the exact form is

\[\bar{Y} \pm z_{1-\alpha/2}\,\frac{\sigma}{\sqrt{N}}\]

With non-normal data the same form is a large-sample approximation that relies on the central limit theorem, and it needs independent observations and a large enough \(N\). It is an estimate, plus or minus a multiplier times a standard error. The multiplier comes from the level you chose: the handbook notes that “a confidence stated at a \(1-\alpha\) level can be thought of as the inverse of a significance level, \(\alpha\),” so a 95% interval obtained by inverting the corresponding two-sided test gives the same rejection decision as that test at \(\alpha = 0.05\). The parameter, tails, and method must match. See significance level and confidence level; the half-width itself is a margin of error.

Two practical notes from the same source. Intervals can be one-sided when only one direction matters โ€” a one-sided interval “brackets the population parameter either from above or below and furnishes an upper or lower bound.” And when \(\sigma\) is estimated rather than known, intervals are “by necessity widerโ€ฆ because of the uncertainty in this estimate,” which is where the \(t\) distribution replaces \(z\). For proportions the normal approximation misbehaves near 0 and 1, which is what Wilson score interval and Clopperโ€“Pearson interval exist for; where no closed form is convenient, resample โ€” see bootstrap confidence intervals.

Three misreadings

  • “There is a 95% probability the true value is in this interval.” The true value is fixed and the interval is random; the probability statement attaches to the procedure. Getting a probability about the parameter requires a prior, which this method does not use.
  • “95% of the data lie in this interval.” Different object entirely. An interval for a mean shrinks as \(N\) grows, while the spread of individuals does not โ€” a range for a future observation is a prediction interval and is much wider.
  • “The intervals overlap, so there is no difference.” Overlap of two separate intervals is not a test of their difference. The quantity to interval is the difference itself, which has its own standard error.

What it does not cover

An interval quantifies sampling variability and nothing else. The Census Bureau, which publishes a margin of error with every estimate, separates the two explicitly: “the error measures and statistical tests described in this section do not tell us about the magnitude of nonsampling errors” โ€” the mistakes that arise from questionnaires, coding, processing, weighting, or nonresponse.

Carry that over to your own data. A tight interval around a metric computed from a tracker that drops events is a precise statement about a wrong number. Precision and correctness are different properties, and only one of them appears in the interval โ€” see data quality and metric definition.

Also mind the boundaries of the quantity. The Census guidance notes that a computed lower bound can fall below a natural limit, in which case “the lower confidence bound should be reported as zero instead,” and advises that “data users should always keep the context and meaning of an estimate in mind when creating and interpreting confidence intervals.” A symmetric interval on a quantity that cannot be negative is a sign the approximation is being pushed too far.

Why to prefer it to a verdict

An interval answers two questions at once โ€” how big, and how precisely known โ€” where a test answers one and discards the magnitude. It also makes an uninformative study visible: a range spanning a 5% loss to a 6% gain says the design could not distinguish the outcomes you care about, which the phrase “not significant” conceals. That is the same information a power calculation gives in advance; see statistical power and hypothesis testing.

One boundary worth naming: an interval describes uncertainty about a quantity you measured, not whether that quantity means what you want it to mean. A narrow interval around a confounded comparison is still a confounded comparison โ€” see causal effect.

References


Discover more from Insightful Data Lab

Subscribe to get the latest posts sent to your email.

Similar Posts

Questions, corrections, or additional insights?

This site uses Akismet to reduce spam. Learn how your comment data is processed.