Causal isotonic calibration for heterogeneous treatment effects
Lars van der Laan, Ernesto Ulloa-P\'erez, Marco Carone, and Alex, Luedtke

TL;DR
This paper introduces causal isotonic calibration, a nonparametric method for calibrating heterogeneous treatment effect predictors, and a data-efficient cross-calibration variant that ensures robust, distribution-free calibration with minimal data requirements.
Contribution
It presents a novel calibration method that can be applied to any black-box predictor, with theoretical guarantees under weak conditions, improving treatment effect estimation accuracy.
Findings
Achieves fast doubly-robust calibration rates
Works without assuming monotonicity
Can be wrapped around any black-box model
Abstract
We propose causal isotonic calibration, a novel nonparametric method for calibrating predictors of heterogeneous treatment effects. Furthermore, we introduce cross-calibration, a data-efficient variant of calibration that eliminates the need for hold-out calibration sets. Cross-calibration leverages cross-fitted predictors and generates a single calibrated predictor using all available data. Under weak conditions that do not assume monotonicity, we establish that both causal isotonic calibration and cross-calibration achieve fast doubly-robust calibration rates, as long as either the propensity score or outcome regression is estimated accurately in a suitable sense. The proposed causal isotonic calibrator can be wrapped around any black-box learning algorithm, providing robust and distribution-free calibration guarantees while preserving predictive performance.
| scenario | library for | library for |
|---|---|---|
| 1 | logistic regression, GLMnet, GAM, | logistic regression, GLMnet, GAM, |
| GBRT with depth , | GBRT with depth | |
| RF, MARS | ||
| 2 | GLMnet | GLMnet |
| Sample Size | 1000 | 2000 | 5000 | 10000 | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Cal |
|
|
|
|
|
|
|
|
|
||||||||||||||||||
| yes | MARS | -0.01 | -0.02 | 0.01 | -0.01 | 0 | -0.02 | 0 | -0.01 | ||||||||||||||||||
| no | MARS | -0.23 | 0.23 | -0.13 | 0.14 | -0.06 | 0.06 | -0.02 | 0.03 | ||||||||||||||||||
| yes | GAM | -0.04 | 0.02 | -0.01 | 0.03 | 0 | 0.01 | 0 | 0 | ||||||||||||||||||
| no | GAM | -0.08 | 0.04 | -0.04 | 0.01 | -0.02 | 0 | -0.01 | -0.01 | ||||||||||||||||||
| yes | GLM | -0.05 | 0.04 | -0.02 | 0.03 | -0.02 | 0.02 | -0.01 | 0.02 | ||||||||||||||||||
| no | GLM | -0.02 | 0.05 | 0.02 | 0.03 | 0.02 | 0.01 | 0.03 | 0.02 | ||||||||||||||||||
| yes | GLMnet | -0.05 | 0.04 | -0.02 | 0.02 | -0.02 | 0.02 | -0.01 | 0.02 | ||||||||||||||||||
| no | GLMnet | 0 | 0.03 | 0.03 | 0.02 | 0.03 | 0.01 | 0.03 | 0.01 | ||||||||||||||||||
| yes | RF | -0.06 | 0.03 | -0.01 | 0.02 | -0.01 | -0.01 | -0.01 | 0 | ||||||||||||||||||
| no | RF | -0.34 | 0.34 | -0.3 | 0.31 | -0.28 | 0.27 | -0.24 | 0.25 | ||||||||||||||||||
| yes | GBRT 2 | -0.03 | 0 | 0 | -0.01 | -0.01 | -0.01 | 0 | 0 | ||||||||||||||||||
| no | GBRT 2 | -0.15 | 0.14 | -0.05 | 0.05 | -0.01 | -0.03 | 0.01 | -0.04 | ||||||||||||||||||
| yes | GBRT 5 | -0.01 | -0.03 | 0.03 | -0.06 | 0.03 | -0.06 | 0.03 | -0.05 | ||||||||||||||||||
| no | GBRT 5 | -0.49 | 0.51 | -0.34 | 0.37 | -0.19 | 0.2 | -0.1 | 0.12 | ||||||||||||||||||
| yes | GBRT 8 | -0.02 | -0.03 | 0.02 | -0.06 | 0.05 | -0.09 | 0.05 | -0.09 | ||||||||||||||||||
| no | GBRT 8 | -0.67 | 0.74 | -0.54 | 0.6 | -0.39 | 0.42 | -0.27 | 0.32 | ||||||||||||||||||
| Sample Size | 1000 | 2000 | 5000 | 10000 | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Cal |
|
|
|
|
|
|
|
|
|
||||||||||||||||||
| yes | GLMnet | -0.01 | 0.01 | -0.04 | -0.01 | -0.04 | -0.01 | -0.03 | -0.01 | ||||||||||||||||||
| no | GLMnet | -0.11 | -0.07 | -0.11 | -0.06 | -0.08 | -0.04 | -0.07 | -0.03 | ||||||||||||||||||
| yes |
|
-0.11 | -0.08 | -0.12 | -0.08 | -0.12 | -0.07 | -0.1 | -0.06 | ||||||||||||||||||
| no |
|
0.09 | 0.03 | 0.05 | 0.01 | 0.04 | 0.01 | 0.03 | 0 | ||||||||||||||||||
| yes |
|
-0.03 | -0.01 | -0.03 | -0.02 | -0.04 | -0.02 | -0.03 | -0.02 | ||||||||||||||||||
| no |
|
-0.8 | -0.41 | -0.72 | -0.38 | -0.62 | -0.33 | -0.54 | -0.29 | ||||||||||||||||||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Causal Inference Techniques · Statistical Methods and Inference · Statistical Methods and Bayesian Inference
Causal isotonic calibration
for heterogeneous treatment effects
Lars van der Laan
Department of Statistics, University of Washington, USA
Ernesto Ulloa-Pérez
Department of Biostatistics, Epidemiology, and Informatics, University of Pennsylvania, USA
Marco Carone
Department of Biostatistics, University of Washington, USA
Department of Statistics, University of Washington, USA
Alex Luedtke
Department of Statistics, University of Washington, USA
Department of Biostatistics, University of Washington, USA
(Version 2: June 5, 2023)
Abstract
We propose causal isotonic calibration, a novel nonparametric method for calibrating predictors of heterogeneous treatment effects. Furthermore, we introduce cross-calibration, a data-efficient variant of calibration that eliminates the need for hold-out calibration sets. Cross-calibration leverages cross-fitted predictors and generates a single calibrated predictor using all available data. Under weak conditions that do not assume monotonicity, we establish that both causal isotonic calibration and cross-calibration achieve fast doubly-robust calibration rates, as long as either the propensity score or outcome regression is estimated accurately in a suitable sense. The proposed causal isotonic calibrator can be wrapped around any black-box learning algorithm, providing robust and distribution-free calibration guarantees while preserving predictive performance.
††* These authors contributed equally to this work.
1 Introduction
Estimation of causal effects via both randomized experiments and observational studies is critical to understanding the effects of interventions and informing policy. Moreover, it is often the case that understanding treatment effect heterogeneity can provide more insights than overall population effects (Obermeyer and Emanuel, 2016; Athey, 2017). For instance, a study of treatment effect heterogeneity can help elucidate the mechanism of an intervention, design policies targeted to subpopulations that can most benefit (Imbens and Wooldridge, 2009), and predict the effect of interventions in populations other than the ones in which they were developed. These necessities have arisen in a wide range of fields, such as marketing (Devriendt et al., 2018), the social sciences (Imbens and Wooldridge, 2009), and the health sciences (Kent et al., 2018). For example, in the health sciences, heterogeneous treatment effects (HTEs) are of high importance to understanding and quantifying how certain exposures or interventions affect the health of various subpopulations (Dahabreh et al., 2016; Lee et al., 2020). Potential applications include prioritizing treatment to certain sub-populations when treatment resources are scarce, or individualizing treatment assignments when the treatment can have no effect (or even be harmful) in certain subpopulations (Dahabreh et al., 2016). As an example, treatment assignment based on risk scores has been used to provide clinical guidance in cardiovascular disease prevention (Lloyd-Jones et al., 2019) and to improve decision-making in oncology (Collins and Varmus, 2015; Cucchiara et al., 2018).
A wide range of statistical methods are available for assessing HTEs, with recent examples including Wager and Athey (2018), Carnegie et al. (2019), Lee et al. (2020), Yadlowsky et al. (2021), and Nie and Wager (2021), among others. In particular, many methods, including Imbens and Wooldridge (2009) and Dominici et al. (2020), scrutinize HTEs via conditional average treatment effects (CATEs). The CATE is the difference in the conditional mean of the counterfactual outcome corresponding to treatment versus control given covariates, which can be defined at a group or individual level. When interest lies in predicting treatment effect, the CATE can be viewed as the oracle predictor of the individual treatment effect (ITE) that can feasibly be learned from data. Optimal treatment rules have been derived based on the sign of the CATE estimator (Murphy, 2003; Robins, 2004), with more recent works incorporating the use of flexible CATE estimators (Luedtke and van der Laan, 2016). Thus, due to its wide applicability and scientific relevance, CATE estimation has been of great interest in statistics and data science.
Regardless of its quality as a proxy for the true CATE, it is generally accepted that predictions from a given treatment effect predictor can still be useful for decision-making. However, theoretical guarantees for rational decision-making using a given treatment effect predictor typically hinge on the predictor being a good approximation of the true CATE. Accurate CATE estimation can be challenging because the nuisance parameters involved can be non-smooth, high-dimensional, or otherwise difficult to model correctly. Additionally, a CATE estimator obtained from samples of one population, regardless of its quality, may not generalize well to different target populations (Frangakis, 2009). Usually, CATE estimators (often referred to as learners) build upon estimators of the conditional mean outcome given covariates and treatment level (i.e., outcome regression), the probability of treatment given covariates (i.e., propensity score), or both. For instance, plug-in estimators such as those studied in Künzel et al. (2019) — so-called T-learners — are obtained by taking the difference between estimators of the outcome regression obtained separately for each treatment level. T-learners can suffer in performance because they rely on estimation of nuisance parameters that are at least as non-smooth or high-dimensional as the CATE, and are prone to the misspecification of involved outcome regression models; these issues can result in slow convergence or inconsistency of the CATE estimator. Doubly-robust and Neyman-orthogonal CATE estimation strategies like the DR-learner and R-learner (Wager and Athey, 2018; Foster and Syrgkanis, 2019; Nie and Wager, 2021; Kennedy, 2020) mitigate some of these issues by allowing for comparatively fast CATE estimation rates even when nuisance parameters are estimated at slow rates. However, while less sensitive to the learning complexity of the nuisance parameters, their predictive accuracy in finite-samples still relies on potentially strong smoothness assumptions on the CATE. Even when the CATE is estimated consistently, predictions based on statistical learning methods often produce biased predictions that overestimate or underestimate the true CATE in the extremes of the predicted values (van Klaveren et al., 2019; Dwivedi et al., 2020). For example, the ‘pooled cohort equations’ (Goff et al., 2014) risk model used to predict cardiovascular disease has been found to underestimate risk in patients with lower socioeconomic status or chronic inflammatory diseases (Lloyd-Jones et al., 2019). The implications of biased treatment effect predictors are profound when used to guide treatment decisions and can range from harmful use to withholding of treatment (van Calster et al., 2019).
Due to the consequence of treatment decision-making, it is essential to guarantee, under minimal assumptions, that treatment effect predictions are representative in magnitude and sign of the actual effects, even when the predictor is a poor approximation of the CATE. In prediction settings, the aim of bestowing these properties on a given predictor is commonly called calibration. A calibrated treatment effect predictor has the property that the average treatment effect among individuals with identical predictions is close to their shared prediction value. Such a predictor is more robust against the over-or-under estimation of the CATE in extremes of predicted values. It also has the property that the best predictor of the ITE given the predictor is the predictor itself, which facilitates transparent treatment decision-making. In particular, the optimal treatment rule (Murphy, 2003) given only information provided by the predictor is the one that assigns the treatment predicted to be most beneficial. Consequently, the rule implied by a perfectly calibrated predictor is at least as favorable as the best possible static treatment rule that ignores HTEs. While complementing one another, the aims of calibration and prediction are fundamentally different. For instance, a constant treatment effect predictor can be well-calibrated even though it is a poor predictor of treatment effect heterogeneity (Gupta et al., 2020). In view of this, calibration methods are typically designed to be wrapped around a given black-box prediction pipeline to provide strong calibration guarantees while preserving predictive performance, thereby mitigating several prediction challenges mentioned previously.
In the machine learning literature, calibration has been widely used to enhance prediction models for classification and regression (Bella et al., 2010). However, due to the comparatively little research on calibration of treatment effect predictors, such benefits have not been realized to the same extent in the context of heterogeneous treatment effect prediction. Several works have contributed to addressing this gap in the literature. Brooks et al. (2012) propose a targeted (or debiased) machine learning framework (van der Laan and Rose, 2011) for within-bins calibration that could be applied to the CATE setting. Zhang et al. (2016) and Josey et al. (2022) consider calibration of marginal treatment effect estimates for new populations but do not consider CATEs. Dwivedi et al. (2020) consider estimating calibration error of CATE predictors for subgroup discovery using randomized experimental data. Chernozhukov et al. (2018) and Leng and Dimmery (2021) propose CATE methods for linear calibration, a weaker form of calibration, in randomized experiments. For causal forests, Athey and Wager (2019) evaluate model calibration using a doubly-robust estimator of the ATE among observations above or below the median predicted CATE. Lei and Candès (2021) propose conformal inference methods for constructing calibrated prediction intervals for the ITE from a given predictor but do not consider calibration of the predictor itself. Xu and Yadlowsky (2022) propose a nonparametric doubly-robust estimator of the calibration error of a given treatment effect predictor, which could be used to detect uncalibrated predictors. Our work builds upon the above works by providing a nonparametric doubly-robust method for calibrating treatment effect predictors in general settings.
This paper is organized as follows. In Section 2, we introduce our notation and formally define calibration. There we also provide an overview of traditional calibration methods. In Section 3, we outline our proposed approach, and we describe its theoretical properties in Section 4. In Section 5, we examine the performance of our method in simulations.
2 Statistical Setup
2.1 Notation and Definitions
Suppose we observe independent and identically distributed realizations of data unit drawn from a distribution , where is a vector of baseline covariates, is a binary indicator of treatment, and is an outcome. For instance, can include a patient’s demographic characteristics and medical history, can indicate whether an individual is treated (1) or not (0), and could be a binary indicator of a successful clinical outcome. We denote by the observed dataset, with representing the observation on the study unit.
For covariate value and treatment level , we denote by the propensity score and by the outcome regression. The individual treatment effect is , where represents the potential outcome obtained by setting . As convention, we take higher values of to be desirable. We assume that the contrast equals the true CATE, , which holds under causal assumptions (Rubin, 1974). Throughout, we denote by the norm, that is, for any given -square integrable function , where is the marginal distribution of implied by . We deliberately take as convention that the median of a set equals the order statistic of this set, where .
Let be a treatment effect predictor, that is, a function that maps a realization of to a treatment effect prediction . In practice, can be obtained using any black-box algorithm. Below, we first consider to be fixed, though we later address situations in which is learned from the data used for subsequent calibration. We define the calibration function as the conditional mean of the individual treatment effect given treatment effect score value . By the tower property, , and so, expectations only involving and other functions of can be taken with respect to .
The solution to an isotonic regression problem is typically nonunique. Throughout this text, we follow Groeneboom and Lopuhaa (1993) in taking the unique càdlàg piece-wise constant solution of the isotonic regression problem that can only take jumps at observed values of the predictor.
2.2 Measuring Calibration and the Calibration-Distortion Decomposition
Various definitions of risk predictor calibration have been proposed in the literature — see Gupta and Ramdas (2021) and Gupta et al. (2020) for a review. Here, we outline our definition of calibration and its rationale. Given a treatment effect predictor , the best predictor of the individual treatment effect in terms of MSE is . By the law of total expectation, this predictor has the property that, for any interval ,
[TABLE]
Equation 1 indicates that is perfectly calibrated on . Therefore, when a given predictor is such that with -probability one, is said to be perfectly calibrated (Gupta et al., 2020) for the CATE — for brevity, we omit “for the CATE” hereafter when the type of calibration being referred to is clear from context.
In general, perfect calibration cannot realistically be achieved in finite samples. A more modest goal is for the predictor to be approximately calibrated in that is close to across all covariate values . This naturally suggests the calibration measure:
[TABLE]
This measure, referred to as the -expected calibration error, arises both in prediction (Gupta et al., 2020) and in the assessment of treatment effect heterogeneity (Xu and Yadlowsky, 2022). We note that is zero if is perfectly calibrated. Additionally, averaging in with respect to measures other than could be more relevant in certain applications; such cases can occur, for instance, when there is a change of population that results in covariate shift and we are interested in measuring how well is calibrated in the new population.
Interestingly, the above calibration measure plays a role in a decomposition of the mean squared error (MSE) between the treatment predictor and the true CATE, in that
[TABLE]
with a quantity we term the distortion of . We refer to the above as a calibration-distortion decomposition of the MSE. A consequence of the calibration-distortion decomposition is that MSE-consistent CATE estimators are also calibrated asymptotically. However, particularly in settings where the covariates are high-dimensional or the CATE is nonsmooth, the calibration error rate for such predictors can be arbitrarily slow — this is discussed further after Theorem 1.
To interpret , we find it helpful to envision a scenario in which a distorted message is passed between two persons. The goal is for Person 2 to discern the value of , where the value of is only known to Person 1. Person 1 transmits , which is then distorted through a function and received by Person 2. Person 2 knows the functions and , and may use this information to try to discern . If is one-to-one, can be discerned by simply applying to the received message . More generally, whenever there exists a function such that , Person 2 can recover the value of . For example, if then is the identity function. If no such function exists, it may not be possible for Person 2 to recover the value of . Instead, they may predict based on via . Averaged over , the MSE of this approach is precisely . See Equation 3 in Kuleshov and Liang (2015) for a related decomposition of derived in the context of probability forecasting.
The calibration-distortion decomposition shows that, at a given level of distortion, better-calibrated treatment effect predictors have lower MSE for the true CATE function. We will explore this fact later in this work when showing that, in addition to improving calibration, our proposed calibration procedure can improve the MSE of CATE predictors.
2.3 Calibrating Predictors: desiderata and classical methods
In most calibration methods, the key goal is to find a function of a given predictor such that , where refers to the composed predictor . A mapping that pursues this objective is referred to as a calibrator. Ideally, a calibrator for constructed from the dataset should satisfy the following desiderata:
- Property 1:
tends to zero quickly as grows; 2. Property 2:
and are comparably predictive of .
Property 1 states the primary objective of a calibrator, that is, to yield a well-calibrated predictor. Property 2 requires that the calibrator not destroy the predictive power of the initial predictor in the pursuit of Property 1, which would occur if the calibration term in decomposition (3) were made small at the cost of dramatic inflation of the distortion term.
In the traditional setting of classification and regression, a natural aim is to learn, for , a predictor of the outcome among individuals with treatment . The best possible such predictor is given by the treatment-specific outcome regression . For , is said to be calibrated for the outcome regression if for -almost every . Such a calibrated predictor can be obtained using existing calibration methods for regression (Huang et al., 2020), which we review in the next paragraph. It is natural to wonder, then, whether existing calibration approaches can be directly used to calibrate for the CATE. As a concrete example, given predictors and of and , a natural CATE predictor is the T-learner . However, even if and are calibrated for their respective outcome regressions, the predictor can still be poorly calibrated for the CATE. Indeed, in settings with treatment-outcome confounding, T-learners can be poorly calibrated when the calibrated predictors and are poor approximations of their respective outcome regressions. As an extreme example, suppose that equals the constant predictor for , which is perfectly calibrated for the outcome regression. Then, the corresponding T-learner typically has poor calibration for the CATE in observational settings.
In classification and regression settings (Huang et al., 2020), the most commonly used calibration methods include Platt’s scaling (Platt et al., 1999), histogram binning (Zadrozny and Elkan, 2001), Bayesian binning into quantiles (Naeini et al., 2015), and isotonic calibration (Zadrozny and Elkan, 2002; Niculescu-Mizil and Caruana, 2005). Broadly, Platt’s scaling is designed for binary outcomes and uses the estimated values of the predictor to fit the logistic regression model
[TABLE]
with . While it typically satisfies Property 2, Platt’s scaling is based on strong parametric assumptions and, as a consequence, may lead to predictions with significant calibration error, even asymptotically (Gupta et al., 2020). Nevertheless, Platt’s scaling may be preferred when limited data is available. Histogram or quantile binning involves partitioning the sorted values of the predictor into a fixed number of bins. Given an initial prediction, the calibrated prediction is the empirical mean of the observed outcome values within the corresponding prediction bin. A significant limitation of histogram binning is that it requires a priori specification of the number of bins. Selecting too few bins can significantly degrade the predictive power of the calibrated predictor, whereas selecting too many bins can lead to poor calibration. Bayesian binning improves upon histogram binning by considering multiple binning models and their combinations; nevertheless, it still requires pre-specification of binning models and prior distributions.
Isotonic calibration is a histogram binning method that learns the bins from data using isotonic regression, a nonparametric method traditionally used for estimating monotone functions (Barlow and Brunk, 1972; Martino et al., 2019; Huang et al., 2020). Specifically, the bins are selected by minimizing an empirical MSE criterion under the constraint that the calibrated predictor is a nondecreasing monotone transformation of the original predictor. Isotonic calibration is motivated by the heuristic that, for a good predictor , the calibration function should be approximately monotone as a function of . For instance, when , the map is the identity function. Despite its popularity and strong performance in practice (Zadrozny and Elkan, 2002; Niculescu-Mizil and Caruana, 2005; Gupta and Ramdas, 2021), to date, whether isotonic calibration satisfies distribution-free calibration guarantees remains an open question (Gupta, 2022). In this work, we will show that isotonic calibration satisfies a distribution-free calibration guarantee in the sense of Property 1. We further establish that Property 2 holds, in that the isotonic selection criterion ensures that the calibrated predictor is at least as predictive as the original predictor up to negligible error.
3 Causal Isotonic Calibration
In real-world experiments, Dwivedi et al. (2020) found empirically that state-of-the-art CATE estimators tend to be poorly calibrated. However, strikingly, the authors found that such CATE predictors can often still correctly rank the average treatment effect among subgroups defined by bins of the predicted effects. These findings support the heuristic that the calibration function is often approximately monotone as a function of the predictor . This heuristic makes extending isotonic calibration to the CATE setting especially appealing since the monotonicity constraint ensures that the calibrated predictions preserve the (non-strict) ranking of the original predictions.
Inspired by isotonic calibration, we propose a doubly-robust calibration method for treatment effects, which we refer to as causal isotonic calibration. Causal isotonic calibration takes a given predictor trained on some dataset and performs calibration using an independent (or hold-out) dataset. Mechanistically, causal isotonic calibration first automatically learns uncalibrated regions of the given predictor. Calibrated predictions are then obtained by consolidating individual predictions within each region into a single value using a doubly-robust estimator of the ATE. In addition, we introduce a novel data-efficient variant of calibration which we refer to as cross-calibration. In contrast with the standard calibration approach, causal isotonic cross-calibration takes cross-fitted predictors and outputs a single calibrated predictor obtained using all available data. Our methods can be implemented using standard isotonic regression software.
Let be a given treatment effect predictor assumed, for now, to have been built using an external dataset, and suppose that is the available calibration dataset. In general, we can calibrate the predictor using regression-based calibration methods by employing an appropriate surrogate outcome for the CATE. For both experimental and observational settings, a surrogate outcome with favorable efficiency and robustness properties is the pseudo-outcome defined via the mapping
[TABLE]
with representing a realization of the data unit. This pseudo-outcome has been used as surrogate for the CATE in previous methods for estimating , including the DR-learner (Luedtke and van der Laan, 2016; Kennedy, 2020). If were known, an external predictor could be calibrated using by isotonic regression of the pseudo-outcomes onto the calibration sample predictions . However, depends on and , which are usually unknown and must be estimated.
A natural approach for calibrating treatment effect predictors using isotonic regression is as follows. First, define as the estimated pseudo-outcome function based on estimates and derived from . Then, a calibrated predictor is given by , where the calibrator is found via isotonic regression as a minimizer over of the empirical least-squares risk function
[TABLE]
However, this optimization problem requires a double use of : once, for creating the pseudo-outcomes , and a second time, in the calibration step. This double usage could lead to over-fitting (Kennedy, 2020), and so we recommend obtaining pseudo-outcomes via sample splitting or cross-fitting. Sample splitting involves randomly partitioning into , with used to estimate and , and used to carry out the calibration step — see Algorithm 1 for details. Cross-fitting improves upon sample splitting by using all available data to estimate and as well as to carry out the calibration step. Algorithm 4, outlined in Appendix B, is the cross-fitted variant of Algorithm 1.
In practice, the external dataset used to construct for input into Algorithm 1 is likely to arise from a sample splitting approach wherein a large dataset is split in two, with one half used to estimate and the other to calibrate it. This naturally leads to the question of whether there is an approach that fully utilizes the entire dataset for both fitting an initial estimate of and calibration. Algorithm 2 describes causal isotonic cross-calibration, which provides a means to accomplish precisely this. In brief, this approach applies Algorithm 1 a total of times on different splits of the data, where for each split an initial predictor of is fitted based on the first subset of the data and this predictor is calibrated using the second subset. These calibrated predictors are then aggregated via a pointwise median. Interestingly, other aggregation strategies, such as pointwise averaging, can lead to uncalibrated predictions (Gneiting and Ranjan, 2013; Rahaman and Thiery, 2020). A computationally simpler variant of Algorithm 2 is given by Algorithm 3. In this implementation, a single isotonic regression is performed using the pooled out-of-fold predictions; this variant may also yield more stable performance in finite-samples than Algorithm 2 — see Section 2.1.2 of Xu and Yadlowsky (2022) for a related discussion in the context of debiased machine learning.
4 Large-Sample Theoretical Properties
We now present theory for causal isotonic calibration. We obtain results for causal isotonic calibration described by Algorithm 1 applied to a fixed predictor . We also establish MSE guarantees for the calibrated predictor and argue that the proposed calibrator satisfies Properties 1 and 2. We extend our results to the procedure of Algorithm 2.
For ease of presentation, we only establish theoretical results for the case where the nuisance estimators are obtained using sample splitting. With minor modifications, our results can be readily extended to cross-fitting by arguing along the lines of Newey and Robins (2018). In that spirit, we assume that the available data is the union of a training dataset and a calibration dataset of sizes and , respectively, with and as . Let be the calibrated predictor obtained from Algorithm 1 using , and where the estimated pseudo-outcome is obtained by substituting estimates and of and into (4).
Condition 1** (bounded outcome support).**
The -support of is a uniformly bounded subset of .
Condition 2** (positivity).**
There exists such that .
Condition 3** (independence).**
Estimators and do not use any data in .
Condition 4** (bounded range of , , ).**
There exist such that for
Condition 5** (bounded variation of best predictor).**
The function such that is of bounded total variation.
It is worth noting that the initial predictor and its best monotone transformation can be arbitrarily poor CATE predictors. Condition 1 holds trivially when outcomes are binary, but even continuous outcomes are often known to satisfy fixed bounds (e.g., physiologic bound, limit of detection of instrument) in applications. Condition 2 is standard in causal inference and requires that all individuals have a positive probability of being assigned to either treatment or control. Condition 3 follows as a direct consequence of the sample splitting approach, because the estimators are obtained from an independent sample from the data used to carry the calibration step. Condition 4 requires that the estimators of the outcome regression and propensity score be bounded; this can be enforced, for example, by threshholding when estimating these regression functions. Condition 5 excludes cases in which the best possible predictor of the CATE given only the initial predictor has pathological behavior, in the sense that it has infinite variation norm as a (univariate) mapping of . We stress here that isotonic regression is used only as a tool for calibration, and our theoretical guarantees do not require any monotonicity on components of the data-generating mechanism — for example, need not be monotone as a function of .
The following theorem establishes the calibration rate of the predictor obtained using causal isotonic calibration.
Theorem 1** ( is well-calibrated).**
Under Conditions 1–5, as , it holds that
[TABLE]
The calibration rate can be expressed as the sum of an oracle calibration rate and the rate of a second-order cross-product bias term involving nuisance estimators. Notably, the causal isotonic calibrator rate can satisfy Property 1 at the oracle rate so long as shrinks no slower than , which requires that one or both of and is estimated well in an appropriate sense. If is known, as in most randomized experiments, the fast calibration rate of can be achieved even when is inconsistent, thereby providing distribution-free calibration guarantees irrespective of the smoothness of the outcome regression or dimension of the covariate vector. When is unknown, the oracle rate of may not be achievable if the propensity score and outcome regression are insufficiently smooth relative to the dimension of the covariate vector (Kennedy, 2020; Kennedy et al., 2022).
It is interesting to contrast the calibration guarantee in Theorem 1 with existing MSE guarantees for DR-learners (Kennedy, 2020) since, in view of (3), they also provide calibration guarantees. While the MSE estimation rates for the CATE depend on the dimension and smoothness of , the curse of dimensionality for our calibration rates only manifests itself in the doubly-robust cross-remainder term that involves nuisance estimation rates. For instance, when , if and are known to be Hölder smooth with exponent , the calibration rate implied by Theorem 1 with minimax optimal nuisance estimators is, up to logarithmic factors, . In contrast, if is known to be Hölder smooth with exponent , a minimax optimal estimator of is only guaranteed to achieve an MSE, and therefore calibration, rate of (Kennedy et al., 2022). When the nuisance smoothness satisfies , causal isotonic calibration can achieve the oracle calibration rate of , whereas a minimax optimal CATE estimator is only guaranteed to achieve the same calibration rate under the stringent condition that the smoothness of satisfies .
The following theorem states that the predictor obtained by taking pointwise medians of calibrated predictors is also calibrated.
Theorem 2** (Pointwise median preserves calibration).**
Let be predictors, and define pointwise . Then,
[TABLE]
where the median operation is defined as in Section 2.1.
Under similar conditions, Theorem 2 combined with a generalization of Theorem 1 that handles random (see Theorem 7 in Appendix C.4) establishes that a predictor obtained using causal isotonic cross-calibration (Algorithm 2) has calibration error of order
[TABLE]
as , where and are the outcome regression and propensity score estimators obtained after excluding the fold of the full dataset. In fact, Theorem 2 is valid for any calibrator of the form , where is any random selector that may depend on the covariate value . This suggests that the calibration rate for the median-aggregated calibrator implied by Theorem 2 is conservative as it also holds for the worst-case oracle selector that maximizes calibration error.
We now establish that causal isotonic calibration satisfies Property 2, that is, it maintains the predictive accuracy of the initial predictor . In what follows, predictive accuracy is quantified in terms of MSE. At first glance, the calibration-distortion decomposition appears to raise concerns that causal isotonic calibration may distort so much that the predictive accuracy of may be worse than that of . This possibility may seem especially concerning given that the ouput of isotonic regression is a step function, so that there could be many such that but . The following theorem alleviates this concern by establishing that, up to a remainder term that decays with sample size, the MSE of is no larger than the MSE of the initial CATE predictor . A consequence of this theorem is that causal isotonic calibration does not distort so much as to destroy its predictive performance. To derive this result, we leverage that is in fact a misspecified DR-learner of the univariate CATE function . While isotonic calibrated predictors are calibrated even when is not a monotone function of , we stress that misspecified DR-learners for are typically uncalibrated.
In the theorem below, we define the best isotonic approximation of the CATE given the initial predictor as
[TABLE]
Theorem 3** (Causal isotonic calibration does not inflate MSE much).**
[TABLE]
as . As such, as , the inflation in root MSE from causal isotonic calibration satisfies
[TABLE]
A similar MSE bound can be established for causal isotonic cross-calibration as defined in Algorithm 2.
5 Simulation Studies
5.1 Data-Generating Mechanisms
We examined the behavior of our proposal under two data-generating mechanisms. The first mechanism (Scenario 1) includes a binary outcome whose conditional mean is an additive function (on the logit scale) of non-linear transformations of four confounders with treatment interactions. The second mechanism (Scenario 2) includes instead a continuous outcome with conditional mean linear on covariates and treatment interactions, with more than 100 covariates of which only 20 are true confounders. In both scenarios, the propensity score follows a logistic regression model. All covariates were independent and uniformly distributed on . Sample sizes , , and were considered. Further details are given in Appendix D.1.
5.2 CATE Estimation
We employed the DR-learner algorithm, as outlined by Kennedy (2020), in combination with different supervised learning algorithms to generate uncalibrated predictors of the CATE. In Scenario 1, to estimate the CATE, we implemented gradient-boosted regression trees (GBRT) with maximum depths equal to 2, 5, and 8 (Chen and Guestrin, 2016), random forests (RF) (Breiman, 2001), generalized linear models with lasso regularization (GLMnet) (Friedman et al., 2010), generalized additive models (GAM) (Wood, 2017), and multivariate adaptive regression splines (MARS) (Friedman, 1991). In Scenario 2, we implemented RF, GLMnet, and a combination of variable screening with lasso regularization followed by GBRT with maximum depth determined via cross-validation. We used the implementation of these estimators found in R package sl3 (Coyle et al., 2021). Causal isotonic cross-calibration was implemented using the variant outlined in Algorithm 3. Further details are given in Appendix D.2.
5.3 Performance Metrics
We evaluated the performance of each causal isotonic cross-calibrated predictor relative to its corresponding uncalibrated predictor using three metrics: the calibration measure defined in (1), MSE, and the calibration bias within bins defined by the first and last prediction deciles. The calibration bias within bins is given by the measure in (2) standardized by the probability of falling within each bin. For each simulation iteration, the metric was estimated empirically using an independent sample of size . These metric estimates were then averaged across 1000 simulations. Details on these metrics are provided in Appendix D.3.
5.4 Simulation Results
Results from Scenario 1 are summarized in Figure 1(a). The predictors based on GLMnet and GAM happened to be well-calibrated, and so, causal isotonic calibration did not lead to substantial improvements in calibration error. In contrast, causal isotonic calibration of RF, MARS, and GBRT substantially decreased its calibration error, regardless of tree depth and sample size. In terms of MSE, calibration improved the predictive performance of RF, MARS, GBRT, and preserved the performance of GLMnet and GAM. The calibration bias within bins of prediction was generally smaller after calibration, with a more notable improvement on MARS, RF, and GBRT — see Table 2 in Appendix E.
Results from Scenario 2 are summarized in Figure 1(b). The predictors based on RF and GBRT with GLMnet screening were poorly calibrated, and causal isotonic calibration substantially reduced their calibration error. Calibration did not noticeably change the already small calibration error of the GLMnet predictions; however, calibration substantially reduced the calibration error within quantile bins of its predictions — see Table 3 in Appendix E. Finally, with respect to MSE, causal isotonic calibration improved the performance of RF and GBRT with variable screening, and yielded similar performance to GLMnet.
In Figure 2 of Appendix E, we compared calibration performance using hold-out sets to cross-calibration and found substantial improvements in MSE and calibration by using cross-calibration.
6 Conclusion
In this work, we proposed causal isotonic calibration as a novel method to calibrate treatment effect predictors. In addition, we established that the pointwise median of calibrated predictors is also calibrated. This allowed us to develop a data-efficient variant of causal isotonic calibration using cross-fitted predictors, thereby avoiding the need for a hold-out calibration dataset. Our proposed methods guarantee that, under minimal assumptions, the calibration error defined in (2) vanishes at a fast rate of with little or no loss in predictive power, where denotes the number of observations used for calibration. This property holds regardless of how well the initial predictor approximates the true CATE function. To our knowledge, our method is the first in the literature to directly calibrate CATE predictors without requiring trial data or parametric assumptions. Potential applications of our method include data-driven decision-making with strong robustness guarantees. In future work, it would be interesting to study whether pairing causal isotonic cross-calibration with conformal inference (Lei and Candès, 2021) leads to improved ITE prediction intervals, and whether causal isotonic calibration and shape-constrained inference methods (Westling and Carone, 2020) can be used to construct confidence intervals for .
Our method has limitations. Its calibration guarantees require that either or be estimated sufficiently well. Flexible learning methods can be used to satisfy this condition. If is known, this condition can be trivially met. Hence, our method can be readily used to calibrate CATE predictors and characterize HTEs in clinical trials. For proper calibration, our method requires all confounders to be measured and adjusted for. In future work, it will be important to study CATE calibration in the context of unmeasured confounding. Our strategy could be adapted to construct calibrators for general learning tasks, including E-learning of the conditional relative risk (Jiang et al., 2019; Qiu et al., 2019), proximal causal learning (Tchetgen et al., 2020; Sverdrup and Cui, 2023), and instrumental variable-based learning (Okui et al., 2012; Syrgkanis et al., 2019).
In simulations, we found that causal isotonic cross-calibration led to well-calibrated predictors without sacrificing predictive performance; benefits were especially prominent in high-dimensional settings and for tree-based methods. This is of particularly high relevance given that regression trees have become popular for CATE estimation, due to both their flexibility (Athey and Imbens, 2016) and interpretability (Lee et al., 2020). We also found that cross-calibration substantially improved the MSE of the calibrated predictor relative to hold-out set approaches. In some cases, cross-calibration even improved upon the MSE of the uncalibrated predictor.
Though our focus was on treatment effect estimation, our theoretical arguments can be readily adapted to provide guarantees for isotonic calibration in regression and classification problems. Hence, we have provided an affirmative answer to the open question of whether it is possible to establish distribution-free calibration guarantees for isotonic calibration (Gupta, 2022).
Acknowledgements. Research reported in this publication was supported by NIH grants DP2-LM013340 and R01-HL137808. The content is solely the responsibility of the authors and does not necessarily represent the official views of the funding agencies.
Appendix A Implementation of algorithms in R
R code implementing causal isotonic calibration with user-supplied (cross-fitted) nuisance estimates and predictions is provided in the Github package causalCalibration and can be found at https://github.com/Larsvanderlaan/causalCalibration.
Appendix B Algorithm for causal isotonic calibration with cross-fitted nuisance estimates
Appendix C Technical proofs
Unless stated otherwise, the function denotes a calibrated predictor obtained using Algorithm 1 with a predictor , training dataset , and calibration dataset as described in Section 4.
C.1 Notation & definitions
Let denote the range of the predictor , which is a bounded subset of by Condition 4. We redefine to denote the family of nondecreasing functions on uniformly bounded by
[TABLE]
where the second supremum is over all possible realizations of the training dataset . We necessarily have that is nonrandom and finite by Lemma 5. Redefining to be bounded allows us to directly apply certain maximal inequalities for empirical processes indexed by . Since the isotonic regression estimator is obtained by locally averaging the pseudo-outcome (Barlow and Brunk, 1972), the unconstrained isotonic regression solution satisfies this bound and falls in the interior of this class almost surely. Moreover, is a convex subset of the space of monotone nondecreasing functions. Let denote the space of functions with total variation uniformly bounded by three times the total variation of the function where is as in condition 5. Additionally, let be the family of functions obtained by composing nondecreasing functions in with , and let be the family of functions obtained by composing functions in with . Let , where is the estimated pseudo-outcome function. Finally, for a function class , let denote the covering number (van der Vaart and Wellner, 1996) of and define the uniform entropy integral of by
[TABLE]
where the supremum is taken over all discrete probability distributions . In contrast to the definition provided in van der Vaart and Wellner (1996), we do not define the uniform entropy integral relative to an envelope function for the function class . We can do this since all function classes we consider are uniformly bounded. Thus, any uniformly bounded envelope function will only change the uniform entropy integral as defined in van der Vaart and Wellner (1996) by a constant.
In the results below, we will use the following empirical process notation: for a measurable function , we denote by , and so, letting denote the empirical distribution of , equals with indexing observations of . We also let ; to simplify notation, we omit the dependency in and use instead of . Finally, for two quantities and , we use the expression to mean that is upper bounded by times a universal constant that may only depend on global constants that appear in conditions 1-5
C.2 Technical lemmas
The following lemma is a key component of our proof of Theorem 1.
Lemma 4**.**
For a calibrated predictor obtained using Algorithm 1, and any real-valued function , we have that
[TABLE]
Proof.
Note that can be expressed pointwise for any as for a piecewise constant function determined by coefficients and jump points (Barlow and Brunk, 1972). By monotonicity, we necessarily have and are positive coefficients.
Let denote the least-squares risk used in the isotonic regression step. Fix an arbitrary jump point , and let denote the function . Note that can be chosen to be sufficiently small that, for all , is nondecreasing — for instance, suffices. Thus, for sufficiently small , lies in the space of monotone nondecreasing function for all . In a slight abuse of notation, we let and .
Now, because minimizes over the space of monotone nondecreasing functions, for all , it holds that both and . Moreover, when , . Therefore, if is sufficiently close to 0, the derivative with respect to of must be non-negative, and must be non-positive. Hence, it must be true that
[TABLE]
This, in turn, implies that
[TABLE]
and so, it follows that . Because the jump point was arbitrary, we have that for all functions of the form with coefficients , we can show that
[TABLE]
by taking linear combinations of and noting that the score equations are linear in . The main result of this lemma follows from the fact that, since both and can be expressed in this form, for any real-valued function , we have that
[TABLE]
∎
Lemma 5**.**
Conditions 1, 2 and 4 imply that the function classes , , and are bounded.
Proof.
By Conditions 1, 2 and 4, we know that is bounded uniformly over all observations and realizations of , that is, there exists a finite fixed constant such that . Hence, as defined in the previous section, is uniformly bounded. Moreover, because is bounded, it directly implies that is bounded. Noting that functions of finite variation are bounded, in view of Condition 5, we have that is uniformly bounded by some constant that depends neither on nor . This implies that is uniformly bounded. Finally, because , , and the potential outcomes are uniformly bounded, the function class is also uniformly bounded. ∎
Lemma 6**.**
Under conditions 5 and the conditions of Lemma 5, the function has total variation bounded above by three times the total variation of , where is as in Condition 5.
Proof.
Since the function is nondecreasing and piecewise constant, we have
[TABLE]
for the set , where for some endpoints . The law of total expectation further implies that
[TABLE]
where is such that -almost surely. By Condition 5, the function is of bounded total variation. Heuristically, since is obtained by locally averaging within the bins , its total variation should also be bounded. We show this formally as follows. Note first that
[TABLE]
where and are two bounded, nondecreasing functions satisfying the Jordan decomposition (Theorem 4, Section 5.2 of Royden, 1963). Moreover, we can choose such that is equal to the total variation of . Since , we have that is bounded by .
Since is nondecreasing, by definition, we have that implies that for any and . It follows that both and are nondecreasing; furthermore, they are also bounded. By Theorem 4 of Royden (1963), a function is of bounded variation if and only if it is the difference between two bounded nondecreasing functions. We conclude that is of bounded variation. Moreover, its total variation norm is bounded above by the sum of the total variation norm of and that of . We recall that the total variation of monotone functions is simply the difference between the left and right endpoints of the monotone function, and that
[TABLE]
and similarly for . As a consequence, the total variation norms of and are bounded by the total variation norm of and that of , respectively. Using the sublinearity of the total variation norm, we conclude that has total variation norm bounded above by . ∎
C.3 Proofs of theorems
Proof of Theorem 1
Proof.
Conditioning on , we have that
[TABLE]
The above equality implies that
[TABLE]
Note that, by Lemma 4, for each real-valued function , satisfies the equation
[TABLE]
Setting , we conclude that
[TABLE]
Subtracting the above score equation from the second summand in (6), we obtain that
[TABLE]
This may be written in shorthand as with
[TABLE]
In order to show the desired result, we will bound both and .
We can bound using the law of iterated conditional expectations and the Cauchy-Schwarz inequality. First, conditioning on , we note that
[TABLE]
Next, we express the second norm in (C.3) in terms of and . Recalling that , we have that
[TABLE]
By Condition 2, for some . The latter condition combined with the Cauchy-Schwarz inequality gives that is bounded above by
[TABLE]
By Condition 2, we also have that for any -measurable function
[TABLE]
The same bound holds for . Setting , we conclude
[TABLE]
Together, (C.3) and (LABEL:eq4:theo1) yield that is bounded above by
[TABLE]
We now find an upper bound for . We claim that, conditionally on , the random functions appearing in this empirical process term are contained in fixed and uniformly bounded function classes. To see this, we note that for some and, as a consequence, , a uniformly bounded function class by Lemma 5, -almost surely. By Lemma 6, the function falls in . This further implies that , which is a uniformly bounded function class by Lemma 5.
Next, we let and define , where we recall that . Furthermore, we set , which is a random rate. For any given rate , we define
[TABLE]
As a consequence of the above, we have that . Due to the randomness in , the above cannot be further upper-bounded immediately. To bound the term above, we will take a that is deterministic conditional on , and upper-bound , where the expectation is also taken over . To bound the above term, we will use empirical process techniques with the function classes , , and . To do so, we must study the uniform entropy integral
[TABLE]
for each of these function classes. By Lemma 5, all these function classes are uniformly bounded. We note that, conditional on so that is fixed, is a multivariate Lipschitz transformation of and , and therefore, by Theorem 2.10.20 of van der Vaart and Wellner (1996), we have that Since functions of bounded total variation can be written as a difference of nondecreasing monotone functions, we have by the same theorem that We claim the same upper bound holds up to a constant for and . We establish this explcitly for below; the result for follows from an identical argument. We note that
[TABLE]
where is the push-forward probability measure for the random variable . We now proceed with bounding . Applying Theorem 2.10.20 of van der Vaart and Wellner (1996), we obtain, for any deterministic conditionally on , that
[TABLE]
where the right-hand side can only be random through .
We can now proceed with the main argument that gives a rate of convergence for . First, we note that combining Equations 7 and 10 yields that the event
[TABLE]
occurs with probability one. We then proceed with a peeling argument to account for the randomness of . Let be any given sequence that is deterministic conditional on , and define as the event as well as the random quantity . Then, for any , we have that
[TABLE]
In all the events in the above sum, we have that since . Next, manipulating the inequalities in the above events, we have that
[TABLE]
which implies that the sum in (C.3) is upper bounded by
[TABLE]
Using (C.3) and Markov’s inequality, we find that
[TABLE]
As a consequence of Lemma 5 and the covering number bound for bounded monotone functions given in Theorem 2.7.5 of van der Vaart and Wellner (1996), we have that . Using this fact, we find that
[TABLE]
from which it follows that
[TABLE]
We now choose , which indeed is deterministic conditional on . This choice ensures that and , so that
[TABLE]
where the right-hand side is nonrandom. Thus, we have that
[TABLE]
As a consequence, for every , we can find a constant sufficiently large such that . In other words, we have shown that for our choice of , and so, . The result follows from that the fact that . ∎
Proof of Theorem 2
Proof.
By the definition of the pointwise median stated in Section 2.1, for each covariate value , there exists some random index such that . (We note here that this property may fail for other definitions of the median when is even.) Thus, we have that , and so,
[TABLE]
where the final inequality follows from the Cauchy-Schwarz inequality. Squaring both sides gives that , as desired. ∎
Proof of Theorem 3
Proof.
As before, we may write for some that minimizes the empirical risk
[TABLE]
over . For any given , the one-sided path through lies entirely in since is a convex space. Furthermore, we have that
[TABLE]
for all . The oracle isotonic risk minimizer can be expressed as where . Taking in (13), we obtain the inequality
[TABLE]
Rearranging terms and adding and subtracting in the above inequality implies that . Adding and subtracting yields that
[TABLE]
Next, adding and subtracting , we have that
[TABLE]
where we used the fact that . Next, we note that minimizes the population risk function over . As a consequence, the same argument used to derive (14) can be used to obtain that for any . Taking , we find that
[TABLE]
Combining (C.3) and (17), we obtain that
[TABLE]
Finally, combining (C.3) and (18), we obtain the following inequality
[TABLE]
Adding and subtracting and noting that , we finally obtain the key inequality
[TABLE]
The above is similar to (7) in the proof of Theorem 1, and a similar proof technique is used to establish a convergence rate for . Specifically, we use the Cauchy-Schwarz inequality to bound the first term on the right-hand side of (C.3) in terms of , and empirical process techniques to bound the remaining terms in terms of a function of with high probability. Using a similar approach as for the derivation of (10), we can upper-bound the first term of the right-hand side of (C.3) as . The second term in the right-hand side of (C.3) can be examined as follows. We let , and define , which is finite in view of Conditions 1 and 2. Additionally, we let , and define for any fixed
[TABLE]
Letting , we have that . We note that is a Lipschitz transformation of the function classes and , and so, for every that is deterministic conditional on , we have that
[TABLE]
in view of Theorem 2.10.20 of van der Vaart and Wellner (1996) and the results outlined in Theorem 1, where the right-hand side can only be random through . Finally, the third term in (C.3) can be studied as follows. We let , and for any given , we define
[TABLE]
with . We note that is a Lipschitz transformation of . Hence, similarly as above, for any that is nonrandom conditional on , we have that
[TABLE]
where the right-hand side can only berandom through . Defining , by a similar peeling argument as in Theorem 1, for any rate that is nonrandom conditional on , we can show that
[TABLE]
Then, by the same arguments used in Theorem 1 and the same choice of -random , we can establish that . By the triangle inequality and the fact that implies , we find that . Combining these bounds, we find that . ∎
C.4 Statement and proof of generalized Theorem 1 for random predictor
Here, we consider the same setup as Theorem 1 but allow to be obtained from a random predictor , as long as is built using only data in .
Condition 6** (independence of predictor).**
The predictor is independent of .
Theorem 7** (Calibration with random predictors).**
Provided Conditions 1–6 hold, it holds that
[TABLE]
Proof.
Arguing exactly as in Theorem 1 with taken to be and conditioning on as needed, we obtain the basic inequality stating that
[TABLE]
-almost surely, where . To establish the result of the theorem, we only need to make minor modifications to the proof of Theorem 1 to allow to be replaced by . We sketch those modifications here. A core component of the proof of Theorem 1 involved upper-bounding ; this must now be done with defined as
[TABLE]
with now a random predictor. Previously, we showed that can be bounded by a nonrandom constant depending on , and that is independent of . To do so, we showed that the random function class is fixed conditional on , uniformly bounded, and has uniform entropy integral bounded by the uniform entropy integral of . It suffices to show that this remains true when is replaced by . Since is obtained from , as with , the predictor is deterministic conditionally on . As a consequence, the function classes and , which are now random through , are fixed conditional on . Since is obtained from a Lipschitz transformation of elements of and , we have that is also fixed conditional on . Moreover, by the same argument as in the proof of Lemma 5, which also holds for random , these function classes are uniformly bounded by a nonrandom constant almost surely. Finally, the preservation of the uniform entropy integral argument of the proof of Theorem 1 is valid with random. With these modifications to the proof of Theorem 1, the result follows. ∎
Appendix D Simulation studies
D.1 Data-generating mechanisms
In simulation studies, data units were generated as follows for the two scenarios considered.
Scenario 1:
generate independently from the uniform distribution on ; 2. 2.
given , generate as a Bernoulli random variable with success probability ; 3. 3.
given and , generate as a Bernoulli random variable with success probability .
Scenario 2:
- •
generate independently from the uniform distribution on ;
- •
given , generate as a Bernoulli random variable with success probability ;
- •
given and , generate as a normal random variable with mean and unit variance.
Coefficients of the propensity score logistic regression models above were selected such that the probabilities of treatment were bounded between 0.05 and 0.95 in the low-dimensional case (Scenario 1), and between 0.01 and 0.99 in the high-dimensional setting (Scenario 2).
D.2 Implementation of the causal isotonic calibrator
In our simulation studies, we followed Algorithm 3 to fit the causal isotonic calibrator. In particular, we estimated the components of (i.e., and ) using the Super Learner (van der Laan et al., 2007) in Scenario 1, and penalized regression in Scenario 2. Super learner is an ensemble learning approach that uses cross-validation to select a convex combination of a library of candidate prediction methods. Table 1 shows the library of prediction models we used to estimate and . Note that all of our models for the outcome regression were misspecified in Scenario 1 because of the nonlinearities in the true outcome regression. However, in both scenarios, the propensity score estimator was a consistent estimator of the true propensity score. Additionally, for numerical stability, we imposed a threshold on the estimated propensity scores such that it took values between 0.01 and 0.99. We used the R package sl3 (Coyle et al., 2021) to implement the estimation procedure. Finally, we used the R function isoreg to performed the isotonic regression step.
D.3 Performance metrics
We estimated the performance metrics as follows. With a slight abuse of notation, let denote an arbitrary estimated treatment effect predictor or its calibrated version. For each fitted in a given simulation, we computed its mean squared error by taking the empirical mean of the squared difference between the fitted values of the CATE estimator and ,
[TABLE]
We obtained the estimated calibration measure in two steps. We recall that the calibration measure for a given predictor is
[TABLE]
First, we estimated using an independent dataset of 100,000 observations and fitted gradient boosted regression trees with the fitted values of the treatment effect predictors as covariates and the true CATE as outcome. For each simulation setting and CATE estimator, the depths of each of the regression trees were obtained using cross-validation in a separate simulation. Let denote the estimated function. In the second step, we used the sample to estimate the calibration measure as
[TABLE]
The above measure has the advantage of having less bias with respect to than the plug-in estimator .
Appendix E Simulation results
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Athey (2017) S. Athey. Beyond prediction: Using big data for policy problems. Science , 355(6324):483–485, 2017.
- 2Athey and Imbens (2016) S. Athey and G. Imbens. Recursive partitioning for heterogeneous causal effects. Proceedings of the National Academy of Sciences , 113(27):7353–7360, 2016.
- 3Athey and Wager (2019) S. Athey and S. Wager. Estimating treatment effects with causal forests: An application. Observational Studies , 5(2):37–51, 2019.
- 4Barlow and Brunk (1972) R. E. Barlow and H. D. Brunk. The isotonic regression problem and its dual. Journal of the American Statistical Association , 67(337):140–147, 1972.
- 5Bella et al. (2010) A. Bella, C. Ferri, J. Hernández-Orallo, and M. J. Ramírez-Quintana. Calibration of machine learning models. In Handbook of Research on Machine Learning Applications and Trends: Algorithms, Methods, and Techniques , pages 128–146. IGI Global, 2010.
- 6Breiman (2001) L. Breiman. Random forests. Machine learning , 45(1):5–32, 2001.
- 7Brooks et al. (2012) J. Brooks, M. J. van der Laan, and A. S. Go. Targeted maximum likelihood estimation for prediction calibration. The international journal of biostatistics , 8(1), 2012.
- 8Carnegie et al. (2019) N. Carnegie, V. Dorie, and J. L. Hill. Examining treatment effect heterogeneity using bart. Observational Studies , 5(2):52–70, 2019.
