Confidence intervals

Statistics · First-year university statistics · about 10 min

A sample estimate is rarely identical to the population value. A confidence interval adds a margin of error to an estimate, showing a range produced by a repeatable method. The interval width depends on variability, sample size and confidence level. Exam questions often require both the arithmetic and a careful interpretation of what the confidence percentage means.

The key idea

For a population mean when σ\sigma is known, a confidence interval is

xˉ±z∗σn.\bar{x}\pm z^*\frac{\sigma}{\sqrt{n}}.

Here xˉ\bar{x} is the sample mean, z∗z^* the normal critical value, σ\sigma the population standard deviation, and nn the sample size.

A horizontal number line with a central filled dot at x_bar. Draw a solid horizontal segment from a left endpoint L to a right endpoint U with short vertical end caps. Use two thin double-headed dimension arrows above, one from L to x_bar and the other from x_bar to U, and label both E. The two distances are exactly equal. No numeric endpoints.
A two-sided confidence interval extends a margin of error on both sides of the sample mean.

Try it yourself

Shade the middle of the normal curve to see where the critical values for an interval come from.

Understand standard error

The sample mean changes from sample to sample. Its standard error, when observations are independent, is SE=σ/nSE=\sigma/\sqrt{n}. Increasing the sample size reduces the uncertainty in the mean, but the improvement follows a square-root rule: multiplying nn by four halves SESE. A normal-based method is appropriate when the parent population is normal, or when a representative sample is sufficiently large for a normal approximation. The interval concerns the population mean, not the spread of individual observations. A wide population distribution can still yield a precise estimate of its mean if the sample is large.

Choose a critical value

The confidence level fixes the amount of probability between two critical values of a reference distribution. Common two-sided normal critical values are z∗≈1.645z^*\approx1.645 for 90%90\%, 1.9601.960 for 95%95\%, and 2.5762.576 for 99%99\%. Calculate the margin E=z∗SEE=z^*SE, then state the lower and upper endpoints, keeping units and sensible precision. If σ\sigma is unknown and the assumptions support a one-sample t-interval, replace σ\sigma by the sample standard deviation ss and use a t critical value with n−1n-1 degrees of freedom. Do not silently treat ss as known σ\sigma.

Interpret repeated coverage

A 95%95\% confidence procedure captures the fixed population mean in about 95%95\% of intervals produced by repeated independent samples under the model assumptions. For one interval already calculated, the population mean does not move randomly between its endpoints. Therefore, the conventional frequentist interpretation is about long-run performance of the method, not a 95%95\% probability assigned to the fixed mean. A higher confidence level produces a wider interval for the same sample. A smaller interval indicates more precision, but neither narrowness nor nominal coverage can remove bias from poor sampling.

Draw 20 thin horizontal confidence-interval segments at twenty equally spaced vertical levels, each with a filled central sample-mean dot and two short end caps. The endpoints vary modestly. A vertical dashed line marks the single fixed true mean mu across the full stack. Construct exactly 19 segments crossing the vertical dashed line and one segment wholly to its right. No axes, percentages, numeric values or extra text.
Most repeated-sample intervals cross the true mean, but occasional intervals miss it.

Worked example: Estimating the average length of rods

A random independent sample of 3636 rods has mean length 500 mm500\,\mathrm{mm}. The population standard deviation is known to be 12 mm12\,\mathrm{mm}. Assuming a normal sampling distribution for the mean, construct a two-sided 95%95\% confidence interval for the population mean length.

Show the solution
  1. Identify the inputs: xˉ=500 mm\bar{x}=500\,\mathrm{mm}, σ=12 mm\sigma=12\,\mathrm{mm}, n=36n=36, and z∗=1.96z^*=1.96.

  2. Standard error:

SE=12 mm36=2 mm.SE=\frac{12\,\mathrm{mm}}{\sqrt{36}}=2\,\mathrm{mm}.
  1. Margin of error:
E=1.96(2 mm)=3.92 mm.E=1.96(2\,\mathrm{mm})=3.92\,\mathrm{mm}.
  1. Endpoints:
500 mm±3.92 mm=(496.08 mm, 503.92 mm).500\,\mathrm{mm}\pm3.92\,\mathrm{mm}=(496.08\,\mathrm{mm},\ 503.92\,\mathrm{mm}).

Answer: The 95%95\% confidence interval is (496.08 mm, 503.92 mm)(496.08\,\mathrm{mm},\ 503.92\,\mathrm{mm}). This procedure has 95%95\% long-run coverage if its assumptions hold.

Common mistakes

Using σ\sigma rather than σ/n\sigma/\sqrt{n} for the uncertainty in a sample mean.

Calculate the standard error before multiplying by the critical value.

Treating 95%95\% confidence as a probability that a fixed mean is inside this specific interval.

Interpret confidence as repeated-sampling coverage of the interval procedure.

Using 1.961.96 automatically when the population standard deviation is unknown.

Check whether the problem calls for an appropriate t-interval.

Reporting an interval without measurement units.

Attach the original variable's units to both endpoints and the margin of error.

Check your understanding

1. For a 90%90\% two-sided z-interval, σ=10 mm\sigma=10\,\mathrm{mm} and n=100n=100. Using z∗=1.645z^*=1.645, what is the margin of error?

2. A sample mean is 100 mm100\,\mathrm{mm}, with known σ=6 mm\sigma=6\,\mathrm{mm} and n=9n=9. Assume the population is normally distributed. Using z∗=1.96z^*=1.96, which 95%95\% confidence interval is correct?

3. Which statement correctly interprets a 95%95\% confidence procedure?

Still not sure? Talk it through.

Waypoint Mentor's tutor explains this out loud, works through your own problems on a whiteboard, and checks you've got it. Free to start.

Explain this to me

Related topics