- Introduced by
- Imbens & Wager (2019); Calonico, Cattaneo & Farrell (2019)
- Year
- 2019
- Type
- Causal inference / quasi-experimental
- Family
- Quasi-experimental / causal inference
What does it do?
Machine learning-augmented regression discontinuity design (ML-RDD) keeps the identification logic of classical RDD, which exploits a known assignment cutoff in a continuous running variable, and uses data-adaptive ML methods for bandwidth selection, conditional mean estimation and covariate adjustment.
It aims to estimate the local average treatment effect at the threshold with fewer manual tuning choices than a standard polynomial RDD.
The intuition behind the method
Classical RDD fits regressions on each side of a cutoff and reads the jump in the outcome at the threshold as the causal effect. The estimate depends on the polynomial order and the bandwidth: a narrow window uses few observations, while a wide window includes units far from the cutoff whose conditional mean may be poorly approximated by the fitted form. ML-RDD replaces some of these fixed choices with data-driven ones, such as cross-validation or regularised learners, so that the fitted shape near the cutoff is determined more by the data. Imbens and Wager's approach takes a different route, choosing a linear estimator at the boundary by convex optimisation under a bound on the second derivative of the regression function. In all cases the causal claim rests on the cutoff design, not on the choice of estimator.
History
Calonico, Cattaneo and Farrell (2019), in Bernoulli 25(4A), 2703-2729, develop optimal mean squared error bandwidth selection for regression discontinuity designs, and the bias-corrected robust inference associated with their work is the basis of the bandwidth and inference procedures described here. Imbens and Wager (2019), Review of Economics and Statistics 101(2), 264-278 (available online in 2018; doi 10.1162/rest_a_00793), propose a finite-sample minimax linear estimator for the discontinuity parameter, obtained by numerical convex optimisation under a bound on the second derivative of the conditional response function. Neither paper is principally a study of machine learning. The label 'machine learning-augmented' RDD is therefore best understood as a later synthesis that groups these data-driven estimation and inference ideas with flexible learners.
When to use it
Use ML-RDD when a sharp or fuzzy cutoff determines treatment, the running variable is continuous and has enough observations near the threshold, and a low-order polynomial fit may be misspecified, for example when the conditional mean is nonlinear or several pre-treatment covariates are worth adjusting for. Data-driven selection is most useful in large administrative datasets, where the analyst would otherwise choose the order and window by judgement. Do not use it when units can precisely manipulate the running variable around the cutoff (the density test fails), when the sample inside any sensible bandwidth is very small, or when assignment has no natural discontinuity. In those cases a matching or difference-in-differences strategy is more appropriate.
Limitations and considerations
- The estimate is local: it applies to units near the threshold, so extrapolation to units far from the cutoff is not supported by the design.
- Flexible learners need enough observations near the cutoff to be stable; with thin data in the window, a simple local linear estimator may be more reliable.
- The no-manipulation assumption must hold. Estimation flexibility cannot correct a design in which units sort around the threshold.
- Results are harder to explain than a standard local polynomial RDD, and the choice of learner can change the estimate, so the selection rule must be stated in advance.
- Inference for ML-estimated nuisance functions is not covered by the procedures above. Bias-corrected robust standard errors were developed for local polynomial estimators, and the uniform intervals of Imbens and Wager (2019) depend on their second-derivative bound. Intervals for other ML components need separate justification before they are reported.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Data-driven bandwidth and order selection limits the analyst choices that can otherwise be tuned to a preferred result.
- Flexible learners can represent nonlinear conditional mean functions that a fixed low-order polynomial may approximate poorly near the cutoff.
- Covariate adjustment through ML residualisation can improve precision without imposing a fully parametric model on the covariates.
- The estimate uses only observations in a narrow window around the cutoff, which inherits the local identification of classical RDD.
- Bias-corrected robust inference is available for the standard local-polynomial estimator, which gives a benchmark against which ML-based estimates can be compared.
Applications
- Estimating the effect of a scholarship awarded above a score threshold on later outcomes, where many pre-award covariates are available in administrative records.
- Evaluating age-based eligibility rules, using birth date as the running variable and adjusting for covariates with flexible learners.
- Measuring the effect of credit score cutoffs on loan approval and later financial outcomes in large lender datasets.
- Assessing programme eligibility thresholds in social policy with large administrative registries, where the conditional mean may be nonlinear.
How it works
How it works
Check the design first. In a sharp design, treatment is assigned if and only if a continuous running variable X crosses a known threshold c. Before estimating anything, test for manipulation of the running variable around c with a density test, and report the test's bandwidth, null hypothesis and decision rule. Subsequent estimation uses only observations in a neighbourhood of c.
Choose the estimation window with a data-driven rule fixed before estimation, rather than an ad hoc width. The MSE-optimal bandwidth rule of Calonico, Cattaneo and Farrell (2019) is a standard data-driven choice. Cross-validation or regularisation-based selectors from supervised learning can also be used to choose tuning parameters. Report the rule used.
Estimate the conditional mean of the outcome on each side of c with a flexible learner, such as a local polynomial with data-selected order, a lasso, kernel ridge regression or a regression forest. Pre-specify one learner and its tuning procedure, and fix both before looking at the estimate. As a benchmark, compare the result with a standard local linear RD estimate using the same bandwidth. The RD effect is the difference between the estimated right-hand and left-hand limits of the conditional mean at c, as in the mechanics formula.
Formula
\hat{\tau}_{RD} = \lim_{x \downarrow c} \hat{\mu}^+(x) - \lim_{x \uparrow c} \hat{\mu}^-(x)Pre-treatment covariates can be included through ML-based residualisation, for example with double/debiased ML or augmented inverse-probability weighting. Cross-fitting, in which nuisance models are fitted on one part of the sample and evaluated on another, is the usual way to limit overfitting in these schemes. The aim is to reduce residual variance and to check whether covariates remain imbalanced within the bandwidth.
For the local polynomial estimator, report confidence intervals based on the bias-corrected robust standard errors associated with Calonico and colleagues. Where the estimator is the linear estimator of Imbens and Wager (2019), their uniform confidence intervals apply under their assumptions, including a known bound on the second derivative of the regression function. For other ML components, valid inference requires separate verification, and intervals should not be assumed to carry over from the local polynomial case. Report the bandwidth used, the effective sample size inside it, and placebo or donut-hole checks.
Common pitfalls
- Applying any estimator before running a density test for manipulation of the running variable.
- Widening or narrowing the window until the desired result appears, rather than fixing the bandwidth by a stated rule in advance.
- Reading the RD estimate as an effect for units far from the cutoff.
- Omitting the chosen bandwidth and effective sample size from the reported results, which makes replication and sensitivity checks difficult.
- Treating data-driven bandwidth selection as a substitute for a credible cutoff design rather than as a refinement of one.
Frequently asked questions
How does ML-RDD differ from standard local polynomial RDD?
Standard RDD usually fixes a low polynomial order and chooses the bandwidth by a rule tied to that polynomial. ML-RDD replaces or supplements these choices with data-driven selectors, such as cross-validation, regularised learners or regression forests, so that the functional form and window are influenced by the data. The identifying assumption is unchanged.
Does using ML estimation weaken the causal interpretation?
No. Identification comes from the design, namely the discontinuous assignment rule at the cutoff, and not from the estimator. ML methods are used to estimate nuisance functions such as conditional means and to choose the bandwidth. The no-sorting assumption around the cutoff is still required.
What sample size is needed for ML-RDD to outperform standard RDD?
There is no fixed sample size threshold for when ML-RDD outperforms standard RDD. Data-driven selectors need enough observations inside the bandwidth to be stable. When the within-bandwidth sample is small, a simple local linear estimator with a data-driven bandwidth is usually easier to justify.
Can ML-RDD handle fuzzy designs where treatment is not perfectly determined by the cutoff?
In a fuzzy design, the jump in the probability of treatment at the cutoff serves as the instrument for actual treatment. The fuzzy RD estimate is the ratio of the outcome jump at the cutoff to the jump in the treatment probability at the cutoff. Under the standard fuzzy RD assumptions, it estimates the average treatment effect for compliers at the cutoff. Flexible methods can be applied to the regressions on each side of the cutoff, but they do not change what the ratio estimates.
Which software packages implement ML-augmented RDD?
Choose software that implements MSE-optimal bandwidth selection and bias-corrected robust inference, and check its documentation for the density test, covariate balance checks and effective sample size reporting. Packages for flexible learners and causal forests should be checked directly for the features needed before use.
Related methods
Sources
Calonico, S., Cattaneo, M. D., & Farrell, M. H. (2019). Optimal mean squared error bandwidth selection for regression discontinuity designs. Bernoulli, 25(4A), 2703-2729.
Open publication referenceImbens, G., & Wager, S. (2019). Optimized regression discontinuity designs. Review of Economics and Statistics, 101(2), 264-278.
Open DOI reference