- Introduced by
- Victor Chernozhukov et al.
- Year
- 2018
- Type
- Semiparametric causal estimation
- Family
- Causal ML
What does it do?
Double/Debiased Machine Learning (DML), introduced by Chernozhukov et al. (2018), is a semiparametric framework for estimating a low-dimensional causal or structural parameter when many control variables must be modelled flexibly.
Machine learning estimates the two nuisance functions, the conditional expectations of the outcome and of the treatment given covariates. These estimates are combined through a Neyman-orthogonal score and cross-fitting. Under the regularity conditions stated in the source paper, including sufficiently fast convergence of the nuisance estimators, the resulting estimator is root-n consistent and approximately normal, so confidence intervals are asymptotically valid. This holds despite the regularization bias and overfitting bias that affect the nuisance estimates.
The intuition behind the method
Suppose you want the effect of a job-training program on wages, controlling for hundreds of background characteristics. Regressing wages on all of these with a penalized method can distort the treatment coefficient, because the penalty shrinks the control effects and the treatment effect is estimated with the same bias. DML first predicts wages and training participation from the background variables, using any flexible learner. It then regresses the wage residual on the participation residual, so the treatment coefficient is learned from the part of each variable the controls cannot explain. Cross-fitting ensures that each residual is computed from predictions made by models that did not see that observation, which keeps overfitting out of the final coefficient.
History
Chernozhukov and co-authors introduced double/debiased machine learning in The Econometrics Journal (2018, volume 21, issue 1); the article was first available online in 2017. The paper addresses inference on a low-dimensional parameter when the nuisance parameters are high-dimensional and estimated by machine learning. It shows that the impact of regularization bias and overfitting can be removed by using Neyman-orthogonal scores together with cross-fitting.
When to use it
Use DML when the parameter of interest is a single coefficient or low-dimensional structural parameter, such as an average treatment effect or the coefficient on a treatment in a partially linear model, and the number of potential controls is large relative to what a classical regression can handle. It is suitable for observational data where unconfoundedness is credible, meaning that all relevant confounders are observed. For average treatment effects, overlap is also required: the probability of treatment given covariates should be bounded away from 0 and 1 over the covariate support. The method also covers instrumental-variable and local-average-treatment-effect settings described in the source paper, provided the corresponding structural assumptions hold. Do not use the basic DML estimator when the main question is how the effect varies across individuals or subgroups; for that, use a heterogeneous-effects method such as Causal Forests or R-learner variants, which build on the same orthogonality idea. Do not use it when important confounders are unmeasured, because the method cannot recover from that omission.
Limitations and considerations
- The target parameter is assumed to enter in a partially linear or similar low-dimensional structure. The basic estimator does not estimate heterogeneous treatment effects across units; extending it to that purpose requires the R-learner or Causal Forest framework.
- Validity depends on unconfoundedness: all relevant confounders must be observed and included in the covariate set. DML does not correct for unmeasured confounding.
- The nuisance learners must converge sufficiently fast for root-n consistency and valid inference to hold. The source paper states this as a regularity condition on the nuisance estimators. In small samples, or where the signal is weak relative to the number of controls, the nuisance estimates may not be accurate enough for the asymptotic approximation to be reliable.
- The method is designed for estimation and inference on a scalar or low-dimensional structural parameter. Applying it to a parameter that is itself high-dimensional requires theoretical extensions beyond the basic estimator.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Under the regularity conditions of the source paper, it gives root-n consistent and approximately normal estimates of the target parameter even when the nuisance functions are estimated with flexible, high-dimensional learners. Neyman orthogonality and cross-fitting remove the impact of regularization bias and overfitting in the nuisance estimates on the target estimate.
- The nuisance learner is not fixed. Any method that predicts the outcome and treatment well enough for the source paper's conditions to hold can be used, so the analyst can choose a learner separately for each nuisance problem.
- Cross-fitting avoids the overfitting that would otherwise come from using the same observations for nuisance learning and final estimation, and each observation still contributes to the final estimate.
- Because the estimator is asymptotically normal, it yields standard errors, confidence intervals and hypothesis tests for the causal parameter, which allows the estimate to be checked against a stated null.
Applications
- Estimating the coefficient on a treatment in a partially linear regression while controlling flexibly for many covariates, such as the wage effect of a training program with hundreds of background variables.
- Estimating the effect of an endogenous treatment in an instrumental-variable setting when there are many controls.
- Estimating the average treatment effect under unconfoundedness in observational studies with large covariate sets, for example in labour economics or clinical research.
- Estimating the local average treatment effect when a valid instrument is available and the covariate set is high-dimensional.
- Estimating price elasticities in industrial organization when many product attributes and market conditions must be partialled out.
How it works
How it works
Two nuisance functions are estimated with machine learning: the conditional expectation of the outcome given covariates, and the conditional expectation of the treatment given covariates. The source paper names random forests, lasso, ridge, deep neural networks, boosted trees, and their hybrids and ensembles as usable learners. The choice of learner is not fixed by the method, provided the regularity conditions for the final estimate hold.
Formula
\hat{\ell}(X) = \mathbb{E}[Y \mid X],\quad \hat{m}(X) = \mathbb{E}[D \mid X]The sample is split into K folds. For each observation, the nuisance predictions are made by a model trained on the other folds, so the prediction never uses the observation itself. Subtracting these out-of-sample predictions from the observed outcome and treatment gives residuals that are not affected by in-sample overfitting. The source paper describes this as an efficient form of data splitting, because every observation still contributes to the final estimate.
Formula
\tilde{Y}_i = Y_i - \hat{\ell}^{-k(i)}(X_i),\quad \tilde{D}_i = D_i - \hat{m}^{-k(i)}(X_i)The estimating equation is built as a Neyman-orthogonal score, so its derivative with respect to the nuisance functions is zero at the true values. This means that small errors in the nuisance estimates have a reduced first-order effect on the estimate of the target parameter. This reduced sensitivity is what allows regularized ML nuisance estimates to be used without transferring their bias to the structural parameter.
Formula
\psi(W;\theta,\eta) = \big(Y - \ell(X) - \theta\,(D - m(X))\big)\cdot(D - m(X)),\quad \partial_{\eta}\mathbb{E}[\psi]\big|_{\eta=\eta_0} = 0The target parameter is obtained by regressing the outcome residual on the treatment residual without an intercept, which is the partialling-out form of the estimator. Under the regularity conditions in the source paper, the estimator is root-n consistent and asymptotically normal, so standard confidence intervals and tests can be constructed from the final-stage score.
Formula
\hat{\theta} = \left(\frac{1}{n}\sum_{i=1}^{n}\tilde{D}_i^2\right)^{-1}\frac{1}{n}\sum_{i=1}^{n}\tilde{D}_i\tilde{Y}_iCommon pitfalls
- Using the same data for nuisance estimation and the final regression without cross-fitting introduces overfitting bias that invalidates inference. Cross-fitting should be applied as the method prescribes.
- The standard error should be based on the variance of the orthogonal score evaluated on the cross-fitted residuals, not on the conventional OLS formula applied to the residual-on-residual regression as if the residuals were observed data. The naive OLS standard error is generally not the correct one. Check that the package in use reports a score-based variance estimate.
- Selecting the nuisance learner using the final causal estimate can induce selection bias. Each nuisance learner should be chosen by its predictive performance for the treatment and for the outcome separately, for example by cross-validation.
- The estimate has a causal interpretation only if the assumed partially linear structure, or the other structural model used, is a reasonable description of the data. If it is not, the estimand may not correspond to a policy-relevant quantity.
- When estimating an average treatment effect, check the distribution of the estimated propensity scores. If many units have propensities near 0 or 1, overlap is weak and estimates become unstable; examine the propensity distribution and consider trimming before reporting.
Frequently asked questions
Why do I need cross-fitting? Can I just use the whole sample for nuisance estimation and then run the partialling-out regression?
Without cross-fitting, the nuisance predictions for each observation are made by a model that was trained on that same observation. This makes the residuals depend on overfitting, which can bias the final estimate and invalidate inference. Cross-fitting computes each residual from a model that did not use that observation, which is the procedure the source paper recommends.
What machine learning methods can I use for the nuisance functions in DML?
The source paper lists random forests, lasso, ridge, deep neural networks, boosted trees, and hybrids and ensembles of these as admissible learners, under weak conditions on the nuisance estimators. In practice, choose each learner by its out-of-sample predictive performance for the treatment and the outcome separately, not by the resulting causal estimate.
Does DML estimate heterogeneous treatment effects, or only an average treatment effect?
The basic form of DML targets a single scalar or low-dimensional structural parameter, such as an average treatment effect under the assumed structure. To estimate how effects vary across subgroups or individuals, extensions such as the R-learner or Causal Forests are needed. These build on the same orthogonality principle but add a second stage for heterogeneity.
Related methods
Sources
Chernozhukov, V., Chetverikov, D., Demirer, M., Duflo, E., Hansen, C., Newey, W., & Robins, J. (2018). Double/debiased machine learning for treatment and structural parameters. The Econometrics Journal, 21(1), C1–C68.
Open DOI reference