# Confounding Variable

A confounding variable is a pre-treatment factor associated with both an intervention or exposure and its outcome, creating a misleading association when it is not addressed.

- Type: term
- Domain: Data, experimentation & growth
- Level: Intermediate
- Last reviewed: 2026-10-05
- Original: [Soroush’s Product Wiki](<https://wiki.soroush.uk/topic/confounding-variable/>)

## What it means

A confounder is a common cause, or proxy for one, that influences both the exposure being compared and the outcome. For example, account maturity may affect both feature adoption and renewal, making adopters look more successful even if adoption itself has no causal effect.

## Why it matters

Confounding is a central reason observational product analytics cannot be read as impact. Naming likely confounders makes causal assumptions inspectable and prevents teams from targeting an association that will not change outcomes.

## When to use it

Assess confounding before interpreting nonrandomized comparisons, including cohorts, feature-adopter analyses, and campaigns. Use randomization where feasible; for observational work, involve appropriate expertise and define variables from a causal model rather than adjusting every available field.

## How it works

1. Specify the intervention, outcome, comparison, and time ordering.
2. Use domain knowledge to identify plausible common causes before treatment.
3. Draw or state the assumed causal relationships.
4. Choose a design or adjustment strategy justified by those assumptions.
5. Check overlap, measurement quality, sensitivity, and remaining uncertainty.

## A practical example

A team observes that users who attend onboarding webinars convert more. Because motivated customers are more likely to attend and buy, it randomizes invitations to estimate the effect of encouragement instead of attributing the raw difference to the webinar.

## Where it breaks

Unmeasured confounding can remain after adjustment, and controlling for variables caused by treatment can introduce bias. A statistical model cannot determine causal roles without substantive knowledge and a defensible design.

## Common mistakes

- Adjusting for every available variable without a causal rationale.
- Controlling for a mediator or post-treatment outcome.
- Assuming a correlated demographic field fully removes an underlying confounder.

## Visualization

[View the visualization on the website](<https://wiki.soroush.uk/topic/confounding-variable/#visualization-confounding-variable>)

## Sources

1. [Causal Inference: What If](<https://www.hsph.harvard.edu/miguel-hernan/wp-content/uploads/sites/1268/2024/01/hernanrobins_WhatIf_2jan24.pdf>) — Harvard T.H. Chan School of Public Health · Foundational textbook
2. [Causal Models](<https://plato.stanford.edu/entries/causal-models/>) — Stanford Encyclopedia of Philosophy · Scholarly reference

## Related topics

- [Causal Inference](<https://wiki.soroush.uk/topic/causal-inference/>)
- [Correlation and Causation](<https://wiki.soroush.uk/topic/correlation-and-causation/>)
- [Randomization](<https://wiki.soroush.uk/topic/randomization/>)
