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
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
Multiply by 1.96
For a mean total cholesterol of 206 with an SE of 3: 3 × 1.96 = 5.88.
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
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
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.
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.
Both intervals exclude 1.0, so both associations are significant at 0.05. Study 2's interval is far narrower, so its estimate is much more precise; study 1's data are consistent with an RR anywhere from 1.1 to 5.2. Neither interval shows whether the study was free of bias, and neither says whether the association is large enough to matter: that is a judgment about the subject.
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)?
NIST explains the 95% confidence level through repeated sampling: if the same population is sampled on numerous occasions and an interval is made each time, the intervals would bracket the true population parameter in about 95% of the cases. The tempting misreading is that 95% of the individual values lie inside; that describes the spread of the data, which the standard deviation measures, not the uncertainty of an estimate. The level says nothing about a 5% accuracy margin or about outliers.
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.
Formula: CI = mean ± 1.96 × standard error (SE), with SE = SD ÷ √n. SE = 6.0 ÷ √144 = 6.0 ÷ 12 = 0.5. 1.96 × 0.5 = 0.98. Lower limit = 5.2 - 0.98 = 4.22, or 4.2; upper limit = 5.2 + 0.98 = 6.18, or 6.2. The interval 4.7 to 5.7 adds and subtracts one SE instead of 1.96 SEs, which gives a 68.3% interval. The interval -6.6 to 17.0 multiplies the SD instead of the SE by 1.96. The interval 5.1 to 5.3 divides the SD by n (144) instead of by √n.
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?
The Centers for Disease Control and Prevention (CDC) Field Epidemiology Manual says the null hypothesis for an RR is 1.0, and a CI that includes 1.0 is compatible with the null hypothesis, which is equivalent to not rejecting it. This interval runs from 0.9 to 3.6, so it includes 1.0. Calling it significant because the point estimate exceeds 1.0 ignores the interval. Saying the risk nearly doubles treats the point estimate as settled when the data are consistent with values from 0.9 to 3.6. A wide interval signals imprecision, but its values inside and outside still carry information.
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?
The Centers for Disease Control and Prevention (CDC) Field Epidemiology Manual uses this example: rather than reading an RR of 1.0 with a CI of 0.9 to 1.1 and p = 0.9 as nonsignificant and uninformative, you can read it as informative: the narrow interval, compatible with no association and with only modest changes in risk, is evidence against large effects, which can reassure a worried public, though it does not prove exactly no effect. Calling the result uninformative or a failure is the misreading the manual warns against: the values the interval excludes, such as an RR of 1.5, are informative too. Reading the upper limit of 1.1 as proof of harm ignores that the interval is centered on 1.0 and includes 1.0.
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)?
The Centers for Disease Control and Prevention (CDC) Field Epidemiology Manual says that usually, the larger the number of subjects or observations in a study, the greater the precision and the narrower the CI, and that a narrow CI reflects higher precision. So study B, with ten times the subjects, would usually have the narrower interval. Expecting equal widths because the point estimates match is the tempting error: the width reflects precision, not the size of the estimate. A smaller study gives a less precise estimate, not a narrower interval, and more subjects narrow the interval rather than widen it.
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.
For independent means, the two-sample t statistic in the National Institute of Standards and Technology (NIST) handbook divides the difference by √(s1²/N1 + s2²/N2), and each term is a squared standard error, so SE of the difference = √(SE1² + SE2²). Steps: √(2.0² + 2.0²) = √8 = 2.83. 1.96 × 2.83 = 5.54. Difference = 54.0 - 48.0 = 6.0. CI = 6.0 ± 5.54 = 0.5 to 11.5. The interval excludes 0, so the corresponding two-sided test rejects equal population means at the 0.05 level. An interval containing 0 would only fail to reject equality; it would not show the means are equivalent. The interval -1.8 to 13.8 adds the two standard errors (2.0 + 2.0 = 4.0) instead of combining their squares. The interval 2.1 to 9.9 uses one standard error, 2.0, as if only one mean were uncertain. Concluding from the overlap skips the comparison test that the Office of Management and Budget (OMB) guideline asks for before stating whether two estimates differ.
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?
The Centers for Disease Control and Prevention (CDC) Field Epidemiology Manual says that a test and a CI both indicate the precision of an association and both depend on the size of the study, but neither addresses validity, the lack of bias. So the narrow interval says nothing about bias from who chose to respond. It does show precision, which is what a narrow CI reflects, and more observations, all else being equal, usually narrow the interval. The CDC epidemiology course also reads a CI as the range of values consistent with the data.
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?
NIST says that population standard deviations are usually unknown and must be estimated from the data, and that intervals at the same confidence level are by necessity wider when the standard deviation is estimated from limited data, because of the uncertainty in that estimate. Expecting the same width because the level is unchanged misses that extra uncertainty. NIST gives procedures for intervals in this case, so they can still be computed, and they are wider, not narrower.
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?
The National Institute of Standards and Technology (NIST) handbook says that for every test of a hypothesis there is an equivalent statement about whether the hypothesized value lies in a confidence interval, and the null hypothesis is rejected if and only if that value is not in the interval. A 95% interval corresponds to alpha = 0.05. The hypothesized mean, 30, is below 31.2, so the test rejects it. Width alone does not decide a test, and no separate p-value is needed because the interval already answers the question. Zero is the null value for a difference between two means, not for a single mean compared with a target of 30.
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.
Mean, using the large-sample normal approximation: 8.0 ± 1.96 × 0.5 = 8.0 ± 0.98, so 7.0 to 9.0 days. The RR's interval includes 1.0, so the association is not significant at 0.05: the data are compatible with no association. Overlap does not settle a comparison: for independent estimates the SE of a difference is √(SE1² + SE2²), smaller than SE1 + SE2, and dependent estimates also need their covariance. Test the difference or compute its own interval and check whether it excludes the null value.
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.
Website analytics
With your permission, Polyseminar measures page views and site performance with Cloudflare Web Analytics, and records which site or page brought you here, so we know where buyers come from. You can change this later in the footer. Privacy notice.