Member-only story

The Power of Bayesian Causal Inference: A Comparative Analysis of Libraries to Reveal Hidden Causality in Your Dataset.

Reveal the hidden causal variables in your data set by using the best-suited Bayesian causal inference library: a comparison with hands-on examples of five popular libraries.

Erdogan Taskesen
TDS Archive
20 min readMay 22, 2023

Photo by Alexander Schimmeck on Unsplash

Understanding the causal effect of variables in systems or processes is very valuable. There are a number of Python libraries that can assist in determining causal relationships. I will compare five popular causal inference libraries in their functionality, ease of use, and flexibility. Each is accompanied by hands-on examples. The included libraries are Bnlearn, Pgmpy, CausalNex, DoWhy, and CausalImpact. By the end of this blog, you will have a better understanding of these five causal inference libraries and determine which fits best for your use case.

Background

Causal inference is to determine the cause-and-effect relationships between variables in a process or system. In general, we can separate variables into two distinct groups; driver and passenger variables. Driver variables are those that directly influence the outcome or dependent variable, while passenger variables are those that do not have…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Erdogan Taskesen
Erdogan Taskesen

Written by Erdogan Taskesen

Machine Learning | Statistics | D3js visualizations | Data Science | Ph.D | erdogant.github.io

Responses (3)

Write a response

Thank you for sharing, much appreciated!

Have been meaning to get my teeth stuck into some CausalAI again so this is perfect, thanks.

i’ve been using widely bnlearn and causalnex for learning the pattern of COVID and learning the behaviour pattern in our apps. thank youu