Estimating Causal Effects with Double Machine Learning - A Method Evaluation

Jonathan Fuhr, Philipp Berens, Dominik PapiesarXiv 2024 · DOI

Introduction

In fields ranging from economics to healthcare, the central goal of empirical research is often to determine the causal effect of a treatment—such as a policy change or a medical intervention—on a specific outcome. When randomized controlled trials are infeasible, researchers must turn to observational data. However, observational studies are plagued by confounding: variables that influence both the treatment and the outcome.

While traditional linear models like Ordinary Least Squares (OLS) are standard, they often fail to capture the complex, nonlinear relationships common in real-world data. Conversely, standard machine learning (ML) models, though flexible, are optimized for prediction rather than causal inference. Using them directly can introduce "regularization bias," leading to spurious conclusions. Double Machine Learning (DML) emerged as a robust framework to address these issues, yet its practical implementation remains a challenge for many researchers.

The Double Machine Learning Framework

The DML approach, specifically the "partialling-out" method, addresses confounding through a two-stage process designed to remove bias from the final causal estimate.

  1. Orthogonalization: ML models are used to predict the treatment from the confounders and the outcome from the confounders independently. By subtracting these predictions from the actual values, researchers obtain "residuals"—the variation in treatment and outcome that cannot be explained by the observed confounders.
  2. Cross-fitting: To prevent the model from overfitting to noise (which would bias the treatment effect), the data is split into $K$ folds. The nuisance parameters are estimated on one set of folds and applied to the remaining "out-of-sample" fold.

Evaluation Methodology

This study provides a rigorous "stress test" of the DML framework using both synthetic and real-world data. The researchers evaluated a wide array of ML algorithms and parameters commonly found in the literature to identify best practices.

Figure 1: Summary of study parameters including disciplines, ML algorithms evaluated, treatment types, and cross-fitting configurations (K and S).

The evaluation spanned:

  • Extensive Simulations: Thousands of synthetic datasets were generated to test DML against known ground truths. These simulations varied functional forms (e.g., U-shaped or cubic confounding), sample sizes (20 to 10,000), and the number of confounders.
  • Boston Housing Dataset: A classic benchmark used to estimate the causal impact of nitrogen oxide levels on housing prices, adjusting for 13 neighborhood-level confounders.

Key Findings and Insights

The Limitations of Lasso

Despite its prevalence in DML applications, Lasso is fundamentally a linear model. The study reveals that without manual variable transformations, Lasso fails to adjust for nonlinear confounding. In scenarios with complex relationships, Lasso-based DML can remain significantly biased. In contrast, flexible methods like Gradient Boosting (XGBoost) and Neural Networks reduced bias by orders of magnitude in nonlinear scenarios.

XGBoost as the Robust Default

Across the majority of simulation settings, Gradient Boosting emerged as the most consistent performer. Its ability to capture nonlinearities and interactions automatically makes it a superior choice for practitioners seeking a reliable baseline.

The First-Stage Proxy

A critical insight is the correlation between first-stage predictive accuracy and the quality of the final causal estimate. If the ML models perform poorly at predicting the treatment or outcome from the confounders, the resulting causal estimate is likely to be biased. This provides researchers with a tangible metric to assess the reliability of their results.

Stability through Repetition

A critical practical finding involves the stability of estimates. Especially in smaller datasets, random sample splitting during cross-fitting can lead to high variance. The authors demonstrate that repeating the DML process multiple times ($S$ repetitions) and reporting the median estimate is essential for stability.

Figure 2: Distribution of algorithm repetitions (S) reported in the literature, highlighting that many studies do not report this crucial parameter.

Real-World Impact: The Boston Housing Case

In the Boston housing application, DML estimates for the negative effect of air pollution were consistently larger than those from traditional OLS. This suggests that previous studies using less flexible methods may have significantly underestimated the economic impact of pollution by failing to fully account for nonlinear confounding.

Conclusion

Double Machine Learning represents a significant leap forward in causal inference from observational data. However, it is not a substitute for sound causal logic. DML cannot account for unobserved confounders or "bad controls" (colliders). When applied with the right algorithmic choices—notably XGBoost—and sufficient repetitions for stability, DML provides a powerful tool for uncovering true causal relationships where traditional methods fall short.

Summary updated

BibTeX
@misc{fuhr2024estimating,
  author = {Jonathan Fuhr and Philipp Berens and Dominik Papies},
  title = {{Estimating Causal Effects with Double Machine Learning - A Method Evaluation}},
  year = {2024},
  eprint = {2403.14385},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.14385},
}
Figure