
AI-generated schematic: an adult vocational training classroom, with learners seated for a lecture or working at computers and an instructor at a whiteboard.
Inverse probability weighting (IPW; also called IPTW when applied to treatment assignment) is a common way to estimate causal effects in observational studies: first estimate each person's probability of receiving treatment—the propensity score—then weight by the reciprocal of the probability of the treatment actually received, constructing a "pseudo-population" in which the two groups have similar covariate distributions and estimating the average treatment effect while retaining the full sample. It can adjust only for measured confounding and requires sufficient overlap between the groups.
Where the problem comes from, and the core idea
In observational data, who receives treatment is rarely decided at random. Take employment training: people with more education or prior work experience may be more likely to enroll, and those same traits also affect later earnings. A raw comparison of mean earnings between participants and non-participants therefore mixes true treatment effects with differences in who shows up—confounding. Randomized trials rely on random assignment so that measured and unmeasured baseline traits have no systematic average difference between groups; observational studies lack that guarantee and cannot simply compare outcomes (Austin & Stuart, 2015).
Rosenbaum and Rubin (1983) defined the propensity score as the conditional probability of treatment given measured covariates X, written e(X) = P(T = 1 | X), and showed that it is a balancing score: among people with the same propensity score, measured covariates have the same distribution in the treated and control groups. IPW builds on this by assigning each person a weight: 1/e(X) for treated individuals and 1/(1 − e(X)) for controls. For example, someone whose background makes training very likely (e = 0.9) but who did not enroll receives weight 1/(1 − 0.9) = 10 and stands in, in the analysis, for a batch of similar people who "looked likely to enroll but did not"; someone unlikely to enroll (e = 0.1) who did enroll likewise gets weight 10. In the resulting weighted pseudo-population, treatment assignment is independent of measured covariates, and the difference in weighted mean outcomes estimates the average treatment effect (ATE) (Austin & Stuart, 2015).

AI-generated schematic (not real data): the horizontal line runs from low to high propensity score; orange marks trainees and blue marks non-participants. The upper row is the original sample; the lower row is after weighting: dot positions stay the same, while the few individuals who fall in the other group's concentrated region receive larger weights. Larger dots mean larger weights; sizes only show relative scale, not a literal proportion.
The idea comes from survey sampling. Horvitz and Thompson (1952) studied unequal-probability sampling without replacement from a finite population and weighted each sampled unit by the reciprocal of its inclusion probability to obtain an unbiased estimate of the population total. Causal problems can be cast similarly: each person reveals only the potential outcome under the treatment actually received, so "actually treated" is like being drawn into the treated sample, and the propensity score plays the role of the inclusion probability. Robins, Hernán, and Brumback (2000) systematically used inverse-probability-of-treatment weighting estimators in marginal structural models, noting that when confounders change over time and are themselves affected by prior treatment, conventional confounding adjustment is biased, whereas these weighted estimators can be consistent.
Compared with propensity-score matching, IPW need not drop people who lack a close match; everyone stays in the analysis with their own weight. The cost is that individuals with propensity scores near 0 or 1 receive enormous weights, so a few people can dominate the estimate. The weights also determine the estimand. The weights above target the ATE for the whole population; if the question is the effect of training on those who actually participated—the average treatment effect on the treated (ATT)—treated units get weight 1 and controls get e(X)/(1 − e(X)), which reweights the control group to look like the treated group (Austin & Stuart, 2015).
Identification assumptions and variable choice
Identification for IPW rests on a set of assumptions. Austin and Stuart (2015) list four: consistency—the potential outcome under the treatment actually received equals the observed outcome; exchangeability, also called ignorable treatment assignment—every variable that jointly affects treatment choice and the outcome has been measured; positivity—everyone's probability of treatment lies strictly between 0 and 1; and correct specification of the propensity-score model. "No unmeasured confounding" cannot be formally tested from the data; it can only be made more plausible by assembling confounders carefully at the design stage using subject-matter knowledge. Positivity can be partly inspected in the data: if almost everyone in some covariate cell enrolls or almost no one does, weights for that cell explode.
These premises distinguish IPW from instrumental-variable methods. IV methods allow unmeasured confounding but need an exogenous variable that affects the outcome only through treatment (the exclusion restriction); IPW needs no such instrument, at the cost of accepting that measured variables suffice to explain treatment choice. Despite the word "weighting," IPW does not automatically remove confounding: the weights balance only the variables that enter the propensity-score model.
Variables in the propensity-score model should be baseline covariates measured before treatment. Austin and Stuart recommend choosing confounders and important prognostic variables from causal diagrams, prior literature, and expert judgment—not by significance testing in the analysis sample, and never using outcome data when building the propensity score, so that study design stays separate from outcome analysis. Mediators that arise after treatment and lie on the path from treatment to outcome should not be entered as confounders. In the training example, a professional certificate earned after the program is such a variable: putting it in the model treats the earnings gain that runs through the certificate as a between-group difference to be removed.
Weight diagnostics and common misuses
After estimating weights and before estimating effects, at least three checks are needed. First is the weight distribution. Austin and Stuart relay Cole and Hernán's advice: report the mean, standard deviation, minimum, and maximum of the weights; with stabilized weights, a mean far from 1 or extremely large values suggests positivity failure or misspecification of the propensity-score model.
Extreme weights are commonly handled in two ways. Stabilized weights replace the numerator 1 with the marginal probability of the corresponding treatment in the sample: P(T = 1)/e(X) for the treated and P(T = 0)/(1 − e(X)) for controls, which can reduce the variability of ordinary weights. Truncation sets weights above a chosen threshold to that threshold, often the 1st and 99th percentiles of the weight distribution (Austin & Stuart, 2015). Truncated weights no longer correspond exactly to the original estimand, so estimates before and after truncation should both be reported.
Second is effective sample size (ESS). McCaffrey, Ridgeway, and Morral (2004) use ESS = (Σw)²/Σw² to measure the precision loss from weighting; it approximates the simple random sample size that would yield the same sampling variance. In their adolescent substance-abuse treatment analysis, the control group had 274 people before weighting and an ESS of about 107.5 afterward. When ESS is far below the actual headcount, the estimate is driven by a few high-weight individuals.
Third is covariate balance. Austin and Stuart recommend computing standardized differences in the weighted sample—not only means and proportions of each covariate, but also squares, interactions, and other higher-order features—and comparing continuous distributions graphically; some researchers treat standardized differences below 10% as negligible imbalance. If balance is poor, revise the propensity-score model (for example by adding nonlinear or interaction terms) and reweight. These checks are often skipped: among the 29 IPTW studies published in 2014 that they reviewed, only 14 (48.3%) checked baseline covariate distributions after weighting, and 3 (10.3%) reported the weight distribution.
Common misuses fall into five types:
- Treating weighting as automatic deconfounding: weights balance only measured variables; unmeasured motives, ability, and similar confounders remain.
- Ignoring positivity: when almost no one in some covariate combination accepts (or refuses) treatment, weights explode and the estimate is essentially extrapolation.
- Treating mediators or post-treatment variables as confounders: that erases the part of the effect that runs through those variables.
- Mixing ATE and ATT weights: computing an ATE-weighted result and reading it as "the effect on participants," or the reverse.
- Leaving extreme weights untreated and treating weights as known constants when computing standard errors: the weights are themselves estimates; variance should use robust (sandwich) estimators or the bootstrap (Austin & Stuart, 2015), or confidence intervals may be too narrow.
Example: vocational training and earnings
The following walks through a hypothetical study design without real data. The question is whether vocational training raises earnings: treatment T is enrollment, outcome Y is annual earnings two years later, and baseline covariates X include years of schooling, work experience, region, and pre-training earnings.
- Predict T from X (for example with logistic regression) to obtain each person's propensity score e(X).
- Plot the propensity-score distributions in both groups and check overlap: if almost no controls have e above 0.8, participants in the high-score region lack comparable counterparts.
- Choose weights for the research question: "If every worker enrolled, how would average earnings change?" uses ATE weights; "Does training help those who actually enrolled?" uses ATT weights.
- Compute stabilized weights, report their mean, extremes, and ESS, and truncate if needed.
- Check standardized differences in the weighted sample; if balance fails, return to step 1 and revise the model—never using outcome data in this loop.
- Estimate effects with a weighted mean difference or weighted regression, and form confidence intervals with robust variance or the bootstrap.
When interpreting, compare two quantities: the unweighted between-group earnings difference and the weighted estimate. If participants already had more schooling and higher pre-training earnings, the unweighted gap counts that composition difference as a training effect, and weighting shrinks the gap; the shrinkage corresponds to bias from measured confounding, while the remaining estimate still rests on "no unmeasured confounding."
Extreme weights are common in real data. The documentation for the R package WeightIt uses the cobalt package's built-in lalonde employment-training data (614 people: 185 treated, 429 controls) and estimates ATE weights from five covariates—age, years of schooling, marital status, no high-school diploma, and 1974 earnings. The documented output shows a maximum treated weight of about 73.3 and a treated ESS of about 51.7, far below the actual 185; controls have a maximum weight of about 3.0 and ESS of about 404. That is exactly the situation the previous section's diagnostics are meant to catch: a few treated individuals with very low propensity scores dominate the weighted analysis, so the next steps are to check overlap, consider stabilization or truncation, or reconsider whether ATE is the right estimand.
References
-
Horvitz, D. G., & Thompson, D. J. (1952). A Generalization of Sampling Without Replacement from a Finite Universe. Journal of the American Statistical Association, 47(260), 663–685. doi:10.1080/01621459.1952.10483446
-
Rosenbaum, P. R., & Rubin, D. B. (1983). The central role of the propensity score in observational studies for causal effects. Biometrika, 70(1), 41–55. doi:10.1093/biomet/70.1.41
-
Robins, J. M., Hernán, M. Á., & Brumback, B. (2000). Marginal Structural Models and Causal Inference in Epidemiology. Epidemiology, 11(5), 550–560. doi:10.1097/00001648-200009000-00011
-
McCaffrey, D. F., Ridgeway, G., & Morral, A. R. (2004). Propensity Score Estimation With Boosted Regression for Evaluating Causal Effects in Observational Studies. Psychological Methods, 9(4), 403–425. doi:10.1037/1082-989X.9.4.403
-
Austin, P. C., & Stuart, E. A. (2015). Moving towards best practice when using inverse probability of treatment weighting (IPTW) using the propensity score to estimate causal treatment effects in observational studies. Statistics in Medicine, 34(28), 3661–3679. doi:10.1002/sim.6607
-
WeightIt R package documentation. Compute effective sample size of weighted sample — ESS. ngreifer.github.io/WeightIt/reference/ESS.html
-
Research Methods · Ritual can be imitated; understanding cannot be faked.
-
Compiled and published by Scholay, the one-stop academic platform. If anything here infringes your rights, please let us know and we will take it down.
-
Also published on EnterScholar, a community for scholars in the age of AI.