Confidence Intervals

1 min read

A confidence interval is a procedure that produces a range of plausible parameter values from data.

For a sample mean with large nn:

xˉ±zα/2sn\bar{x} \pm z_{\alpha/2}\frac{s}{\sqrt{n}}

For a 95% confidence interval, zα/21.96z_{\alpha/2} \approx 1.96.

Correct interpretation: if we repeated the sampling procedure many times, 95% of the intervals produced by this method would contain the true parameter.

Incorrect interpretation: "there is a 95% probability the true parameter is inside this specific interval." In frequentist statistics, the parameter is fixed and the interval is random.

Width depends on:

  • Sample variability: larger ss -> wider interval
  • Sample size: larger nn -> narrower interval
  • Confidence level: higher confidence -> wider interval

For small samples: use a tt interval instead of a normal interval when estimating a mean with unknown variance:

xˉ±tα/2,n1sn\bar{x} \pm t_{\alpha/2, n-1}\frac{s}{\sqrt{n}}

In ML: report confidence intervals for evaluation metrics when differences are small. A single scalar metric hides uncertainty.

See also: Sampling Distributions, Central Limit Theorem, Evaluation Metrics

Linked from