Confidence Interval

A confidence interval summarizes uncertainty in an estimated metric. A point estimate such as accuracy, RMSE, enrichment, or success rate is incomplete without asking how much it would vary under another sample or another run.

For a mean score over independent examples:

An approximate normal confidence interval is:

where is the sample standard deviation and is a normal quantile.

When the metric is not a simple mean, bootstrap resampling is often more practical:

The interval is estimated from the empirical quantiles of bootstrap metric values .

Key Ideas

  • A confidence interval describes estimator uncertainty, not guaranteed model behavior on every future case.
  • Wide intervals mean the test set, seed count, or benchmark is too small to support a strong claim.
  • Overlapping intervals do not automatically prove no difference; paired tests or bootstrap differences are often better.
  • For model comparisons, estimate the uncertainty of , not only the uncertainty of each model separately.

Paired Difference

For two models evaluated on the same examples, estimate uncertainty on the paired difference:

Then compute an interval for or bootstrap the paired test set. This is usually more informative than comparing two independent confidence intervals.

What Population Varies?

Uncertainty SourceWhat ChangesTypical Report
example samplingtest examplesbootstrap CI over examples
random seedinitialization, order, stochastic trainingmean and interval over seeds
split choicetrain/test partitiongrouped CV or repeated split interval
annotator or assay noisemeasured labellabel-aware uncertainty or sensitivity analysis
prompt or decoding randomnesssampled generation or agent runrun-level interval and failure rate

Do not mix these sources without saying what the interval means.

Small Sample Warning

For rare events or small benchmark slices, normal intervals can be misleading. Prefer bootstrap, exact/binomial intervals, or report the raw numerator and denominator:

where is the number of successes and is the number of evaluated cases.

Practical Checks

  • Is uncertainty across examples, random seeds, data splits, or annotators?
  • If uncertainty is across random runs, should it be treated as seed variance rather than only sampling error?
  • Is the metric paired by the same test examples across models?
  • Are reported improvements larger than the interval width?
  • Is the interval computed on the held-out set, not on validation data used for selection?
  • Is the interval for the metric itself or for the improvement over a baseline?
  • Are subgroup or target-level intervals needed before making broad claims?