- Introduced by
- Hirano, Imbens & Ridder; further developed by Abrevaya, Hsu & Lieli
- Year
- 2003–2015
- Type
- Causal inference / weighted regression
- Family
- Quasi-experimental / causal inference
What does it do?
HTE-IPW extends inverse probability weighting (IPW) from a single average effect to a function of covariates.
Each observation is weighted by the inverse of its estimated probability of receiving the treatment it actually received, which balances observed covariates between treated and untreated units in a pseudo-population. The weighted outcomes are then smoothed or regressed on covariates to estimate conditional average treatment effects (CATEs).
The intuition behind the method
Standard IPW uses weights that correct for who was likely to be treated, so that under unconfoundedness and positivity the weighted comparison estimates the average treatment effect (ATE). HTE-IPW keeps the same weights but asks a different question: how does the effect change across covariate values? For illustration only, suppose a training programme raises earnings on average but the gain is larger for younger participants. After weighting, a smoother of the outcomes on age would show that pattern as a curve rather than a single number. The weights address selection on observed covariates, while the second-stage smoother determines how the effect is mapped across the covariate space, so its flexibility and the available data control how precise that map is.
History
Hirano, Imbens and Ridder (2003) showed that weighting by the inverse of a nonparametric estimate of the propensity score yields an efficient estimate of the average treatment effect, improving on weighting by the true score; this result concerns the ATE and is the weighting foundation on which later work builds. Abrevaya, Hsu and Lieli (2015; first published online in 2014) defined the conditional average treatment effect as a function of continuous covariates under unconfoundedness, proposed inverse-probability-weighted estimators for it, and established pointwise consistency and asymptotic normality for nonparametric and semiparametric versions. They illustrated the approach by estimating the effect of a first-time mother's smoking during pregnancy on birth weight as a function of the mother's age.
When to use it
Choose HTE-IPW when the data are observational with a binary treatment, a rich set of pre-treatment covariates that are believed to capture the main sources of selection, and a substantive question about whether the effect differs across groups or along a continuous moderator. Cross-sectional or panel data with adequate overlap between treated and untreated units are needed, and precision for CATE curves depends heavily on sample size, so this should be considered before choosing a fine-grained moderator. Do not use it when unobserved variables plausibly drive treatment choice, because the weights cannot correct for them; methods that do not rely on unconfoundedness, such as instrumental variables or regression discontinuity, are then more suitable. It is also a poor choice when propensity scores lie near 0 or 1 for most units, since positivity is violated. If only an overall average effect is needed, standard IPW is simpler and avoids the second stage.
Limitations and considerations
- Estimates are valid only under unconfoundedness. If a variable that affects both treatment and outcome is omitted, the propensity scores and every CATE derived from them are biased, and the estimated effect curve may appear to vary when it does not.
- Positivity requires every covariate profile to have a non-zero chance of each treatment level. Near-zero propensity scores produce extreme weights that inflate variance and can let a few units dominate the estimated curve in those regions.
- The pseudo-outcomes are typically much noisier than the observed outcomes, so CATE estimates need more data than an ATE of similar precision. In small samples, subgroup and smoothed estimates are unstable.
- Two estimation stages mean that inference must account for propensity-score estimation as well as smoothing. Intervals that ignore this step cannot be trusted without checking the variance formula for the chosen estimator.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- The pseudo-outcomes are built from the propensity model and do not require a model of the outcome surface, so the weighting step is not exposed to outcome-model misspecification. The second-stage smoother still imposes its own structure, which should be chosen deliberately.
- Because weighting and the second stage are separate steps, the propensity model and the CATE learner can be changed independently, for example a logistic propensity model combined with a local linear or tree-based second stage.
- Second-stage learners can be matched to the data: a linear interaction model suits a few pre-specified moderators, while a nonparametric smoother suits a single continuous moderator.
- It estimates how the effect varies across covariate values, which a single ATE cannot show. This bears directly on targeting, since the estimates can indicate where the effect is largest or whether it changes sign.
Applications
- Identifying which patient subgroups benefit most from a medical intervention in observational clinical data.
- Evaluating whether a job-training or educational programme has larger returns for disadvantaged versus advantaged populations.
- Detecting heterogeneous consumer responses to a pricing or marketing intervention in e-commerce observational logs.
- Personalised policy targeting: using CATE estimates to assign interventions only to units whose estimated benefit exceeds a cost threshold.
- Regulatory economics: assessing whether a new regulation has asymmetric effects on small versus large firms.
- Programme evaluation in social science where full random assignment is infeasible and effect heterogeneity across demographic groups is of primary interest.
How it works
How it works
A model of the probability of treatment given observed covariates is fitted, for example by logistic regression or another probabilistic classifier, giving each unit an estimated propensity score. Units with scores close to 0 or 1 receive very large weights, so trimming or weight stabilisation is commonly applied before the next step.
Formula
\hat{e}(X_i) = P(D_i=1 \mid X_i)Treated units receive weight 1/e(X) and control units receive weight -1/(1-e(X)), as in the formula. Multiplying each outcome by its weight gives a pseudo-outcome whose conditional mean given the covariates equals the CATE under unconfoundedness and positivity. The pseudo-outcome is a noisy quantity for any single unit and is not an estimate of that unit's own treatment effect.
Formula
\hat{w}_i = \frac{D_i}{\hat{e}(X_i)} - \frac{1-D_i}{1-\hat{e}(X_i)}The CATE at covariate value x is estimated by regressing the pseudo-outcomes on the covariates, or by smoothing them in a neighbourhood of x. Local linear regression, kernel smoothing, regression trees and linear interaction models are common second-stage choices. The choice determines how smooth the estimated effect curve is and how much data it needs. Abrevaya, Hsu and Lieli (2015) study fully nonparametric and semiparametric versions of such estimators for continuous covariates.
Formula
\widehat{\tau}(x) = E\!\left[\hat{w}_i \cdot Y_i \mid X_i = x\right]When heterogeneity is hypothesised along a few discrete dimensions, such as age group, region or gender, the CATE within each cell can be estimated from the IPW-weighted outcomes in that cell. For continuous or high-dimensional covariates, a nonparametric smoother or a tree-based method applied to the pseudo-outcomes is more practical.
Variance estimates have to reflect the uncertainty in the estimated propensity score as well as the second-stage smoothing. Bootstrap procedures and influence-function-based variance estimators are the usual routes, and the appropriate choice depends on the chosen estimator; the variance formula should be checked for that estimator. Intervals that treat the estimated weights as fixed should not be assumed valid. Cross-fitting (estimating the propensity score on one part of the sample and applying it to another) is a separate sample-splitting device that reduces dependence between the two stages; it is not itself a variance estimator.
Common pitfalls
- Forgetting to trim or stabilise weights when extreme propensity scores are present, which can make a handful of observations dominate the entire analysis.
- Reporting subgroup CATEs from a flexible learner without correcting for multiple comparisons or regularising the estimates, which leads to false discoveries of heterogeneity.
- Using the same sample for propensity estimation and the second stage without considering the dependence this can add in finite samples; cross-fitting is a common remedy to consider.
- Treating the CATE estimates as causal under unobserved confounding. If the propensity model omits variables, the heterogeneity estimates are biased in the same way as the average effect.
- Selecting subgroups to highlight after seeing the data rather than pre-specifying them, which inflates apparent effect sizes.
Frequently asked questions
How does HTE-IPW differ from standard IPW?
Standard IPW produces a single weighted average, the ATE. HTE-IPW applies similar weights but then estimates how the treatment effect varies as a function of covariates, producing a CATE curve or surface rather than one summary number.
What is the IPW pseudo-outcome and why is it useful?
The pseudo-outcome is the outcome multiplied by its signed IPW weight. Under unconfoundedness and positivity, its conditional expectation given the covariates equals the CATE at that covariate value. This turns CATE estimation into a regression problem, in which any suitable smoother can be applied to the pseudo-outcomes. The pseudo-outcomes are not individual treatment effects, but their conditional averages are the quantity of interest.
Should I use HTE-IPW or a causal forest?
A causal forest is a tree-based nonparametric CATE estimator with a different second stage from a weighted regression. HTE-IPW is more transparent at each step and easier to audit, and its second stage can be any smoother the analyst chooses. Tree-based methods can be more convenient when many candidate moderators are considered without prior specification. For a small number of pre-specified moderators, HTE-IPW with a simple second stage is often easier to interpret.
How large a sample do I need?
No single sample-size threshold applies. Estimating a smooth CATE along a continuous moderator requires considerably more data than estimating one overall ATE, and pre-specified discrete subgroups each need a power consideration before estimation.
What happens if positivity is violated?
If some units have propensity scores near 0 or 1, their weights become extreme and the variance of the estimates grows sharply. Practical remedies include trimming those units from the analysis, using stabilised weights, or switching to a doubly robust estimator that is less sensitive to propensity extremes.
Related methods
Sources
Hirano, K., Imbens, G. W., & Ridder, G. (2003). Efficient estimation of average treatment effects using the estimated propensity score. Econometrica, 71(4), 1161-1189.
Open DOI referenceAbrevaya, J., Hsu, Y.-C., & Lieli, R. P. (2015). Estimating conditional average treatment effects. Journal of Business and Economic Statistics, 33(4), 485-505.
Open DOI reference