CAUSAL DATA SCIENCE

DAGs and Control Variables

How to select control variables for causal inference using Directed Acyclic Graphs

Matteo Courthoud
Towards Data Science
7 min readApr 25, 2022

--

All images by Author, generated with mermaid-js

When analyzing causal relationships, it is very hard to understand which variables to condition the analysis on, i.e. how to “split” the data so that we are comparing apples to apples. For example, if you want to understand…

--

--