This repository contains solutions to the study questions from the book
Pearl J, Glymour M, Jewell NP. Causal Inference in Statistics: A Primer. Wiley, 2016.
The book’s website contains PDFs for each chapter.
There are two sets of solutions, one using the dagitty R package, the other using the pgmpy Python package.
dagitty was able to solve more of the study questions than pgmpy. Some of the pgmpy algorithms are only suitable for small graphs, whereas the corresponding dagitty algorithms can handle larger graphs.