med study partner

Articles & Guides › Articles › Biostatistics & Public Health

Confounding, effect modification and causation

What makes a variable a confounder and how randomization, matching, restriction, stratification and regression control it, how stratified results separate confounding from effect modification, and how the Bradford Hill criteria and attention to reverse causation help judge whether an association is causal.

Biostatistics & Public Health · 6 min read · Reviewed 2026-11-17

When an observational study finds that an exposure goes with a disease, there are four possible explanations: chance, bias, confounding or a real causal effect. This article focuses on confounding, a third factor that distorts the association; how it is prevented and controlled; how it differs from effect modification, a real difference in effect between groups; and how epidemiologists decide whether an association is causal.

Key points

  • A confounder is linked to the exposure, is an independent risk factor for the outcome and isn't on the causal pathway between them.
  • Matching, restriction, stratification, regression and propensity scores control only measured confounders; randomization alone balances unmeasured ones too.
  • If stratum-specific results agree with each other but differ from the crude result, there is confounding; if they differ from each other, there is effect modification, which should be reported, not removed.
  • Temporality, the exposure coming before the outcome, is the only essential Bradford Hill criterion; strength, dose-response and consistency strengthen the case.
  • Reverse causation, where the outcome causes the exposure, is a failure of temporality and a particular risk in cross-sectional studies.

Confounding and how to control it

What a confounder is

A confounder is a third variable that[1]:

  1. is associated with the exposure,
  2. is an independent risk factor for the outcome, and
  3. is not on the causal pathway between them.

Confounding mixes the confounder's effect with the exposure's, making an association look stronger, weaker or even reversed. People with nicotine-stained fingers have more lung cancer, but the stains don't cause it: smoking stains the fingers and causes the cancer. Restricting the analysis to nonsmokers would make the association vanish.

Confounding by indication is common in observational studies of treatments. Sicker patients are more likely to receive a treatment, so the treatment can appear to cause the bad outcomes that the underlying illness actually produced.

Controlling it

StageMethodHow it worksLimitation
DesignRandomizationBalances known and unknown confounders between groupsPossible only in trials
DesignMatchingEach case is paired with a control who shares the confounder, such as age and sexMatched variables can't then be studied; only known confounders
DesignRestrictionOnly one level of the confounder is enrolled, such as only nonsmokersLimits generalizability
AnalysisStratificationAnalyze within each level of the confounder, then combineOnly measured confounders
AnalysisMultivariable regressionAdjusts for several confounders at onceOnly measured confounders; residual confounding remains
AnalysisPropensity scoresMatch or weight patients by their likelihood of receiving the exposureOnly measured confounders

Randomization is the only method that controls unmeasured confounders[2]. That is why randomized trials sometimes overturn observational findings. Observational studies once suggested that postmenopausal hormone therapy protected women against heart disease; randomized trials didn't confirm it, because the women who chose hormone therapy were healthier in many ways the studies hadn't measured.

Confounding is different from bias. A confounder is a real third factor and can be adjusted for; bias is an error in how the study selected or measured people, and no amount of adjustment fixes it.

Effect modification

What it is

Effect modification, or interaction, occurs when the effect of an exposure genuinely differs according to the level of a third variable. It isn't an error to remove; it is a finding to report[3].

Telling it apart from confounding

Stratification answers the question: compare the crude (overall) result with the result in each stratum.

PatternInterpretation
Stratum-specific results are similar to each other but different from the crude resultConfounding: report the adjusted result
Stratum-specific results are different from each otherEffect modification: report each stratum separately
Stratum-specific results match each other and the crude resultNeither

Suppose a drug's relative risk of a complication is 0.6 in women and 0.6 in men, but 0.9 in the combined data. The strata agree with each other but not with the crude figure, so sex is a confounder, and the adjusted relative risk of about 0.6 is the answer. If instead the relative risk were 0.4 in people over 65 and 1.0 in younger people, age would be an effect modifier: the drug helps older people and not younger ones, and averaging the two would hide that.

Examples

  • Asbestos and smoking each raise the risk of lung cancer, but together the risk is far greater than either alone would predict.
  • A drug that works in people with one gene variant but not another.
  • Combined oral contraceptives raise the risk of thrombosis much more in women with factor V Leiden.

Judging causation: the Bradford Hill criteria

No single observational study proves causation. In 1965 Austin Bradford Hill listed features that make a causal interpretation more convincing[4].

CriterionQuestionExample from smoking and lung cancer
TemporalityDid the exposure come before the outcome?Smoking began years before the cancer. The only essential criterion
StrengthIs the association large?Heavy smokers have a relative risk of around 20
Biological gradientDoes more exposure bring more disease?Risk rises with pack-years
ConsistencyIs it found repeatedly, in different populations and designs?Seen in many countries and study types
PlausibilityIs there a biological mechanism?Tobacco carcinogens damage DNA
CoherenceDoes it fit what is known about the disease?Lung cancer rates rose after cigarette use spread
ExperimentDoes removing the exposure reduce disease?Quitting lowers the risk
SpecificityDoes one exposure lead to one disease?The weakest criterion: smoking causes many diseases
AnalogyDo similar exposures cause similar effects?Other carcinogens cause cancer

Hill himself stressed that these are viewpoints to aid judgment, not a checklist, and that none of them settles the question alone[4]. Later epidemiologists added that temporality is the one feature a causal relationship can't lack[3].

Reverse causation

Reverse causation is a failure of temporality: the "outcome" actually causes the "exposure." People with early, undiagnosed illness often lose weight, so thinness can look like a risk factor for death. Similarly, people who have stopped drinking alcohol because they became ill can make lifelong abstainers look less healthy than light drinkers, which is a statement about illness causing abstinence, not proof that alcohol protects. Cross-sectional studies are especially prone to reverse causation because exposure and outcome are measured at the same time[1].

Common confusions

  • Confounding versus bias: a real third factor that adjustment can handle versus an error in selection or measurement that adjustment can't fix.
  • Confounder versus effect modifier: strata that agree with each other mean confounding; strata that differ mean effect modification.
  • Consistency versus coherence: the same finding across many studies versus a finding that fits existing knowledge of the disease.
  • A variable on the causal pathway isn't a confounder: adjusting for it removes part of the real effect.

References

  1. Grimes DA, Schulz KF. Bias and causal associations in observational research. Lancet. 2002;359(9302):248-252. doi:10.1016/S0140-6736(02)07451-2 Link ↩
  2. Schulz KF, Grimes DA. Generation of allocation sequences in randomised trials: chance, not choice. Lancet. 2002;359(9305):515-519. doi:10.1016/S0140-6736(02)07683-3 Link ↩
  3. Rothman KJ. Epidemiology: An Introduction. 2nd ed. Oxford University Press; 2012. ↩
  4. Hill AB. The environment and disease: association or causation? Proc R Soc Med. 1965;58(5):295-300. doi:10.1177/003591576505800503 Link ↩

Test yourself in the Question Bank · Listen to the podcasts