pymc-devs / pymc-devs/pymc-examples

Interventions versus counterfactuals

Open
#554 0 comments 1 reaction 1 assignee View on GitHub

@drbenvincent is already working on this.

Since Sep 1, 2023.

proposal
Dominant language
Python
Stars
398
Forks
325
Avg merge
9d 15m
Merged PRs (30d)
1

Description

Notebook proposal

Title: Interventions versus counterfactuals

Why should this notebook be added to pymc-examples?

There is a lot of excitement about causal inference at the moment. Interventions and Counterfactuals map on to Pearl's Rung 2 and Rung 3 of the causal ladder. So having a notebook that succinctly explains the concepts and how to implement these in PyMC would be valuable.

I'd aim to introduce the concepts, then illustrate with a practical example. This could perhaps be time-series based in order to emphasise the retrospective vs prospective aspects of intervention and counterfactuals.

Suggested categories:

  • Level: Intermediate
  • Diataxis type: Explanation or How-To

Related notebooks

This notebook would compliment the range of other causal focussed notebooks that I've put together:
Screenshot 2023-07-04 at 20 39 56
It could be a good sequel to the Interventional distributions and graph mutation with the do-operator example, but it wouldn't really overlap with it.

References

  • Pearl

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.