How to use it
- 1Enter the sample mean, the standard deviation and the sample size.
- 2Choose a confidence level from 80%, 90%, 95%, 99% or 99.9%.
- 3Choose Student’s t (standard deviation estimated from the sample) or the normal distribution (population standard deviation known).
- 4Read the interval, margin of error and critical value, then copy the results.
Confidence interval for a mean
This calculator estimates a population mean. A proportion requires an interval method designed for proportions. The mean interval is x̄ ± critical value × standard error. The standard deviation measures the spread of individual observations, and the standard error measures the sampling variability of the mean. The Z method uses a known population standard deviation (σ / √n). The Student method uses the sample standard deviation (s / √n) and n − 1 degrees of freedom.
For a mean of 50, a standard deviation of 8 and n = 25 at 95% with Student’s t (24 degrees of freedom), t ≈ 2.0639 and the interval is about 46.698 to 53.302.
Sampling assumptions and coverage
Both methods assume independent observations from a random sample. For small samples, exact Student coverage requires a normal population and at least two observations. The Z method requires a normally distributed sample mean, as obtained from a normal population. With large samples and finite variance, the central limit theorem can justify an approximate interval. Strong skewness, outliers and dependence can reduce coverage.
A 95% confidence procedure covers the fixed population mean in about 95% of repeated samples under its assumptions. A computed interval is one realization of that procedure. See the NIST/SEMATECH e-Handbook of Statistical Methods, Confidence Intervals for the Mean.
Frequently asked questions
Should I use z or t?
Use t when the standard deviation comes from your sample, which is almost always the case. Use z only when the population standard deviation is known.
What does 95% confidence mean?
If you repeated the sampling many times, about 95% of the intervals built this way would contain the true population mean.
Why must n be at least 2 for Student’s t?
The t distribution uses n − 1 degrees of freedom, which must be at least 1.