Definitioncore
Prediction interval
Also called predictive interval.
An interval that contains a future observation, not a parameter, with a stated probability. It is wider than the confidence interval for the mean.
A prediction interval is an interval, computed from observed data , that contains a future observation with a stated probability . The target is a random variable, not a fixed parameter, so the interval must allow both for the error in estimating the parameters and for the spread of itself. For normal data the exact interval is , which is wider than the t confidence interval for the mean by the factor and does not shrink to a point as grows.
Definition
Let and a future value have a joint law , . Usually are iid, or is a new response at a known covariate value in a regression.
Prediction interval. A pair of statistics is a prediction interval of level for if
The probability is over both and . This is marginal coverage. The conditional coverage is a random variable whose mean is the marginal coverage; the definition does not ask that it be at least for each data set. A one-sided prediction bound has or .
Construction from a pivot. If has a law that is the same for every , then with is a prediction set of level . The proof is the one on the pivotal quantity page, with in place of the parameter: the event that is in the set is the event .
Normal model. If are iid with both parameters unknown, then , it is independent of (since is independent of the sample and is independent of ), and is chi-square with degrees of freedom. So
for every , and the interval has marginal coverage exactly . Here is the lower quantile.
Distribution-free interval from order statistics. Let be iid from any continuous law, and let be the order statistics of the sample. For , with and ,
Proof. The values are iid and continuous, so they are distinct with probability 1, and every ordering of them is equally likely. The rank of among them is therefore uniform on . lies strictly between and exactly when , which happens for of the ranks.
The proof uses only that the values are exchangeable with no ties, and it holds for every continuous law. This is the simplest case of conformal prediction, which ranks a conformity score instead of the raw value.
Examples and non-examples
The examples use the data , with , and .
Normal prediction interval. The 95% interval is . The 95% t confidence interval for from the same data is . The ratio of the half-widths is . As the prediction interval tends to , of width about , while the confidence interval shrinks to the point .
Order-statistic interval. For the same five values, has coverage for any continuous law. To reach 95% with the range one needs , that is . With the range has coverage ; a simulation of 20000 uniform samples (seed 3) gave 0.8978.
Conditional coverage varies. For normal data with , the conditional coverage of the 95% interval has mean 0.95 but is spread out. In 20000 simulated samples (seed 1) its median was 0.990, it was below 0.90 in 15.5% of samples and below 0.80 in 6.8%. These are measured, not proved. A tolerance interval, which asks that with confidence , controls this, and is wider.
Regression. In the least squares linear model with normal errors and coefficients, a new response at has the interval . The confidence interval for the mean response has the same form without the 1 under the root.
Non-example: the normal interval on skewed data. The t-based interval is exact only for normal data. For iid exponential data with mean 1, simulation with 20000 repetitions (seed 2) gave coverage 0.923 at and 0.945 at . At the total is close to 0.95, but all of the misses were above the interval (5.5%) and none below, so each one-sided bound is wrong. Unlike a confidence interval for the mean, the prediction interval does not become valid as grows under the central limit theorem, because keeps its own non-normal law.
Non-example: a confidence interval used to predict. The 95% t confidence interval for does not contain a new observation with probability 0.95. For normal data with its marginal coverage of is for , which is 0.680.
Non-example: a credible interval for . A Bayesian credible interval for is a statement about the parameter, like a confidence interval. The Bayesian analogue of a prediction interval is an interval of the posterior predictive distribution, and its highest-density form is the HPD region of that distribution. With the reference prior and normal data, the 95% posterior predictive interval equals the frequentist interval , but its probability is conditional on the data, not marginal over samples.
Related definitions
- Confidence interval. A confidence interval covers a fixed parameter. A prediction interval covers a random future value, so it adds the variance of to the variance of the estimate.
- Tolerance interval. An interval that contains at least a proportion of the population with confidence . It is a statement about the conditional coverage , while a prediction interval is a statement about its mean.
- Conformal prediction. Conformal prediction and split conformal prediction extend the order-statistic interval to any model and any score, with marginal coverage at least under exchangeability alone.
- Test inversion. A prediction set is the set of values that a level- test of " comes from the same law as the sample" does not reject; this is the test-interval duality with in place of the parameter.
References
- William Q. Meeker, Gerald J. Hahn and Luis A. Escobar, Statistical Intervals, A Guide for Practitioners and Researchers, second edition, Wiley, 2017, Chapter 2 (types of intervals), Chapter 4 (normal-distribution prediction intervals), Chapter 5 (distribution-free intervals, Section 5.4 on ordered observations) and Appendix E.6 (prediction intervals from pivotal quantities)
- Vladimir Vovk, Alex Gammerman and Glenn Shafer, Algorithmic Learning in a Random World, Springer, 2005, Chapter 2 (conformal prediction and its validity under exchangeability)
- George Casella and Roger L. Berger, Statistical Inference, second edition, Duxbury, 2002, Chapter 5 (the t distribution and order statistics) and Chapter 9 (interval estimation)
Where this leads
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 KKNWHF Edit this page History Report an error Markdown