HOME

TheInfoList



OR:

In
frequentist statistics Frequentist inference is a type of statistical inference based in frequentist probability, which treats “probability” in equivalent terms to “frequency” and draws conclusions from sample-data by means of emphasizing the frequency or pr ...
, a confidence interval (CI) is a range of estimates for an unknown
parameter A parameter (), generally, is any characteristic that can help in defining or classifying a particular system (meaning an event, project, object, situation, etc.). That is, a parameter is an element of a system that is useful, or critical, when ...
. A confidence interval is computed at a designated ''confidence level''; the 95% confidence level is most common, but other levels, such as 90% or 99%, are sometimes used. The confidence level represents the long-run proportion of corresponding CIs that contain the
true value In statistics, as opposed to its general use in mathematics, a parameter is any measured quantity of a statistical population that summarises or describes an aspect of the population, such as a mean or a standard deviation. If a population exa ...
of the parameter. For example, out of all intervals computed at the 95% level, 95% of them should contain the parameter's true value. Factors affecting the width of the CI include the
sample size Sample size determination is the act of choosing the number of observations or replicates to include in a statistical sample. The sample size is an important feature of any empirical study in which the goal is to make inferences about a populatio ...
, the variability in the sample, and the confidence level. All else being the same, a larger sample produces a narrower confidence interval, greater variability in the sample produces a wider confidence interval, and a higher confidence level produces a wider confidence interval.


Definition

Let be a
random sample In statistics, quality assurance, and survey methodology, sampling is the selection of a subset (a statistical sample) of individuals from within a statistical population to estimate characteristics of the whole population. Statisticians atte ...
from a probability distribution with statistical parameter , which is a quantity to be estimated, and , representing quantities that are not of immediate interest. 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: : \Pr \\ =\ \gamma \quad \text (\theta,\varphi) ~. The number , whose typical value is close to but not greater than 1, is sometimes given in the form \ 1 - \alpha\ (or as a percentage \ 100%\cdot( 1 - \alpha )\ ), where \ \alpha\ is a small positive number, often 0.05 . It is important for the bounds \ u(X)\ and \ v(X)\ to be specified in such a way that as long as is collected randomly, every time we compute a confidence interval, there is probability that it would contain , the true value of the parameter being estimated. This should hold true for any actual and .


Approximate confidence intervals

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 as providing a confidence interval at level \gamma if : \Pr \\ \approx\ \gamma \quad \text(\theta,\varphi) to an acceptable level of approximation. Alternatively, some authors simply require that : \Pr \\ \ge\ \gamma \quad \text(\theta,\varphi) ~, which is useful if the probabilities are only partially identified or imprecise, and also when dealing with
discrete distributions Discrete may refer to: *Discrete particle or quantum in physics, for example in quantum theory *Discrete device, an electronic component with just one circuit element, either passive or active, other than an integrated circuit *Discrete group, a g ...
. Confidence limits of form : \Pr \\ \ge\ \gamma ~ and \Pr \ \ge \gamma ~ are called ''conservative''; accordingly, one speaks of conservative confidence intervals and, in general, regions.


Desired properties

When applying standard statistical procedures, there will often be standard ways of constructing confidence intervals. These will have been devised so as to meet certain desirable properties, which will hold given that the assumptions on which the procedure relies are true. These desirable properties may be described as: validity, optimality, and invariance. Of the three, "validity" is most important, followed closely by "optimality". "Invariance" may be considered as a property of the method of derivation of a confidence interval, rather than of the rule for constructing the interval. In non-standard applications, these same desirable properties would be sought:


Validity

This means that the nominal coverage probability (confidence level) of the confidence interval should hold, either exactly or to a good approximation.


Optimality

This means that the rule for constructing the confidence interval should make as much use of the information in the data-set as possible. Recall that one could throw away half of a dataset and still be able to derive a valid confidence interval. One way of assessing optimality is by the length of the interval so that a rule for constructing a confidence interval is judged better than another if it leads to intervals whose lengths are typically shorter.


Invariance

In many applications, the quantity being estimated might not be tightly defined as such. For example, a survey might result in an estimate of the median income in a population, but it might equally be considered as providing an estimate of the logarithm of the median income, given that this is a common scale for presenting graphical results. It would be desirable that the method used for constructing a confidence interval for the median income would give equivalent results when applied to constructing a confidence interval for the logarithm of the median income: Specifically the values at the ends of the latter interval would be the logarithms of the values at the ends of former interval.


Methods of derivation

For non-standard applications, there are several routes that might be taken to derive a rule for the construction of confidence intervals. Established rules for standard procedures might be justified or explained via several of these routes. Typically a rule for constructing confidence intervals is closely tied to a particular way of finding a point estimate of the quantity being considered.


Summary statistics

This is closely related to the method of moments for estimation. A simple example arises where the quantity to be estimated is the population mean, in which case a natural estimate is the sample mean. Similarly, the sample
variance In probability theory and statistics, variance is the expectation of the squared deviation of a random variable from its population mean or sample mean. Variance is a measure of dispersion, meaning it is a measure of how far a set of numbe ...
can be used to estimate the population variance. A confidence interval for the true mean can be constructed centered on the sample mean with a width which is a multiple of the square root of the sample variance.


Likelihood theory

Estimates can be constructed using the maximum likelihood principle, the likelihood theory for this provides two ways of constructing confidence intervals or confidence regions for the estimates.


Estimating equations

The estimation approach here can be considered as both a generalization of the method of moments and a generalization of the maximum likelihood approach. There are corresponding generalizations of the results of maximum likelihood theory that allow confidence intervals to be constructed based on estimates derived from estimating equations.


Hypothesis testing

If hypothesis tests are available for general values of a parameter, then confidence intervals/regions can be constructed by including in the confidence region all those points for which the hypothesis test of the
null hypothesis In scientific research, the null hypothesis (often denoted ''H''0) is the claim that no difference or relationship exists between two sets of data or variables being analyzed. The null hypothesis is that any experimentally observed difference is d ...
that the true value is the given value is not rejected at a significance level of


Bootstrapping

In situations where the distributional assumptions for the above methods are uncertain or violated, resampling methods allow construction of confidence intervals or prediction intervals. The observed data distribution and the internal correlations are used as the surrogate for the correlations in the wider population.


Central limit theorem

The central limit theorem is a refinement of the law of large numbers. For a large number of independent identically distributed random variables \ X_1, ..., X_n\ , with finite variance, the average \ \overline_n\ approximately has a normal distribution, no matter what the distribution of the \ X_i\ is, with the approximation roughly improving in proportion to \ \sqrt.


Example

Suppose is an
independent Independent or Independents may refer to: Arts, entertainment, and media Artist groups * Independents (artist group), a group of modernist painters based in the New Hope, Pennsylvania, area of the United States during the early 1930s * Independ ...
sample from a normally distributed population with unknown parameters
mean There are several kinds of mean in mathematics, especially in statistics. Each mean serves to summarize a given group of data, often to better understand the overall value (magnitude and sign) of a given data set. For a data set, the '' ari ...
''μ'' and
variance In probability theory and statistics, variance is the expectation of the squared deviation of a random variable from its population mean or sample mean. Variance is a measure of dispersion, meaning it is a measure of how far a set of numbe ...
σ2. Let : \bar=(X_1+\cdots+X_n)/n\,, : S^2=\frac 1 \sum_^n (X_i-\bar\,)^2. Where is the
sample mean The sample mean (or "empirical mean") and the sample covariance are statistics computed from a sample of data on one or more random variables. The sample mean is the average value (or mean value) of a sample of numbers taken from a larger popu ...
, and ''S2'' is the
sample variance In probability theory and statistics, variance is the expectation of the squared deviation of a random variable from its population mean or sample mean. Variance is a measure of dispersion, meaning it is a measure of how far a set of numbe ...
. Then : T=\frac has a Student's ''t'' distribution with ''n'' − 1 degrees of freedom. Note that the distribution of ''T'' does not depend on the values of the unobservable parameters ''μ'' and ''σ''2; i.e., it is a
pivotal quantity In statistics, a pivotal quantity or pivot is a function of observations and unobservable parameters such that the function's probability distribution does not depend on the unknown parameters (including nuisance parameters). A pivot quantity need ...
. Suppose we wanted to calculate a 95% confidence interval for ''μ''. Then, denoting ''c'' as the 97.5th
percentile In statistics, a ''k''-th percentile (percentile score or centile) is a score ''below which'' a given percentage ''k'' of scores in its frequency distribution falls (exclusive definition) or a score ''at or below which'' a given percentage fal ...
of this distribution, : \Pr(-c\le T \le c)=0.95 Note that "97.5th" and "0.95" are correct in the preceding expressions. There is a 2.5% chance that T will be less than -c and a 2.5% chance that it will be larger than +c. Thus, the probability that T will be between -c and +c is 95%. Consequently, : \Pr\left(\bar - \frac \le \mu \le \bar + \frac \right)=0.95\, and we have a theoretical (stochastic) 95% confidence interval for ''μ''. After observing the sample we find values for and ''s'' for ''S'', from which we compute the confidence interval : \left \bar - \frac, \bar + \frac \right


Interpretation

Various interpretations of a confidence interval can be given (taking the 95% confidence interval as an example in the following). * The confidence interval can be expressed in terms of a long-run frequency in repeated samples (or in resampling): "''Were this procedure to be repeated on numerous samples, the proportion of calculated 95% confidence intervals that encompassed the true value of the population parameter would tend toward 95%."'' * The confidence interval can be expressed in terms of probability with respect to a single theoretical (yet to be realized) sample: "''There is a 95%
probability Probability is the branch of mathematics concerning numerical descriptions of how likely an event is to occur, or how likely it is that a proposition is true. The probability of an event is a number between 0 and 1, where, roughly speakin ...
that the 95% confidence interval calculated from a given future sample will cover the true value of the population parameter."'' This essentially reframes the "repeated samples" interpretation as a probability rather than a frequency. See Neyman construction. * The confidence interval can be expressed in terms of statistical significance, e.g.: "''The 95% confidence interval represents values that are not statistically significantly different from the point estimate at the .05 level''".


Common misunderstandings

Confidence intervals and levels are frequently misunderstood, and published studies have shown that even professional scientists often misinterpret them. * A 95% confidence level does not mean that for a given realized interval there is a 95% probability that the population parameter lies within the interval (i.e., a 95% probability that the interval covers the population parameter). According to the strict frequentist interpretation, once an interval is calculated, this interval either covers the parameter value or it does not; it is no longer a matter of probability. The 95% probability relates to the reliability of the estimation procedure, not to a specific calculated interval. Neyman himself (the original proponent of confidence intervals) made this point in his original paper:
It will be noticed that in the above description, the probability statements refer to the problems of estimation with which the statistician will be concerned in the future. In fact, I have repeatedly stated that the frequency of correct results will tend to ''α''. Consider now the case when a sample is already drawn, and the calculations have given articular limits Can we say that in this particular case the probability of the true value alling between these limitsis equal to ''α''? The answer is obviously in the negative. The parameter is an unknown constant, and no probability statement concerning its value may be made...
:Deborah Mayo expands on this further as follows:
It must be stressed, however, that having seen the value f the data Neyman–Pearson theory never permits one to conclude that the specific confidence interval formed covers the true value of 0 with either (1 − ''α'')100% probability or (1 − ''α'')100% degree of confidence. Seidenfeld's remark seems rooted in a (not uncommon) desire for Neyman–Pearson confidence intervals to provide something which they cannot legitimately provide; namely, a measure of the degree of probability, belief, or support that an unknown parameter value lies in a specific interval. Following Savage (1962), the probability that a parameter lies in a specific interval may be referred to as a measure of final precision. While a measure of final precision may seem desirable, and while confidence levels are often (wrongly) interpreted as providing such a measure, no such interpretation is warranted. Admittedly, such a misinterpretation is encouraged by the word 'confidence'.
* A 95% confidence level does not mean that 95% of the sample data lie within the confidence interval. * A confidence interval is not a definitive range of plausible values for the sample parameter, though it is often heuristically taken as a range of plausible values. * A particular confidence level of 95% calculated from an experiment does not mean that there is a 95% probability of a sample parameter from a repeat of the experiment falling within this interval.


Counterexamples

Since confidence interval theory was proposed, a number of counter-examples to the theory have been developed to show how the interpretation of confidence intervals can be problematic, at least if one interprets them naïvely.


Confidence procedure for uniform location

Welch presented an example which clearly shows the difference between the theory of confidence intervals and other theories of interval estimation (including Fisher's fiducial intervals and objective
Bayesian Thomas Bayes (/beɪz/; c. 1701 – 1761) was an English statistician, philosopher, and Presbyterian minister. Bayesian () refers either to a range of concepts and approaches that relate to statistical methods based on Bayes' theorem, or a followe ...
intervals). Robinson called this example " ssibly the best known counterexample for Neyman's version of confidence interval theory." To Welch, it showed the superiority of confidence interval theory; to critics of the theory, it shows a deficiency. Here we present a simplified version. Suppose that X_1,X_2 are independent observations from a
Uniform A uniform is a variety of clothing worn by members of an organization while participating in that organization's activity. Modern uniforms are most often worn by armed forces and paramilitary organizations such as police, emergency services, ...
(''θ'' − 1/2, ''θ'' + 1/2) distribution. Then the optimal 50% confidence procedure for \theta is : \bar \pm \begin \dfrac & \text , X_1-X_2, < 1/2 \\ pt\dfrac &\text , X_1-X_2, \geq 1/2 . \end A fiducial or objective Bayesian argument can be used to derive the interval estimate : \bar \pm \frac, which is also a 50% confidence procedure. Welch showed that the first confidence procedure dominates the second, according to desiderata from confidence interval theory; for every \theta_1\neq\theta, the probability that the first procedure contains \theta_1 is ''less than or equal to'' the probability that the second procedure contains \theta_1. The average width of the intervals from the first procedure is less than that of the second. Hence, the first procedure is preferred under classical confidence interval theory. However, when , X_1-X_2, \geq 1/2, intervals from the first procedure are ''guaranteed'' to contain the true value \theta: Therefore, the nominal 50% confidence coefficient is unrelated to the uncertainty we should have that a specific interval contains the true value. The second procedure does not have this property. Moreover, when the first procedure generates a very short interval, this indicates that X_1,X_2 are very close together and hence only offer the information in a single data point. Yet the first interval will exclude almost all reasonable values of the parameter due to its short width. The second procedure does not have this property. The two counter-intuitive properties of the first procedure—100% coverage when X_1,X_2 are far apart and almost 0% coverage when X_1,X_2 are close together—balance out to yield 50% coverage on average. However, despite the first procedure being optimal, its intervals offer neither an assessment of the precision of the estimate nor an assessment of the uncertainty one should have that the interval contains the true value. This counter-example is used to argue against naïve interpretations of confidence intervals. If a confidence procedure is asserted to have properties beyond that of the nominal coverage (such as relation to precision, or a relationship with Bayesian inference), those properties must be proved; they do not follow from the fact that a procedure is a confidence procedure.


Confidence procedure for ''ω''2

Steiger suggested a number of confidence procedures for common
effect size In statistics, an effect size is a value measuring the strength of the relationship between two variables in a population, or a sample-based estimate of that quantity. It can refer to the value of a statistic calculated from a sample of data, the ...
measures in
ANOVA Analysis of variance (ANOVA) is a collection of statistical models and their associated estimation procedures (such as the "variation" among and between groups) used to analyze the differences among means. ANOVA was developed by the statistician ...
. Morey et al. point out that several of these confidence procedures, including the one for ''ω''2, have the property that as the ''F'' statistic becomes increasingly small—indicating misfit with all possible values of ''ω''2—the confidence interval shrinks and can even contain only the single value ''ω''2 = 0; that is, the CI is infinitesimally narrow (this occurs when p\geq1-\alpha/2 for a 100(1-\alpha)\% CI). This behavior is consistent with the relationship between the confidence procedure and significance testing: as ''F'' becomes so small that the group means are much closer together than we would expect by chance, a significance test might indicate rejection for most or all values of ''ω''2. Hence the interval will be very narrow or even empty (or, by a convention suggested by Steiger, containing only 0). However, this does ''not'' indicate that the estimate of ''ω''2 is very precise. In a sense, it indicates the opposite: that the trustworthiness of the results themselves may be in doubt. This is contrary to the common interpretation of confidence intervals that they reveal the precision of the estimate.


History

Confidence intervals were introduced by
Jerzy Neyman Jerzy Neyman (April 16, 1894 – August 5, 1981; born Jerzy Spława-Neyman; ) was a Polish mathematician and statistician who spent the first part of his professional career at various institutions in Warsaw, Poland and then at University Colleg ...
in 1937. Statisticians quickly took to the idea, but adoption by scientists was more gradual. Some authors in medical journals promoted confidence intervals as early as the 1970s. Despite this, confidence intervals were rarely used until the following decade, when they quickly became standard. By the late 1980s, medical journals began to require the reporting of confidence intervals.


See also

* * 68–95–99.7 rule *
Confidence band A confidence band is used in statistical analysis to represent the uncertainty in an estimate of a curve or function based on limited or noisy data. Similarly, a prediction band is used to represent the uncertainty about the value of a new data-p ...
, an interval estimate for a curve * *, a higher dimensional generalization * *
Credible interval In Bayesian statistics, a credible interval is an interval within which an unobserved parameter value falls with a particular probability. It is an interval in the domain of a posterior probability distribution or a predictive distribution. T ...
, a Bayesian alternative for interval estimation * * * *
Margin of error The margin of error is a statistic expressing the amount of random sampling error in the results of a survey. The larger the margin of error, the less confidence one should have that a poll result would reflect the result of a census of the e ...
, the CI halfwidth * *
Prediction interval In statistical inference, 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 ...
, an interval estimate for a random variable * Probable error *


Confidence interval for specific distributions

* Confidence interval for binomial distribution * Confidence interval for exponent of the power law distribution * Confidence interval for mean of the exponential distribution * Confidence interval for mean of the Poisson distribution * Confidence intervals for mean and variance of the normal distribution


References


Bibliography

* Fisher, R.A. (1956) ''Statistical Methods and Scientific Inference.'' Oliver and Boyd, Edinburgh. (See p. 32.) * Freund, J.E. (1962) ''Mathematical Statistics'' Prentice Hall, Englewood Cliffs, NJ. (See pp. 227–228.) * Hacking, I. (1965) ''Logic of Statistical Inference.'' Cambridge University Press, Cambridge. * Keeping, E.S. (1962) ''Introduction to Statistical Inference.'' D. Van Nostrand, Princeton, NJ. * * Mayo, D. G. (1981
"In defence of the Neyman–Pearson theory of confidence intervals"
''Philosophy of Science'', 48 (2), 269–280. * Neyman, J. (1937
"Outline of a Theory of Statistical Estimation Based on the Classical Theory of Probability"
''Philosophical Transactions of the Royal Society of London A,'' 236, 333–380. (Seminal work.) * * Savage, L. J. (1962), ''The Foundations of Statistical Inference''. Methuen, London. * Smithson, M. (2003) ''Confidence intervals''. Quantitative Applications in the Social Sciences Series, No. 140. Belmont, CA: SAGE Publications. . * Mehta, S. (2014) ''Statistics Topics'' * *


External links


The Exploratory Software for Confidence Intervals tutorial programs that run under Excel
* Confidence interval calculators fo
R-SquaresRegression Coefficients
an
Regression Intercepts
*
CAUSEweb.org
Many resources for teaching statistics including Confidence Intervals.
An interactive introduction to Confidence Intervals
*
Confidence Intervals: Confidence Level, Sample Size, and Margin of Error
' by Eric Schulz, the
Wolfram Demonstrations Project The Wolfram Demonstrations Project is an organized, open-source collection of small (or medium-size) interactive programs called Demonstrations, which are meant to visually and interactively represent ideas from a range of fields. It is hos ...
. *
Confidence Intervals in Public Health
'' Straightforward description with examples and what to do about small sample sizes or rates near 0. {{Authority control Statistical intervals