A set of decks and notebooks with exercises for use in a hands-on causal inference tutorial session

Overview

intro-to-causal-inference

A introduction to causal inference using common tools from the python data stack

Table of Contents

Getting Started

Install graphviz

You'll need graphviz for our first exercise notebook, to visualize causal graphs.

Clone the repository

In your terminal, use git to clone the repo to your machine.

git clone [email protected]:ronikobrosly/causal_inference_intro.git

If you are less comfortable with git, there is an easy alternative: You can simply download a zip file of it here :)

Determine your installation preference

Now that you've installed graphviz and cloned the repo locally, there are two paths to finishing up preparing your machine for this tutorial:

Option 1: installing via pip install in a virtual virtualenv

Create a new virtual environment for this tutorial using this guide. Name your environment intro-to-causal-inference

"Activate" this environment and then run the following command in the root folder of this repo: pip install -r requirement.txt

This will install all the necessary packages for the tutorial.

As an optional step, you can try to run the check_environment.py file (in the root folder of the repo) while within your virtual environment. You can do so by running python check_environment.py in your terminal. It will alert you if you're missing any required python packages.

Option 2: installing via Anaconda python and the conda package manager

If you do not already have the Anaconda distribution of Python 3, please install it.

You can then use the conda tool in your terminal to install the necessary packages:

conda env create -f conda_env.yml

"Activate" the new environment via:

conda activate intro-to-causal-inference

As an optional step, you can try to run the check_environment.py file (in the root folder of the repo) while within your virtual environment. You can do so by running python check_environment.py in your terminal. It will alert you if you're missing any required python packages.

Install a new IPython kernelspec

Once the above is complete, you'll need to run the following commands:

python -m ipykernel install --user --name intro-to-causal-inference --display-name "Python (intro-to-causal-inference)"

Start up jupyter lab and open a notebook

In the terminal, execute jupyter lab.

Navigate to the notebooks directory and open your notebook of choice.

Acknowledgements

I would like to like to acknowledgement the following individuals for creating public causal inference materials that were useful in the creation of this tutorial:

Feedback

I love would to hear your feedback on these tutorial materials! Please send your comments to [email protected].

You might also like...
Object-oriented programming exercise session held in Petnica.

OOP vežba ⚠️ The code in this repo is used for a OOP practice session held in Petnica. All instructions in the README file are written in Serbian. Ops

Yakuake session management

yman is a python script used for saving/restoring yakuake sessions (currently running commands, working directories, environment variables, tab titles)

This is Gaurav's IP Project Completed in the year session of 2021-2022.

The Analyser by Gaurav Rayat Why this Project? Today we are continuously hearing about growth in Crime rates and the number of murders executed day by

This is a simple quizz which can ask user for login/register session, then consult to the Quiz interface.
This is a simple quizz which can ask user for login/register session, then consult to the Quiz interface.

SIMPLE-QUIZ- This is a simple quizz which can ask user for login/register session, then consult to the Quiz interface. By CHAKFI Ahmed MASTER SYSTEMES

A python script providing an idea of how a MindSphere application, e.g., a dashboard, can be displayed around the clock without the need of manual re-authentication on enforced session expiration

A python script providing an idea of how a MindSphere application, e.g., a dashboard, can be displayed around the clock without the need of manual re-authentication on enforced session expiration

🟥This is an overview of how to set up and use DataStore3 in your Roblox experiences

Welcome to DataStore3 👋 This is an overview of how to set up and use DataStore3 in your Roblox experiences What is it? 🤔 DataStore3 is a service tha

Collapse a set of redundant kmers to use IUPAC degenerate bases

kmer-collapse Collapse a set of redundant kmers to use IUPAC degenerate bases Overview Given an input set of kmers, find the smallest set of kmers tha

A system for assigning and grading notebooks
A system for assigning and grading notebooks

nbgrader Linux: Windows: Forum: Coverage: Cite: A system for assigning and grading Jupyter notebooks. Documentation can be found on Read the Docs. Hig

A step-by-step tutorial for how to work with some of the most basic features of Nav2 using a Jupyter Notebook in a warehouse environment to create a basic application.
A step-by-step tutorial for how to work with some of the most basic features of Nav2 using a Jupyter Notebook in a warehouse environment to create a basic application.

This project has a step-by-step tutorial for how to work with some of the most basic features of Nav2 using a Jupyter Notebook in a warehouse environment to create a basic application.

Owner
Roni Kobrosly
data person 💻
Roni Kobrosly
Small exercises to get you used to reading and writing Python code!

Pythonlings Welcome to Pythonlings, an automated Python tutorial program (inspired by Rustlings and Haskellings). WIP This program is still working in

鹤翔万里 5 Sep 23, 2022
LibreMind is a free meditation app made in under 24 hours. It has various meditation, breathwork, and visualization exercises.

libreMind Meditation exercises What is it? LibreMind is a free meditation app made in under 24 hours. It has various meditation, breathwork, and visua

null 1 May 24, 2022
All exercises done during the Python 3 course in the Video Course (World 1, 2 and 3)

Python3-cursoemvideo-exercises - All exercises done during the Python 3 course in the Video Course (World 1, 2 and 3)

Renan Barbosa 3 Jan 17, 2022
Hands-on machine learning workshop

emb-ntua-workshop This workshop discusses introductory concepts of machine learning and data mining following a hands-on approach using popular tools

ISSEL Soft Eng Team 12 Oct 30, 2022
LOC-FLOW is an “hands-free” earthquake location workflow to process continuous seismic records

LOC-FLOW is an “hands-free” earthquake location workflow to process continuous seismic records: from raw waveforms to well located earthquakes with magnitude calculations. The package assembles several popular routines for sequential earthquake location refinements, suitable for catalog building ranging from local to regional scales.

Miao Zhang 71 Jan 9, 2023
Table (Finnish Taulukko) glued together to transform into hands-free living.

taulukko Table (Finnish Taulukko) glued together to transform into hands-free living. Installation Preferred way to install is as usual (for testing o

Stefan Hagen 2 Dec 14, 2022
A collection of python exercises to help your learning path!

How to use Step 1: run this command git clone https://github.com/TechPenguineer/Python-Exercises.git Step 2: Run this command cd Python-Exercises You

Tech Penguin 5 Aug 5, 2021
Speed up your typing by some exercises in the multi-platform(Windows/Ubuntu).

Introduction This project purpose is speed up your typing by some exercises in the multi-platform(Windows/Ubuntu). Build Environment Software Environm

lyfer233 1 Mar 24, 2022
TB Set color display - Add-on for Blender to set multiple objects and material Display Color at once.

TB_Set_color_display Add-on for Blender with operations to transfer name between object, data, materials and action names Set groups of object's or ma

null 1 Jun 1, 2022
firefox session recovery

firefox session recovery

Ahmad Sadraei 5 Nov 29, 2022