causal-inference
Installation
SKILL.md
Causal Inference with DoWhy and CausalML
Causal inference goes beyond statistical association to estimate the effect of interventions. This skill covers the complete causal inference workflow: DAG construction, identification via backdoor/frontdoor criteria, estimation with multiple methods, refutation testing, propensity score matching, and uplift modeling.
1. Core Concepts
The potential outcomes framework defines causal effects:
- ATE: Average Treatment Effect = E[Y(1) - Y(0)]
- ATT: Average Treatment Effect on the Treated
- CATE: Conditional ATE (heterogeneous treatment effects)
- Backdoor criterion: A set Z satisfies it if Z blocks all backdoor paths from T to Y
- Frontdoor criterion: Applicable when all paths go through mediator M
- Confounding: Variables that affect both treatment and outcome