Bayesian Doubly Robust Estimation

Statistics
Introduced by
Bang & Robins (2005); Bayesian extensions by Scharfstein, Kennedy, and others
Year
2005–2010s
Type
Semiparametric causal estimation with Bayesian inference
Family
Quasi-experimental / causal inference

What does it do?

Bayesian doubly robust estimation applies Bayesian inference to the augmented inverse probability weighting (AIPW) estimator of the average treatment effect, the doubly robust form introduced by Bang and Robins (2005).

A propensity model and an outcome regression each receive prior distributions, and the treatment effect is summarised as a posterior distribution rather than a single estimate. The frequentist estimator is consistent when either working model is correct. Whether the posterior retains this property under misspecification must be checked rather than assumed.

The intuition behind the method

The frequentist estimator is doubly robust because it combines an inverse-probability-weighted outcome with a correction term built from the outcome regression, so the estimate is consistent if either component is correctly specified. The Bayesian version keeps this structure but fits both component models with priors and evaluates the estimator at each posterior draw. Uncertainty about the propensity scores and the outcome regression therefore feeds into one set of posterior draws for the treatment effect, and the credible interval reflects both sources. The approach gives a full distribution for the effect and a principled way to add prior information, but the result is only as sound as the two component models and their priors. The causal reading of the posterior also rests on standard assumptions: unconfoundedness (no unmeasured confounders given the covariates), positivity (every unit has a propensity score strictly between 0 and 1, with overlap between treatment arms), consistency (the observed outcome is the potential outcome under the treatment actually received), and no interference between units (SUTVA). The posterior summary is only as causal as these assumptions.

History

The doubly robust estimator used here was formalised by Bang and Robins (2005), who combined inverse probability weighting with outcome-regression augmentation for missing-data and causal inference models, and reported simulation studies of its finite-sample behaviour as well as an application to a cardiovascular clinical trial. Bayesian versions place prior distributions on both nuisance models and evaluate the estimator at each posterior draw.

When to use it

Choose this method when the data are observational, the treatment is binary as in the mechanics formula, and you want an average treatment effect with a posterior distribution that carries uncertainty from both the propensity and outcome models. It is well suited when there are many covariates and prior knowledge about confounders or effect modifiers is available, or when the analysis will be followed by sensitivity checks that vary the priors. Avoid it when the sample is too small for either nuisance model to be estimated with reasonable precision; simpler estimators with fewer parameters are easier to defend there. It is unnecessary when a randomised experiment already balances the covariates, since propensity adjustment then adds little.

Limitations and considerations

  • Computationally demanding: fitting two Bayesian models and combining them via MCMC is substantially slower than frequentist doubly robust estimation.
  • Choice of priors for both the propensity model and the outcome regression introduces additional researcher degrees of freedom; poorly chosen priors can distort inference, especially in small samples.
  • The double-robustness guarantee is asymptotic: in finite samples, severe misspecification of one model still degrades performance, so it is not a license to ignore model diagnostics.
  • Software support is less mature than for frequentist DR estimation; implementation typically requires Stan, JAGS, or custom code rather than off-the-shelf packages.
  • Interpreting a posterior distribution over the causal estimand requires familiarity with Bayesian reporting conventions, which can hinder communication with audiences trained only in frequentist frameworks.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Doubly robust structure: the frequentist estimator is consistent for the average treatment effect if either the propensity model or the outcome model is correctly specified, which gives two chances to get the adjustment right instead of one. This property is established for the frequentist form, and the posterior needs its own checks.
  • A full posterior distribution over the treatment effect is computed from draws of both component models, so the credible interval reflects uncertainty from the propensity and outcome parts jointly, as propagated through the posterior draws. Its calibration under misspecification has to be checked, not assumed.
  • Prior knowledge about confounders or effect modifiers can be included directly, which can sharpen inference when such knowledge is available.
  • Shrinkage priors such as the horseshoe handle large covariate sets without a separate variable-selection step.
  • Varying the priors or swapping a component model produces a new posterior through the same pipeline, which makes sensitivity analysis systematic.

Applications

  • Comparative effectiveness research in clinical epidemiology, where treatment-selection and outcome models both carry uncertainty and the analysis needs an explicit interval for the effect.
  • Health-technology assessment estimating the causal impact of an intervention from electronic health records with many confounders.
  • Program evaluation in education or social policy, where prior knowledge about socioeconomic confounders can be entered as informative priors.
  • Environmental epidemiology estimating dose-response relationships when exposure assignment depends on many spatial covariates.
  • Sensitivity analysis pipelines that vary prior assumptions to show how the causal estimate changes under different assumptions about confounding.

How it works

How it works

1

Model the probability of treatment given covariates, for example with a logistic regression for a binary treatment, as in the formula above. Priors are placed on the propensity coefficients, and each posterior draw yields a set of propensity scores, one per unit, typically obtained by MCMC or variational inference.

Formula
\pi(X_i) = P(A_i=1 \mid X_i)
2

Specify a regression model for the expected outcome under each treatment arm as a function of covariates. Priors are placed on the regression parameters, and posterior predictive draws give potential outcomes for each unit under each arm.

Formula
\mu_a(X_i) = E[Y_i \mid A_i=a, X_i]
3

At each posterior draw, combine the inverse-probability-weighted outcomes with the augmentation term built from the outcome-model predictions, as in the formula above. This gives one value of the average treatment effect per draw, and the collection of values forms the posterior. If either the propensity or the outcome component is well specified, the frequentist form of the estimator is consistent, but the posterior behaviour must be assessed separately.

Formula
\hat{\tau}_{DR} = \frac{1}{n}\sum_{i=1}^{n}\left[\frac{A_i Y_i}{\hat{\pi}(X_i)} - \frac{(A_i - \hat{\pi}(X_i))\,\hat{\mu}_1(X_i)}{\hat{\pi}(X_i)}\right] - \frac{1}{n}\sum_{i=1}^{n}\left[\frac{(1-A_i)Y_i}{1-\hat{\pi}(X_i)} + \frac{(A_i-\hat{\pi}(X_i))\,\hat{\mu}_0(X_i)}{1-\hat{\pi}(X_i)}\right]
4

Choose priors on the propensity and outcome coefficients that reflect substantive knowledge about confounders and effect modifiers. When the covariate set is large, shrinkage priors such as the horseshoe can reduce variance from many weakly relevant covariates. Shrinkage can also bias the effect: shrinking the coefficient of a true confounder distorts the adjustment, so confounders are best left unpenalised or their prior sensitivity checked. Half-normal priors suit scale parameters but are not appropriate as default priors for signed regression coefficients.

5

Summarise the treatment-effect draws with a posterior mean or median and a credible interval. Check convergence diagnostics, such as R-hat and effective sample size, before reporting. Sensitivity analyses repeat the fit with different priors or alternative component models to see whether conclusions change.

Common pitfalls

  • Treating double robustness as a guarantee that neither model matters: both propensity and outcome models should still be carefully specified and checked, because the finite-sample benefit of DR diminishes when one model is severely wrong.
  • Failing to verify posterior convergence diagnostics (R-hat, effective sample size) before interpreting results, which can produce misleading credible intervals from a non-converged chain.
  • Using flat or improper priors in high-dimensional settings, which can lead to identification problems or numerical instability during MCMC sampling.
  • Conflating credible intervals with frequentist confidence intervals in reporting: the probability statement they support is different and should be described accurately.
  • Ignoring overlap (positivity) violations — units with near-zero or near-one estimated propensity scores create extreme inverse-probability weights that destabilise the DR estimator regardless of the Bayesian wrapping.

Frequently asked questions

What makes this estimator 'doubly robust'?

The DR estimator contains two working models: one for the treatment propensity and one for the outcome. If either model is correctly specified, the frequentist estimator of the average treatment effect is consistent. This gives a researcher two chances to get a model right instead of one, a protection that single-model methods such as propensity-score weighting alone or outcome regression alone cannot offer.

How does the Bayesian version differ from the frequentist doubly robust estimator?

In the frequentist version, both sub-models are fitted by maximum likelihood and the DR estimate is a single number with a frequentist standard error. In the Bayesian version, both sub-models have prior distributions over their parameters, posterior draws propagate through the DR formula, and the final output is a full posterior distribution of the treatment effect, capturing uncertainty from both models jointly. Whether that posterior is well calibrated under misspecification is a separate question and needs checking.

Do I need both models to be correctly specified?

No. For the frequentist estimator, only one needs to be correct for consistent estimation, which is its defining advantage. Finite-sample performance still degrades when one model is severely wrong, and whether the Bayesian posterior keeps the same robustness should be checked, for example by simulation or sensitivity analysis. Invest in careful specification and model checking for both components.

Which software can implement Bayesian doubly robust estimation?

Stan (via RStan or PyStan) and JAGS are commonly used because they support custom Bayesian model code for both sub-models. The R packages brms or rstanarm can fit each component model separately; combining them into a DR estimator requires custom post-processing of posterior draws.

When should I prefer this over standard doubly robust estimation?

Prefer the Bayesian version when you have genuine prior knowledge to incorporate, when sample sizes are moderate and honest uncertainty quantification is critical, or when you intend to perform systematic sensitivity analyses by varying priors. For large samples where asymptotic frequentist inference is reliable and computation is a concern, the standard frequentist DR estimator may be sufficient.

Related methods

Sources

  1. Bang, H., & Robins, J. M. (2005). Doubly robust estimation in missing data and causal inference models. Biometrics, 61(4), 962-973.

    Open DOI reference
  2. Scharfstein, D., Nabi, R., Kennedy, E. H., Huang, M.-Y., Bonvini, M., & Smid, M. (2021). Semiparametric sensitivity analysis: Unmeasured confounding in observational studies. arXiv:1910.14694.

    Open publication reference