Confidence Intervals
Learn how to construct and interpret confidence intervals for population parameters. Understand margin of error and confidence level.
On This Page
What is a Confidence Interval?
A confidence interval is a range of values that likely contains an unknown population parameter. Instead of providing a single point estimate, confidence intervals give us a range with an associated confidence level.
For example, instead of saying “the average height is 170 cm,” we might say “we are 95% confident that the average height is between 168 cm and 172 cm.”
Components of a Confidence Interval
Every confidence interval consists of three key components:
1. Point Estimate
The sample statistic used to estimate the population parameter (e.g., sample mean )
2. Margin of Error
The amount we add and subtract from the point estimate to create the interval
3. Confidence Level
The probability that the interval contains the true population parameter (commonly 90%, 95%, or 99%)
Confidence Interval for a Mean
The most common type of confidence interval is for a population mean .
When Population Standard Deviation (σ) is Known
Where:
- = sample mean
- = critical z-value (1.96 for 95% confidence)
- = population standard deviation
- = sample size
A manufacturer wants to estimate the average weight of cereal boxes. A sample of 36 boxes has a mean weight of 500g. The population standard deviation is known to be 15g.
Solution:
- Sample mean: g
- Population SD: g
- Sample size:
- For 95% CI:
Margin of Error:
95% Confidence Interval:
Interpretation: We are 95% confident that the true average weight of all cereal boxes is between 495.1g and 504.9g.
When Population Standard Deviation (σ) is Unknown
In most real-world situations, we don’t know the population standard deviation. Instead, we use the sample standard deviation and the t-distribution.
Where:
- = sample standard deviation
- = critical t-value with degrees of freedom
A researcher measures the reaction times of 25 participants and finds:
- Sample mean: seconds
- Sample SD: seconds
Solution:
- Sample size:
- Degrees of freedom:
- For 95% CI with :
Margin of Error:
95% Confidence Interval:
Interpretation: We are 95% confident that the true average reaction time is between 0.417 and 0.483 seconds.
Common Confidence Levels
| Confidence Level | z-value | Interpretation |
|---|---|---|
| 90% | 1.645 | Less precise, but more certain to capture true parameter |
| 95% | 1.96 | Standard choice, good balance |
| 99% | 2.576 | More precise, but wider interval |
Factors Affecting Interval Width
The width of a confidence interval depends on three factors:
1. Sample Size (n)
- Larger samples → Narrower intervals
- Standard error decreases as
2. Confidence Level
- Higher confidence → Wider intervals
- More critical z or t value needed
3. Population Variability (σ or s)
- More variability → Wider intervals
- Less certainty about the true parameter
Consider two studies with the same mean (100) and standard deviation (15):
Study A:
- — Width = 11.76
Study B:
- — Width = 5.88
Result: Quadrupling the sample size cuts the interval width in half!
Interpreting Confidence Intervals
✅ Correct Interpretations
- “We are 95% confident that the true population mean lies between [a] and [b].”
- “If we repeated this study many times, approximately 95% of the constructed intervals would contain the true mean.”
❌ Incorrect Interpretations
- “There is a 95% probability that the true mean is in this interval.” (The parameter is fixed, not random!)
- “95% of the data falls in this interval.” (This describes the data distribution, not the parameter)
Confidence Intervals for Proportions
We can also construct confidence intervals for population proportions .
Where is the sample proportion.
In a survey of 500 voters, 280 support a particular candidate.
Solution:
- Sample proportion:
- Sample size:
- For 95% CI:
Margin of Error:
95% Confidence Interval:
Interpretation: We are 95% confident that between 51.6% and 60.4% of all voters support the candidate.
Sample Size Determination
Sometimes we want to determine how large a sample we need to achieve a desired margin of error.
A researcher wants to estimate the average IQ within ±2 points with 95% confidence. Assuming :
Result: Need at least 217 participants.
Common Mistakes to Avoid
-
Confusing confidence level with probability: The interval either contains the parameter or it doesn’t; the confidence level refers to the long-run success rate of the method.
-
Using z instead of t: When σ is unknown and sample size is small, always use the t-distribution.
-
Ignoring assumptions: Confidence intervals assume random sampling and approximately normal distributions (or large sample sizes).
-
Misinterpreting width: A wider interval doesn’t mean we’re less certain; it means we’re being more cautious.
Summary
In this lesson, you learned:
- Confidence intervals provide a range of plausible values for population parameters
- The interval is constructed as: point estimate ± margin of error
- Common confidence levels are 90%, 95%, and 99%
- Use z-distribution when σ is known, t-distribution when unknown
- Interval width depends on sample size, confidence level, and variability
- Larger samples produce narrower, more precise intervals
Next Steps
Continue your learning with:
- Hypothesis Testing - Use intervals to make decisions about parameters
- T-Test Calculator - Compute confidence intervals automatically
- Sample Size Determination - Plan your studies effectively
Was this lesson helpful?
Help us improve by sharing your feedback or spreading the word.