Tutorials › Propensity Score Matching and Instrumental Variables › A Complete Overlap-Weighting Calculation

Weighting and Stratification · Tutorial 227 of 699

A Complete Overlap-Weighting Calculation

Learn how overlap weights emphasize patients with a realistic chance of receiving either treatment, and calculate the resulting target population and treatment-effect estimate.

Intermediate 12 min read

What You'll Learn

  • Define the overlap population using the propensity score.
  • Apply the correct overlap weight to each treatment group.
  • Calculate weighted outcome means and their contrast.
  • Distinguish the overlap target from the ATE and ATT targets.
  • Check weight concentration and assess what the estimate represents.

Why Use Overlap Weights?

Inverse probability weighting can target different populations by changing the weights assigned to treated and untreated individuals. Overlap weights focus on individuals whose measured baseline characteristics make either treatment plausible. They give less influence to individuals whose propensity scores are near zero or one, where the observed treatment group offers little information about what would have happened under the alternative treatment.

The resulting effect is not automatically the average treatment effect (ATE) for everyone, or the average treatment effect for the treated (ATT). It is an effect for a particular target population: one that emphasizes covariate profiles with greater treatment overlap. The distinction matters because effect estimates can differ across target populations, especially when treatment effects vary across individuals.

Definition: Let \(A\) be a binary treatment indicator, with \(A=1\) for treated and \(A=0\) for untreated, let \(X\) denote measured pretreatment covariates, and let \(Y\) be the outcome. The propensity score is \(e(X)=P(A=1\mid X)\). The overlap function is \(h(X)=e(X)\{1-e(X)\}\). The overlap population has a covariate distribution proportional to \(h(X)\) times the original covariate distribution. The overlap weights are \(1-e(X)\) for treated individuals and \(e(X)\) for untreated individuals.

Because \(0\leq e(X)\leq1\), the overlap function is largest when \(e(X)=0.5\), and it approaches zero as the score approaches either extreme. The weights are bounded between zero and one: treated individuals receive \(1-e(X)\), while untreated individuals receive \(e(X)\). In the target population, the estimand is the mean difference in potential outcomes, \(E_h[Y(1)-Y(0)]\), where the subscript \(h\) indicates averaging over the overlap covariate distribution.

Assumptions and the Weighted Estimator

The causal interpretation requires the usual assumptions for identifying treatment effects from observational data. Treatment and outcome definitions must be consistent: an individual's observed outcome equals the potential outcome under the treatment actually received. There must be no interference between individuals, so one person's treatment does not change another person's outcome. Conditional exchangeability requires \(\{Y(1),Y(0)\}\perp A\mid X\): after conditioning on the measured pretreatment covariates, treatment assignment is independent of the potential outcomes. This assumption is substantive and cannot be established from the observed data alone.

The propensity score must also be correctly specified or consistently estimated, unless it is known by design. For covariate profiles included in the overlap target, both treatment options must be represented: \(0<e(X)<1\). Profiles with a score exactly zero or one have \(h(X)=0\) and contribute no mass to the overlap target. This does not recover their treatment effects; it defines a target that excludes them.

For observed data on \(n\) individuals, the overlap-weighted means are Hájek ratio estimators: each weighted outcome sum is divided by the sum of weights in that treatment group. The estimated treatment-effect contrast is the treated weighted mean minus the untreated weighted mean.

$$ \widehat{\mu}_{1,h} = \frac{\sum_{i=1}^{n} A_i\{1-\hat e(X_i)\}Y_i} {\sum_{i=1}^{n} A_i\{1-\hat e(X_i)\}}, \qquad \widehat{\mu}_{0,h} = \frac{\sum_{i=1}^{n} (1-A_i)\hat e(X_i)Y_i} {\sum_{i=1}^{n} (1-A_i)\hat e(X_i)}, \qquad \widehat{\tau}_{h} = \widehat{\mu}_{1,h}-\widehat{\mu}_{0,h}. $$

Here \(\hat e(X_i)\) is the estimated propensity score for individual \(i\). The denominators normalize the weighted outcomes within their treatment groups. In a finite sample, the weighted covariate distributions in the two groups need not match perfectly, so the estimate is not guaranteed to equal a simple average of individual treatment effects in a mechanically constructed sample. Its target-population interpretation follows from the weighting scheme under the assumptions above.

Worked Example: Target Population and Weighted Outcome Contrast

Consider a hypothetical observational cohort of eight patients. The outcome is a symptom score measured after treatment; larger values indicate more symptoms. The propensity scores are supplied as fitted scores from a model using pretreatment covariates. The table shows the observed treatment and outcome.

Patient\(\hat e(X_i)\)\(A_i\)Outcome \(Y_i\)Overlap weight
10.20040.20
20.30050.30
30.40060.40
40.60180.40
50.70190.30
60.801100.20
70.50070.50
80.50180.50

For each patient, the overlap function \(h_i=\hat e(X_i)\{1-\hat e(X_i)\}\) gives the relative contribution to the target covariate distribution. In patient order, these values are \(0.16,0.21,0.24,0.24,0.21,0.16,0.25,0.25\), with total \(1.72\). For example, patient 1 has normalized target share \(0.16/1.72=0.0930\), or about 9.30%. Patient 7 has share \(0.25/1.72=0.1453\), or about 14.5%. These shares describe the sample's overlap-weighted covariate distribution; they are not the outcome weights used in either treatment-group mean.

For treated patients, use \(1-\hat e(X_i)\). The weights are \(0.40,0.30,0.20,0.50\), so their total is \(1.40\). The weighted outcome total is \(0.40(8)+0.30(9)+0.20(10)+0.50(8)=11.90\). Thus the treated weighted mean is \(11.90/1.40=8.500\) symptom-score points.

For untreated patients, use \(\hat e(X_i)\). Their weights are \(0.20,0.30,0.40,0.50\), also totaling \(1.40\). The weighted outcome total is \(0.20(4)+0.30(5)+0.40(6)+0.50(7)=8.20\). The untreated weighted mean is \(8.20/1.40=5.857\) points. The estimated contrast is \(8.500-5.857=2.643\) points.

Under the stated causal assumptions, the estimate means that the treated group had an estimated symptom score 2.643 points higher than the untreated group, on average for the overlap target population. It is not, without further assumptions, a causal effect for all patients in the cohort. In particular, the observed data cannot verify conditional exchangeability.

Why These Weights Target the Overlap Population

The weighting scheme has a direct justification. Write \(f(x)\) for the covariate distribution in the original population. Among treated individuals, the covariate density is proportional to \(e(x)f(x)\). Multiplying by the treated overlap weight \(1-e(x)\) gives a density proportional to \(e(x)\{1-e(x)\}f(x)\). Among untreated individuals, the covariate density is proportional to \(\{1-e(x)\}f(x)\); multiplying by their weight \(e(x)\) produces the same target density.

$$ f(x\mid A=1)\{1-e(x)\}\ \propto\ e(x)\{1-e(x)\}f(x), \qquad f(x\mid A=0)e(x)\ \propto\ e(x)\{1-e(x)\}f(x). $$

The proportionality constants are removed when each group is normalized to calculate its weighted mean. Therefore, in the population, both weighted groups represent the same overlap covariate distribution. Under consistency and conditional exchangeability, their outcome mean difference identifies the average causal effect in that population.

With an unpenalized logistic propensity model that includes an intercept and has converged, overlap weights also have a useful finite-sample balance property for covariate terms included in the model. The logistic score equations give \(\sum_i(A_i-\hat e(X_i))g(X_i)=0\) for each included model term \(g(X_i)\). Since

$$ A_i\{1-\hat e(X_i)\}-(1-A_i)\hat e(X_i)=A_i-\hat e(X_i), $$

the weighted totals of each such term agree between the treatment groups. The intercept equation also makes the two total overlap weights equal. This exact balance applies to the model terms under those fitting conditions; it does not guarantee balance on omitted, misspecified, or otherwise unrepresented covariate features.

Worked Example: Calculating the Target Population's Profile Mix

Suppose a hypothetical population consists of 75% of one covariate profile with propensity score \(e=0.20\), and 25% of another profile with \(e=0.60\). To find each profile's relative mass in the overlap population, multiply its original population share by \(h=e(1-e)\).

For the first profile, \(h=0.20(0.80)=0.16\), so its unnormalized target mass is \(0.75(0.16)=0.12\). For the second, \(h=0.60(0.40)=0.24\), giving unnormalized mass \(0.25(0.24)=0.06\). The total is \(0.18\). After normalization, the overlap population is \(0.12/0.18=0.667\), or 66.7%, the first profile and \(0.06/0.18=0.333\), or 33.3%, the second.

The original population was 75% and 25% in these profiles. Overlap weighting shifts the target mix toward the profile with the more balanced treatment probability. The calculation describes who is represented by the estimand; by itself, it does not calculate an outcome effect.

Diagnostics, Alternatives, and Limitations

After calculating weights, inspect whether they were formed from pretreatment covariates and whether the estimated propensity model is plausible. Check weighted covariate balance, including important nonlinear terms or interactions when relevant. For logistic-model overlap weights, exact balance on fitted terms can be a useful check, but it is not evidence that unmeasured confounding is absent. Also inspect the weight distribution and the amount of weighted information in each treatment group.

One compact measure of weight concentration is the effective sample size, \(ESS=(\sum_i w_i)^2/\sum_i w_i^2\), calculated separately for each treatment group. It equals the actual sample size when all weights are equal and decreases when a few observations dominate. It is a diagnostic, not a substitute for a variance estimate or a guarantee of adequate precision.

Worked Example: Checking Weight Concentration

In the eight-patient example, the treated overlap weights are \(0.40,0.30,0.20,0.50\). Their sum is \(1.40\), and the sum of squared weights is \(0.40^2+0.30^2+0.20^2+0.50^2=0.54\). Therefore,

$$ ESS_1=\frac{1.40^2}{0.54}=\frac{1.96}{0.54}=3.63. $$

The untreated weights have the same values in this example, so their effective sample size is also 3.63. Each group has four observed patients, but its weighted information is roughly that of 3.63 equally weighted observations. This small hypothetical example is not large enough for a stable analysis; the calculation illustrates how to check whether weighting substantially concentrates the data.

Overlap weighting differs from two common alternatives in its target and its handling of extreme scores. ATE weighting uses \(1/e(X)\) for treated individuals and \(1/\{1-e(X)\}\) for untreated individuals to target the original population. ATT weighting gives treated individuals weight 1 and untreated individuals weight \(e(X)/\{1-e(X)\}\), targeting the treated population. Those alternatives answer different questions and can assign very large weights near propensity-score extremes. Overlap weights are bounded, but bounded weights do not fix confounding, model misspecification, or a lack of treatment information for excluded profiles. Matching and subclassification are other approaches with their own target and balance considerations; they should not be treated as interchangeable calculations of the same estimand.

A common mistake is to call the overlap-weighted contrast “the ATE” merely because both treatment groups are weighted. The correction is to identify the target before interpreting the contrast: overlap weights define a population emphasizing covariate profiles where either treatment was plausible. A second mistake is to treat a low weight as proof that an individual was safely “adjusted away.” The estimate is instead about the overlap target, and it may not answer a decision-maker's question about the full population or the treated group.

If propensity scores are estimated, uncertainty in their estimation should be accounted for in inference; treating fitted scores as known can understate uncertainty. The weighting calculation also cannot establish that all confounders were measured. Report the target, model and balance checks, estimate and uncertainty in context, and limitations. A sound balance diagnostic supports the calculation but does not prove its causal assumptions.

Check Your Understanding

Try each problem, then compare your work with the solutions.

  1. For a patient with propensity score \(0.30\), what is the overlap weight if the patient is treated? What is it if the patient is untreated?
  2. A population has 60% of a profile with \(e=0.25\) and 40% with \(e=0.75\). Calculate each profile's share in the overlap population.
  3. In one treatment group, weights are \(0.5,0.5,1.0\). Calculate the effective sample size.
  4. Why should an overlap-weighted contrast not automatically be interpreted as an ATE?

Solutions. (1) If treated, the weight is \(1-0.30=0.70\); if untreated, it is \(0.30\). (2) Both profiles have \(h=0.25(0.75)=0.1875\). Their unnormalized masses are \(0.60(0.1875)=0.1125\) and \(0.40(0.1875)=0.0750\), with total \(0.1875\). The normalized shares are \(0.1125/0.1875=0.60\), or 60%, and \(0.0750/0.1875=0.40\), or 40%. (3) The weight sum is \(2.0\), and the squared-weight sum is \(0.25+0.25+1=1.50\), so \(ESS=2.0^2/1.50=2.67\). (4) Overlap weighting targets covariate profiles with greater treatment overlap, using the distribution proportional to \(e(X)\{1-e(X)\}f(X)\). The ATE targets the original population, so the two estimands need not agree.

Clinical Biostats