Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit

* fix issue #294

* fix issue #280

* fix issue #269

* fix issue  #266

* fix issue #260

* fix issue #259

* fix issue #258

* fix issue #256

Git stats


Failed to load latest commit information.
Latest commit message
Commit time
March 5, 2021 08:16
October 29, 2020 19:31
July 16, 2020 16:14
August 29, 2022 09:20

Causal Inference for The Brave and True



A light-hearted yet rigorous approach to learning impact estimation and sensitivity analysis. Everything in Python and with as many memes as I could find.

Check out the book here!

If you want to read the book in Chinese, @xieliaing was very kind to make a translation:

If you want to read the book in Spanish, @donelianc was very kind to make a translation:
Inferencia Causal para los Valientes y Verdaderos

If you want to read it in Korean, @jsshin2019 has put up a team to make the that translation possible:
Python으로 하는 인과추론 : 개념부터 실습까지

Also, some really kind folks (@vietecon, @dinhtrang24 and @anhpham52) also translated this content into Vietnamese:
Nhân quả Python

I like to think of this entire series as a tribute to Joshua Angrist, Alberto Abadie and Christopher Walters for their amazing Econometrics class. Most of the ideas here are taken from their classes at the American Economic Association. Watching them is what is keeping me sane during this tough year of 2020.

I'll also like to reference the amazing books from Angrist. They have shown me that Econometrics, or 'Metrics as they call it, is not only extremely useful but also profoundly fun.

My final reference is Miguel Hernan and Jamie Robins' book. It has been my trustworthy companion in the most thorny causal questions I had to answer.

How to Support This Work

Causal Inference for the Brave and True is an open-source material on mostly econometrics and the statistics of science. It uses only free software, based in Python. Its goal is to be accessible, not only financially, but intellectual. I've tried my best to keep the writing entertaining while maintaining the necessary scientific rigor.
Recently, the book has been translated into Vietnamese by some very nice folks from the London School of Economics. Although I was thrilled by it, the translation process also revealed the insufiencies of my english. For this reason, I'm looking for funds to hire professional proofreading services and sort that problem once and for all. To help me with that, go to