Lably
Skip to content

Confidence interval

Range to estimate an unknown parameter

  • 10 min read
  • 5 chapters

Related on Lably

Through Average, Sampling (statistics) and Probability distribution

A confidence interval is based on a pre-defined coverage probability, called confidence level, typically 95%. A 95% confidence level does not imply a 95% probability that the true parameter lies within a particular CI calculated from a sample (such interpretation would be associated with the credible interval in Bayesian inference). The confidence level instead reflects the long-run performance of the method used to generate the interval. In other words, if the same sampling procedure were repeated 100 times from the same population, approximately 95 of the resulting intervals would be expected to contain the true population mean. The frequentist approach sees the true population mean as a fixed unknown constant, while the confidence interval is calculated using data from a random sample. Because the sample is random, the interval endpoints are random variables.

Definition

Let X be a random sample from a probability distribution with statistical parameter (θ,φ). Here, θ is the quantity to be estimated, while φ includes other parameters (if any) that determine the distribution. A confidence interval for the parameter θ, with confidence level or coefficient γ, is an interval (u(X),v(X)) determined by random variables u(X) and v(X) with the property: P(u(X)<θ<v(X))=γfor all (θ,φ).

The number γ, which is typically large (e.g. 0.95), is sometimes given in the form 1−α (or as a percentage 100⋅(1−α)%), where α is a small positive number, often 0.05. It means that the interval (u(X),v(X)) has a probability γ of covering the value of θ in repeated sampling.

Alternatively, some authors simply require that

P(u(X)<θ<v(X))≥γfor all (θ,φ). The confidence level can be described as "at least 100γ%". When it is known that the coverage probability can be strictly larger than γ for some parameter values, the confidence interval is called conservative, i.e., it errs on the safe side.

In many applications, confidence intervals that have exactly the required confidence level are hard to construct, but approximate intervals can be computed. The rule for constructing the interval may be accepted if

P(u(X)<θ<v(X))≈γ

to an acceptable level of approximation.

Methods of derivation

There are many ways of calculating confidence intervals, and the best method depends on the situation. Two widely applicable methods are bootstrapping and the central limit theorem. The latter method works only if the sample is large, since it entails calculating the sample mean X¯ and sample standard deviation S and using the asymptotically standard normal quantity

X¯−μS/n

where μ and n are the population mean and the sample size, respectively.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Statistics and probability