Skip to main content
Learn AI Create the Future — with Pranay
  • Learn
  • Paths
  • Projects
  • Practice
  • Glossary
  • Errors
  • LeetCode
  • Main site

Main site →
Select language

Translation is unavailable right now. Your browser’s own “Translate page” usually works.

Machine translation by Google

Topics

  • 🧱 Foundations 2 sections
  • 🤖 Machine Learning 11 sections
  • 📊 Statistics and Experiments 4 sections
    • Hypothesis Testing and Inference 11 lessons
    • Resampling, Likelihood and Bayes 8 lessons
    • Experiment Design and A/B Testing 10 lessons
    • Causal Inference Basics 13 lessons
      • Overview
      • Why a great model answers the wrong question
      • Potential outcomes and counterfactuals
      • Confounding
      • Causal DAGs and what to control for
      • Colliders and selection bias
      • Simpson's paradox
      • Propensity score matching
      • Inverse probability weighting
      • Difference-in-differences
      • Regression discontinuity
      • Instrumental variables
      • Uplift modelling
      • Double machine learning
  • 🧭 Doing the Work 9 sections
  • 🧠 Deep Learning 11 sections
  • 🧰 Libraries and Frameworks 4 sections
  • 💬 Language and NLP 15 sections
  • 👁️ Computer Vision 13 sections
  • 🎙️ Speech, Forecasting and Recommenders 3 sections
  • ✨ Generative AI and LLMs 4 sections
  • 🔬 Inside a Transformer 11 sections
  • ⚙️ Production and MLOps 16 sections
  • 🌍 AI in the Real World 12 sections
  • ⚖️ Safety, Ethics and Law 2 sections

See all topics

  1. Home
  2. Learn
  3. Causal Inference Basics

📊 Statistics and Experiments · Section 017

🔗 Causal Inference Basics

Working out what actually causes what, when you cannot run the experiment you wish you could.

Every lesson in this section is written by Pranay Mahendrakar.

13 of 13 lessons published · Three reading levels on every lesson

Start with “Why a great model answers the wrong question”

Lessons in order

Work top to bottom. Each lesson assumes the one above it.

  1. 01 Why a great model answers the wrong question
  2. 02 Potential outcomes and counterfactuals
  3. 03 Confounding
  4. 04 Causal DAGs and what to control for
  5. 05 Colliders and selection bias
  6. 06 Simpson's paradox
  7. 07 Propensity score matching
  8. 08 Inverse probability weighting
  9. 09 Difference-in-differences
  10. 10 Regression discontinuity
  11. 11 Instrumental variables
  12. 12 Uplift modelling
  13. 13 Double machine learning
Previous Experiment Design and A/B Testing Next Scoping an ML Project

Learn AI

Learn Artificial Intelligence the easy way.

Learn. Build. Ask. Share.

Free forever. No sign-up, no ads, no tracking.

Learn

  • All topics
  • Learning paths
  • Projects
  • Practice playground
  • AI glossary
  • Error database
  • LeetCode solutions

Start here

  • Python for AI
  • Mathematics for AI
  • Machine Learning
  • Classic Algorithms in Depth
  • Linear Models and Regularisation
  • Ensembles and Gradient Boosting

This site

  • Search
  • New lessons feed
  • Sitemap
  • About Pranay Mahendrakar
  • pranaymahendrakar.com

© 2026 Pranay Mahendrakar. Written for people who are starting from zero.

10 new lessons every day. If something here is wrong or confusing, that is worth fixing — say so.