Tutorials › Propensity Score Matching and Instrumental Variables › Deriving the HDPS Bias-Reduction Heuristic

Time-Varying and High-Dimensional Confounding · Tutorial 623 of 699

Deriving the HDPS Bias-Reduction Heuristic

You will derive a scale-specific bias score for a binary covariate and learn how to interpret, compare, and diagnose HDPS rankings.

Advanced 11 min read

What You'll Learn

  • Derive the crude-versus-adjusted contrast for a binary covariate under explicit causal assumptions.
  • Express the covariate’s approximate bias contribution as a product of treatment and outcome associations.
  • Calculate and compare scores for hypothetical covariates, retaining their outcome units.
  • Explain why ranking by either treatment association or outcome association alone can miss important covariates.
  • Recognize when interactions, measurement error, sparse data, or overlapping proxies weaken the heuristic.

Why a Covariate’s Priority Depends on Two Associations

In a high-dimensional feature space, many recorded diagnoses, procedures, or history indicators may be candidates for adjustment. A feature is not automatically important because it predicts treatment, nor because it predicts the outcome. To act as a confounder, it must be related to both treatment assignment and outcome, in a way that can contribute to distortion of the treatment contrast. The HDPS prioritization heuristic combines these two kinds of association to rank candidate covariates for further consideration.

The derivation below isolates one binary, pretreatment covariate at a time. It shows exactly what the score approximates under a simple additive model. It does not establish that every high-ranked feature is a true confounder, or that a low-ranked feature is safe to omit. In particular, a ranking score is a screening heuristic, not a proof of causal identification.

Definition: Let \(A\in\{0,1\}\) denote treatment, \(Y\) an outcome, and \(U\in\{0,1\}\) a measured pretreatment covariate. Write \(p_a=P(U=1\mid A=a)\), for \(a\in\{0,1\}\), and define the treatment-group prevalence difference \(\Delta_U=p_1-p_0\). Under an additive outcome model, let \(\gamma\) denote the change in the conditional mean outcome associated with \(U=1\) rather than \(U=0\), holding treatment fixed. A scale-specific prioritization score is \(S_U=|\Delta_U\gamma|\).

Assumptions and the Bias Decomposition

To interpret the decomposition as causal bias, use a clearly stated model and identification assumptions. Suppose consistency holds, there is no interference between individuals, and conditional exchangeability holds given \(U\): \(Y(a)\perp A\mid U\) for \(a=0,1\). Suppose also that treatment positivity holds, \(0<P(A=a\mid U=u)<1\), for each relevant \(a,u\). Finally, assume a constant additive treatment effect and an additive conditional mean:

$$ E[Y\mid A,U]=\alpha+\tau A+\gamma U. $$

Under consistency and conditional exchangeability, the observed conditional mean identifies the potential-outcome mean given \(U\). The model therefore implies \(E[Y(1)-Y(0)\mid U]=\tau\), so the average treatment effect is \(\tau\). The positivity assumption ensures both treatment states are represented within each relevant level of \(U\), rather than requiring extrapolation from an absent group.

Now take the observed mean in each treatment group. Since \(U\) is binary, \(E[U\mid A=a]=P(U=1\mid A=a)=p_a\). Thus:

$$ \begin{aligned} E[Y\mid A=1]&=\alpha+\tau+\gamma p_1,\\ E[Y\mid A=0]&=\alpha+\gamma p_0,\\ E[Y\mid A=1]-E[Y\mid A=0]&=\tau+\gamma(p_1-p_0)\\ &=\tau+\gamma\Delta_U. \end{aligned} $$

So the crude mean contrast differs from the causal effect \(\tau\) by \(\gamma\Delta_U\), under the assumptions just given. Its absolute bias contribution is \(S_U=|\gamma\Delta_U|\). The two factors have a direct interpretation: \(|\Delta_U|\) measures how differently common the feature is in the two treatment groups, and \(|\gamma|\) measures how strongly it shifts the mean outcome on the chosen outcome scale.

The decomposition is also a short derivation of why both associations matter. If \(p_1=p_0\), then the covariate contributes zero bias in this model even if \(\gamma\) is large. If \(\gamma=0\), it contributes zero even if the feature is much more prevalent in one treatment group. A feature with moderate values of both factors can nevertheless have a larger score than a feature with only one very large factor.

Worked Example: A Continuous Outcome

Consider a hypothetical setting with outcome \(Y\) measured in days and conditional mean \(E[Y\mid A,U]=10+2A+4U\). Assume the causal and model conditions stated above hold. The treatment-group prevalences are \(p_1=0.60\) and \(p_0=0.20\). Calculate the score and check it against the crude contrast.

The treatment prevalence difference is \(\Delta_U=0.60-0.20=0.40\). The outcome association is \(\gamma=4\) days per unit change in \(U\). Therefore:

$$ S_U=|\Delta_U\gamma|=|0.40\times4|=1.6\text{ days}. $$

The model’s causal treatment effect is \(\tau=2\) days. The treated-group mean is \(10+2+4(0.60)=14.4\) days, while the untreated-group mean is \(10+4(0.20)=10.8\) days. Their crude difference is \(14.4-10.8=3.6\) days. The difference between this contrast and \(\tau\) is \(3.6-2=1.6\) days, agreeing with the score. This causal interpretation depends on the assumed exchangeability and other conditions; the arithmetic alone cannot establish them.

Using the Score to Rank Candidates

For candidate \(U_j\), the same one-covariate argument gives a score \(S_j=|\Delta_j\gamma_j|\), where \(\Delta_j=P(U_j=1\mid A=1)-P(U_j=1\mid A=0)\), and \(\gamma_j\) is its conditional outcome association on the selected scale. Rank candidates by the magnitude of this product when the aim is to prioritize features with larger approximate contributions under the model. Preserve the signs as well as the magnitudes in analysis: the signed quantity \(\Delta_j\gamma_j\) indicates the direction of the contribution, while the absolute value is used for ranking by size.

The score has the units of the outcome because \(\Delta_j\) is a difference in probabilities and is dimensionless, while \(\gamma_j\) has outcome units. If \(Y\) is binary and the model is an additive risk model, \(\gamma_j\) is a risk difference and \(S_j\) is measured in probability points. The risk model must assign valid probabilities for the covariate and treatment values under consideration. Association measures on other scales, such as odds ratios, are not numerically interchangeable with \(\gamma_j\); a product built from them requires its own approximation and interpretation.

Worked Example: Ranking Two Hypothetical Features

Suppose two pretreatment binary features are measured in a hypothetical study with a continuous outcome in hours. For feature \(U\), \(p_1=0.40\), \(p_0=0.30\), and \(\gamma=10\) hours. For feature \(V\), \(p_1=0.70\), \(p_0=0.20\), and \(\gamma=1\) hour. Calculate each score and state the ranking.

For \(U\), \(\Delta_U=0.40-0.30=0.10\), so \(S_U=|0.10\times10|=1.0\) hour. For \(V\), \(\Delta_V=0.70-0.20=0.50\), so \(S_V=|0.50\times1|=0.50\) hour. The heuristic ranks \(U\) above \(V\), even though \(V\) is much more imbalanced across treatment groups: \(U\)’s stronger outcome association gives it the larger approximate bias contribution.

This ranking is conditional on the specified model and association estimates. It does not say that \(U\) is known to be a confounder, or that including \(U\) will reduce total bias by exactly one hour in a multivariable analysis.

Worked Example: A Binary Outcome on the Risk-Difference Scale

In a hypothetical example, \(Y\) indicates whether an event occurred. Assume the conditional risk model \(E[Y\mid A,U]=0.10+0.08A+0.20U\), with the causal assumptions above. The probabilities implied by this model range from 0.10 to 0.38, so they are valid for all four combinations of \(A\) and \(U\). Let \(p_1=0.50\) and \(p_0=0.25\). Find the score and compare it with the crude risk difference.

Here \(\Delta_U=0.50-0.25=0.25\) and \(\gamma=0.20\), a 20-percentage-point increase in risk. Hence \(S_U=|0.25\times0.20|=0.05\), or 5 percentage points. The treated-group risk is \(0.10+0.08+0.20(0.50)=0.28\), and the untreated-group risk is \(0.10+0.20(0.25)=0.15\). The crude risk difference is \(0.28-0.15=0.13\), or 13 percentage points. The causal risk difference under the model is \(0.08\), or 8 percentage points, and the crude contrast exceeds it by \(0.13-0.08=0.05\), exactly the score.

Why This Is a Heuristic, Not a Guarantee

The derivation is exact for the specified one-covariate additive setup, but applying individual scores to a large feature set is a screening approximation. Real outcomes may have interactions, nonlinear relationships, or treatment effects that vary with \(U\). The outcome association estimated from data may also be noisy or distorted by other variables. With multiple candidate features, their contributions need not add as if each were isolated: correlated proxies can represent overlapping information, and conditioning on multiple variables can change conditional associations.

A useful comparison is with rankings based on only one association. Ranking by treatment imbalance alone can elevate a feature that predicts treatment but has little outcome association. Ranking by outcome association alone can elevate a prognostic feature that is nearly equally prevalent in both groups. The product addresses both dimensions, but does not replace substantive causal reasoning. A known confounder may merit adjustment even if its estimated score is modest, particularly when the estimates are imprecise or the feature is measured poorly.

Outcome associations used for prioritization should be interpreted carefully. If estimated from the same data, they are subject to sampling variation and can overstate the importance of chance associations. A proxy may rank highly without being the cause of confounding; conversely, a noisy or rare feature may rank low despite being relevant. The score is also scale-dependent: changing from a risk difference to an odds ratio changes what an outcome association represents. Do not treat values from incompatible scales as comparable.

Diagnostics begin with checking how each factor was estimated and whether its coding and timing make causal sense. Verify that features are measured before treatment, inspect treatment-group prevalence differences and outcome associations separately, and examine uncertainty for rare features. Large absolute differences can indicate limited overlap for a covariate level; a score does not repair positivity problems. Finally, review whether high-ranked features are plausible pretreatment confounders or merely proxies, and whether several features appear to duplicate the same history.

Common pitfall: “This feature predicts treatment strongly, so it must be the highest-priority confounder.” Treatment prediction alone is not the bias contribution derived here. The relevant product also depends on the feature’s outcome association: in the additive model, its contribution is \(\Delta_U\gamma\). The correction is to assess both factors, retain the model and causal assumptions behind the interpretation, and treat the resulting rank as a heuristic rather than a causal verdict.

A Practical Reading of a Ranking

1
Check the feature definition and timing.
Confirm that the binary indicator describes a pretreatment characteristic relevant to the target treatment contrast.
2
Inspect the treatment association.
Calculate the treated-minus-untreated prevalence difference \(\Delta_j\); do not discard its sign when interpreting direction.
3
Inspect the outcome association on a stated scale.
Identify what \(\gamma_j\) means and its units, and check whether the assumed scale is appropriate for the outcome.
4
Calculate and qualify the score.
Use \(S_j=|\Delta_j\gamma_j|\) for the additive heuristic, then assess uncertainty, overlap, proxy meaning, and redundancy before deciding how to use the feature.

This score clarifies why HDPS prioritization combines treatment and outcome information: it approximates how much an individual binary covariate can shift a crude contrast away from the causal effect under a transparent model. Its value is explanatory and organizational. It helps identify candidates deserving attention, but causal validity still depends on the design, measurement, assumptions, and final adjustment strategy.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. A binary feature has \(p_1=0.35\), \(p_0=0.15\), and \(\gamma=3\) units of outcome. What is its score?
  2. A feature is much more prevalent in the treated group but has \(\gamma=0\) under the additive model. What does its score imply, and what does it not prove?
  3. For a binary outcome, \(\Delta=-0.30\) and \(\gamma=0.10\) on the risk-difference scale. Calculate the signed bias contribution and the score.
  4. Why can a large treatment-group prevalence difference by itself be an inadequate prioritization rule?

Solutions. (1) \(\Delta=0.35-0.15=0.20\), so \(S=|0.20\times3|=0.60\) outcome units. (2) The score is zero because \(|\Delta\times0|=0\): in the stated additive model, this feature contributes no crude-contrast bias through its own outcome association. This does not prove that the feature is irrelevant in a richer model, is measured without error, or has no interactions. (3) The signed contribution is \(\Delta\gamma=(-0.30)(0.10)=-0.030\), or minus 3 percentage points; the absolute score is \(0.030\), or 3 percentage points. (4) A feature can be imbalanced yet have little association with the outcome, yielding a small product. Treatment association alone does not determine the approximate bias contribution.

Clinical Biostats