Learn / Epidemiology / Bias, confounding and causation
Confounding, mediators, colliders and causal diagrams
14 minute read · 6-question quiz
What you will learn
Apply the three criteria for confounding and distinguish it from a mediator and a collider
Draw and read a simple directed acyclic graph (DAG)
Choose which variables to adjust for, and which to leave alone
Confounding distorts the apparent effect of an exposure on an outcome because a third variable is related to both. It is the commonest explanation for associations that are not causal. (The arithmetic of stratified analysis is in chapter 5 of the biostatistics course; here we focus on reasoning.)
A confounder (1) is associated with the exposure, (2) is a cause or predictor of the outcome in the unexposed, and (3) is not an effect of the exposure (not on the causal pathway).
Directed acyclic graphs (DAGs)
A DAG draws variables as nodes and causal effects as arrows. It makes assumptions explicit and tells you what to adjust for. There are three basic structures.
Why colliders matter in health research
Suppose two diseases are unrelated in the population, but either one can lead to hospital admission. Among hospital patients, having one disease makes the other less likely to be the reason for admission, so the two appear negatively associated. This is Berkson's bias, a collider effect. Likewise, studying only 'survivors' or only 'people who were tested' can open collider paths. The lesson: conditioning on a consequence of the exposure or the outcome can create bias.
A decision rule for adjustment
For each candidate variable ask:
- Does it cause (or share a common cause with) both the exposure and outcome? Adjust (confounder).
- Is it caused by the exposure and does it lead to the outcome? Do not adjust if you want the total effect (mediator); adjust only to study direct effects.
- Is it caused by both exposure and outcome (or their causes)? Do not adjust (collider).
- Does it only cause the outcome (not exposure)? Adjusting can improve precision, harmless.
- Does it only cause the exposure? Adjusting can hurt precision; usually leave out.
Summary
A confounder is related to exposure and outcome and is not on the causal pathway.
A mediator lies between exposure and outcome; a collider is caused by both.
DAGs make assumptions explicit and guide adjustment.
Adjust for confounders; do not adjust for mediators (for total effects) or colliders.
Randomisation controls unmeasured confounders; observational studies leave residual confounding.
Check your understanding
Draft study guide. Spotted an error or something unclear? Tell us at hello@scintria.com. This is educational material, not clinical or regulatory advice.