t interval for a mean (σ unknown)
With σ estimated by the sample SD, the interval for μ is x̄ ± t(n − 1)·s/√n.
- sample standard deviation (divisor )
- t quantile with degrees of freedom
- sample size
When to use
The standard interval for a population mean from one sample. For one-sided alternatives the engine returns a one-sided bound (as R's t.test).
Assumptions
- Random sample, independent observations.
- Population approximately normal, or large enough. The t interval is robust to mild skewness; with small , strong skewness or outliers, consider a bootstrap interval or a median-based method.
How to interpret
Same as any confidence interval: the procedure captures μ in about of samples when assumptions hold.
Common mistakes
- Using instead of for small samples (too narrow).
- Using df instead of .
- Computing it on paired data as two separate intervals; analyse the differences instead (paired interval).
Example
Data 12, 15, 11, 14, 13, 16, 12, 15: , , , . 95% interval: .