What is a confounding or lurking variable, and how can it fool you when interpreting a relationship found in EDA?

Quick Overview

Asks what a confounding or lurking variable is and how it can mislead the reading of a relationship found during exploratory data analysis. It tests causal reasoning, Simpson's paradox, stratification checks and the limits of adjusting for measured variables.

What is a confounding or lurking variable, and how can it fool you when interpreting a relationship found in EDA?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

What is a confounding or lurking variable, and how might it fool you when you interpret a relationship you found while exploring? ```hint Start from a famous correlation Think of a correlation nobody believes is causal and name what drives both sides. Then ask what the pattern looks like inside groups defined by that driver. ``` ### What a Strong Answer Covers - A definition of a confounder in terms of how it relates to the explanatory variable and the outcome. - A concrete example. - The different ways a confounder can distort an observed relationship, with an illustration of each. - How to check for it during exploration, and what those checks cannot rule out. ### Follow-up Questions - How does a confounder differ from a mediator or a collider, and why does controlling for each one have a different effect? - After stratifying by every suspect you can think of, the relationship is still there. What confounding could remain? - When would you move from exploratory checks to an experiment or a causal inference method, and which method would you pick? - How would you build a small numeric example where a relationship reverses after splitting by a third variable?

Overview: Asks what a confounding or lurking variable is and how it can mislead the reading of a relationship found during exploratory data analysis. It tests causal reasoning, Simpson's paradox, stratification checks and the limits of adjusting for measured variables.

Nov 24, 2026
easyData ScientistOtherStatistics & Math
0
0

What is a confounding or lurking variable, and how might it fool you when you interpret a relationship you found while exploring?

What a Strong Answer Covers Guidance

  • A definition of a confounder in terms of how it relates to the explanatory variable and the outcome.
  • A concrete example.
  • The different ways a confounder can distort an observed relationship, with an illustration of each.
  • How to check for it during exploration, and what those checks cannot rule out.

Follow-up Questions Guidance

  • How does a confounder differ from a mediator or a collider, and why does controlling for each one have a different effect?
  • After stratifying by every suspect you can think of, the relationship is still there. What confounding could remain?
  • When would you move from exploratory checks to an experiment or a causal inference method, and which method would you pick?
  • How would you build a small numeric example where a relationship reverses after splitting by a third variable?