Calculate confidence intervals for population means. Supports 90%, 95%, and 99% confidence levels with t-distribution and z-distribution.
95%
95% Confidence Interval
(70.52, 79.48)
We are 95% confident that the true population mean lies between 70.52 and 79.48
Sample mean (x̄)
75.0000
Standard deviation (s)
12.0000
Sample size (n)
30
Degrees of freedom
29
Standard error
2.1909
Critical value (t)
2.0456
Margin of error
± 4.4817
Lower bound
70.5183
Upper bound
79.4817
What is a confidence interval?
A confidence interval is a range of values that is likely to contain an unknown population parameter. Rather than estimating the parameter by a single value, an interval estimate gives a range of plausible values along with a probability that the true value falls within that range.
For example, a 95% confidence interval means that if we were to take many samples and calculate a confidence interval from each, approximately 95% of those intervals would contain the true population parameter.
The confidence interval formula
For a population mean, the confidence interval is:
xˉ±tα/2×ns
Where:
x̄ = sample mean
t = critical value from t-distribution
s = sample standard deviation
n = sample size
The margin of error is:
E=tα/2×ns
Confidence levels and critical values
t-distribution (unknown population σ)
Confidence
α
α/2
df = 10
df = 30
df = ∞
90%
0.10
0.05
1.812
1.697
1.645
95%
0.05
0.025
2.228
2.042
1.960
99%
0.01
0.005
3.169
2.750
2.576
z-distribution (known population σ or large n)
Confidence level
z-score
90%
1.645
95%
1.960
99%
2.576
When to use t vs z distribution
Use t-distribution when:
Population standard deviation (σ) is unknown
Sample size is small (n < 30)
Estimating from sample standard deviation (s)
Use z-distribution when:
Population standard deviation (σ) is known
Sample size is large (n ≥ 30)
Working with proportions
As sample size increases, the t-distribution approaches the normal (z) distribution.
Example calculation
A researcher measures the heights of 25 students and finds: