In
statistical inference
Statistical inference is the process of using data analysis to infer properties of an underlying probability distribution, distribution of probability.Upton, G., Cook, I. (2008) ''Oxford Dictionary of Statistics'', OUP. . Inferential statistical ...
, specifically
predictive inference, a prediction interval is an estimate of an
interval in which a future observation will fall, with a certain probability, given what has already been observed. Prediction intervals are often used in
regression analysis.
Prediction intervals are used in both
frequentist statistics and
Bayesian statistics: a prediction interval bears the same relationship to a future observation that a frequentist
confidence interval or Bayesian
credible interval bears to an unobservable population parameter: prediction intervals predict the distribution of individual future points, whereas confidence intervals and credible intervals of parameters predict the distribution of estimates of the true population mean or other quantity of interest that cannot be observed.
Introduction
For example, if one makes the
parametric assumption that the underlying distribution is a
normal distribution
In statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is
:
f(x) = \frac e^
The parameter \mu i ...
, and has a sample set , then confidence intervals and credible intervals may be used to estimate the
population mean ''μ'' and
population standard deviation
In statistics, the standard deviation is a measure of the amount of variation or dispersion of a set of values. A low standard deviation indicates that the values tend to be close to the mean (also called the expected value) of the set, while ...
''σ'' of the underlying population, while prediction intervals may be used to estimate the value of the next sample variable, ''X''
''n''+1.
Alternatively, in
Bayesian terms, a prediction interval can be described as a credible interval for the variable itself, rather than for a parameter of the distribution thereof.
The concept of prediction intervals need not be restricted to inference about a single future sample value but can be extended to more complicated cases. For example, in the context of river flooding where analyses are often based on annual values of the largest flow within the year, there may be interest in making inferences about the largest flood likely to be experienced within the next 50 years.
Since prediction intervals are only concerned with past and future observations, rather than unobservable population parameters, they are advocated as a better method than confidence intervals by some statisticians, such as
Seymour Geisser, following the focus on observables by
Bruno de Finetti.
Normal distribution
Given a sample from a
normal distribution
In statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is
:
f(x) = \frac e^
The parameter \mu i ...
, whose parameters are unknown, it is possible to give prediction intervals in the frequentist sense, i.e., an interval
'a'', ''b''based on statistics of the sample such that on repeated experiments, ''X''
''n''+1 falls in the interval the desired percentage of the time; one may call these "predictive
confidence intervals".
A general technique of frequentist prediction intervals is to find and compute a
pivotal quantity of the observables ''X''
1, ..., ''X''
''n'', ''X''
''n''+1 – meaning a function of observables and parameters whose probability distribution does not depend on the parameters – that can be inverted to give a probability of the future observation ''X''
''n''+1 falling in some interval computed in terms of the observed values so far,
Such a pivotal quantity, depending only on observables, is called an
ancillary statistic. The usual method of constructing pivotal quantities is to take the difference of two variables that depend on location, so that location cancels out, and then take the ratio of two variables that depend on scale, so that scale cancels out.
The most familiar pivotal quantity is the
Student's t-statistic, which can be derived by this method and is used in the sequel.
Known mean, known variance
A prediction interval
'ℓ'',''u''for a future observation ''X'' in a normal distribution ''N''(''µ'',''σ''
2) with known
mean and
variance may be calculated from
: