- Introduced by
- McCandless, Gustafson & Austin
- Year
- 2009
- Type
- Bayesian causal weighting estimator
- Family
- Quasi-experimental / causal inference
What does it do?
Bayesian propensity score weighting estimates the average treatment effect (ATE) from observational data.
It fits a Bayesian model for the propensity score and builds inverse probability weights from posterior draws of that model. Because the propensity-score parameters have a posterior distribution, uncertainty in the score model can be carried into the treatment-effect summary instead of being discarded, as in a single plug-in estimate. Like every propensity-score analysis, it relies on no unmeasured confounding, positivity and related causal assumptions.
The intuition behind the method
Standard propensity score weighting fits one logistic model for each unit's probability of treatment, then reweights the sample so that treated and untreated groups resemble each other on the measured covariates. The Bayesian version treats the coefficients of that model as unknown quantities with a prior distribution. Instead of one set of fitted values, the analyst obtains many posterior draws, builds a set of weights from each draw, and computes a weighted treatment-effect estimate for each one. The spread of these estimates shows how much uncertainty in the score model passes into the effect estimate. Whether this spread is well calibrated depends on the setting. McCandless et al. (2009), who studied a related latent-propensity method rather than this exact two-stage procedure, reported longer intervals with little gain in coverage probability.
History
Propensity score methods were introduced by Rosenbaum and Rubin in 1983 as a tool for covariate adjustment in observational studies. McCandless, Gustafson and Austin (2009) proposed a Bayesian propensity score analysis in which the propensity score is treated as a latent variable, with treatment and outcome models fitted simultaneously by MCMC for a dichotomous treatment and outcome with a log odds ratio effect measure. This differs from the two-stage per-draw weighting procedure described on this page, which belongs to the broader Bayesian propensity-weighting literature. Saarela, Stephens, Moodie and Klein (2015) developed a fully Bayesian procedure for estimating marginal structural models with inverse probability of treatment weighting.
When to use it
Choose this approach when you have observational data with a binary treatment, pre-treatment confounders and an outcome, and you want a posterior distribution for the average treatment effect rather than an interval from asymptotic theory. It is most relevant when propensity-score estimation uncertainty is likely to matter, for example in smaller samples or when the treatment model is weakly identified, when there is substantive prior knowledge about treatment selection, or when the weighting is part of a larger Bayesian analysis such as a marginal structural model. The formulas on this page cover a binary treatment and the ATE on the difference scale only. Do not use it as a remedy for unmeasured confounding or for poor overlap, because it still requires that all important confounders are measured. It is computationally heavier than frequentist weighting and may add little when the sample is large and the treatment model is clearly well specified.
Limitations and considerations
- Computationally intensive: MCMC over the propensity-score parameters, followed by weighting for every draw, can be slow for large datasets.
- Prior sensitivity: with small samples or weak identification, the posterior for the ATE can depend noticeably on the chosen prior.
- The treatment model must be specified explicitly, so misspecification biases the ATE; the Bayesian framing does not remove this problem.
- Wider is not automatically better: in the McCandless et al. case study and simulations, Bayesian intervals were longer on average with little gain in coverage probability.
- Units with propensity scores near 0 or 1 still produce extreme weights in each posterior draw, which remains a practical problem.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Carries propensity-score estimation uncertainty into the posterior for the treatment effect, which conventional analyses that treat the fitted scores as known do not do.
- Allows substantive prior knowledge about which covariates drive treatment selection to enter the treatment model.
- Gives a full posterior distribution for the ATE, so probability statements such as P(ATE > 0) can be read directly from the draws.
- Priors can stabilise coefficient estimates when the treatment model is weakly identified, although the benefit depends on the prior chosen.
- Extends to marginal structural models: Saarela et al. propose a fully Bayesian procedure for estimating these models with inverse probability of treatment weighting.
Applications
- Estimating the effect of a treatment or intervention on patient outcomes from observational or electronic health record data, where treatment was not randomised.
- Evaluating policy or programme effects when assignment was not randomised and the treatment model is uncertain.
- Causal analyses with small datasets, where maximum-likelihood propensity estimates may be unstable.
- Marginal structural models for time-varying treatments, within the framework developed by Saarela et al.
- Decision problems in which a probability statement about the sign or size of an effect, such as P(ATE > 0), is the quantity of interest.
How it works
How it works
A Bayesian logistic model is specified for the binary treatment indicator given pre-treatment covariates. A prior is placed on the regression coefficients. A common practice is to use weakly informative priors, which regularise the estimates; the sensitivity of results to the prior should be checked.
Formula
e_i = P(T_i=1 \mid X_i) \;\text{estimated via Bayesian logistic regression with prior } p(\alpha)The posterior distribution of the propensity-score parameters is obtained by MCMC sampling, for example Hamiltonian Monte Carlo, or by a variational approximation. Each posterior draw implies a full vector of unit-level propensity scores.
Formula
p(\alpha \mid \mathbf{X}, \mathbf{T}) \propto \prod_i p(T_i \mid X_i, \alpha)\, p(\alpha)For each posterior draw, each unit receives the inverse of the probability of the treatment it actually received, as in the weights formula above. Stabilised variants, which place the marginal treatment probability in the numerator, are often used to reduce variance. Only the unstabilised weights are written out here, so apply them with attention to extreme values.
Formula
w_i = \frac{T_i}{\hat{e}_i} + \frac{1-T_i}{1-\hat{e}_i} \quad (\text{IPW weights, stabilised if needed})For each posterior draw s, the weighted outcome difference between treated and untreated units gives one draw of the ATE on the difference scale. The collection of draws approximates the posterior distribution of the ATE, from which posterior means, medians and credible intervals are summarised. The formula given is for the ATE only; an effect on the treated would require a different weight definition. For a binary outcome, the same draws can be summarised on the risk-difference scale or converted to other scales.
Formula
\hat{\tau}_{ATE} = \mathbb{E}\!\left[\frac{T_i Y_i}{\hat{e}_i} - \frac{(1-T_i) Y_i}{1-\hat{e}_i}\right]Each MCMC draw s carries its own propensity scores and therefore its own weighted estimate of the ATE. The posterior of the ATE is represented by the set of these estimates over all draws, so its spread includes propensity-score estimation uncertainty that a single set of plug-in weights would omit. In McCandless et al., a related latent-variable method gave a credible interval 10 per cent wider than a conventional propensity analysis, with little improvement in coverage probability, so wider intervals should not be assumed to be better calibrated. Saarela et al. argue that the weights should instead be derived from posterior predictive treatment-assignment probabilities, which is a different construction from the per-draw weights described here.
Formula
\hat{\tau}^{(s)} = \frac{\sum_i w_i^{(s)} T_i Y_i}{\sum_i w_i^{(s)} T_i} - \frac{\sum_i w_i^{(s)} (1-T_i) Y_i}{\sum_i w_i^{(s)} (1-T_i)}, \quad \alpha^{(s)} \sim p(\alpha \mid \mathbf{X}, \mathbf{T}), \; s=1,\dots,SCommon pitfalls
- Using flat priors when the treatment model has many covariates relative to the sample size. Near-separation can then produce extreme weights, so weakly informative priors are a common choice; check sensitivity to the prior.
- Not trimming or stabilising extreme weights. A unit with a propensity score close to 0 or 1 in a given draw can dominate that draw's weighted estimate.
- Confusing credible with confidence intervals. A credible interval is a posterior probability statement conditional on the data and the prior, not a guarantee about repeated-sample coverage.
- Treating per-draw weights as if they were the posterior predictive construction. Saarela et al. argue for weights derived from posterior predictive assignment probabilities, so the two approaches should not be conflated.
- Assuming that Bayesian uncertainty quantification compensates for unmeasured confounding. It does not; causal identification still requires ignorability given the observed covariates.
- Skipping overlap checks. Compare the distributions of propensity scores by treatment group before interpreting results; poor overlap signals a positivity problem.
Frequently asked questions
How does Bayesian PSW differ from standard (frequentist) propensity score weighting?
Standard PSW fits a single logistic model by maximum likelihood, uses the predicted probabilities as weights, and computes standard errors for the outcome comparison separately, which usually ignores the uncertainty in the estimated scores. Bayesian PSW treats the logistic coefficients as random, samples them from their posterior, and propagates each draw through the weights to obtain a posterior distribution for the treatment effect. As McCandless et al. note, conventional confidence intervals are typically calculated without acknowledging uncertainty in the estimated propensity scores.
Do I still need to check covariate balance after Bayesian weighting?
Yes. Bayesian estimation of the propensity score does not guarantee that the resulting weights produce balance on observed covariates. You should still compute standardised mean differences between weighted treated and control groups and verify that they are close to zero.
What prior should I use for the propensity-score model?
A common practice is to use weakly informative priors on the log-odds coefficients, which regularise estimates without imposing strong beliefs about covariate effects. Completely flat priors can lead to extreme weights when the model is near separation. Whatever prior you choose, check how much the ATE posterior changes under alternatives.
Is Bayesian PSW valid when there is unmeasured confounding?
No. Like all propensity-score methods, Bayesian PSW relies on the assumption that treatment assignment is ignorable given the observed covariates. If important confounders are unmeasured, the estimated ATE is biased regardless of the estimation framework. A separate sensitivity analysis for unmeasured confounding is needed to assess this threat.
When should I prefer Bayesian PSW over doubly robust estimation?
Bayesian PSW is preferable when you want a probabilistic posterior for the treatment effect and have substantive prior information about treatment selection. Doubly robust estimation offers protection against misspecification of either the treatment or the outcome model, but its standard errors rest on asymptotic results. With large samples and well-specified models the point estimates from the two approaches may be similar; the Bayesian version mainly differs in how uncertainty is quantified and how prior information enters.
Related methods
Sources
McCandless, L. C., Gustafson, P., & Austin, P. C. (2009). Bayesian propensity score analysis for observational data. Statistics in Medicine, 28(1), 94–112.
Open DOI referenceSaarela, O., Stephens, D. A., Moodie, E. E. M., & Klein, M. B. (2015). On Bayesian estimation of marginal structural models. Biometrics, 71(2), 279–288.
Open DOI reference