Open in app

Sign In

Write

Sign In

Graham Harrison
Graham Harrison

527 Followers

Home

About

Published in

Towards Data Science

·Apr 6

Unlock the Secrets of Causal Inference with a Master Class in Directed Acyclic Graphs

A step-by-step explanation of Directed Acyclic Graphs from the basics through to more advanced aspects — Objective Having spent a lot of time researching causal inference I began to realise that I did not have a full grasp of Directed Acyclic Graphs (DAGs) and that this was hampering my efforts to develop my understanding to a point where I could apply it in order to solve real-world…

Data Science

36 min read

Unlock the Secrets of Causal Inference with a Master Class in Directed Acyclic Graphs
Unlock the Secrets of Causal Inference with a Master Class in Directed Acyclic Graphs
Data Science

36 min read


Published in

Towards Data Science

·Feb 14

Unlock the Power of Causal Inference and Front-door Adjustment: An In-Depth Guide for Data Scientists

A full explanation of causal inference front-door adjustment with examples including all the Python source code — Objective By the end of this article you will understand the magic of causal inference front-door adjustment that can calculate the effect of an event on an outcome even where there are other factors affecting both that are unmeasured or even unknown and you will have full access to all the…

Machine Learning

11 min read

Unlock the Power of Causal Inference & Front-door Adjustment: An In-depth Guide for Data Scientists
Unlock the Power of Causal Inference & Front-door Adjustment: An In-depth Guide for Data Scientists
Machine Learning

11 min read


Published in

Towards Data Science

·Feb 10

How to Calculate Conditional Probabilities from Any DataFrame in 3 Lines of Code

Learn to write a simple Python function that will calculate conditional probabilities using notation like p(exam=1 | study=1) — Background As I have continued to delve into causal inference I reached a stage where I needed to be able to construct formulas that use complex combinations of conditional probabilities and the code was starting to be difficult to read and maintain. This led to me developing a simple way to…

Python

6 min read

How to Calculate Conditional Probabilities from Any DataFrame in 3 Lines of Code
How to Calculate Conditional Probabilities from Any DataFrame in 3 Lines of Code
Python

6 min read


Published in

Towards Data Science

·Jan 19

Unlock the Power of Causal Inference: A Data Scientist’s Guide to Understanding the Backdoor Adjustment Formula

A fully working example of the backdoor adjustment formula using Python and the pgmpy library — Introduction In probability theory it is very straightforward to look at a dataset and calculate the probability of an event based on knowing something about other variables. For example:

Data Science

9 min read

Unlock the Power of Causal Inference : A Data Scientist’s Guide to Understanding Backdoor…
Unlock the Power of Causal Inference : A Data Scientist’s Guide to Understanding Backdoor…
Data Science

9 min read


Published in

Towards Data Science

·Jan 2

How to Build a Causal Inference Machine Learning Model to Explore Whether Global Warming is Caused by Human Activity

How to use Python and the DoWhy library to build a causal inference model to explore the causes of global warming — Introduction I published an article recently to provide a simple tutorial of how to get up and running with causal inference using the Pgmpy library - A Simple Explanation of Causal Inference in Python A straight-forward explanation of how to build an end-to-end causal inference model in Pythontowardsdatascience.com

Causal Inference

13 min read

How to Build a Causal Inference Model to Explore Whether Global Warming is Caused by Human Activity
How to Build a Causal Inference Model to Explore Whether Global Warming is Caused by Human Activity
Causal Inference

13 min read


Published in

Towards Data Science

·Dec 19, 2022

The Causal Inference “do” Operator Fully Explained, with an End-to-End, Example Using Python and DoWhy

How to master the causal inference do operator and why you need it in your data science tool bag — Introduction Fully explained, end-to-end examples of causal inference that have actual, working source code are very hard to find on the Internet or in books, as I have discovered in my journey to understand how this emerging technology works and why it is so important. But if you persevere it is…

Data Science

12 min read

The Causal Inference “do” Operator Fully Explained with an End-to-End Example in Python
The Causal Inference “do” Operator Fully Explained with an End-to-End Example in Python
Data Science

12 min read


Published in

Towards Data Science

·Nov 1, 2022

Causal Discovery: Does the Cockerel Crowing Cause the Sun to Rise?

10 Lines of Python code to automate causal discovery that you have got to see — Introduction The focus of my recent research has been causal inference driven by the increasing requests I get from customers to move beyond machine learning predictions to answering “what-if?” type questions to drive impact and outcomes. One of the things that intrigued me initially was — “How are causal diagrams constructed?”…

Data Science

10 min read

Causal Discovery : Does the Cockerel Crowing Cause the Sun to Rise?
Causal Discovery : Does the Cockerel Crowing Cause the Sun to Rise?
Data Science

10 min read


Published in

Towards Data Science

·Oct 6, 2022

How to Visualise Causal Inference Models with Intuitive Conditional Probability Tables

How to generate intuitive and comprehensive Conditional Probability Tables to visualise and understand causal inference models in 1 line of Python code — Background Causal Inference is a hot topic at the moment but the various libraries that exist can be complicated with inconsistent documentation and examples and most of the available articles and posts focus on a particular aspect of causal inference without covering all the things a data scientist needs to know.

Python

7 min read

How to Visualise Causal Inference Models with Intuitive Conditional Probability Tables
How to Visualise Causal Inference Models with Intuitive Conditional Probability Tables
Python

7 min read


Published in

Towards Data Science

·Sep 26, 2022

How to Visualise Causal Inference Models with Interactive Directed Acyclic Graphs

How to generate interactive Directed Acyclic Graphs to visualise and understand causal inference models in 1 line of Python code — Background Causal Inference is very topical at the moment and causal models are starting to become very useful additions to more traditional regression, classification and prediction models. Increasingly customers want to be able to visualise and understand the underlying causes and effects behind model predictions to help answer “Why?”, “What if?”…

Python

7 min read

How to Visualise Causal Inference Models with Interactive Directed Acyclic Graphs
How to Visualise Causal Inference Models with Interactive Directed Acyclic Graphs
Python

7 min read


Published in

Towards Data Science

·Sep 12, 2022

A Simple Explanation of Causal Inference in Python

A straight-forward explanation of how to build an end-to-end causal inference model in Python — Background I first became interested in causality when I finished a commercial machine learning classification project and the first thing the customers asked after the presentation was … “Why does that happen and what are the underlying causes?” My first attempt revolved around artificially modifying the input data for the classification…

Machine Learning

9 min read

A Simple Explanation of Causal Inference in Python
A Simple Explanation of Causal Inference in Python
Machine Learning

9 min read

Graham Harrison

Graham Harrison

527 Followers

Click here to subscribe to Medium - https://grahamharrison-86487.medium.com/membership - you will get full access to 1000's of articles and support the writers!

Following
  • Jesus Rodriguez

    Jesus Rodriguez

  • Bex T.

    Bex T.

  • TDS Editors

    TDS Editors

  • Arpita Ghosh

    Arpita Ghosh

  • Cassie Kozyrkov

    Cassie Kozyrkov

See all (39)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams