Confidence Intervals

A point estimate summarizes a parameter with a single number computed from the sample, such as the sample mean for a population mean . Because the estimate varies from sample to sample, a point estimate alone conveys nothing about its own precision. An interval estimate surrounds the point estimate with a margin of error, producing a range of values that are compatible with the data.

General form

Many confidence intervals for mean-like parameters have the same structure:

where is the standard error of the estimate — the estimated standard deviation of its sampling distribution. The critical value is chosen so that the interval has a specified coverage level: it is the value that cuts off the extreme tail areas of the sampling distribution, obtained from the standard normal distribution or from a distribution when the standard error is estimated from the sample (as in the t Tests page).

The interval is usually written as .

Example: mean hours slept

A sample of students has mean hours slept with sample standard deviation . The estimated standard error is

With , the two-tailed critical value for 95% confidence is , so

giving a 95% confidence interval of hours.

Finding in a t table. A t table is read by degrees of freedom and tail area: locate the row and the column for a two-tailed (equivalently, in one tail), which gives ; the two-tailed column gives for the same df. When the exact df is absent — a fractional Welch df, or a value between table rows — round down to the next listed df (for example, ): fewer degrees of freedom means a larger critical value, so the interval stays conservative. Exact critical values from software remove the need for rounding.

What the confidence level means

The 95% refers to the long-run success rate of the method, not to any single computed interval. If samples were repeatedly drawn and an interval computed from each in the same way, about 95% of those intervals would contain the true population mean.

It does not mean that there is a 95% probability that lies inside a particular realized interval. Once the sample is observed and the interval computed, is fixed: it either lies in that interval or it does not. The randomness is in the interval-construction procedure, not in the parameter.

Interpreting an observed interval

A computed interval admits the following reading: it is the set of parameter values that are consistent with the observed data, given the chosen confidence level. Values inside the interval are plausible; values far outside it are incompatible with the data in a well-defined sense. This interpretation is estimation-flavored rather than decision-flavored, and it is usually more informative than a bare significance statement because it shows the magnitude of uncertainty around the estimate, not just whether a threshold was crossed.

Precision

The width of a confidence interval is twice the margin of error:

Because shrinks with the square root of the sample size, larger samples produce narrower intervals at a fixed confidence level — more data means less uncertainty about the parameter. Raising the confidence level widens the interval by enlarging the critical value, so confidence and precision trade against each other for a fixed sample.

Duality with two-sided hypothesis tests

A two-sided confidence interval with coverage contains exactly the null values that a two-sided test at level would fail to reject, for the same data and standard error. If the interval contains the hypothesized value, the two-sided test does not reject; if the interval excludes it, the test rejects.

In the example above, the null value hours lies inside , matching the two-sided test outcome , which falls short of the critical value at .

This correspondence holds only between a two-sided test and a two-sided interval. A one-sided test at level does not correspond to the ordinary two-sided interval. The null values it would fail to reject form a one-sided bound with coverage — equivalently, the relevant endpoint of a two-sided interval constructed from the same standard error. Interval and test should be aligned in direction when the duality is used.

The critical value must also match the intended coverage, not the tail direction of any related test. A two-sided 95% interval always uses the two-tailed critical value, even when the research hypothesis is one-sided: using the one-tailed value at instead of leaves in each tail, so the resulting interval has only coverage, not .

  • The standard error and its behavior come from sampling distributions.
  • Intervals for mean differences built with critical values appear on the t Tests page.
  • Interval width and the size of an effect jointly determine the power of the matching test.