All courses › Statistics and Risk Analysis › Confidence interval

Confidence interval

A confidence interval gives a range of plausible values for an unknown quantity, such as the mean μ\mu, based on a sample. The standard error of the mean shrinks with n\sqrt n, so a larger sample gives a narrower interval. A higher confidence level gives a wider interval.

xˉ±zα/2 σn\bar x \pm z_{\alpha/2}\,\frac{\sigma}{\sqrt n}confidence interval for μ\mu with known σ\sigma
SE=σnSE = \frac{\sigma}{\sqrt n}standard error of the mean

Symbols

xˉ\bar xsample mean
zα/2z_{\alpha/2}critical z-value, 1.96 for 95%
nnsample size

Example

xˉ=35\bar x = 35, σ=18\sigma = 18, n=36n = 36: SE=18/6=3SE = 18/6 = 3.

Upper bound of 95% interval: 35+1.96⋅3≈40.8835 + 1.96\cdot 3 \approx 40.88.

A wider interval means higher confidence, not worse data — confidence level and precision are traded off.
Practise inference and risk for free →

← Hypothesis testing and p-value · Type I and type II errors →

Part of Statistics and Risk Analysis: Inference and risk.