Definitionintro
Confidence interval
Also called interval estimate, confidence set.
A random interval computed from the data that contains the true parameter with a stated probability, such as 95 percent, over repeated samples.
A confidence interval for a parameter is an interval computed from the data by a rule that, whatever the true , covers it with probability at least over repeated samples. The probability belongs to the rule, not to a computed interval: after the data are in, either contains or does not (Neyman, 1937). Intervals are built from pivots, such as the standardized mean of the t interval, or by collecting the null values that a level- test does not reject. A confidence set is the same idea without the restriction to intervals.
Definition
Let have distribution , , and let be a set computed from alone (for an interval, ).
- The coverage probability at is ; the randomness is in , and is fixed.
- The confidence coefficient is .
- is a confidence set if its confidence coefficient is at least .
The same definitions apply to a function , such as one mean when the variance is unknown, with in place of . One-sided sets and are lower and upper confidence bounds. The coverage of a rule has one of three types:
- exact: for every , such as the t interval under normal data;
- conservative: for every , with strict inequality somewhere, such as the Clopper-Pearson interval for a binomial proportion;
- asymptotic: as for each , which allows the coverage at a fixed to be far below for some .
Duality with tests. If for each there is a level- test of with acceptance region , then is a confidence set, because exactly when , an event of probability at least under . The converse holds too. This is test-interval duality.
Marginal, not conditional. The coverage is an average over all samples. For a particular kind of sample, the coverage given that kind can differ, as the uniform example shows.
Examples and non-examples
A z interval. Nine packs with known g have mean g. The 95% interval is , exact under normal data with known ; it excludes 500, matching the z-test p-value 0.037.
A t interval. For the sleep differences of Cushny and Peebles (, , with divisor 9), the 95% interval is .
Repeated sampling. In 100 simulated samples of 10 standard normal values (seed 43), 97 of the 100 95% t intervals contained the true mean 0. The count is Binomial, with mean 95 and standard deviation 2.18. Which 3 intervals missed cannot be told from the intervals themselves.
Exact marginal coverage, wrong conditional coverage. Let be iid uniform on and . It covers exactly when one observation is below and one above, which has probability : a 50% confidence interval. But if , the interval must contain : two points on the same side of lie in an interval of length and so are less than apart. has the triangular density on , so . Given a wide interval the coverage is 1, and given a narrow one it is . Monte Carlo with and seed 42 gives coverage 0.5021, a wide interval in 0.2505 of the samples, coverage 1 given wide and 0.3356 given narrow. Seeing a wide interval and still saying "50% confidence" is correct about the procedure and useless about this sample.
Asymptotic coverage that fails. The Wald interval for a binomial proportion has nominal 95% coverage. Its exact coverage, a sum of binomial probabilities over the outcomes it covers, is 0.9586 at , ; 0.8760 at , ; 0.9324 at , ; and 0.8664 at , . The Wilson score interval does much better.
Non-example: a probability statement about . "There is a 95% probability that the mean lies in " is false in the frequentist frame, where is fixed and the computed interval either contains it or not. A posterior probability statement of that form is what a Bayesian credible interval gives, under a prior.
Non-example: a prediction interval. An interval that covers a future observation with probability is a prediction interval; it is wider, because it adds the scatter of the new observation to the uncertainty of the estimate.
Non-example: an error bar of one standard error. is a confidence interval only with its true coefficient stated: about 0.683 for a normal estimator, and less for a t-based one with few degrees of freedom.
Related definitions
- Pivotal quantity. A function of the data and whose distribution does not depend on ; inverting it gives an exact interval.
- Expected length. Among intervals with the same coefficient, shorter is better; uniformly most accurate intervals cover each false value with the smallest probability.
- Simultaneous intervals. A family of intervals that all cover their parameters at once with probability , such as Bonferroni intervals.
- Confidence sequence. A sequence of intervals that covers at all sample sizes at once, so the data can be monitored and the analysis stopped at any time.
- Credible interval. The Bayesian counterpart, with posterior probability ; it has a different meaning even when the numbers agree.
References
- Jerzy Neyman, Outline of a theory of statistical estimation based on the classical theory of probability, Philosophical Transactions of the Royal Society A 236, 1937, pp. 333 to 380, The whole paper (confidence intervals and the confidence coefficient as a property of the procedure over repeated samples)
- George Casella and Roger L. Berger, Statistical Inference, second edition, Duxbury, 2002, Chapter 9 (interval estimation; Section 9.2.1 on inverting a test statistic, Section 9.2.2 on pivotal quantities, Section 9.3.1 on size and coverage probability)
- Larry Wasserman, All of Statistics, Springer, 2004, Section 6.3.2 (confidence sets, and the warning that a confidence interval is not a probability statement about the parameter)
- E. L. Lehmann and Joseph P. Romano, Testing Statistical Hypotheses, third edition, Springer, 2005, Section 5.4 (confidence intervals and families of tests)
Where this leads
- BCa bootstrap interval
- Bootstrap percentile interval
- Clopper-Pearson interval
- Confidence sequence
- Credible interval
- Mean opinion score
- Monte Carlo power estimation
- Online aggregation
- Pivotal quantity
- Polyhedral lemma
- Post-selection inference
- Prediction interval
- Scheffe's method
- Subsampling
- Student t confidence interval
- Duality of tests and confidence sets
- Wilson score interval
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag KDG5NV Edit this page History Report an error Markdown