Tutorials › Marginal Structural Models › Clipping Bias in a Binary-Treatment Mean Estimate

Weight Stabilization and Truncation · Tutorial 147 of 501

Clipping Bias in a Binary-Treatment Mean Estimate

See how clipping changes the expected inverse-probability-weighted mean contrast, and distinguish that target from the limit of a normalized weighted mean.

Advanced 12 min read

What You'll Learn

  • Derive the clipped-weight retention factor within each covariate stratum.
  • Calculate exact clipping bias for an unnormalized binary-treatment mean contrast.
  • Explain why the direction of contrast bias depends on stratum-specific outcome means.
  • Distinguish the clipped Horvitz–Thompson target from the clipped Hájek limit.
  • Diagnose clipping through stratum-level retention factors and sensitivity to the cap.
  • State when clipping leaves a contrast unchanged through cancellation of arm-specific biases.

Why clipping changes a mean estimate

Inverse probability weights compensate for differences in treatment probabilities across covariate strata. Capping a large weight reduces the influence of observations with small treatment probabilities. That can improve numerical stability, but it also changes how much each stratum contributes to the weighted mean. For a treatment contrast, the change in one arm need not match the change in the other.

The goal here is to calculate that change directly in a finite-stratum setting. This makes the source and direction of the bias visible: the relevant quantities are the treatment probabilities, the cap, and the outcome means in each stratum.

Setup and definition

Let \(A\in\{0,1\}\) be a binary treatment and let \(X\) take values in a finite set of strata. Write \(q_x=P(X=x)\), \(p_1(x)=P(A=1\mid X=x)\), and \(p_0(x)=1-p_1(x)\). Let \(Y^a\) be the potential outcome under treatment \(a\), and let \(Y\) be the observed outcome.

Assume consistency, so \(Y=Y^A\); conditional exchangeability, \((Y^0,Y^1)\perp A\mid X\); and positivity, \(0<p_a(x)<1\) whenever \(q_x>0\). Define \(\mu_a(x)=E[Y^a\mid X=x]\). Under these assumptions, \(\mu_a(x)=E[Y\mid A=a,X=x]\), and the causal mean under treatment \(a\) is \(\psi_a=E[Y^a]=\sum_x q_x\mu_a(x)\). The causal mean contrast is \(\Delta=\psi_1-\psi_0\).

Suppose the probabilities \(p_a(x)\) are known, or for now are treated as the true probabilities. For a fixed cap \(c\geq 1\), clip the inverse probability weight for arm \(a\) from above at \(c\). The unnormalized, or Horvitz–Thompson, clipped mean estimate is the sample average of \(I(A=a)Y\min\{1/p_a(X),c\}\).

Definition: The retention factor for arm \(a\) in stratum \(x\) is $$ g_a(x)=p_a(x)\min\left\{\frac{1}{p_a(x)},c\right\} =\min\{1,c\,p_a(x)\}. $$ It is the fraction of that stratum’s original expected contribution retained by the clipped, unnormalized weighting. The clipped mean contrast estimate is the treatment-arm estimate minus the control-arm estimate.

Exact bias for the unnormalized clipped contrast

The retention factor equals one when the arm’s inverse probability weight is not capped. If \(1/p_a(x)>c\), then \(g_a(x)=c\,p_a(x)<1\). Thus clipping removes expected contribution precisely in strata where the arm is relatively unlikely.

Theorem: Under the assumptions above, the expectation of the unnormalized clipped mean estimate for arm \(a\) is \(\sum_x q_x g_a(x)\mu_a(x)\). Its bias for \(\psi_a\) is $$ B_a(c)=\sum_x q_x\{g_a(x)-1\}\mu_a(x) =-\sum_x q_x\{1-g_a(x)\}\mu_a(x). $$ The expectation of the clipped contrast estimate is \(\sum_x q_x\{g_1(x)\mu_1(x)-g_0(x)\mu_0(x)\}\), and its bias for \(\Delta\) is $$ B_\Delta(c) =-\sum_x q_x\{1-g_1(x)\}\mu_1(x) +\sum_x q_x\{1-g_0(x)\}\mu_0(x). $$

To prove the result, condition on \(X=x\). By conditional exchangeability and consistency, \(E[Y\mid A=a,X=x]=\mu_a(x)\). Therefore,

$$ \begin{aligned} E\left[I(A=a)Y\min\left\{\frac{1}{p_a(X)},c\right\}\mid X=x\right] &=p_a(x)\mu_a(x)\min\left\{\frac{1}{p_a(x)},c\right\}\\ &=g_a(x)\mu_a(x). \end{aligned} $$

Averaging over the finite strata gives the stated expectation. Subtracting \(\psi_a=\sum_x q_x\mu_a(x)\) gives \(B_a(c)\). Subtracting the two arm expectations and then subtracting \(\Delta\) gives \(B_\Delta(c)=B_1(c)-B_0(c)\), which is the displayed expression. \(\square\)

This is an exact expectation statement for the unnormalized estimate, not an approximation that requires a large sample. In particular, its contrast bias can have either sign. When outcomes are nonnegative, clipping lowers each arm’s unnormalized mean estimate, but it lowers the two arms by potentially different amounts. Subtracting those estimates can therefore raise or lower the contrast.

Worked Example: Unequal Propensities and a Negative Contrast Bias

Suppose there are two equally common strata, so \(q_1=q_2=0.5\). The treatment probabilities are \(p_1(1)=0.2\) and \(p_1(2)=0.8\); hence \(p_0(1)=0.8\) and \(p_0(2)=0.2\). Let the conditional outcome means be \(\mu_1(1)=10,\ \mu_1(2)=6,\ \mu_0(1)=4,\ \mu_0(2)=2\). Use cap \(c=2\).

The retention factors are \(g_1(1)=\min(1,0.4)=0.4\), \(g_1(2)=\min(1,1.6)=1\), \(g_0(1)=1\), and \(g_0(2)=0.4\). The untrimmed means are \(\psi_1=0.5(10)+0.5(6)=8\) and \(\psi_0=0.5(4)+0.5(2)=3\), so \(\Delta=5\).

The expected clipped treatment-arm estimate is \(0.5(0.4)(10)+0.5(1)(6)=2+3=5\). The expected clipped control-arm estimate is \(0.5(1)(4)+0.5(0.4)(2)=2+0.4=2.4\). Thus the expected clipped contrast is \(5-2.4=2.6\), and its bias is \(2.6-5=-2.4\).

Equivalently, the arm biases are \(5-8=-3\) and \(2.4-3=-0.6\). Their difference is \(-3-(-0.6)=-2.4\), agreeing with the contrast calculation.

Why the bias need not move a contrast toward zero

A common intuition is that clipping must attenuate the estimated treatment effect. The calculation above does not justify that claim: clipping changes the representation of each arm’s outcome distribution, not just the size of the contrast. Even a constant treatment effect across strata does not guarantee attenuation when the baseline outcome means vary.

Worked Example: A Constant Effect but an Increased Contrast

Let two strata again have probabilities \(q_1=q_2=0.5\). Set \(p_1(1)=0.1\) and \(p_1(2)=0.9\), and use \(c=4\). Suppose the control means are \(\mu_0(1)=0,\ \mu_0(2)=10\), and the treatment means are \(\mu_1(1)=2,\ \mu_1(2)=12\). The treatment effect is \(2\) in both strata, so the true contrast is \(\Delta=2\).

For treatment, the retention factors are \(g_1(1)=\min(1,0.4)=0.4\) and \(g_1(2)=1\). For control, they are \(g_0(1)=1\) and \(g_0(2)=\min(1,0.4)=0.4\). The expected clipped treatment mean is \(0.5(0.4)(2)+0.5(1)(12)=0.4+6=6.4\). The expected clipped control mean is \(0.5(1)(0)+0.5(0.4)(10)=2\).

The clipped contrast is \(6.4-2=4.4\), which exceeds the true contrast \(2\). The treatment-arm bias is \(6.4-7=-0.6\), while the control-arm bias is \(2-5=-3\); subtracting the larger control-arm bias yields a contrast bias of \((-0.6)-(-3)=2.4\). The constant stratum-specific effect does not prevent this result because clipping retains different fractions of the two arms’ stratum-specific contributions.

Normalized weighted means target a different limit

The unnormalized estimate has a simple exact expectation, but many analyses use a normalized, or Hájek, weighted mean: the weighted outcome sum divided by the sum of the weights in that arm. A ratio’s finite-sample expectation is generally not the ratio of its expectations. Its large-sample limit, however, has a direct expression under simple regularity conditions.

Result: Suppose observations are independent and identically distributed, \(X\) has finitely many strata, the outcomes are bounded, the true treatment probabilities satisfy positivity, and \(c\geq1\) is fixed. If \(E[I(A=a)\min\{1/p_a(X),c\}]>0\), the normalized clipped mean converges in probability to $$ \psi_a^{H}(c)= \frac{\sum_x q_xg_a(x)\mu_a(x)} {\sum_x q_xg_a(x)}. $$ This is a retention-weighted average of the stratum means, which need not equal \(\psi_a\).

For completeness, write the numerator and denominator of the sample ratio as sample averages \(N_n\) and \(D_n\). Each summand is bounded because \(Y\) is bounded and the clipped weight is at most \(c\). The law of large numbers gives \(N_n\xrightarrow{p}\sum_x q_xg_a(x)\mu_a(x)\) and \(D_n\xrightarrow{p}\sum_x q_xg_a(x)>0\). The continuous mapping theorem for division at a nonzero denominator then gives \(N_n/D_n\xrightarrow{p}\psi_a^{H}(c)\). The positive denominator also implies \(P(D_n=0)\to0\), so the ratio can be defined arbitrarily on the event that no arm-\(a\) weight is observed without changing this probability limit. \(\square\)

In contrast, the unnormalized clipped mean’s probability limit is its expectation, \(\sum_x q_xg_a(x)\mu_a(x)\). Normalization divides by the retained total mass; it does not generally restore the original target, because strata with different retention factors still receive different relative weights.

Worked Example: Comparing Unnormalized and Normalized Targets

Take two equally common strata, with \(p_1(1)=0.2,\ p_1(2)=0.8\), cap \(c=2\), and treatment means \(\mu_1(1)=4,\ \mu_1(2)=8\). Then \(g_1(1)=0.4\) and \(g_1(2)=1\). The true treatment mean is \(0.5(4)+0.5(8)=6\).

The unnormalized clipped estimate has expectation \(0.5(0.4)(4)+0.5(1)(8)=0.8+4=4.8\). Its expected retained weight mass is \(0.5(0.4)+0.5(1)=0.7\). Therefore, the normalized estimator’s probability limit is \(4.8/0.7=48/7\), approximately \(6.857\), rather than \(6\). Normalization changes the scale but does not remove the stratum reweighting created by clipping.

Diagnostics, alternatives, and limitations

A useful diagnostic is to calculate \(g_a(x)=\min\{1,cp_a(x)\}\) for each arm and relevant covariate stratum. Values below one identify contributions reduced by the cap; values near zero identify strata whose arm-specific outcomes contribute very little to the clipped estimate. Also report how the contrast changes across a prespecified range of caps. A material change signals that the estimate depends on the clipping rule, although stability across caps does not prove that clipping bias is absent.

The main comparison is with the unclipped inverse-probability-weighted mean: without a cap, \(g_a(x)=1\) in every stratum, and the exact expectation equals \(\psi_a\). Clipping trades that property for bounded weights. Deleting observations above a cutoff is a different rule: it can remove observations rather than retaining them at a capped weight, and it need not have the same expectation. The earlier material on How Truncation Changes the Estimating Equation explains why changing weights also changes the estimating equation.

The formulas above assume known propensity scores. If probabilities are estimated, the clipped weights are random and the exact expectation calculation conditional on the true \(p_a(x)\) no longer describes the full estimator automatically. The formulas also do not imply that a single cap is appropriate in every setting. They quantify the bias for the stated rule and target; choosing a cap requires considering the consequences of changing that target as well as the practical reasons for limiting extreme weights.

Common pitfall: “Both arm means go down when weights are clipped, so the treatment contrast must move toward zero.” This conclusion confuses arm-specific changes with their difference. The correction is to calculate each arm’s contribution using its own \(g_a(x)\), then subtract the two resulting means. Different propensities and outcome means can make the contrast bias positive, negative, or zero.

Check Your Understanding

Answer each question using the retention-factor formulas. Short solutions follow the questions.

  1. For a stratum with \(p_1(x)=0.25\) and cap \(c=2\), calculate \(g_1(x)\). What fraction of the untrimmed expected treatment-arm contribution is retained?
  2. In two strata with equal probabilities, let \(p_1=(0.2,0.8)\), \(c=2\), and \(\mu_1=(4,8)\). Calculate the true treatment mean and the expectation of the unnormalized clipped treatment mean.
  3. Using the same strata and cap as question 2, calculate the probability limit of the normalized clipped treatment mean.
  4. State the condition, in terms of the arm-specific biases, under which clipping leaves the treatment contrast unchanged.

Solutions. (1) \(g_1(x)=\min(1,2(0.25))=0.5\), so half the expected contribution is retained. (2) The true mean is \(0.5(4)+0.5(8)=6\). The clipped expectation is \(0.5(0.4)(4)+0.5(1)(8)=4.8\). (3) The retained mass is \(0.5(0.4)+0.5(1)=0.7\), so the limit is \(4.8/0.7=48/7\). (4) Since contrast bias is \(B_1(c)-B_0(c)\), the contrast is unchanged exactly when \(B_1(c)=B_0(c)\); the arm biases need not each be zero.

Clinical Biostats