PUBH-210 · Lesson 10 of 12 · 23 min
Bias, confounding and chance
▶ Video coming soon A video version of this lesson is on the way.
A local newspaper in the fictional Kestrel Valley region ran a story under the headline “Lighter carriers face five times the lung cancer risk.” A reporter had obtained data from a community health study and noticed that adults who carried a cigarette lighter were far more likely to be diagnosed with lung cancer than those who did not. Dr. Hana Lindqvist was asked to comment on the radio. She explained that the association was real in the data but almost certainly not causal: people who carry lighters are mostly smokers, and smoking causes lung cancer. When she split the data into smokers and non-smokers, the association with lighters disappeared completely. The lighter was a marker, not a cause.
Every observed association between an exposure and an outcome has four possible explanations. It may reflect a real causal effect. Or it may be produced by chance, by bias or by confounding. Before concluding that an association is causal, epidemiologists work through the three alternatives. This lesson explains each, how to recognize it and how studies reduce it. It is the most important lesson in the course for anyone who reads health research.
Random error and systematic error
Errors in epidemiological studies come in two kinds. Random error is variability due to chance: the luck of who happened to be sampled, or the natural variability of measurements. It makes estimates imprecise but does not push them consistently in one direction, and it shrinks as studies get larger. Systematic error, or bias, is error that pushes estimates consistently away from the truth in a particular direction. It does not shrink as studies get larger: a biased study of a million people gives a precisely wrong answer.
An archery analogy helps. Random error is arrows scattered widely around the bullseye; the average position is right, but any single arrow may be far off. Systematic error is arrows clustered tightly, but in the wrong place. A good study aims for both precision (little random error) and validity (little systematic error).
Chance
Every study observes a sample, and samples vary. If a fair coin is tossed ten times, it will often land heads six or seven times. In the same way, a study of 200 people might find a relative risk of 1.8 even if the true relative risk is 1.0. Statistical methods quantify how much the play of chance could explain an observed result.
The p-value is the probability of observing an association at least as strong as the one found, if there were truly no association (the null hypothesis) and the study were repeated many times. A p-value of 0.03 means that if the exposure had no effect, a result this extreme would arise by chance about 3 times in 100. By convention, p-values below 0.05 are called statistically significant. This threshold is arbitrary, and the p-value is widely misunderstood: it is not the probability that the null hypothesis is true, and it says nothing about the size or importance of an effect.
The confidence interval (CI) is more informative. A 95 percent confidence interval gives a range of values for the true effect that are compatible with the data. If a study reports a relative risk of 1.8 with a 95 percent CI of 1.2 to 2.7, the data are consistent with a true RR anywhere from a modest 1.2 to a substantial 2.7. If the interval includes 1.0, the null value for ratios, the result is not statistically significant at the 0.05 level. The width of the interval shows precision: narrow intervals come from large studies, wide ones from small studies.
Figure 1 shows how to read intervals. Study C has a large estimate (2.5) but a very wide interval that crosses 1; it is too small to say much, and calling it “no association” would be wrong, because it is also compatible with a large effect. Study D has a tiny estimate and a narrow interval around 1; it is good evidence that any effect is small. Study B is statistically significant with a modest effect. Study E suggests a protective association, with an upper limit just below 1.
Three further points about chance matter in practice. First, statistical significance is not importance: a very large study can find a statistically significant relative risk of 1.03 that has little public health meaning. Second, small studies have low statistical power, meaning a low probability of detecting a real effect, so a non-significant result from a small study is weak evidence of no effect. Third, multiple comparisons inflate false positives: if a study tests 20 foods at the 0.05 level, about one will appear significant by chance alone even if none has any effect. Outbreak investigators keep this in mind when screening long menus, and look for a food that is both strongly associated and consistent with the epidemic curve and laboratory findings.
Bias
Bias is any systematic error in the design, conduct or analysis of a study that leads to a mistaken estimate of an exposure’s effect. Dozens of named biases exist, but they fall into two main families: selection bias and information bias.
Selection bias
Selection bias arises when the people included in a study, or remaining in it, differ from the target population in a way related to both exposure and outcome. Common forms include:
- Non-response bias: people who agree to take part differ from those who refuse. Volunteers for health studies tend to be healthier, better educated and less likely to smoke.
- Loss to follow-up: in a cohort, if people who leave are different in both exposure and outcome, the remaining sample gives a distorted estimate, as lesson 7 described.
- Poor choice of controls: in a case-control study, controls who do not represent the source population, such as hospital patients whose illnesses are linked to the exposure, as in the coffee and pancreatic cancer example of lesson 8.
- The healthy worker effect: comparing workers with the general population, as lesson 7 described.
- Berkson’s bias: in hospital-based studies, people with two conditions are more likely to be admitted than people with one, which can create associations between diseases that do not exist in the population.
Selection bias is very hard to fix once data are collected. It is prevented by careful design: defining the source population, achieving high participation and follow-up, and choosing controls that represent the source of the cases.
Information bias and misclassification
Information bias arises from errors in measuring exposure, outcome or other variables, so that people are put in the wrong category. This is called misclassification. Its effect depends on whether the errors differ between groups.
Non-differential misclassification occurs when the errors are similar in all groups being compared: for example, when a diet questionnaire is equally inaccurate for people who later do and do not develop cancer. For a yes-or-no exposure, non-differential misclassification usually biases the result toward the null, making associations look weaker than they are. Differential misclassification occurs when the errors differ between groups, as with recall bias in a case-control study, where cases remember exposures more completely than controls. Differential misclassification can bias the result in either direction, creating false associations or hiding real ones. Interviewer bias and observer bias, in which knowledge of a person’s exposure or outcome influences how data are recorded, are other sources of differential misclassification.
Measuring measurement: sensitivity and specificity
The accuracy of any test, questionnaire or case definition that classifies people as having or not having a condition is described by two properties. Sensitivity is the proportion of people who truly have the condition who test positive. Specificity is the proportion of people who truly do not have the condition who test negative. From the point of view of someone receiving a result, two other measures matter: the positive predictive value (PPV), the proportion of people with a positive test who truly have the condition, and the negative predictive value (NPV), the proportion with a negative test who truly do not. Predictive values depend heavily on how common the condition is.
Worked problem
Sensitivity, specificity and predictive value
A screening test has a sensitivity of 90 percent and a specificity of 95 percent. It is used on 10,000 people in whom the prevalence of the condition is 2 percent. Calculate the PPV and NPV.
Show solution
- People with the condition: 2 percent of 10,000 = 200. People without: 9,800.
- True positives: 90 percent of 200 = 180. False negatives: 20.
- True negatives: 95 percent of 9,800 = 9,310. False positives: 9,800 − 9,310 = 490.
- Total positives: 180 + 490 = 670. PPV = 180 ÷ 670 = 0.27.
- Total negatives: 20 + 9,310 = 9,330. NPV = 9,310 ÷ 9,330 = 0.998.
Answer: Only about 27 percent of people who test positive actually have the condition, because the condition is rare and false positives from the large healthy group outnumber the true positives. A negative result is very reassuring (NPV 99.8 percent). In a population with a prevalence of 20 percent, the same test would have a PPV of about 82 percent.
| Condition present | Condition absent | Total | |
|---|---|---|---|
| Test positive | 180 (true positives) | 490 (false positives) | 670 |
| Test negative | 20 (false negatives) | 9,310 (true negatives) | 9,330 |
| Total | 200 | 9,800 | 10,000 |
In epidemiological studies, imperfect sensitivity and specificity of a case definition or exposure measure produce misclassification. A case definition with low specificity includes non-cases among the cases, diluting associations. Validation studies, which compare a measure against a gold standard in a subsample, allow investigators to estimate and sometimes correct for misclassification. The course on epidemiologic methods covers screening and diagnostic test accuracy in more depth.
Confounding
Confounding is a mixing of the effect of the exposure with the effect of a third factor. A confounder is a variable that meets three conditions: it is associated with the exposure in the source population; it is a cause of the outcome, or a marker of a cause, independently of the exposure; and it is not a step on the causal path from exposure to outcome. Smoking meets all three conditions in the lighter example: it is associated with carrying a lighter, it causes lung cancer, and it is not a result of carrying a lighter.
Worked problem
Uncovering confounding by stratification
In a fictional cohort of 3,000 adults followed for 20 years, 900 carried lighters and 2,100 did not. Lung cancer developed in 81 lighter carriers and 39 non-carriers. Among the 1,000 smokers, 800 carried lighters (80 cases) and 200 did not (20 cases). Among the 2,000 non-smokers, 100 carried lighters (1 case) and 1,900 did not (19 cases). Calculate the crude relative risk and the relative risk within each smoking stratum.
Show solution
- Crude risks: carriers 81 ÷ 900 = 0.090; non-carriers 39 ÷ 2,100 = 0.019. Crude RR = 0.090 ÷ 0.0186 = 4.8.
- Smokers: carriers 80 ÷ 800 = 0.10; non-carriers 20 ÷ 200 = 0.10. RR = 1.0.
- Non-smokers: carriers 1 ÷ 100 = 0.01; non-carriers 19 ÷ 1,900 = 0.01. RR = 1.0.
- The crude RR (4.8) differs greatly from the stratum-specific RRs (both 1.0), which are similar to each other: the signature of confounding.
Answer: Within each smoking group, carrying a lighter has no association with lung cancer. The crude relative risk of 4.8 was produced entirely by confounding by smoking, because 89 percent of lighter carriers smoked compared with 10 percent of non-carriers.
Confounding can exaggerate an association, as with lighters; it can hide a real one; and it can even reverse its direction, as age did in the Northport and Sandvale comparison in lesson 4. Age, sex, smoking and socioeconomic position are confounders in a great many studies, because they are linked to many exposures and to most diseases.
Controlling confounding
Confounding can be controlled in the design of a study or in its analysis. In the design, randomization is the most powerful method: by assigning exposure by chance, it balances both measured and unmeasured confounders between groups on average. Restriction limits the study to one level of a confounder, such as non-smokers only, which removes confounding by that factor but limits who the results apply to. Matching, as lesson 8 described, makes groups similar on chosen confounders.
In the analysis, stratification examines the association within levels of the confounder, as in the lighter example, and can combine stratum-specific estimates into a single adjusted estimate (the Mantel-Haenszel method is a classic approach). Standardization, as in lesson 4, adjusts rates for differences in age or other factors. Multivariable regression models, such as logistic regression for odds ratios and Cox regression for rate ratios, adjust for many confounders simultaneously.
None of the analytic methods can adjust for confounders that were not measured, or were measured poorly. The confounding that remains after adjustment is called residual confounding. It is the main reason why observational studies sometimes give answers that randomized trials later contradict, as happened with hormone replacement therapy and heart disease: observational studies suggested protection, partly because women who chose hormone therapy were healthier and wealthier, while the Women’s Health Initiative trial, reported in 2002, found no protection and some harm.
Confounding is not effect modification
A third variable can also change the size of an effect, so that the exposure has a different effect in different groups. This is effect modification, or interaction. If smoking multiplies the lung cancer risk of asbestos exposure, smoking is an effect modifier of the asbestos effect. Confounding is a distortion to be removed; effect modification is a real feature of the world to be described and reported. The signs differ: with confounding, stratum-specific estimates are similar to each other but differ from the crude estimate; with effect modification, the stratum-specific estimates differ from each other.
Common mistakes
MistakeA larger study reduces bias.
InsteadLarger studies reduce random error; bias persists regardless of sample size.
MistakeA p-value above 0.05 proves there is no association.
InsteadA non-significant result, especially from a small study, may simply lack power; look at the confidence interval.
MistakeNon-differential misclassification can only exaggerate associations.
InsteadFor a yes-or-no exposure, it usually biases toward the null, weakening associations.
MistakeAdjusting for confounders in a regression removes all confounding.
InsteadOnly measured confounders can be adjusted, and measurement error leaves residual confounding.
MistakeConfounding and effect modification are the same thing.
InsteadConfounding distorts and should be removed; effect modification is a real difference in effect between groups and should be reported.
Summary and key terms
- An observed association may be causal or may result from chance, bias or confounding.
- Random error causes imprecision and shrinks with sample size; systematic error (bias) does not.
- Confidence intervals show the range of effects compatible with the data; statistical significance is not the same as importance.
- Selection bias comes from who enters or stays in a study; information bias comes from misclassification, which may be non-differential or differential.
- Sensitivity and specificity describe the accuracy of a measure; predictive values depend on prevalence.
- A confounder is associated with the exposure, causes the outcome and is not on the causal path; it is controlled by randomization, restriction, matching, stratification, standardization or regression.
- Random error
- Variation in estimates due to chance; reduced by larger samples.
- Bias
- Systematic error that leads to an incorrect estimate of effect.
- Confidence interval
- A range of values for the true effect that are compatible with the data.
- Selection bias
- Bias arising from how participants are selected or retained.
- Misclassification
- Placing people in the wrong exposure or outcome category.
- Sensitivity
- The proportion of people with a condition who test positive.
- Specificity
- The proportion of people without a condition who test negative.
- Confounder
- A factor associated with the exposure that independently causes the outcome and is not on the causal path.
Practice problems
Work each problem on paper first, then reveal the answer to check.
A study reports a relative risk of 1.6 with a 95 percent CI of 0.8 to 3.2. Interpret it.
Show answer
The estimate suggests a 60 percent higher risk, but the interval includes 1, so the result is not statistically significant; the data are compatible with anything from a 20 percent lower risk to a tripled risk. The study is too imprecise to conclude.
A test has sensitivity 80 percent and specificity 90 percent. Among 1,000 people with prevalence 10 percent, how many false positives are there and what is the PPV?
Show answer
100 with the condition: 80 true positives. 900 without: 810 true negatives, 90 false positives. PPV = 80 ÷ 170 = 0.47.
A study finds that coffee drinkers have more heart attacks. Name a likely confounder and explain why it fits.
Show answer
Smoking: in many populations coffee drinkers smoke more, smoking causes heart attacks, and smoking is not caused by coffee.
Crude OR = 2.0; OR among men = 1.1; OR among women = 1.0. Confounding or effect modification?
Show answer
Confounding: the stratum-specific estimates are similar to each other but differ from the crude estimate.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.