All Topics  
Confidence interval

 

   Email Print
   Bookmark   Link






 

Confidence interval



 
 
In statistics
Statistics

Statistics is a Mathematics pertaining to the collection, analysis, interpretation or explanation, and presentation of data. It also provides tools for prediction and forecasting based on data....
, a confidence interval (CI) is an interval estimate
Interval estimation

In statistics, interval estimation is the use of Sampling data to calculate an interval of possible values of an unknown population parameter, in contrast to point estimation, which is a single number....
 of a population parameter. Instead of estimating the parameter by a single value, an interval likely to include the parameter is given. Thus, confidence intervals are used to indicate the reliability of an estimate. How likely the interval is to contain the parameter is determined by the confidence level or confidence coefficient. Increasing the desired confidence level will widen the confidence interval.

For example, a confidence interval can be used to describe how reliable survey results are.






Discussion
Ask a question about 'Confidence interval'
Start a new discussion about 'Confidence interval'
Answer questions from other users
Full Discussion Forum



Encyclopedia


In statistics
Statistics

Statistics is a Mathematics pertaining to the collection, analysis, interpretation or explanation, and presentation of data. It also provides tools for prediction and forecasting based on data....
, a confidence interval (CI) is an interval estimate
Interval estimation

In statistics, interval estimation is the use of Sampling data to calculate an interval of possible values of an unknown population parameter, in contrast to point estimation, which is a single number....
 of a population parameter. Instead of estimating the parameter by a single value, an interval likely to include the parameter is given. Thus, confidence intervals are used to indicate the reliability of an estimate. How likely the interval is to contain the parameter is determined by the confidence level or confidence coefficient. Increasing the desired confidence level will widen the confidence interval.

For example, a confidence interval can be used to describe how reliable survey results are. In a poll of election voting-intentions, the result might be that 40% of respondents intend to vote for a certain party. A 95% confidence interval for the proportion in the whole population having the same intention on the survey date might be 36% to 44%. All other things being equal, a survey result with a small CI is more reliable than a result with a large CI and one of the main things controlling this width in the case of population surveys is the size of the sample questioned. Confidence intervals and interval estimate
Interval estimation

In statistics, interval estimation is the use of Sampling data to calculate an interval of possible values of an unknown population parameter, in contrast to point estimation, which is a single number....
s more generally have applications across the whole range of quantitative studies.

If a statistic is presented with a confidence interval, and is claimed to be statistically significant, the underlying test leading to that claim will have been performed at a significance level of 100% minus the confidence level of the interval. If that test has produced a type I error, then the corresponding confidence interval incorrectly excludes the underlying parameter.

Brief explanation


For a given proportion p (where p is the confidence level), a confidence interval for a population parameter is an interval
Interval (mathematics)

In mathematics, a interval is a set of real numbers with the property that any number that lies between two numbers in the set is also included in the set....
 that is calculated from a random sample of an underlying population such that, if the sampling was repeated numerous times and the confidence interval recalculated from each sample according to the same method, a proportion p of the confidence intervals would contain the population parameter in question. In unusual cases, a confidence set may consist of a collection of several separate intervals, which may include semi-infinite intervals, and it is possible that an outcome of a confidence-interval calculation could be the set of all values from minus infinity to plus infinity.

Confidence intervals are the most prevalent form of interval estimation
Interval estimation

In statistics, interval estimation is the use of Sampling data to calculate an interval of possible values of an unknown population parameter, in contrast to point estimation, which is a single number....
. Interval estimates may be contrasted with point estimates
Point estimation

In statistics, point estimation involves the use of statistical sample data to calculate a single value which is to serve as a "best guess" for an unknown population parameter....
 and have the advantage over these as summaries of a dataset in that they convey more information – not just a "best estimate" of a parameter but an indication of the precision with which the parameter is known.

Confidence intervals play a similar role in frequentist statistics to the credibility interval in Bayesian statistics. However, confidence intervals and credibility intervals are not only mathematically different; they have radically different interpretations.

Confidence region
Confidence region

In statistics, a confidence region is a multi-dimensional generalization of a confidence interval. It is a set of points in an n-dimensional space, often represented as an ellipsoid around a point which is an estimated solution to a problem, although any shape can occur....
s generalise the confidence interval concept to deal with multiple quantities. Such regions can indicate not only the extent of likely estimation errors
Sampling error

In statistics, sampling error or estimation error is the Errors and residuals in statistics caused by observing a sample instead of the whole population....
 but can also reveal whether (for example) the estimate for one quantity is too large then the other is also likely to be too large. See also confidence band
Confidence band

A confidence band is an object used in a statistics, and most usually occurs as part of a graphical presentation of results. Confidence bands are closely allied in concept to confidence intervals, but the interpretation is subtly different....
s.

In applied practice, confidence intervals are typically stated at the 95% confidence level. However, when presented graphically, confidence intervals can show several confidence levels, for example 50%, 95% and 99%.

Theoretical basis


Definition


Confidence Intervals as random intervals

Confidence intervals are constructed on the basis of a given dataset: x denotes the set of observations in the dataset, and X is used when considering the outcomes that might have been observed from the same population, where X is treated as a random variable
Random variable

In mathematics, random variables are used in the study of Randomness and probability. They were developed to assist in the analysis of Game of chance, stochastic events, and the results of experiment by capturing only the mathematical properties necessary to answer probability questions....
 whose observed outcome is X = x. A confidence interval is specified by a pair of functions u(.) and v(.) and the confidence interval for the given data set is defined as the interval (u(x), v(x)). To complete the definition of a confidence interval, there needs to be a clear understanding of the quantity for which the CI provides an interval estimate. Suppose this quantity is w. The property of the rules u(.) and v(.) that makes the interval (u(x),v(x)) closest to what a confidence interval for w would be, relates to the properties of the set of random intervals given by (u(X),v(X)): that is treating the end-points as random variables. This property is the coverage probability or the probability c that the random interval includes w,

Here the endpoints U = u(X) and V = v(X) are statistics (i.e., observable random variable
Random variable

In mathematics, random variables are used in the study of Randomness and probability. They were developed to assist in the analysis of Game of chance, stochastic events, and the results of experiment by capturing only the mathematical properties necessary to answer probability questions....
s) which are derived from values in the dataset. The random interval is (UV).

Confidence intervals for inference

For the above to provide a viable means to statistical inference, something further is required: a tie between the quantity being estimated and the probability distribution
Probability distribution

In probability theory and statistics, a probability distribution identifies either the probability of each value of an unidentified random variable , or the probability of the value falling within a particular interval ....
 of the outcome X. Suppose that this probability distribution
Probability distribution

In probability theory and statistics, a probability distribution identifies either the probability of each value of an unidentified random variable , or the probability of the value falling within a particular interval ....
 is characterised by the unobservable parameter
Parameter

In mathematics, statistics, and the mathematical sciences, a parameter is a quantity that defines certain characteristics of systems or function s....
 ?, which is a quantity to be estimated, and by other unobservable parameters f which are not of immediate interest. These other quantities f in which there is no immediate interest are called nuisance parameters, as statistical theory still needs to find some way to deal with them.

The definition of a confidence interval for ? for any number a between 0 and 1 is an interval



for which



and u(X) and v(X) are observable random variables, i.e. one need not know the value of the unobservable quantities ?, f in order to know the values of u(X) and v(X).

The number 1 − a (sometimes reported as a percentage 100%·(1 − a)) is called the confidence level or confidence coefficient. Most standard books adopt this convention, where a will be a small number. Here is used to indicate the probability when the random variable X has the distribution characterised by . An important part of this specification is that the random interval (UV) covers the unknown value ? with a high probability no matter what the true value of ? actually is.

Note that here need not refer to an explicitly given parameterised family of distributions, although it often does. Just as the random variable X notionally corresponds to other possible realisations of x from the same population or from the same version of reality, the parameters indicate that we need to consider other versions of reality in which the distribution of X might have different characteristics.

Intervals for random outcomes

Confidence intervals can be defined for random quantities as well as for fixed quantities as in the above. See prediction interval
Prediction interval

In statistics, a prediction interval bears the same relationship to a future observation that a confidence interval bears to an unobservable population parameter....
. For this, consider an additional single-valued random variable Y which may or may not be statistically dependent on X. Then the rule for constructing the interval(u(x), v(x)) provides a confidence interval for the as-yet-to-be observed value y of Y if

Here is used to indicate the probability over the joint distribution of the random variables (XY) when this is characterised by parameters .

Approximate confidence intervals

For non-standard applications it is sometimes not possible to find rules for constructing confidence intervals that have exactly the required properties. But practically useful intervals can still be found. The coverage probability for a random interval is defined by

and the rule for constructing the interval may be accepted as providing a confidence interval if

  for all

to an acceptable level of approximation.

Comparison to Bayesian interval estimates

A Bayesian interval estimate is called a credible interval
Credible interval

In Bayesian statistics, a credible interval is a posterior probability interval which is used for interval estimation in contrast to point estimation....
. Using much of the same notation as above, the definition of a credible interval for the unknown true value of ? is, for a given a,

Here T is used to emphasize that the unknown value of is being treated as a random variable. The definitions of the two types of intervals may be compared as follows.
  • The definition of a confidence interval involves probabilities calculated from the distribution of X for given (or conditional on these values) and the condition needs to hold for all values of .
  • The definition of a credible interval involves probabilities calculated from the distribution of T conditional on the observed values of X=x and marginalised (or averaged) over the values of , where this last quantity is the random variable corresponding to the uncertainty about the nuisance parameters in .


Note that the treatment of the nuisance parameters above is often omitted from discussions comparing confidence and credible intervals but it is markedly different between the two cases.

In some simple standard cases, the intervals produced as confidence and credible intervals from the same data set can be identical. They are always very different if moderate or strong prior information is included in the Bayesian analysis.

Desirable properties


When applying fairly standard statistical procedures, there will often be fairly 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 rely are true. In non-standard applications, the same desirable properties would be sought. These desirable properties may be described as: validity, optimality and invariance. Of these "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.

  • 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 widths 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
Point estimation

In statistics, point estimation involves the use of statistical sample data to calculate a single value which is to serve as a "best guess" for an unknown population parameter....
 of the quantity being considered.

Sample statistics: This is closely related to the method of moments
Method of moments

The method of moments can refer to the following:* method of moments , a method of parameter estimation in statistics;* method of moments , a way of proving convergence in distribution in probability theory;...
 for estimation. A simple example arises where the quantity to be estimated is the mean, in which case a natural estimate is the sample mean. The usual arguments indicate that the sample variance can be used to estimate the variance of the sample mean. A naive 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: Where estimates are constructed using the maximum likelihood principle, the 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
Estimating equations

In statistics, the method of estimating equations is a way of specifying how the parameters of a statistical model should be estimation. This can be thought of as a generalisation of the method of moments....
.

Via significance testing: If significance tests are available for general values of a parameter, then confidence intervals/regions can be constructed by including in the 100p% confidence region all those points for which the significance test of the null hypothesis that the true value is the given value is not rejected at a significance level of (1-p).

Examples


Practical example

A machine fills cups with margarine, and is supposed to be adjusted so that the mean content of the cups is close to 250 grams of margarine. Of course it is not possible to fill every cup with exactly 250 grams of margarine. Hence the weight of the filling can be considered to be a random variable X. The distribution of X is assumed here to be a normal distribution with unknown expectation µ and (for the sake of simplicity) known standard deviation s = 2.5 grams. To check if the machine is adequately adjusted, a sample of n = 25 cups of margarine is chosen at random and the cups weighed. The weights of margarine are , a random sample from X.

To get an impression of the expectation µ, it is sufficient to give an estimate. The appropriate estimator
Estimator

In statistics, an estimator is a function of the observable sample data that is used to estimate an unknown population parameter ; an estimate is the result from the actual application of the function to a particular Sampling_ of data....
 is the sample mean:

The sample shows actual weights , with mean:

.

If we take another sample of 25 cups, we could easily expect to find values like 250.4 or 251.1 grams. A sample mean value of 280 grams however would be extremely rare if the mean content of the cups is in fact close to 250g. There is a whole interval around the observed value 250.2 of the sample mean within which, if the whole population mean actually takes a value in this range, the observed data would not be considered particularly unusual. Such an interval is called a confidence interval for the parameter µ. How do we calculate such an interval? The endpoints of the interval have to be calculated from the sample, so they are statistics, functions of the sample and hence random variables themselves.

In our case we may determine the endpoints by considering that the sample mean from a normally distributed sample is also normally distributed, with the same expectation µ, but with standard error (grams). By standardizing we get a random variable

The above expression, standardizes your variable. This allows you to do this analysis, to calculate the 95% confidence interval. µ is some future measurement, sigma is your standard deviation, N is your sample size (in this case 25), and X bar is your sample mean (in this case 250.2). In order to calculate a confidence interval we first need to pick an a variable. Since we are interested in the 95% confidence interval, we set a = 0.05. Hence it is possible to find numbers −z and z, independent of µ, where Z lies in between with probability 1 - a. We take 1 − a = 0.95. So we have:

The number z follows from the cumulative distribution function
Cumulative distribution function

In probability theory and statistics, the cumulative distribution function or just distribution function, completely describes the probability distribution of a real-valued random variable X....
, which gives us our z value, and is valid because we standardized our big Z. (Also see probit
Probit

In probability theory and statistics, the probit function is the inverse function cumulative distribution function , or quantile function associated with the standard normal distribution....
). Therefore:



and then we get:







This might be interpreted as: with probability 0.95 to one we will choose a confidence interval in which we will meet the parameter µ between the stochastic endpoints, but that does not mean that possibility of meeting parameter µ in confidence interval is 95% :

and

Every time the measurements are repeated, there will be another value for the mean of the sample. In 95% of the cases µ will be between the endpoints calculated from this mean, but in 5% of the cases it will not be. The actual confidence interval is calculated by entering the measured weights in the formula. Our 0.95 confidence interval becomes:

This interval has fixed endpoints, where µ might be in between (or not). There is no probability of such an event. We cannot say: "with probability (1 - a) the parameter µ lies in the confidence interval." We only know that by repetition in 100(1 - a) % of the cases µ will be in the calculated interval. In 100a % of the cases however it doesn't. And unfortunately we don't know in which of the cases this happens. That's why we say: "with confidence level 100(1 - a) % µ lies in the confidence interval."

The figure on the right shows 50 realisations of a confidence interval for a given population mean µ. If we randomly choose one realisation, the probability is 95% we end up having chosen an interval that contains the parameter; however we may be unlucky and have picked the wrong one. We'll never know; we're stuck with our interval.

Theoretical example

Suppose X1, ..., Xn are an independent
Statistical independence

In probability theory, to say that two event s are independent intuitively means that the occurrence of one event makes it neither more nor less probable that the other occurs....
 sample from a normally distributed
Normal distribution

The normal distribution, also called the Gaussian distribution, is an important family of continuous probability distributions, applicable in many fields....
 population with mean
Mean

In statistics, mean has two related meanings:* the arithmetic mean .* the expected value of a random variable, which is also called the population mean....
 µ and variance
Variance

In probability theory and statistics, the variance of a random variable, probability distribution, or sample is one measure of statistical dispersion, averaging the squared distance of its possible values from the expected value ....
 s2. Let

Then

has a Student's t-distribution
Student's t-distribution

In probability and statistics, Student's t-distribution is a probability distribution that arises in the problem of estimating the expected value of a normal distribution Statistical population when the sample size is small....
 with n − 1 degrees of freedom. Note that the distribution of T does not depend on the values of the unobservable parameters µ and s2; i.e., it is a pivotal quantity
Pivotal quantity

In statistics, a pivotal quantity is a function of observations whose distribution does not depend on unknown parameters.More formally, given an independent and identically distributed sample from a distribution with parameter , a function is a pivotal quantity if the distribution of is independent of ....
. If c is the 95th percentile of this distribution, then

(Note: "95th" and "0.9" are correct in the preceding expressions. There is a 5% chance that T will be less than −c and a 5% chance that it will be larger than +c. Thus, the probability that T will be between −c and +c is 90%.)

Consequently

and we have a theoretical (stochastic) 90% confidence interval for µ.

After observing the sample we find values for and s for S, from which we compute the confidence interval

,

an interval with fixed numbers as endpoints, of which we can no more say there is a certain probability it contains the parameter µ. Either µ is in this interval or isn't.

Relation to hypothesis testing


While the formulations of the notions of confidence intervals and of statistical hypothesis testing
Statistical hypothesis testing

A statistical hypothesis test is a method of making statistical decisions using experimental data. It is sometimes called confirmatory data analysis, in contrast to exploratory data analysis....
 are distinct they are in some senses related and to some extent complementary. While not all confidence intervals are constructed in this way, one general purpose approach to constructing confidence intervals is to define a 100(1−a)% confidence interval to consist of all those values ?0 for which a test of the hypothesis ?=?0 is not rejected at a significance level of 100a%. Such an approach may not always be available since it presupposes the practical availability of an appropriate significance test. Naturally, any assumptions required for the significance test would carry over to the confidence intervals.

It may be convenient to make the general correspondence that parameter values within a confidence interval are equivalent to those values that would not be rejected by an hypothesis test, but this would be dangerous. In many instances the confidence intervals that are quoted are only approximately valid, perhaps derived from "plus or minus twice the standard error", and the implications of this for the supposedly corresponding hypothesis tests are usually unknown.

Meaning and interpretation


For users of frequentist methods, various interpretations of a confidence interval can be given.

  • The confidence interval can be expressed in terms of samples (or repeated samples): "Were this procedure to be repeated on multiple samples, the calculated confidence interval (which would differ for each sample) would encompass the true population parameter 90% of the time." Note that this need not be repeated sampling from the same population, just repeated sampling .
  • The explanation of a confidence interval can amount to something like: "The confidence interval represents values for the population parameter for which the difference between the parameter and the observed estimate is not statistically significant at the 10% level". In fact, this relates to one particular way in which a confidence interval may be constructed.
  • The probability associated with a confidence interval may also be considered from a pre-experiment point of view, in the same context in which arguments for the random allocation of treatments to study items are made. Here the experimenter sets out the way in which they intend to calculate a confidence interval and know, before they do the actual experiment, that the interval they will end up calculating has a certain chance of covering the true but unknown value. This is very similar to the "repeated sample" interpretation above, except that it avoids relying on considering hypothetical repeats of a sampling procedure that may not be repeatable in any meaningful sense.


In each of the above, the following applies. If the true value of the parameter lies outside the 90% confidence interval once it has been calculated, then an event has occurred which had a probability of 10% (or less) of happening by chance.

Users of Bayesian methods, if they produced an interval estimate
Interval estimation

In statistics, interval estimation is the use of Sampling data to calculate an interval of possible values of an unknown population parameter, in contrast to point estimation, which is a single number....
, would by contrast want to say "My degree of belief that the parameter is in fact in this interval is 90%" . See Credible interval
Credible interval

In Bayesian statistics, a credible interval is a posterior probability interval which is used for interval estimation in contrast to point estimation....
. Disagreements about these issues are not disagreements about solutions to mathematical problems. Rather they are disagreements about the ways in which mathematics is to be applied.

Meaning of the term confidence

There is a difference in meaning between the common usage of the word 'confidence' and its statistical usage, which is often confusing to the layman. In common usage, a claim to 95% confidence in something is normally taken as indicating virtual certainty. In statistics, a claim to 95% confidence simply means that the researcher has seen something occur that only happens one time in twenty or less. If one were to roll two dice and get double six, few would claim this as proof that the dice were fixed, although statistically speaking one could have 97% confidence that they were. Similarly, the finding of a statistical link at 95% confidence is not proof, nor even very good evidence, that there is any real connection between the things linked.

When a study involves multiple statistical tests, some laymen assume that the confidence associated with individual tests is the confidence one should have in the results of the study itself. In fact, the results of all the statistical tests conducted during a study must be judged as a whole in determining what confidence one may place in the positive links it produces. If a study involving 40 statistical tests at 95% confidence was performed, about two of the tests can be expected to return false positives. If 3 links are found, the confidence associated with those links 'as the result of the survey' is actually about 32%; it's what should be expected two-thirds of the time.

Confidence intervals in measurement


The results of measurements are often accompanied by confidence intervals. For instance, suppose a scale is known to yield the actual mass of an object plus a normally distributed
Normal distribution

The normal distribution, also called the Gaussian distribution, is an important family of continuous probability distributions, applicable in many fields....
 random error with mean 0 and known standard deviation
Standard deviation

In statistics, standard deviation is a simple measure of the variability or statistical dispersion of a data set. A low standard deviation indicates that all of the data points are very close to the same value , while high standard deviation indicates that the data are ?spread out? over a large range of values....
 s. If we weigh 100 objects of known mass on this scale and report the values ±s, then we can expect to find that around 68% of the reported ranges include the actual mass.

If we wish to report values with a smaller standard error
Standard error (statistics)

The standard error of a method of measurement or estimation is the standard deviation of the sampling distribution associated with the estimation method....
 value, then we repeat the measurement n times and average the results. Then the 68.2% confidence interval is . For example, repeating the measurement 100 times reduces the confidence interval to 1/10 of the original width.

Note that when we report a 68.2% confidence interval (usually termed standard error) as v ± s, this does not mean that the true mass has a 68.2% chance of being in the reported range. In fact, the true mass is either in the range or not. How can a value outside the range be said to have any chance of being in the range? Rather, our statement means that 68.2% of the ranges we report using ± s are likely to include the true mass.

This is not just a quibble. Under the incorrect interpretation, each of the 100 measurements described above would be specifying a different range, and the true mass supposedly has a 68% chance of being in each and every range. Also, it supposedly has a 32% chance of being outside each and every range. If two of the ranges happen to be disjoint, the statements are obviously inconsistent. Say one range is 1 to 2, and the other is 2 to 3. Supposedly, the true mass has a 68% chance of being between 1 and 2, but only a 32% chance of being less than 1 or more than 3. The incorrect interpretation reads more into the statement than is meant.

On the other hand, under the correct interpretation, each and every statement we make is really true, because the statements are not about any specific range. We could report that one mass is 10.2 ± 0.1 grams, while really it is 10.6 grams, and not be lying. But if we report fewer than 1000 values and more than two of them are that far off, we will have some explaining to do.

It is also possible to estimate a confidence interval without knowing the standard deviation of the random error. This is done using the t distribution
Student's t-distribution

In probability and statistics, Student's t-distribution is a probability distribution that arises in the problem of estimating the expected value of a normal distribution Statistical population when the sample size is small....
, or by using non-parametric
Non-parametric statistics

Non-parametric statistics uses distribution free methods which do not rely on assumptions that the data are drawn from a given probability distribution....
 resampling methods
Resampling (statistics)

In statistics, resampling is any of a variety of methods for doing one of the following:# Estimating the precision of sample statistics by using subsets of available data or drawing randomly with replacement from a set of data points ...
 such as the bootstrap
Resampling (statistics)

In statistics, resampling is any of a variety of methods for doing one of the following:# Estimating the precision of sample statistics by using subsets of available data or drawing randomly with replacement from a set of data points ...
, which do not require that the error have a normal distribution.

Confidence intervals for proportions and related quantities

An approximate confidence interval for a population mean can be constructed for random variables that are not normally distributed in the population, relying on the central limit theorem
Central limit theorem

The central limit theorem states that the re-averaged sum of a sufficiently large number of Independent and identically-distributed random variables Statistical independence random variables each with finite mean and variance will be approximately normal distribution ....
, if the sample size
Sample size

The sample size of a statistical sample is the number of observations that constitute it. It is typically denoted n, a positive integer ....
s and counts are big enough. The formulae are identical to the case above (where the sample mean is actually normally distributed about the population mean). The approximation will be quite good with only a few dozen observations in the sample if the probability distribution
Probability distribution

In probability theory and statistics, a probability distribution identifies either the probability of each value of an unidentified random variable , or the probability of the value falling within a particular interval ....
 of the random variable is not too different from the normal distribution
Normal distribution

The normal distribution, also called the Gaussian distribution, is an important family of continuous probability distributions, applicable in many fields....
 (e.g. its cumulative distribution function
Cumulative distribution function

In probability theory and statistics, the cumulative distribution function or just distribution function, completely describes the probability distribution of a real-valued random variable X....
 does not have any discontinuities and its skewness
Skewness

In probability theory and statistics, skewness is a measure of the asymmetry of the probability distribution of a real number-valued random variable....
 is moderate).

One type of sample mean is the mean of an indicator variable, which takes on the value 1 for true and the value 0 for false. The mean of such a variable is equal to the proportion that have the variable equal to one (both in the population and in any sample). This is a useful property of indicator variables, especially for hypothesis testing. To apply the central limit theorem
Central limit theorem

The central limit theorem states that the re-averaged sum of a sufficiently large number of Independent and identically-distributed random variables Statistical independence random variables each with finite mean and variance will be approximately normal distribution ....
, one must use a large enough sample. A rough rule of thumb is that one should see at least 5 cases in which the indicator is 1 and at least 5 in which it is 0. Confidence intervals constructed using the above formulae may include negative numbers or numbers greater than 1, but proportions obviously cannot be negative or exceed 1. Additionally, sample proportions can only take on a finite number of values, so the central limit theorem
Central limit theorem

The central limit theorem states that the re-averaged sum of a sufficiently large number of Independent and identically-distributed random variables Statistical independence random variables each with finite mean and variance will be approximately normal distribution ....
 and the normal distribution
Normal distribution

The normal distribution, also called the Gaussian distribution, is an important family of continuous probability distributions, applicable in many fields....
 are not the best tools for building a confidence interval. See "Binomial proportion confidence interval
Binomial proportion confidence interval

In statistics, a binomial proportion confidence interval is a confidence interval for a proportion in a statistical population. It uses the proportion estimated in a statistical sample and allows for sampling error....
" for better methods which are specific to this case.

See also

  • Analysis of variance
    Analysis of variance

    In statistics, analysis of variance is a collection of statistical models, and their associated procedures, in which the observed variance is partitioned into components due to different explanatory variables....
  • Confidence region
    Confidence region

    In statistics, a confidence region is a multi-dimensional generalization of a confidence interval. It is a set of points in an n-dimensional space, often represented as an ellipsoid around a point which is an estimated solution to a problem, although any shape can occur....
  • Prediction interval
    Prediction interval

    In statistics, a prediction interval bears the same relationship to a future observation that a confidence interval bears to an unobservable population parameter....
  • Tolerance interval
    Tolerance interval

    A tolerance interval is a statistical interval within which, with some confidence, a specified proportion of a population falls. This differs from a confidence interval in that the confidence interval bounds a population parameter with some confidence, while the bounds of a tolerance interval are a range of possible data values that rep...
  • Regression analysis
    Regression analysis

    In statistics, regression analysis is a collective name for techniques for the modeling and analysis of numerical data consisting of values of a dependent variable and of one or more independent variables ....
  • Segmented regression
    Segmented regression

    Segmented regression is a method in regression analysis in which the independent variable is partitioned into intervals and a separate line segment is fit to each interval....
  • Cumulative frequency
    Cumulative frequency

    Cumulative frequency is the frequency of a random variable below a particular level. It tells how often the value of the random variable is less than or equal to a particular reference value....
  • Bootstrapping (statistics)
    Bootstrapping (statistics)

    In statistics, bootstrapping is a modern, computer-intensive, general purpose approach to statistical inference, falling within a broader class of Resampling methods....
  • Binomial proportion confidence interval
    Binomial proportion confidence interval

    In statistics, a binomial proportion confidence interval is a confidence interval for a proportion in a statistical population. It uses the proportion estimated in a statistical sample and allows for sampling error....
  • Robust confidence intervals
    Robust confidence intervals

    In statistics a robust confidence interval is the outcome of a specialized set of calculations constructed in such a way as to produce confidence intervals which are not badly affected by outlying or aberrant observations in a data-set....


Online calculators



External links

  • Confidence interval calculators for , , and
  • Many resources for teaching statistics including Confidence Intervals.
  • by Eric Schulz, the Wolfram Demonstrations Project
    Wolfram Demonstrations Project

    The Wolfram Demonstrations Project is a website developed by Wolfram Research, whose stated goal is to bring computational exploration to the widest possible audience....
    .