Phase 27: Causal Inference β Start HereΒΆ
Move beyond correlation β learn to estimate true cause-and-effect relationships from data using experiments, DAGs, and counterfactual reasoning.
Correlation vs. CausationΒΆ
Standard ML finds correlations: βusers who see this ad also buy product Xβ.
Causal inference asks: βDoes showing this ad cause users to buy product X?β
This distinction matters enormously for decisions, policy, and AI alignment.
Notebooks in This PhaseΒΆ
Notebook |
Topic |
|---|---|
|
Potential outcomes, counterfactuals, ATE |
|
DAGs, d-separation, backdoor criterion |
|
Randomized experiments, A/B testing |
|
Propensity scores, matching, IV |
|
Heterogeneous treatment effects, causal ML |
|
Diff-in-diff, regression discontinuity |
Key ConceptsΒΆ
Concept |
Description |
|---|---|
Potential outcomes |
Y(1), Y(0) β what would have happened |
ATE |
Average Treatment Effect |
DAG |
Directed Acyclic Graph β causal structure |
Confounders |
Variables affecting both treatment and outcome |
Propensity score |
P(treatment |
IV |
Instrumental Variables β for unmeasured confounders |
Diff-in-diff |
Before/after comparison with control group |
PrerequisitesΒΆ
Statistics and probability
Linear regression
Python/pandas/statsmodels
Learning PathΒΆ
01_causal_fundamentals.ipynb β Start here
02_causal_graphs_dags.ipynb
03_experimental_design.ipynb
04_observational_methods.ipynb
06_quasi_experimental_designs.ipynb
05_advanced_topics_applications.ipynb
Recommended ToolsΒΆ
dowhyβ Microsoftβs causal inference libraryeconmlβ Causal ML (HTE estimation)causalmlβ Uplift modelingpgmpyβ Probabilistic graphical models