Nepedia
Back to Discover
Advanced Reader
🔢

Confidence interval

math Maturity 11-13 Next article →

{

"text": "In statistics, researchers often want to know a specific value about a large group, known as a population. For example, a scientist might want to know the average height of every person in a country. Because it is impossible to measure everyone, they take a smaller group called a random sample. The average of this sample provides a point estimate, which is a single guess at the true value. However, a single number rarely tells the whole story. To show how much uncertainty exists, scientists use a confidence interval.

Confidenceinterval
Confidenceinterval

A confidence interval is a range of values that is likely to contain an unknown statistical parameter, such as the population mean.\n\nTo understand how this works, we must look at the mechanism of repeated sampling. In the frequentist approach, the true population mean is considered a fixed but unknown constant. When we take a random sample, the data we collect is subject to chance. Because the sample is random, the endpoints of the confidence interval are also random variables. This means that if you were to take many different samples from the same population, each sample would produce a slightly different interval. The confidence level, such as 95%, describes the long-run reliability of this entire process.

Normal distribution 50% CI illustration
Normal distribution 50% CI illustration

\n\nThere are different ways to calculate these intervals depending on the data available. One common method uses the central limit theorem. This method requires a large sample size to work effectively. It involves calculating the sample mean and the sample standard deviation to find the interval. Another method is called bootstrapping, which uses the existing data to estimate the range.

95% confidence interval
95% confidence interval

In some cases, researchers use a conservative confidence interval. This is an interval that is intentionally wider than necessary to ensure the true value is caught. This approach errs on the safe side to maintain the required coverage probability.\n\nWhen a population follows a normal distribution, mathematicians use specific tools like the Student's t-distribution. If we have an independent sample with an unknown mean and variance, we can calculate a t-score. This value is known as a pivotal quantity because its distribution does not depend on the unobservable parameters of the population. By using the sample mean and the sample variance, we can rearrange mathematical terms to find the specific boundaries of the interval. For a 95% confidence interval, the math ensures that the interval covers the true mean with a 95% probability in repeated sampling.

Neyman Construction Confidence Intervals
Neyman Construction Confidence Intervals

\n\nIt is very easy to misunderstand what these numbers actually mean. A common mistake is believing there is a 95% probability that the true parameter lies within one specific, already calculated interval. In frequentist statistics, the true mean is fixed. It is either inside the interval or it is not; there is no probability involved for that single result. Another mistake is thinking that 95% of the individual data points in a sample fall within the interval. This is not true. The interval is meant to estimate the group's average, not to capture every individual measurement.\n\nTo visualize the true meaning, imagine performing the same experiment 100 times. You would generate 100 different confidence intervals based on 100 different random samples. According to the definition of a 95% confidence level, approximately 95 of those intervals would successfully contain the true population mean. About five of them would miss the true value entirely.

Welch and Bayes intervals
Welch and Bayes intervals

This highlights that the "95%" refers to the success rate of the method over many trials, rather than the certainty of one single result.\n\nConfidence intervals are also distinct from prediction intervals. While a confidence interval quantifies the uncertainty in estimating a population parameter, like a mean, a prediction interval does something else. A prediction interval provides a range where a future individual observation is expected to fall. For instance, if you roll a twenty-sided die, a prediction interval would estimate the range of a single roll. In contrast, a confidence interval would estimate the average result of many, many rolls. Understanding this distinction helps researchers choose the correct tool for forecasting or estimation.

95% confidence interval
95% confidence interval

",

"media": [

"File:Confidenceinterval.svg",

"File:Normal distribution 50% CI illustration.svg",

"File:95% confidence interval.svg",

"File:Neyman_Construction_Confidence_Intervals.png",

"File:Welch and Bayes intervals.svg"

]

}

706 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (5)
File:Normal distribution 50% CI illustration.svg
Normal distribution 50% CI illustration.svg
File:Confidenceinterval.svg
Confidenceinterval.svg
File:95% confidence interval.svg
95% confidence interval.svg
File:Neyman_Construction_Confidence_Intervals.png
Neyman_Construction_Confidence_Intervals.png
File:Welch and Bayes intervals.svg
Welch and Bayes intervals.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.