Domain 5 /

What does a confidence interval tell you?

By the endCompute and interpret a 95% confidence interval, and use intervals to judge significance and to compare two estimates.

An estimate needs its range

A point estimate, such as a mean or a risk ratio (RR), is the single value that best quantifies what the sample shows. A confidence interval (CI) gives a range of values that is likely to contain the population parameter, and so acknowledges the uncertainty in an estimate based on a sample.

Many medical and public health journals now require associations to be described by measures of association and CIs rather than by p-values or other statistical tests.

What 95% means

The confidence level, such as 95%, is chosen by the analyst. It means that if the same population were sampled on many occasions and an interval computed each time, about 95% of those intervals would bracket the true population value. A confidence level of 1 - alpha is the counterpart of a significance level of alpha.

That definition says little about any single study. In practice, epidemiologists read a 95% CI as the range of values consistent with the data from their study, and as a guide to its variability rather than a strict range. Formulas differ: those for a mean and a proportion are well accepted, while several formulas exist for risk ratios and odds ratios and can give different results. Some methods also fall short of the stated 95% coverage under some conditions.

A 95% confidence interval for a mean

Means, particularly from large samples, tend to be normally distributed, so the interval uses the normal multiplier 1.96.

  1. 1

    Find the standard error

    Divide the standard deviation (SD) by the square root of the number of observations. The SD describes the spread of the data; the standard error (SE) of the mean describes how much means of repeated samples from the same population would vary.

  2. 2

    Multiply by 1.96

    For a mean total cholesterol of 206 with an SE of 3: 3 × 1.96 = 5.88.

  3. 3

    Subtract and add

    Lower limit = 206 - 5.88 = 200.12. Upper limit = 206 + 5.88 = 211.88. To one decimal place, the 95% CI is 200.1 to 211.9.

  4. 4

    Read it

    The best estimate of the population mean is 206, and the data are consistent with values from 200.1 to 211.9. The interval is narrow, so the estimate is fairly precise.

Estimated spread widens the interval

Population standard deviations are usually unknown and must be estimated from the data. At the same confidence level, an interval is then wider when the SD is estimated from limited data, because the estimate itself is uncertain.

An interval can be two-sided, bracketing the value from above and below, or one-sided, giving only an upper or a lower bound.

How to read an interval

Width is precision

A narrow interval reflects less variability and higher precision. A wide interval reflects a large amount of variability or imprecision.

Size narrows it

Usually, the more subjects or observations in a study, the greater the precision and the narrower the interval.

Values inside and outside both count

For an RR of 4.0 with a 95% CI of 3.0 to 5.3, another study's RR of 3.2 or 5.2 would be compatible with the data, and an RR of 1.2 or 6.2 would not.

Find the null value

For a ratio such as an RR or an odds ratio (OR), no association is 1.0. For a difference between two means, no difference is 0.

An interval can stand in for a test

For every test of a hypothesis there is an equivalent statement about whether the hypothesized value lies in a confidence interval. A two-sided test at alpha rejects the null hypothesis if and only if the null value lies outside the 100(1 - alpha)% interval.

So a 95% CI for an RR that includes 1.0 is compatible with the null hypothesis, which cannot be rejected at 0.05. An interval that excludes 1.0 means the null hypothesis should be rejected.

A nonsignificant interval can still be informative. An RR of 1.0 with a 95% CI of 0.9 to 1.1 and p = 0.9 is compatible with no association and with only modest decreases or increases in risk. It is evidence against large effects under the analysis assumptions, which can reassure a worried public, though it does not prove exactly no effect.

Compare groups through the difference, not the overlap

To say that two estimates from samples differ, test the difference between them. This usually needs the SE of each estimate and, if the estimates are not independent, their covariance. Placing two intervals side by side is not that test.

For two independent means, the two-sample t statistic divides the difference in means by the square root of s1²/N1 + s2²/N2. Each term is a squared SE, so the SE of the difference is the square root of SE1² + SE2². That is smaller than SE1 + SE2, so two 95% intervals can overlap while the 95% interval for the difference excludes 0.

Worked example

Two clinics, overlapping intervals

Independent random samples of several hundred patients at each of two clinics give a mean wait for a first appointment of 20.0 days (SE 1.5) at clinic A and 25.0 days (SE 1.5) at clinic B. The samples are large enough to use the multiplier 1.96. Find each clinic's 95% CI and the 95% CI for the difference, to one decimal place.

  1. 1

    Each clinic's interval

    1.96 × 1.5 = 2.94. Clinic A: 20.0 ± 2.94 = 17.1 to 22.9. Clinic B: 25.0 ± 2.94 = 22.1 to 27.9. The intervals overlap from 22.1 to 22.9.

  2. 2

    SE of the difference

    √(1.5² + 1.5²) = √4.5 = 2.12.

  3. 3

    Interval for the difference

    Difference = 25.0 - 20.0 = 5.0 days. 1.96 × 2.12 = 4.16. 95% CI = 5.0 ± 4.16 = 0.8 to 9.2 days.

  4. 4

    Read it

    The interval for the difference excludes 0, the null value. Equivalently, the test statistic is 5.0 ÷ 2.12 = 2.36, beyond 1.96. The waits differ at the 0.05 level.

Result: The clinics' intervals overlap, yet the difference of 5.0 days (95% CI 0.8 to 9.2) is statistically significant. Judge a difference by its own interval or test.

Try it

Two risk ratios

Study 1, with 60 patients, reports an RR of 2.4 (95% CI 1.1 to 5.2). Study 2, with 50,000 patients, reports an RR of 1.3 (95% CI 1.2 to 1.4). Is each association statistically significant at 0.05? Which estimate is more precise? What can neither interval tell you?

Hint: Look for 1.0 in each interval, then compare widths.

02 / Questions

Answer 9 questions

Check 1 of 9recall · easy

According to the National Institute of Standards and Technology (NIST) handbook, what does a 95% confidence level mean for a confidence interval (CI)?

Check 2 of 9scenario · medium

A sample of 144 discharges has a mean length of stay of 5.2 days and a standard deviation (SD) of 6.0 days. Using the multiplier 1.96, what is the 95% confidence interval (CI) for the mean? Round the limits to one decimal place.

Check 3 of 9scenario · medium

A cohort analysis reports a risk ratio (RR) of 1.8 for readmission among patients without a follow-up call, with a 95% confidence interval (CI) of 0.9 to 3.6. What does the interval show at the 0.05 level?

Check 4 of 9scenario · medium

A large study of an exposure that worried the public reports a risk ratio (RR) of 1.0, a 95% confidence interval (CI) of 0.9 to 1.1, and p = 0.9. What is the best interpretation?

Check 5 of 9scenario · easy

Two studies use the same design and find the same risk ratio for an exposure. Study A has 200 subjects and study B has 2,000. What would you usually expect of their 95% confidence intervals (CIs)?

Check 6 of 9scenario · hard

Two independent large samples give mean scores of 48.0 (standard error 2.0) and 54.0 (standard error 2.0). Their separate 95% confidence intervals (CIs) are 44.1 to 51.9 and 50.1 to 57.9, which overlap. Using the multiplier 1.96, what is the 95% CI for the difference in means, and what does it show? Round to one decimal place.

Check 7 of 9scenario · hard

An analyst estimates patient satisfaction from 3,000 responses collected only from patients who chose to answer a portal survey. The 95% confidence interval (CI) is narrow. What does the narrow interval NOT tell the analyst?

Check 8 of 9recall · medium

According to the National Institute of Standards and Technology (NIST) handbook, how does a confidence interval change when the population standard deviation is unknown and must be estimated from limited data?

Check 9 of 9scenario · medium

A hospital's target is a mean door-to-needle time of 30 minutes. From a random sample, the two-sided 95% confidence interval (CI) for the mean is 31.2 to 36.8 minutes. What does a two-sided test of the null hypothesis that the mean is 30 minutes conclude at alpha = 0.05?

03 / Recall

Answer without looking back

A report gives a mean of 8.0 days with SE 0.5, and an RR of 1.4 with 95% CI 0.95 to 2.1. Compute the 95% CI for the mean, say whether the RR is significant at 0.05, and say why two overlapping intervals do not settle whether two groups differ.

Primary reading

Read the relevant section

NIST/SEMATECH e-Handbook of Statistical Methods, Chapter 7: Product and Process Comparisons (PDF) · 7.1.4. What are confidence intervals? ↗
Sources used in this lesson
  1. NIST/SEMATECH e-Handbook of Statistical Methods, Chapter 7: Product and Process Comparisons (PDF), 7.1.4. What are confidence intervals?, confidence levels ↗National Institute of Standards and Technology / SEMATECH
  2. NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.5.3 Two-Sample t-Test for Equal Means (HTML), 1.3.5.3. Two-Sample t-Test for Equal Means, test statistic ↗National Institute of Standards and Technology / SEMATECH
  3. Principles of Epidemiology in Public Health Practice, Third Edition: An Introduction to Applied Epidemiology and Biostatistics (SS1978), Lesson 2, Confidence limits (confidence interval) ↗Centers for Disease Control and Prevention
  4. The CDC Field Epidemiology Manual, Chapter 8: Analyzing and Interpreting Data, Interpreting the Confidence Interval, width of the confidence interval ↗Centers for Disease Control and Prevention
  5. Standards and Guidelines for Statistical Surveys, Guideline 5.2.2 ↗Office of Management and Budget
  6. National Center for Health Statistics Data Presentation Standards for Rates and Counts (Vital and Health Statistics, Series 2, No. 200), C. Confidence interval ↗National Center for Health Statistics, Centers for Disease Control and Prevention
Glossary terms used in this lesson
bias
A systematic deviation of results or inferences from the truth, or a process leading to it, such as any systematic tendency in collecting, analyzing or interpreting data. In epidemiology, it does not imply intentional deviation.
null hypothesis
The assumption with which statistical testing begins: among the source population, the exposure is unrelated to the disease.
statistically significant
Describes an association whose p value is smaller than a predetermined cutoff, called alpha (usually 0.05), so that the null hypothesis is rejected in favor of the alternative hypothesis.
point estimate
A single value, such as a risk ratio or an odds ratio, that best quantifies the association between an exposure and a health outcome.
confidence interval
An interval estimate, or range of values, that acknowledges the uncertainty of a point estimate based on a sample. A 95% CI is the interval that, given repeated sampling of the source population, would include the true value 95% of the time.
standard error
For a mean, the variability expected in the arithmetic means of repeated samples taken from the same population: the standard deviation divided by the square root of the number of observations.
standard deviation
The most common measure of variation, or spread: a number that measures how far data values are from their mean.
risk ratio
Also called relative risk: the risk (incidence proportion, attack rate) in one group ÷ the risk in another group, such as exposed and unexposed.