Sliding into Causal Inference, with Python!

Answering "what if...?" questions, with Python!

Alon Nir

Data Science Predictions Science The Answer to Life the Universe and Everything Else Tooling

See in schedule: Fri, Jul 30, 15:15-15:45 CEST (30 min)

What would the world look like if Russia won the cold war? If the Boston Tea Party never happened? And where would we be if Guido van Rossum had decided to go to music school? Unfortunately we don't have the technology to slide into parallel worlds and explore alternative histories. However it turns out we *do* have the tools to simulate parallel realities and give decent answers to intriguing 'what if' questions. This talk will provide a gentle introduction to these tools, professionally known as Causal Inference.

The talk is aimed at data practitioners, preferably with basic knowledge of Python and statistics. That said, the focus of the talk is to nurture an intuitive understanding of the subject first, and implementation second. By the end of the talk I hope audience members could identify causal inference problems, have an intuitive understanding of the different tools they can apply to these problems, and have the appetite to further their learning!

The talk will cover the problem of answering causal questions (The Fundamental Problem of Causal Inference) and the main tools to address it. The emphasis will be on intuitive understanding how the different tools work, rather than pesky underlying assumptions, complex notation or convoluted literature. Just enough theory and lines of code to get the message across.

Outline:
- *Introduction to parallel universes and "what if?" questions?*
- *The golden standard for causal inference.* We'll discuss randomised controlled experiments and also set the scene for cases these aren't possible. [6 mins]

Three key tools:
- *Differences-in-Differences*
- *Propensity score methods*
- *Synthetic Controls* (or: creating an alternate universe on your machine)

What's next:
A wrap up that includes:
- *What we didn't cover* (a few words about other techniques, DAGs, etc.)
- *Quick overview of Python tools for causal inference*
- *Where do we go from here* - resources, curriculums, readings and communities.

Slides and code: https://github.com/alonnir/EuroPython-2021-Talk

Type: Talk (30 mins); Python level: Intermediate; Domain level: Intermediate


Alon Nir

Spotify

Senior data scientist at Spotify, previously Deliveroo.
Trying to use data to explain the world around me, and to make it better.
Slides + code at https://github.com/alonnir/EuroPython-2021-Talk
Ping me @alonnir