Coder Social home page Coder Social logo

bicudorafa / causal-inference-essay-dowhy Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 1.34 MB

This repository aims to explore all possibilities available on Microsoft's DoWhy package, based on the Causal Inference Theory and Principles.

Jupyter Notebook 99.34% Dockerfile 0.02% Python 0.65%
statistics causal-inference dowhy essay

causal-inference-essay-dowhy's Introduction

Causal Inference Essay - DoWhy

Description

This repository contains two essays (a synthetic and a real one) on how to implement the causal inference framework to assess causal relationships on data, based on the tools contained on the DoWhy Microsoft Project.

Synthetic Use Case

By using built-in methods to generate synthetic data with linear causal relationships, this essay demonstrates most of the package's methods, possibilities, and functionalities in a "controlled" environment (i.e. it's know in advance what is the true Average Treatment Effect, then what would be the population counterfactuals), along with brief about Causal Inference theory behind the package approach.

Real Use Case: Rereading of the Classic Lalonde Essay

After the above demonstration, the focus shifts to a practical use case to better understand Dowhy's capabilities in real-world scenarios. The chosen exercise was a re-edition of the famous Rajeev H. Dehejia and Sadek Wahba paper in which they had challenged the results obtained by Lalonde (tl;dr the ordinary econometric techniques aren't able to estimate causal relationships from observational data with reasonable confidence) by showing how more modern algorithms (to the time), such as the Propensity Score Matching, are able to achieve incredible performance.

Prerequisites

Everything performed on this repository was stored in a Docker image (description on to reproduce it below). The unique basic required is to have Docker's most recent version installed.

Installation

You can either download the repository and rebuild the Docker image from the scratch on your machine by running on your shell (inside your local directory in which the repo is stored):

docker build -t myaccount/new_project .
docker run -p 8888:8888 myaccount/new_project

As it's possible to directly pull it from the Docker Hub:

docker pull bicudorafa/dowhy-env:0.1
docker run -p 8888:8888 bicudorafa/dowhy-env:0.1

Contact

If you have any questions, suggestions, or issues to report, feel free to open an issue, or reach me out through my profile.

causal-inference-essay-dowhy's People

Contributors

bicudorafa avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.