Skip to content

Confidence intervals, explained

5 min read

Short answer

A confidence interval is estimate ± margin of error. For a mean with known σ\sigma: xˉ±z∗σn\bar x\pm z^*\dfrac{\sigma}{\sqrt n}, where z∗=1.96z^*=1.96 for 95%. The 95% describes the method: if you repeated the study many times, about 95% of the intervals built this way would contain the true value.

Diagrammiddle 95%
For a normal sampling distribution, 95% of the area lies within 1.96 standard errors of the center.

The parts

The point estimate is your sample statistic. The standard error σn\dfrac{\sigma}{\sqrt n} measures how much that estimate varies from sample to sample. The critical value z∗z^* sets the confidence level: 1.6451.645 for 90%, 1.961.96 for 95%, 2.5762.576 for 99%. When σ\sigma is unknown, use ss and the tt critical value with n−1n-1 degrees of freedom.

What changes the width

A higher confidence level widens the interval. A larger sample narrows it, but only like 1/n1/\sqrt n: four times the data halves the width. More variable data widens it.

Worked example

A sample of n=64n=64 has xˉ=50\bar x=50 and the population σ=8\sigma=8. Build a 95% confidence interval for the mean.

Standard error =8/64=1=8/\sqrt{64}=1. Margin =1.96⋅1=1.96=1.96\cdot1=1.96. The interval is 50±1.9650\pm1.96, that is (48.04, 51.96)(48.04,\,51.96).

Try it yourself

What happens to the margin of error if you quadruple the sample size?

Show the answer

It is divided by 4=2\sqrt4=2: the margin of error is cut in half.

Keep going with practice

Vidi's probability lessons build the normal distribution that every confidence interval relies on.