Coming soon...

Bayesian Causal Inference

We wrote this book for people who fit models and are then asked what would have happened if the world had been different. It covers causal designs from propensity score weighting to structural equation models. Each is built as a Bayesian model, so its assumptions can be written down, varied and questioned. Causal inference must be robust to stress-tests and sensitivity probes.

For applied researchers, data scientists and statisticians.

Assumes some familiarity with Bayesian inference. The examples are in Python. The models are written in PyMC, CausalPy, and Bambi.

A red hardcover standing upright, titled Bayesian Causal Inference.

What you will be able to do

We write assumptions into the model, where a reader can examine them and test how much the conclusion depends on them.

  1. 01

    Implement a causal identification strategy in a probabilistic programming language, with the model written out.

  2. 02

    State what that strategy assumes, in a form a critic can check.

  3. 03

    Test the assumptions and measure what they imply.

  4. 04

    Report the credibility of the finding, not only the estimate.

How the book is organised

Part I sets out the tools the rest of the book relies on. Part II covers designs for data observed once, ordered roughly by how much the analyst has to assume. Part III covers designs for units observed repeatedly over time. After Part I, most chapters can be read on their own, and each one lists what it builds on.

Part I

Foundations

A Bayesian modelling workflow in PyMC, and how to compute causal quantities from a fitted model. Directed acyclic graphs are used to write down causal assumptions. The last chapter breaks graphs into forks, chains and colliders, the patterns every later design is built from.

  1. Bayesian inference: optimisation and sampling
  2. Causal quantities and g-computation
  3. Causal thinking with graphs
  4. Causal building blocks: forks, chains, and colliders
Read the overview

Part II

Cross-sectional data

Each chapter illustrates a causal identification strategy as a Bayesian model, so its assumptions can be examined and varied. The chapters range across horseshoe priors for selecting among many weak instruments and front-door identification in Bayesian structural equation models. The part ends with sensitivity analysis, which asks how much a conclusion depends on an assumption the data cannot check.

  1. Propensity scores and information weighting
  2. Supply, demand and instrumental variables
  3. Structural equation models and path diagrams
  4. Discrete choice counterfactuals
  5. Sensitivity analysis
Read the overview

Part III

Panel data

When the same units are observed over time, a unit's own past can serve as the comparison, or one can be built from similar units. The examples include excess deaths in England and Wales during Covid, and underlying factors driving the response to German reunification. The final chapter fits a marketing-mix model and uses a lift test to check its estimates.

  1. Before and after: change scores to ANCOVA
  2. Interrupted time series
  3. Synthetic controls and counterfactual trajectories
  4. Two-way fixed effects
  5. Marketing mix modelling and experimental calibration
Read the overview

The preface, these three overviews and two sample chapters, on Bayesian inference and on propensity scores, are online now. The other chapters are being finalised, and we will update this page as they become available. Start with the preface.