A confidence interval estimates a population parameter using lower and upper bounds. A 95% confidence level describes the method: across repeated random samples under the same assumptions, about 95% of the intervals would contain the fixed true parameter. A particular interval either contains it or does not.

The 95% confidence interval provides researchers with a high level of confidence that the true population parameter is included within the interval, striking a balance between precision and practicality. This statistical tool allows for valuable inferences and helps assess estimability issues when modeling data across disciplines.

Confidence interval of 95%
Understanding the 95-percent confidence interval

Confidence Interval vs Credibility Interval

The differences between confidence intervals and credibility intervals lie in interpretation and calculation. Confidence intervals focus on the long-term frequency properties of the estimator, while credibility intervals offer a probability statement about the parameter based on current data and prior knowledge.

  • Confidence Intervals (CI),  are calculated based on the idea that if an experiment were repeated numerous times, a certain percentage (like 95%) of the calculated intervals would contain the true parameter value. The CI is all about the methodology and the long-term frequency properties of the estimator. It does not assign a probability to the parameter itself being within the interval in any specific experiment.
  • Credibility Intervals (Bayesian CI), from Bayesian statistics, provide a probability that the parameter is within the interval, based on the observed data and prior beliefs or knowledge. This interval is calculated from the posterior distribution, a combination of the likelihood of the observed data and a prior distribution, reflecting pre-existing beliefs or information about the parameter. It allows for a more direct probabilistic interpretation of where the parameter lies based on the current data and prior information.

Below is a comparative table with the fundamental differences between confidence intervals and credibility intervals in terms of their definition, philosophical basis, computation methods, interpretation, sensitivity to sample size, use of prior information, and typical contexts in which they are applied.

AspectConfidence IntervalBayesian Credibility Interval
DefinitionAn interval estimate produced by a procedure with specified long-run coverage, such as 95%, under its sampling assumptions.An interval estimate of a parameter that represents the range of values within which the parameter is likely to fall, with a certain degree of belief (or probability), based on the observed data and prior information.
Philosophical BasisFrequentist approach; focuses on the long-run frequency properties of the estimator.Bayesian approach; incorporates prior beliefs or information along with the likelihood of the observed data.
ComputationBased on sampling distribution of the estimator and does not require prior information about the parameter.Based on the posterior distribution of the parameter, which combines the likelihood of the observed data with the prior distribution.
InterpretationThe interval has a certain probability (e.g., 95%) of containing the true parameter value in repeated samples. It does not assign a probability to the parameter itself.The parameter has a certain probability (e.g., 95%) of being within the interval, given the data and the prior. It provides a probabilistic statement about the parameter itself.
Sensitivity to Sample SizeCan be more influenced by sample size; larger samples tend to produce narrower intervals.Also influenced by sample size, but the effect is moderated by the strength of the prior beliefs.
Prior InformationDoes not incorporate prior information about the parameter.Explicitly incorporates prior information or beliefs about the parameter.
Example ContextsCommon in frequentist statistics, like in clinical trials or surveys.Often used in Bayesian analysis, such as in hierarchical models or when prior information is available.

How to Calculate the 95% Confidence Interval

The formula for calculating a 95-percent confidence interval depends on whether you’re estimating a mean or a proportion and whether you’re using the standard deviation of the population (which is often unknown) or the standard deviation of your sample. The formula for constructing a 95% confidence interval around a point estimate in statistics is:

Confidence Interval = Point Estimate ± (Critical Value × Standard Error)

where:

  • Point Estimate: This is the calculated value that estimates the parameter of interest. It’s derived from the sample data. Common examples are the sample mean or sample proportion.
  • Critical Value: This is a number from a statistical distribution that corresponds to the desired level of confidence. For a 95% confidence interval, the critical value is often taken from either the Z-distribution (standard normal distribution) or the t-distribution.
    • In the case of a large sample size or known population variance, the critical value is typically the Z-score (approximately 1.96 for 95% confidence).
    • For smaller samples or unknown population variance, the critical value is the t-score, which depends on the sample size (or degrees of freedom).
  • Standard Error: This is a measure of the standard deviation of the sampling distribution of the point estimate. It’s an estimate of how much variability you can expect in the point estimate from sample to sample. The standard error of the mean, for example, is calculated as the sample standard deviation divided by the square root of the sample size.

To compute the upper and lower bounds of a confidence interval, it’s essential to use the appropriate Z-score that corresponds with your selected confidence level.

Confidence LevelZ-Score
90% (0.90)1.645
95% (0.95)1.96
99% (0.99)2.58
This table provides the z-scores for common confidence levels

Known population standard deviation: the z interval

\[CI = {\overline{x} \pm Z { \sigma \over \sqrt n } }\] where:
  • ¯¯¯x is the sample mean
  • Z is the Z-score corresponding to the desired confidence level (for 95%, it’s typically 1.96)
  • σ is the population standard deviation
  • n is the sample size.

Unknown population standard deviation: the t interval

\[CI = {\overline{x} \pm t { s \over \sqrt n } }\] where:
  • ¯¯¯x is the sample mean
  • t is the t-score from the t-distribution corresponding to the desired confidence level and degrees of freedom (n-1)
  • s is the sample standard deviation
  • n is the sample size.

Calculation of a 95% Confidence Interval (Example)

For a z-interval example, suppose 100 independently sampled adult males have a sample mean height of 175 cm and the population standard deviation is known to be σ = 8 cm. For 95% confidence, z* ≈ 1.96. If instead 8 cm were only the sample estimate s, a t interval would generally be appropriate.

Using the formula for the confidence interval:

\[CI = {\overline{x} \pm Z { \sigma \over \sqrt n } }\] \[CI = { 175 \pm 1.96 { 8 \over \sqrt 100 } }\] \[CI = { 175 \pm 1.96 \times 0.8 }\] \[CI = { 175 \pm 1.568 }\]

The 95% confidence interval for the average height is approximately 173.43 cm to 176.57 cm. This means we are 95% confident that the true average height of the adult male population falls within this range.

Note: The MathBlog confidence interval calculator is a tool designed to simply calculating CIs.

What Does the 95-percent Confidence Interval Tell?

We’re using another example to explain what the 95-percent confidence interval tells us. Let’s consider that a market research firm conducts a survey to determine the percentage of consumers interested in a new type of eco-friendly packaging. This kind of research is highly important for companies looking to invest in sustainable packaging solutions and understanding consumer trends.

The survey finds that 65 percent of consumers are in favor of the new eco-friendly packaging. The research, conducted via online questionnaires, gathered responses from 1,200 consumers. The results have a reported margin of error of plus or minus 4 percentage points.

The reported margin of error gives bounds of 61% to 69%. The confidence level and sampling design must also be stated; they cannot be inferred from the margin alone. If these are valid 95% confidence bounds, the procedure has approximately 95% long-run coverage under its assumptions.

If the sampling and interval-construction procedure were repeated many times, about 95% of the resulting 95% intervals would contain the same fixed population proportion. The intervals vary between samples; this is not a claim that repeated sample percentages fall inside this particular interval.

Also worth noting, there are different levels of confidence that can be used based on the desired degree of certainty:

  • For the same data and interval method, a 90% interval is narrower than a 95% interval because its critical value is smaller.
  • For the same data and interval method, a 99% interval is wider than a 95% interval because its critical value is larger.