Introducing the do-sampler for causal inference

The promise of Pearlian causal inference

Figure 1: The difference between the observed and interventional distributions, as shown by the two causal graphs.

The Do-Sampler: An example

The Do-Sampler: Why it works

The Usual Caveats

  1. For an overview of causal inference techniques, check out a tutorial by Emre and Amit:
  2. Check the Book of Why for an introduction. Or dive into the Causality book if you are brave enough!
  3. These logical rules are based on the do-calculus by Judea Pearl.
  4. To be precise, we condition on the author variable here. Controlling refers to intervening so that an author write articles of different lengths as in a randomized experiment.
  5. The source for the do-sampler is available at




Physicist; formerly Data @ BuzzFeed; Adjunct Prof. at Columbia;

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Data Scientist vs. Data Analyst: Important Points of Consideration

Tracking post-pandemic normalcy: noise complaints in NYC

Capturing Unconstrained Demand in Supply Chains

Predicting Demographic Trends for Global UNHCR Persons of Concern

What is and How Data Science Changed the World?

What is and How Data Science is Changing the World - ADOBE STOCK

Representing Data In Pie Chart

Pie Chart

My First Data Science Meetup

Improving the discoverability and usability of open sports and physical activity opportunity data

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
adam kelleher

adam kelleher

Physicist; formerly Data @ BuzzFeed; Adjunct Prof. at Columbia;

More from Medium

Optimal Strategy for Predicting Independent Events

Things you should know about x̄

Behavior of blinds: A sketch of scientific practice

The shape of data to come