arXiv(opens in a new tab)cs.AIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.00071

When Prediction Error Is Not Enough: Evaluating Nuisance-Function Prediction for Causal Estimation

Cong Cao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Prediction error is widely used to evaluate nuisance-function estimators in causal inference, but its relationship with causal estimator performance may differ across performance measures. We studied this question in a partially linear model using Monte Carlo simulations. We compared ordinary least squares (OLS), generalized additive models (GAMs), XGBoost, and Double Machine Learning with XGBoost (DML-XGBoost), evaluating nuisance-function prediction error, bias, RMSE, and 95% confidence interval coverage. We also examined a simple joint-error measure based on the absolute cross-product of estimation errors from the exposure and outcome nuisance functions. Across the simulated settings, XGBoost had the lowest RMSE among the non-oracle methods, while DML-XGBoost generally provided better confidence interval coverage. Prediction error did not consistently track causal bias across methods and settings, and the method with the best point-estimation performance did not necessarily have the best confidence interval coverage. The joint-error measure was only weakly associated with causal bias and did not provide a useful standalone measure of causal performance. These results suggest that prediction error is useful for assessing nuisance-function estimation, but it should not be treated as a direct measure of the quality of the resulting causal estimator.

Keywords: causal inference; nuisance functions; double machine learning; causal estimation

1 Introduction

Causal effect estimation with observational data often requires estimating nuisance functions that describe the relationships between covariates, the exposure, and the outcome. Flexible regression and machine-learning methods allow these functions to be estimated without imposing restrictive parametric assumptions, and they are now widely used in causal inference [8, 9]. Double Machine Learning (DML), for example, combines flexible nuisance-function estimation with Neyman-orthogonal scores and cross-fitting to reduce the impact of nuisance estimation error on the target causal parameter [3, 5, 12, 4, 1]. In practice, however, nuisance models are often evaluated using the same prediction measures used in ordinary supervised learning. This raises a simple question: does better prediction of the nuisance functions also mean better causal estimation?

Prediction error is a natural way to evaluate nuisance models because estimating a nuisance function is itself a prediction problem. Cross-validation error and mean squared error are commonly used to compare learners and tune their hyperparameters [7]. Recent studies have also considered whether prediction performance can help with causal analysis. Bach et al. [2] studied learner choice, hyperparameter tuning, and data-splitting decisions in Double Machine Learning. They found that predictive performance can be useful for model selection, but its relationship with causal performance depends on the learner and the causal setting. Doutreligne and Varoquaux [6] compared standard predictive criteria, including mean squared error, with criteria based more directly on causal objectives using simulations and several health-care datasets. These studies focus mainly on using prediction performance to choose models or learners. We instead ask whether the prediction error of a fitted nuisance function can be used to anticipate how well the resulting causal estimator performs. This question is important because good predictive performance does not necessarily imply good performance for a causal estimand [11, 10].

The issue is more complicated when a causal estimator depends on more than one nuisance function. In the partially linear model with a continuous exposure, both the exposure regression and the outcome regression enter the DML score [3, 4]. Their errors can therefore affect the causal estimator together. Orthogonality reduces the leading first-order effect of nuisance estimation error, but it does not remove finite-sample differences caused by nuisance estimation [3, 12, 1]. We therefore examine both the prediction error of each nuisance function and a simple measure of their joint error. We then ask whether these measures are related to finite-sample causal performance. The prediction error is measured for the nuisance functions, while bias, RMSE, and confidence interval coverage are measured for the causal estimator. Thus, the two sets of measures capture different parts of the analysis.

We study these questions using Monte Carlo simulation in a partially linear causal model with continuous exposure. We compare ordinary least squares (OLS), generalized additive models (GAMs), XGBoost, and Double Machine Learning with XGBoost (DML-XGBoost). We evaluate nuisance-function prediction error, causal bias, RMSE, and 95% confidence interval coverage. We also examine whether a simple measure of joint nuisance-function error is related to finite-sample causal bias. Finally, we consider a clustered-data setting with cluster-level cross-fitting to determine whether the main findings change when observations within clusters are dependent.

References (10)

  • An introduction to double/debiased machine learning
  • Schacht, Victor Chernozhukov, S. Klaassen, and M. Spindler
  • Double/debiased machine learning for treatment and structural parameters
  • Automatic debiased machine learning of causal and structural effects
  • How to select predictive models for decision-making or causal inference
  • The Elements of Statistical Learning: Data Mining, Inference, and Prediction
  • Hernán and James M. Robins
  • Challenges in obtaining valid causal effect estimates with machine learning algorithms
  • Reflection on modern methods: when worlds collide—prediction, machine learning and causal inference
  • Zivich and Alexander Breskin