Understand the idea
Ice cream sales and drowning deaths rise together. Ice cream does not cause drowning: hot weather causes both. Temperature is the confounder.
That is the shape to look for: something that drives BOTH the thing you are studying and the thing you are measuring, and that differs between your groups. It can create a correlation where there is no causal effect, or distort a real one, and collecting more data the same way does not remove it, because the problem is in how the groups came to differ, not in how many rows you collected.
Randomly assigning people to groups is the strong fix. Randomization makes the groups similar on average on everything, including things nobody thought to record, though in any one study, especially a small one, the groups can still differ a little by chance. A difference afterwards can then be credited to the treatment, as long as people stayed in their assigned groups, few dropped out, and the outcome was measured the same way in both.
When you cannot randomize, you can adjust for confounders you measured, by adding them to a model or matching similar units. That helps only for the ones you thought of and measured well. Something you never measured cannot be adjusted for, which is why observational results support 'associated with' rather than 'caused'.
In a regression, leaving out a confounder that affects the outcome and is related to a predictor in the model can distort that predictor's estimate; this is called omitted variable bias. A confounder that is hidden or was never measured is often called a lurking variable. Simpson's paradox is when a trend that appears within every group weakens, vanishes or reverses when the groups are combined; it often happens because a confounder differs between the groups, and deciding which view answers a cause-and-effect question needs knowledge of how the data arose. Confounding is at the heart of the causation vs correlation question: two things can rise and fall together without either one causing the other.
Practitioner explanation
In causal-graph terms a confounder is a common cause of exposure and outcome, opening a backdoor path that transmits non-causal association. Adjustment is licensed by a backdoor criterion, not by a variable being 'related to the outcome', which is why the reflex to control for every available covariate is wrong in a specific and damaging way.
Conditioning on a collider can induce spurious association. Conditioning on a mediator can change the estimand or introduce bias for a total-effect question; the direction is not necessarily toward zero. Some direct-effect questions require mediator adjustment under additional assumptions.
Unmeasured variables, measurement error and coarse categories can leave residual confounding. Randomization, matching and quasi-experimental designs each require assumptions; none automatically establishes causation. Review design and notebook causal-language flags in context.
When to use it
Consider it when
Consider confounding before interpreting any association from data you did not randomize, which is most data.
Use caution when
Adjustment is not automatically appropriate: do not condition on colliders (it can create a spurious association), and adjust for a mediator only when you want the direct effect rather than the total effect. Decide from the assumed causal structure, not from which covariates improve fit.
Alternatives
- Design of Experiments (2-Level Factorial). You control assignment. Randomization helps prevent systematic baseline confounding, though chance imbalance and other design threats remain.
- ANCOVA (Analysis of Covariance). You cannot randomize but you measured a continuous confounder, and you want group comparisons adjusted to a common covariate value.
- Linear Regression. Several measured confounders need simultaneous adjustment and their functional form is plausibly modeled.
Worked example
Scenario
Hospital records show patients treated with a new surgical technique have higher mortality than those treated conventionally.
Result
The unadjusted difference is significant and favors the conventional technique.
Interpretation
Severity is the likely confounder: surgeons may reserve the new technique for the sickest patients, so it drives both the choice of treatment and the outcome. The observed association may reverse after adjusting for severity. Without randomization or a credible adjustment strategy this result supports 'associated with', not 'causes'.
Common misconceptions
Misconception
Controlling for more variables always gives a less biased estimate.
Correction
Not always. Adjusting for a variable that is caused by both the exposure and the outcome (a collider) can create a false association, and adjusting for a step on the causal path (a mediator) removes part of the effect when you want the total effect. Which variables to adjust for follows from how you believe the variables cause one another, not from how much they improve model fit.
Misconception
A large sample reduces confounding.
Correction
It reduces random error only. If the groups differ because of a shared cause, collecting more data the same way keeps that distortion, so the estimate becomes more precise around the wrong value, not more correct.
Misconception
Statistically significant means the relationship is causal.
Correction
Significance concerns compatibility with a null of no ASSOCIATION. Causal interpretation rests on the design (randomization, or explicit and defensible assumptions about the causal structure), never on the p-value.
Read more: Misconception: the p-value is the probability the null hypothesis is true
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §5.1 Introduction to design of experiments (randomization, blocking), NIST/SEMATECH (2012), §5.1.
- STAT 500: Collecting and Summarizing Data, Penn State Eberly College of Science, 1.
