A confidence interval is an interval constructed from a sample to estimate an unknown population parameter. Under the assumed statistical model, the probability that the interval contains the true parameter value over repeated sampling is at least the specified confidence level.
For example, for
independent observations from a normal distribution
with unknown mean
and known standard deviation
, an exact level-
confidence interval for
is
,
where
,
is the sample mean, and
is the
-quantile of the standard
normal distribution.
An interval for an individual observation has a different coverage event. Its endpoints are fixed by the assumed distribution, and its coverage
is the probability that the observation lies between
those endpoints. For a probability density
function
symmetric about zero, the central interval
contains 50% of the probability
when
|
(1)
|
For a normal distribution, the probability that a measurement falls within standard deviations (
) of the mean
(i.e., within the interval
) is given by
|
(2)
| |||
|
(3)
|
Now let , so
. Then
|
(4)
| |||
|
(5)
| |||
|
(6)
|
where
is the so-called erf function. The following table summarizes
the probabilities
that measurements from a normal
distribution fall within
for
with small values of
.
| 0.6826895 | |
| 0.9544997 | |
| 0.9973002 | |
| 0.9999366 | |
| 0.9999994 |
For a single observation from a normal distribution, the number
of standard deviations on either side of the
mean needed to enclose probability
is obtained by inverting the preceding
relation,
|
(7)
|
where
is the inverse erf function. The following table then
gives the values of
such that
has probability
content
. These values can be returned by NormalCI[0,
1, ConfidenceLevel -> P] in the Wolfram
Language package HypothesisTesting` .
| 0.800 | |
| 0.900 | |
| 0.950 | |
| 0.990 | |
| 0.995 | |
| 0.999 |