Skip to main content
Ctrl+K

causallib

  • Getting Started
  • User Guide
  • Examples Gallery
  • API Reference
  • GitHub
  • PyPI
  • Getting Started
  • User Guide
  • Examples Gallery
  • API Reference
  • GitHub
  • PyPI

Section Navigation

  • Inverse Probability Weighting Model
  • Direct Outcome Prediction Model
  • Doubly Robust Models
  • TMLE - Targeted Maximum Likelihood Estimation
  • R-Learner
  • X-learner
  • Causal Survival Analysis
  • Matching Model
  • Matching with Custom Backends
  • LaLonde Dataset
  • Heterogenous Effect Mixture Model (HEMM) Demo
  • Positivity filtering
  • An overview of causallib evaluation plots
  • Why Causal Analysis is Needed
  • The Effects of Marketing Decisions using the Bank Marketing Dataset
  • LaLonde Dataset
  • NHEFS Dataset
  • Estimating the effect of agricultural conservation practices (CP) on reducing nutrient loss
  • Comparing Effect Estimators on Fast-food Employment Data
  • LaLonde Dataset
  • Running a simulator using existing data
  • Examples Gallery

Examples Gallery#

This gallery showcases various examples demonstrating the capabilities of CausalLib. Each example is a Jupyter notebook that you can view, download, and run locally.


Models and Features#

Inverse Probability Weighting Model

Inverse probability weighting is a basic model to obtain average effect estimation.

Inverse Probability Weighting Model
Direct Outcome Prediction Model

Also known as standardization

Direct Outcome Prediction Model
Doubly Robust Models

Basically, different ensemble models that utilize a weight model to augment the outcome model.

Doubly Robust Models
TMLE - Targeted Maximum Likelihood Estimation

Targeted learning is a method developed by Mark van der Laan [1] establishing…

TMLE - Targeted Maximum Likelihood Estimation
R-Learner

R-Learner provides a general framework for estimating causal effects using Machine Learning (ML) algorithms.

R-Learner
X-learner

X-learner is a Meta-algorithm by künzel et al. (2018)

X-learner
Causal Survival Analysis

The modules under causallib.estimation estimate treatment effect on outcomes that are measured at a particular time point (e.g., effect of smokin…

Causal Survival Analysis
Matching Model

To find the expected effect of the intervention on the population, we match each treated individual with one or more untreated individuals which ar…

Matching Model
Matching with Custom Backends

When performing matching on a sample set, we may want to use non-standard distance measurements or faster implementations. The default behavior is …

Matching with Custom Backends
LaLonde Dataset

Economists have long-hypothesized that training programs could improve the labor market prospects of participants.

LaLonde Dataset
Heterogenous Effect Mixture Model (HEMM) Demo
Heterogenous Effect Mixture Model (HEMM) Demo
Positivity filtering

This Notebooks presents several models that perform overlap exclusion

Positivity filtering
An overview of causallib evaluation plots

To make it easier to assess the quality of the causal models, causallib supplies a number of evaluation plots.

An overview of causallib evaluation plots

Real-World Use Cases#

Why Causal Analysis is Needed

In this example we will perform a quick causal analysis to estimate the causal effect of smoking cessation on weight gain over a period of a decade.

Why Causal Analysis is Needed
The Effects of Marketing Decisions using the Bank Marketing Dataset
The Effects of Marketing Decisions using the Bank Marketing Dataset
LaLonde Dataset

Economists have long-hypothesized that training programs could improve the labor market prospects of participants.

LaLonde Dataset
NHEFS Dataset

NHANS (National Health and Nutrition Examionation Survey) Epidemiologic Followup Study

NHEFS Dataset
Estimating the effect of agricultural conservation practices (CP) on reducing nutrient loss

We will use the Measured Annual Nutrient loads from AGricultural Environments (MANAGE) data from the USDA,

MANAGEagriculturaldata
Comparing Effect Estimators on Fast-food Employment Data

We look at the famous Card and Krueger study[1] of the impact of a minimum wage change on employment levels in fast food restaurants near the borde…

Comparing Effect Estimators on Fast-food Employment Data
LaLonde Dataset

Economists have long-hypothesized that training programs could improve the labor market prospects of participants.

LaLonde Dataset
Running a simulator using existing data

Consider the case when input data already exists, and that data already has a causal structure.

Running a simulator using existing data

previous

Common Workflows

next

Inverse Probability Weighting Model

On this page
  • Models and Features
  • Real-World Use Cases
Edit on GitHub
Show Source

© Copyright 2017-2026, CausalML for HCLS; IBM Research ISRL.

Created using Sphinx 9.0.4.

Built with the PyData Sphinx Theme 0.17.1.