Inverse Probability Weighting

Weighting each unit by the inverse of its probability of receiving the treatment it got targets a pseudo-population in which assignment is unrelated to the measured covariates. Under the true propensity score and the identification assumptions, this holds at the population level. In practice the weights are estimated, so the balance achieved in the weighted sample must be checked, not assumed. The arithmetic is simple, and the method fails in a specific way. When some units had almost no chance of their observed treatment, their weights become very large. An estimate that rests on a few heavily weighted observations reflects an overlap problem, not an effect.

Definition

With estimated propensity scores e ^ ( X i ) , the Horvitz–Thompson estimator of the average treatment effect is

τ ^ I P W = 1 N ∑ i = 1 N [ W i Y i obs e ^ ( X i ) − ( 1 − W i ) Y i obs 1 − e ^ ( X i ) ] .

The raw ATE weights are ω i = W i e ^ ( X i ) + 1 − W i 1 − e ^ ( X i ) . Stabilized weights replace the numerators by the marginal treatment probabilities, reducing variability while preserving the target under the corresponding normalization. The Hájek form normalizes weights within each arm:

τ ^ H = ∑ i W i Y i obs / e ^ i ∑ i W i / e ^ i − ∑ i ( 1 − W i ) Y i obs / ( 1 − e ^ i ) ∑ i ( 1 − W i ) / ( 1 − e ^ i ) .

The two are not algebraically identical in finite samples, though both target the ATE under suitable conditions.

Formal statement

τ ^ I P W = 1 N ∑ i [ W i Y i e ^ i − ( 1 − W i ) Y i 1 − e ^ i ] ; ω i = W i e ^ i + 1 − W i 1 − e ^ i ; Hájek normalizes each arm by its summed weights.

Assumptions and scope

  • Identification requires consistency, unconfoundedness and overlap. Weighting acts on those assumptions and supplies none of them.

  • Extreme weights are an overlap failure reported in another vocabulary, not a numerical nuisance. Treating them as something to smooth away hides the condition that makes the estimate unreliable.

  • Trimming units with extreme scores changes the target population. The estimand must be restated as an effect over the retained subpopulation rather than reported as the original ATE.

  • The weights are estimated, so uncertainty estimates must account for the estimation of e ^ ( X ) ; treating the weights as known understates the standard error.

  • The Horvitz–Thompson form need not produce weights summing to the sample size in either arm, so it can fall outside the range of the observed outcomes. The Hájek form normalizes within arm and is usually better behaved in finite samples.

  • Stabilized weights reduce variance while preserving the target only under the corresponding normalization; they do not repair an overlap failure.

  • Balance must be assessed in the weighted sample, on the original covariates, alongside the maximum weight and the effective sample size.

Worked material

Example

Two weight distributions

Two studies both estimate an effect by inverse-probability weighting on 1,000 units.

Study A. Estimated propensity scores run from 0.18 to 0.79. The largest weight is 5.6. The effective sample size is 890. After weighting, every standardized difference is below 0.04.

Study B. Scores run from 0.004 to 0.991. The largest weight is 250. The effective sample size is 96. After weighting, every standardized difference is below 0.02.

Which estimate would you trust? Study A, despite its slightly worse balance figures.

Study B's balance looks better, but its effective sample size says the estimate rests on the equivalent of 96 equally weighted observations, not 1,000. A single unit carrying a weight of 250 contributes a quarter of that. Move that one outcome and the answer moves with it.

What Study B's numbers are reporting. The problem is the absence of comparable units, not instability to be smoothed. Scores of 0.004 mean units who had essentially no chance of the treatment they received, and nothing in the data describes what similar units would have done under the other condition.

What trimming would do. Dropping units below 0.02 and above 0.98 would shrink the largest weight and raise the effective sample size, and the estimate would then describe the subpopulation that remains, not the original 1,000. That is a legitimate move, and it is a change of question, not a repair.

Non-example

Things weighting does not accomplish

It does not repair unmeasured confounding. Every weight is a function of the estimated propensity score, which is a function of the measured covariates. A variable nobody recorded enters nowhere.

Capping weights does not restore overlap. Setting every weight above 10 to 10 makes the arithmetic well-behaved and reduces variance at the price of bias. It is a change to the estimator, not a move to a new target. The capped quantity has no simple description as the effect for some stated population, so it is harder to report honestly than trimming. The units that had no comparable counterparts still have none.

Stabilized weights do not fix an overlap failure. They reduce variance under the corresponding normalization. A unit with e ^ = 0.002 remains a unit with almost no comparable counterparts.

A well-balanced weighted sample is not sufficient. Balance on the measured covariates after weighting shows the procedure did its job on those covariates. Sufficiency of the covariate set is unconfoundedness, and no diagnostic addresses it.

Treating the weights as known understates uncertainty. e ^ ( X ) was estimated, and inference that ignores this reports a standard error smaller than the procedure warrants.

A large N is not a large effective sample size. Ten thousand units with a few dominant weights can carry the information of a few hundred. The raw count is not the relevant number.

Contrast

Interpreting large weights

Read as a numerical problemRead as an overlap failure
What the weight meansAn unstable computationFew or no comparable units for this observation
Natural responseCap, winsorise, or trim to stabiliseAsk whether the comparison is supported at all
Effect on the targetEstimator altered; no clean named targetEstimand restated explicitly, and reported
What gets reportedA point estimate with a smaller varianceOverlap diagnostics, effective sample size, restricted population
What the reader learnsThat the analysis was tidyWhich units the estimate actually describes

Why the first reading is so tempting. The symptom really is numerical, a variance that will not settle, an estimate that jumps when one observation changes, and every numerical tool offers a fix. The fix works on the symptom.

What the second reading supplies. It connects the weights back to the assumption they depend on. A propensity score of 0.004 means the data contain almost nothing about what units like this one would have done under the other treatment. That is not a defect of the estimator; it is a limit of the evidence.

The legitimate move. Trimming is a reasonable response, provided the estimand is restated. An analysis of the units with e ^ ∈ [ 0.05 , 0.95 ] estimates an effect for that subpopulation, which may be exactly the practical question. What is not legitimate is trimming and continuing to describe the result as the average treatment effect over everyone.

Common errors

Common misconception

Extreme inverse-probability weights are a numerical instability to be fixed by trimming or capping, after which the estimate can be reported as before, and capping and trimming are interchangeable ways of doing it.

Related units

Requires

Connected

Learn this topic

Used in

Sources

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Layout

Simple is one plain column with nothing that moves or redraws, for older or slower devices. Auto uses it on Firefox 143 and earlier. Changing it reloads the page.

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.