/Causality

Primary LanguageJupyter NotebookMIT LicenseMIT

GitHub Twitter @data4sci GitHub top language GitHub repo size GitHub last commit Binder

Sunday Briefing

Causality

How do causes lead to effects? Can you associate the cause leading to the observed effect? Big Data opens the doors for us to be able to answer questions such as this, but before we are able to do so, we must dive into the field of Causal Inference, a field championed by Judea Pearl. In this series of blog posts we will learn about the main ideas of Causality by working our way through “Causal Inference In Statistics” a nice Primer co-authored by Pearl himself.


Amazon Affiliate Link: https://amzn.to/3gsFlkO

The book is divided into Four chapters. The first chapter covers background material in probability and statistics. The other three chapters are (roughly) organized to match the “Three steps” in the ladder of causality as defined by Pearl:

  1. — Association
  2. — Intervention
  3. — Counterfactuals

In this series of blog posts we will cover most of the content of the book, with a special emphasis on the parts that I believe are more interesting or relevant to practical applications. In addition to summarizing and explaining the content, we will also explore some of the ideas using simple (or as simple as possible) Python code you can run on Binder: Binder

Chapter 1

1.2 - Simpson's Paradox -- 1.2 - Simpson's Paradox.ipynb

1.3 - Probability Theory -- 1.3 - Probability and Statistics.ipynb

1.4 - Graphs -- 1.4 - Graphs.ipynb

1.5 - Structural Causal Models -- 1.5 - Structural Causal Models.ipynb

Chapter 2

2.2 - Chains and Forks -- 2.2 - Chains and Forks.ipynb

2.3 - Colliders -- 2.3 - Colliders.ipynb

2.4 - d-separation -- 2.4 - d-separation.ipynb

2.5 - Model Testing and Causal Search -- 2.5 - Model Testing and Causal Search.ipynb

Chapter 3

3.1 - Interventions -- 3.1 - Interventions.ipynb

3.2 - Adjustment Formula -- 3.2 - The Adjustment Formula.ipynb

3.3 - Backdoor Criterion -- 3.3 - Backdoor Criterion.ipynb

3.4 - Front-Door Criterion -- 3.4 - Front-Door Criterion.ipynb

3.5 - Conditional Interventions and Covariate-Specific Effects -- 3.5 - Conditional Interventions and Covariate-Specific Effects.ipynb

3.6 - Inverse Probability Weighing -- 3.6 - Inverse Probability Weighing.ipynb

3.7 - Mediation -- 3.7 - Mediation.ipynb


For a more in-depth analysis, checkout Pearl's more technical book:


Amazon Affiliate Link: https://amzn.to/2OSBP6u


Sign up to the Sunday Briefing newsletter to be the first to know when we publish new posts: