Bayesian Sensitivity Analysis for Causality
Bayesian Sensitivity Analysis for Unmeasured Confounding in Causal Inference · Also known as: Bayesian sensitivity analysis, Bayesian bias analysis, probabilistic sensitivity analysis for confounding, Bayesian unmeasured confounding analysis
Bayesian sensitivity analysis for causality quantifies how much an unmeasured confounder would need to influence both treatment assignment and outcome to overturn a causal conclusion. Rather than testing a single worst-case scenario, it places prior distributions over the strength of hidden confounding, propagates uncertainty through a full Bayesian model, and reports a posterior distribution for the causal effect that honestly reflects what is and is not identified from observed data.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
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.
Strengths & limitations
- Propagates all sources of uncertainty — sampling and confounding — into a single posterior distribution for the causal effect.
- Allows domain knowledge about unmeasured confounders to be formally incorporated via informative priors, making the analysis more realistic than classical worst-case approaches.
- Produces calibrated credible intervals that honestly widen when confounding is plausible, supporting transparent communication of fragility.
- Flexible enough to accommodate complex outcome and treatment models, including survival outcomes, count data, and propensity-score-based designs.
- Requires specification of priors on unidentified confounding parameters; results can be sensitive to these choices and critics may question their validity.
- Computationally demanding: MCMC sampling for models with latent variables is slower than classical sensitivity analysis and may require expert tuning.
- Partial identification means the data alone cannot verify whether the priors are correct, demanding careful prior justification and reporting.
- Less familiar to reviewers in many applied disciplines, potentially reducing reproducibility and uptake compared with standard frequentist sensitivity analyses.
Frequently asked
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?
Yes. McCandless et al. (2007) demonstrated Bayesian sensitivity analysis within a propensity-score framework. After matching on observed covariates, unmeasured confounders are modelled as latent variables with prior distributions, and the posterior for the treatment effect reflects residual confounding uncertainty.
What software can I use?
Stan and BUGS/JAGS are the most common platforms, allowing users to specify the extended outcome and treatment models with latent confounders. The R package 'sensitivitymv' covers classical analysis; dedicated Bayesian packages are found in the 'BayesSens' and 'EValue' ecosystem, alongside bespoke Stan code published in methodological papers.
Sources
- McCandless, L. C., Gustafson, P., & Austin, P. C. (2007). Bayesian propensity score analysis for observational data. Statistics in Medicine, 26(8), 1704-1718. DOI: 10.1002/sim.3460 ↗
- Gustafson, P. (2015). Bayesian Inference for Partially Identified Models: Exploring the Limits of Limited Data. CRC Press / Chapman & Hall. ISBN: 9781439869390
How to cite this page
ScholarGate. (2026, June 3). Bayesian Sensitivity Analysis for Unmeasured Confounding in Causal Inference. ScholarGate. https://scholargate.app/en/causal-inference/bayesian-sensitivity-analysis-for-causality
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- Bayesian Difference-in-DifferencesCausal inference↔ compare
- Doubly Robust EstimationCausal inference↔ compare
- Instrumental Variables in Health ResearchHealth Economics↔ compare
- Marginal Structural ModelCausal inference↔ compare
- Propensity Score MatchingResearch Statistics↔ compare
- Sensitivity Analysis for CausalityCausal inference↔ compare