Mastering Causal Metrics

Welcome to Mastering Causal Metrics!

An AI-powered study guide to Mastering Causal Metrics. Learn the foundations of causal inference with interactive Python notebooks and AI tools, based on the foundational textbook Mastering ‘Metrics: The Path from Cause to Effect by Angrist & Pischke.

This platform features:

  • Foundational Methods — Based on Mastering ‘Metrics by Angrist & Pischke. Learn causal inference from randomized trials to differences-in-differences.
  • Python Notebooks — Zero-installation Google Colab notebooks. Real datasets, working code, and complete implementations of every method.
  • AI-Powered Learning — Multiple AI tutors with distinct pedagogical styles.

Interactive Google Colab Notebooks

Click any badge below to open and run immediately in your browser:

Part I: The Framework

ChapterTitleTopicsColab Notebook
1Randomized TrialsSelection Bias, Potential Outcomes, RAND HIEOpen In Colab

Part II: The Five Tools

ChapterTitleTopicsColab Notebook
2RegressionOLS, Omitted Variable Bias, Bad ControlsOpen In Colab
3Instrumental VariablesLATE, Compliers, Minneapolis DV ExperimentOpen In Colab
4Regression DiscontinuitySharp RD, Bandwidth, MLDA and MortalityOpen In Colab
5Differences-in-DifferencesParallel Trends, Two-Way FE, Great Depression BankingOpen In Colab

Part III: Synthesis

ChapterTitleTopicsColab Notebook
6The Wages of SchoolingTwins, Quarter of Birth, Sheepskin EffectsOpen In Colab

How to Use the Notebooks

  1. Click any “Open in Colab” badge above
  2. Sign in with your Google account (free)
  3. Click “Run All” in the Runtime menu (or run cells individually)
  4. Explore and modify — change parameters, try different models, experiment with the data
  5. Save your work — File > Save a copy in Drive to keep your modifications

No installation, no downloads, no setup required!

Authors and Credits

Carlos Mendez — Python implementation and educational notebook development

Joshua D. Angrist & Jörn-Steffen Pischke — Original textbook, Mastering ‘Metrics

Carlos Mendez
Carlos Mendez
Associate Professor of Development Economics

My research interests focus on the integration of development economics, spatial data science, and econometrics to better understand and inform the process of sustainable development across regions.