Bayesian Sensitivity Analysis for Causality

Statistics
Introduced by
McCandless, Gustafson & Austin (2007); Gustafson (2015)
Year
2000s–2010s
Type
Bayesian causal sensitivity analysis
Family
Quasi-experimental / causal inference

What does it do?

Bayesian sensitivity analysis for causality treats the strength of an unmeasured confounder as uncertain rather than fixed.

Prior distributions are placed on the confounding parameters, such as the coefficient gamma on a latent variable U in the outcome model, and these are integrated out to give a posterior distribution for the treatment effect tau. The posterior then shows how far the causal conclusion depends on what is assumed about hidden confounding.

The intuition behind the method

In an observational study, some unmeasured variable may affect both treatment assignment and the outcome, and the observed data cannot show whether it does. Classical sensitivity analysis asks how strong such a variable would have to be to change the conclusion. The Bayesian version asks what the analysis should conclude when a range of confounding strengths is considered plausible, and encodes that range as prior distributions. If the priors allow strong confounding, the posterior for tau spreads out or can shift; if they do not, the posterior stays concentrated, but only relative to those priors.

History

Sensitivity analysis for hidden bias in causal inference is classically associated with Cornfield et al. and, later, with Rosenbaum's formalisation of the approach. The Bayesian strand has a less clearly established origin. Manski's discussion of Rubin (1987, Section 6.2) describes a prior that restricts the censored distribution to a class of distributions, with a subjective probability distribution placed over that class, which is a Bayesian sensitivity analysis of the kind described on this page. Manski notes that such an analysis is feasible only if the class is sufficiently small. McCandless, Gustafson and Austin's paper in Statistics in Medicine (volume 26, 2008) is a Bayesian propensity-score analysis: it models the propensity score as a latent variable for measured confounders and fits the treatment and outcome models together. In its statin case study, the Bayesian credible interval for the treatment effect was 10 per cent wider than the conventional propensity-score interval. That paper does not itself carry out a sensitivity analysis for unmeasured confounding.

When to use it

Use Bayesian sensitivity analysis when you have an observational causal estimate — from difference-in-differences, propensity score matching, or regression — and want to quantify fragility to unmeasured confounding in a probabilistic framework rather than via a single worst-case scenario. It is especially valuable when domain expertise can inform meaningful priors on confounding parameters, and when communicating uncertainty to policymakers or clinicians who need full distributional summaries rather than point estimates. It is not appropriate when the data are from a well-randomised experiment with known assignment mechanism, or when no credible prior information on confounding is available and a simple Rosenbaum-style tipping-point analysis would suffice.

Limitations and considerations

  • The data cannot identify gamma or the distribution of U, so tau is informed only conditionally on those priors, and the posterior is only as credible as the justification for them.
  • Each unit has its own latent U_i, so sampling is heavier than in classical sensitivity analysis, and convergence must be checked before the posterior is reported.
  • The formula shown models only the outcome equation. A full treatment of U as a confounder also needs a model linking U to treatment, which adds parameters and further prior input.
  • Many applied readers know tipping-point sensitivity analyses better than Bayesian latent-variable models, which can slow acceptance of the results.
  • The analysis is conditional on stated assumptions: the functional form of the outcome model (here linear), the prior on U including whether it depends on the measured covariates X, and the priors on tau and the other nuisance parameters. These must be stated explicitly with the results.
  • A Bayesian sensitivity analysis is feasible only when the set of possible confounding models is small enough for a subjective distribution to be placed on it (Manski, Handbook of Statistics, Vol. 11: Econometrics).

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

Strengths

  • Because the joint model includes gamma and U, uncertainty about the confounder carries into the posterior for tau alongside sampling error, rather than being added later as a separate bound.
  • Priors on gamma and U make the assumed range of confounding strengths explicit, so the scenarios can be stated, checked and criticised.
  • The output is a full posterior for tau rather than a single tipping point, so readers can see how the estimate and interval change across prior settings.
  • The latent-confounder structure is not tied to one outcome family; the page's formula is a linear outcome equation, but the same latent-variable logic can be written for other outcome models.

Applications

  • Checking whether a propensity-score estimate of a treatment effect holds up across plausible strengths of a suspected unmeasured confounder, by placing priors on gamma and U and reporting the posterior for tau.
  • Re-analysing an observational estimate when a candidate confounder is known to exist but is absent from the dataset, with priors drawn from prior studies or subject-matter experts.
  • Reporting to a decision-maker the posteriors for tau under several alternative prior sets, showing which conclusions hold across them and which depend on the choice of prior.

How it works

How it works

1

Priors are set on the parameters that describe the unmeasured confounder. In the model formula these are gamma, the effect of U on the outcome, and the distribution of U itself. Informative priors can be drawn from prior studies or subject-matter knowledge, while diffuse priors can be used to explore a wide range of confounding scenarios. The formula as written does not include parameters linking U to treatment assignment, so a treatment model for U must be added separately if U is to be treated as a confounder of treatment.

2

The outcome equation adds the latent variable U_i to the observed treatment T_i and covariates X_i, with gamma giving the effect of U on the outcome and tau the effect of treatment. Because U_i is never observed, the model contains one latent value per unit, and these values must be sampled or integrated over together with tau.

Formula
Y_i = \alpha + \tau T_i + \beta X_i + \gamma U_i + \varepsilon_i
3

Bayes' theorem combines the likelihood of the observed data, given tau, gamma and U, with the priors on gamma and U, as written in the formula. Since U is unobserved, its values are integrated out or sampled, so the posterior for tau reflects uncertainty about the confounder as well as sampling variability.

Formula
p(\tau, \gamma, U \mid \text{data}) \propto p(\text{data} \mid \tau, \gamma, U)\, p(\gamma)\, p(U)
4

Markov chain Monte Carlo or variational inference draws samples from the joint posterior, and the marginal posterior for tau is summarised by its mean and credible interval. Whether these intervals are wider than those from an analysis without the confounder depends on the priors and the data, and the method does not establish this in general.

5

Results can be shown as the posterior for tau under several prior settings for gamma and U, or as a curve of the posterior mean and credible interval against assumed confounding strength. The causal conclusion is fragile if the posterior moves across zero or to a substantively different value once the priors allow stronger confounding.

Common pitfalls

  • Placing priors on gamma and U that put most of their mass near zero, then reading the resulting narrow posterior for tau as evidence of robustness. The narrowness comes from the prior, not from the data.
  • Reporting the posterior under one prior setting only, without showing how the posterior for tau shifts under alternative priors on gamma and U.
  • Treating this method as a substitute for identification. It quantifies how much conclusions depend on assumed hidden confounding; it does not remove the threat of unmeasured confounding.
  • Including U in the outcome equation but omitting it from the treatment model. This misspecifies the confounding structure and can bias the posterior for tau.
  • Reporting only the posterior mean of tau, which hides the credible interval that carries the sensitivity information.

Frequently asked questions

How does this differ from Rosenbaum's classical sensitivity analysis?

Rosenbaum's approach asks how large a hidden bias parameter Gamma would need to be to invalidate the study, reporting a tipping point. Bayesian sensitivity analysis instead places a prior distribution over the confounding parameters and integrates them out, yielding a full posterior for the causal effect. The Bayesian approach quantifies uncertainty continuously rather than identifying a single threshold.

What priors should I use for confounding parameters?

Ideally, priors should reflect domain knowledge, for example the plausible prevalence of an unmeasured risk factor in treated and untreated groups, and its known association with the outcome. When evidence is sparse, a range of priors should be explored and the sensitivity of the posterior to those choices should be reported explicitly.

Does a robust posterior mean the study is unconfounded?

No. A robust posterior means the causal conclusion holds across the range of confounding scenarios covered by your prior. If the prior does not include sufficiently strong confounding, robustness is an artifact of prior choice, not evidence of identification. Always justify why the prior range is substantively plausible.

Can I apply this method after propensity score matching?

In principle, yes. McCandless et al. describe a Bayesian propensity-score analysis in which the propensity score is a latent variable for measured confounders, and the treatment and outcome models are fitted together. Adding an unmeasured confounder U to that framework is a modelling extension that the paper does not itself perform, so the priors and model structure must be justified by the analyst.

What software can I use?

Stan, JAGS and BUGS are general-purpose Bayesian platforms that can fit models with latent variables, so the outcome and treatment models, including the latent U, are usually written by the analyst. Any dedicated package for this setup should be checked for validity before use; this entry does not name one.

Related methods

Sources

  1. McCandless, L. C., Gustafson, P., & Austin, P. C. (2007). Bayesian propensity score analysis for observational data. Statistics in Medicine, 26(8), 1704-1718.

    Open DOI reference
  2. Gustafson, P. (2015). Bayesian Inference for Partially Identified Models: Exploring the Limits of Limited Data. CRC Press / Chapman & Hall.

    ISBN: 9781439869390
  3. Manski, C. F., Handbook of Statistics, Vol. 11: Econometrics, p. ?