Machine learning for causal inference: on the use of cross-fit estimators

Paul N Zivich, Alexander Breskin
4/21/2020
stat.MEstat.ML

Official code: pzivich/publications-code (20 stars, Python, last commit 2026-10-26).

Abstract

Modern causal inference methods allow machine learning to be used to weaken parametric modeling assumptions. However, the use of machine learning may result in complications for inference.

Show full abstract

Doubly-robust cross-fit estimators have been proposed to yield better statistical properties. We conducted a simulation study to assess the performance of several different estimators for the average causal effect (ACE). The data generating mechanisms for the simulated treatment and outcome included log-transforms, polynomial terms, and discontinuities. We compared singly-robust estimators (g-computation, inverse probability weighting) and doubly-robust estimators (augmented inverse probability weighting, targeted maximum likelihood estimation). Nuisance functions were estimated with parametric models and ensemble machine learning, separately. We further assessed doubly-robust cross-fit estimators. With correctly specified parametric models, all of the estimators were unbiased and confidence intervals achieved nominal coverage. When used with machine learning, the doubly-robust cross-fit estimators substantially outperformed all of the other estimators in terms of bias, variance, and confidence interval coverage. Due to the difficulty of properly specifying parametric models in high dimensional data, doubly-robust estimators with ensemble learning and cross-fitting may be the preferred approach for estimation of the ACE in most epidemiologic studies. However, these approaches may require larger sample sizes to avoid finite-sample issues.

View on arXivView PDF

Code Implementations(1)

Publicly available code from my publications 📝

207Python, Jupyter NotebookApr 23, 20201 months ago
machine-learningopen-sourcepublication-codepublicationsstatistics

Similar Papers

Cite this paper

@article{zivich2020machine,
  title  = {Machine learning for causal inference: on the use of cross-fit estimators},
  author = {Paul N Zivich and Alexander Breskin},
  year   = {2020},
  eprint = {2004.10337},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.10337}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2004.10337.svg)](https://codeofpaper.com/paper/2004.10337)

Discussion