Causal Inference¶
Moving beyond correlation to cause โ the tools for asking 'what if?' and 'why?', not just 'what is likely?'.
Most computer predictions answer what is likely โ like noticing that people who carry umbrellas often get rained on. Causal inference is the science of answering a harder question: why, and what if we change something?
Analogy: imagine your bike and a friend's bike are always parked together, so seeing one usually means the other is nearby. That's a pattern, but moving your bike doesn't teleport your friend's. Two things happening together doesn't mean one causes the other.
Causal inference gives us careful tools to tell the difference โ to figure out whether pressing a button actually makes something happen, or whether it just happens to appear alongside it. This matters whenever we act on a prediction: a doctor choosing a treatment, or a school changing a rule. Getting cause and effect right is how we make good decisions, not just good guesses.
The main ideas¶
- Correlation vs causation โ Why predictive accuracy alone isn't enough for decisions and interventions.
- Causal graphs & do-calculus โ Representing assumptions as DAGs and reasoning about interventions.
- Counterfactuals โ Estimating what would have happened under a different action.
- Experiments & A/B testing โ Randomized trials โ the gold standard for causal claims.
- Observational methods โ Instrumental variables, matching, and difference-in-differences when you can't experiment.
- Uplift modeling โ Predicting the effect of an action per individual โ who to treat, not just who will convert.
Related areas¶
Machine Learning ยท Data & MLOps ยท Recommender Systems
Want to make things?
Head to AI School โ AI camps where kids build their own games.