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

01_causal_fundamentals.ipynb

Potential outcomes, counterfactuals, ATE

02_causal_graphs_dags.ipynb

DAGs, d-separation, backdoor criterion

03_experimental_design.ipynb

Randomized experiments, A/B testing

04_observational_methods.ipynb

Propensity scores, matching, IV

05_advanced_topics_applications.ipynb

Heterogeneous treatment effects, causal ML

06_quasi_experimental_designs.ipynb

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