A worked example, rendered from real sample data. Sign in to run the tool on your own input.
25, 26, 24, 27, 25, 26, 24, 28
95═══ Verdict ═══
✓ 95% confidence interval for the mean: 24.4480 to 26.8020
ℹ Used the t distribution with 7 degrees of freedom because σ is estimated from the sample and n is small
⚠ Normality: not testable with n = 8; judge from the histogram and be cautious
═══ Estimate ═══
Sample size (n): 8
Sample mean: 25.6250
Sample std dev (n-1): 1.4079
Standard error: 0.4978
Critical value: 2.3646 (t, df 7)
Margin of error: 1.1770
Lower bound: 24.4480
Upper bound: 26.8020
Interval width: 2.3540
Relative margin: 4.59%
═══ Spread Interval ═══
95% CI for the standard deviation: 0.9309 to 2.8654
The interval for σ uses the chi-square distribution and is very sensitive to non-normal data.
═══ Assumptions ═══
Skewness (G1): 0.4799
Excess kurtosis (G2): -0.5645
D'Agostino-Pearson K²: needs n ≥ 20 (n = 8)
Jarque-Bera: 0.4891 (p 0.783046)
⚠ With n = 8, the interval leans on the data being roughly normal
Observations must be independent; repeated measures on the same subject break this.
Using z instead of t with an estimated σ makes the interval too narrow — this tool only does that when you supply σ.
═══ What This Means ═══
Plain English: the data are consistent with a true mean anywhere between 24.4480 and 26.8020.
It does NOT mean there is a 95% probability that the true mean lies in this specific interval — the true mean is fixed, the interval is what varies.
To halve the width you need about 4× the data (width scales with 1/√n).
Calculate confidence intervals for population parameters. Part of the DevTools Surf developer suite. Browse more tools in the Statistics collection.