From Assignment Weights to Outcome Means
Inverse-probability weighting turns observed outcomes into estimates of potential-outcome means by using treatment-assignment probabilities. The weights depend on the target population: the weights for an ATE are not interchangeable with those for an ATT or ATU. This tutorial focuses on calculating the weighted means and taking their contrast; a contrast estimates an average treatment effect for the population defining those means.
Let \(A_i\) be the binary treatment indicator for unit \(i\), with \(A_i=1\) for treated and \(A_i=0\) for untreated. Let \(Y_i(1)\) and \(Y_i(0)\) be that unit’s potential outcomes under treatment and no treatment. The observed outcome is \(Y_i=A_iY_i(1)+(1-A_i)Y_i(0)\). Let \(X_i\) denote pretreatment covariates and \(e_i=P(A_i=1\mid X_i)\) the propensity score. In practice, \(e_i\) is often estimated from data; the formulas below use \(e_i\) to represent the score used to construct the weights.
For a sample of \(n\) units, write \(n_1=\sum_{i=1}^n A_i\) and \(n_0=\sum_{i=1}^n(1-A_i)\). The inverse-probability estimates below use these counts as denominators for the relevant target groups. In particular, ATE means use \(n\); ATT means use \(n_1\); and ATU means use \(n_0\). These are Horvitz–Thompson-style estimates, not versions divided by the sum of the weights.
Assumptions and Target-Specific Formulas
The causal interpretation requires assumptions about how treatment is assigned and how potential outcomes relate to the observed data. Consistency means a unit’s observed outcome equals its potential outcome under the treatment actually received. Conditional exchangeability means \((Y(1),Y(0))\) is independent of \(A\) given \(X\): after conditioning on the measured pretreatment covariates, treatment assignment carries no additional information about the potential outcomes. Positivity requires \(0<e(X)<1\) for covariate values in the target population. The propensity scores must also be correctly specified or consistently estimated for the weighting identities to apply.
Under these conditions, the ATE mean under treatment is estimated using treated outcomes weighted by \(1/e_i\); the ATE mean under no treatment uses untreated outcomes weighted by \(1/(1-e_i)\). For the ATT, the observed treated mean already describes the treated target group. To estimate its mean under no treatment, untreated outcomes receive \(e_i/(1-e_i)\), not \(1/(1-e_i)\). For the ATU, the observed untreated mean already describes the untreated target group. Its treated counterfactual mean uses \((1-e_i)/e_i\), not \(1/e_i\).
The denominators reflect the target group, while the weights reconstruct the outcome mean missing for that group. The treatment indicator in each sum ensures that only outcomes observed under the relevant treatment condition contribute. Keep the order of subtraction fixed: the treated potential-outcome mean minus the untreated potential-outcome mean.
Why the Weights Identify the Means
The central identities follow by conditioning on \(X\). For the ATE, exchangeability and consistency imply that the treated outcome distribution conditional on \(X\) represents \(Y(1)\) conditional on \(X\). Weighting by \(A/e(X)\) cancels the probability of being treated. In population notation,
Likewise, \(E[(1-A)Y/(1-e(X))\mid X]=E[Y(0)\mid X]\). Averaging these conditional means over the covariate distribution gives the two ATE means.
For the ATT counterfactual mean, the target is the covariate distribution among treated units. Conditional exchangeability gives \(E[Y\mid A=0,X]=E[Y(0)\mid X]=E[Y(0)\mid A=1,X]\). The identity
shows why the weight is \(e/(1-e)\): it makes the weighted untreated outcomes represent the treated group’s covariate distribution. Dividing the population numerator by \(P(A=1)\) gives \(E[Y(0)\mid A=1]\). Symmetrically, \(E[A(1-e(X))Y/e(X)\mid X]=(1-e(X))E[Y(1)\mid X]=E[(1-A)Y(1)\mid X]\), so division by \(P(A=0)\) gives the ATU treated mean. These identities justify the target-specific weights; with estimated scores, the sample formulas are plug-in estimates and their accuracy depends on score estimation and data support.
Worked Calculations
Worked Example: Calculating ATE, ATT, and ATU Means
Suppose a hypothetical dataset has four units. Outcomes are measured in points, and each unit’s propensity score is treated as known for this calculation.
| Unit | \(A_i\) | \(e_i\) | Observed \(Y_i\) (points) |
|---|---|---|---|
| 1 | 0 | 0.20 | 8 |
| 2 | 1 | 0.40 | 12 |
| 3 | 0 | 0.60 | 6 |
| 4 | 1 | 0.80 | 15 |
Here \(n=4\), \(n_1=2\), and \(n_0=2\). All scores lie strictly between zero and one, satisfying the numerical positivity requirement in this small dataset. Whether conditional exchangeability and correct score specification hold cannot be verified from this table alone; assume them for the exercise.
ATE. The treated weighted total is \(12/0.40+15/0.80=30+18.75=48.75\). Thus \(\widehat{\mu}_{1,\mathrm{ATE}}=48.75/4=12.1875\) points. The untreated weighted total is \(8/(1-0.20)+6/(1-0.60)=8/0.80+6/0.40=10+15=25\), so \(\widehat{\mu}_{0,\mathrm{ATE}}=25/4=6.25\) points. Therefore \(\widehat{\tau}_{\mathrm{ATE}}=12.1875-6.25=5.9375\) points.
ATT. The observed treated mean is \((12+15)/2=13.5\) points. For the untreated counterfactual, unit 1 receives weight \(0.20/0.80=0.25\), and unit 3 receives weight \(0.60/0.40=1.5\). Their weighted total is \(0.25(8)+1.5(6)=2+9=11\), giving \(\widehat{\mu}_{0,\mathrm{ATT}}=11/2=5.5\) points. The estimated ATT is \(13.5-5.5=8.0\) points.
ATU. The observed untreated mean is \((8+6)/2=7\) points. For the treated counterfactual, unit 2 receives weight \((1-0.40)/0.40=1.5\), and unit 4 receives weight \((1-0.80)/0.80=0.25\). The weighted total is \(1.5(12)+0.25(15)=18+3.75=21.75\), giving \(\widehat{\mu}_{1,\mathrm{ATU}}=21.75/2=10.875\) points. The estimated ATU is \(10.875-7=3.875\) points. The three contrasts differ because they target different populations and use finite-sample weighted estimates.
Worked Example: Checking the ATT Counterfactual Weight
Suppose the target is the ATT and an untreated unit has propensity score \(e=0.75\) and an observed outcome of 20 days. Its ATT counterfactual contribution is not weighted by the inverse probability of being untreated alone. The required weight is
If there are \(n_1=10\) treated units, this unit contributes \(60/10=6\) days to the estimated untreated mean for the treated target group. Using \(1/(1-e)=4\) instead would give a contribution of \(80/10=8\) days and would use the ATE-style untreated inverse-probability factor rather than the ATT target adjustment. The denominator remains \(n_1\), not the number of untreated units.
Worked Example: Diagnosing a Large Weighted Contribution
In a hypothetical ATE analysis, a treated unit has \(e=0.05\) and an outcome of 100 points. Its contribution to the treated weighted total is \(100/0.05=2{,}000\) points. If \(n=100\), that is \(2{,}000/100=20\) points in the estimated treated mean. The calculation is arithmetically correct, but this single unit can have substantial influence because its treatment was unlikely given its covariates.
The score satisfies positivity in the strict mathematical sense, but a value near zero signals weak practical overlap and an unstable contribution. Check the score distribution by treatment group, inspect the largest weights and their covariate profiles, and assess whether the target population is supported by both treatment groups. If the score model or data provide little support, the assumptions do not become credible merely because the formula can be evaluated.
Diagnostics, Comparisons, and Limitations
Before interpreting a contrast, check the treatment coding, outcome units, score range, target denominator, and every weight formula. An ATE analysis should use treated weights \(1/e_i\) and untreated weights \(1/(1-e_i)\). An ATT analysis uses the observed treated mean and untreated counterfactual weights \(e_i/(1-e_i)\); an ATU analysis uses treated counterfactual weights \((1-e_i)/e_i\) and the observed untreated mean. Also check whether the weighted covariate distributions are plausible representations of the target group. Large weights, poor overlap, or weighted observations concentrated in a few units indicate that estimates may be sensitive to individual records.
Weighting is not the only approach to estimating potential-outcome means. Regression standardization models outcomes conditional on covariates and averages predicted outcomes over a target population. Matching constructs comparisons among units with similar covariates or propensity scores. Each approach relies on causal assumptions and can be vulnerable to poor overlap or model misspecification; their calculations and diagnostics differ. Weighting’s advantage is that its target-specific reweighting is explicit. Its limitation is that small assignment probabilities can produce extreme weights and imprecise, influential estimates.
A frequent mistake is to describe every inverse-probability weight as the inverse probability of receiving the observed treatment. That misses the adjustment for the target population in the ATT and ATU counterfactual means. Another mistake is to regard a calculated contrast as causal without considering exchangeability, consistency, positivity, and score estimation. The weighted arithmetic alone does not establish these assumptions, and observational data cannot rule out unmeasured confounding.
Check Your Understanding
Answer each question, then compare with the solutions below.
- For an ATE analysis, a treated unit has \(e=0.25\) and \(Y=16\). What is its contribution to the treated weighted total?
- For an ATT analysis, what weight is assigned to an untreated unit with \(e=0.60\), and why is it not \(1/(1-e)\)?
- For an ATU analysis, a treated unit has \(e=0.80\) and \(Y=10\). If \(n_0=5\), what is its contribution to the estimated treated counterfactual mean?
- Name two assumptions needed for a causal interpretation of these weighted contrasts.
Solutions. (1) The weight is \(1/e=1/0.25=4\), so the contribution is \(4(16)=64\) outcome units. (2) The ATT weight is \(e/(1-e)=0.60/0.40=1.5\). It adjusts untreated outcomes to represent the treated target group; \(1/(1-e)\) is the ATE untreated weight. (3) The ATU weight is \((1-e)/e=0.20/0.80=0.25\). Its contribution after division by \(n_0\) is \(0.25(10)/5=0.5\) outcome units. (4) Examples include conditional exchangeability, positivity, and consistency; the assumptions must hold for the causal interpretation.