Bayesian Sensitivity Analysis — Prior-informed uncertainty propagation and output sensitivity assessment

Simulation
Introduced by
Berger, J. O. (Bayesian robustness); Saltelli et al. (global SA integration)
Year
1984–1994
Type
Uncertainty propagation and sensitivity quantification
Family
Simulation / optimization

What does it do?

Bayesian Sensitivity Analysis (BSA) combines Bayesian inference with sensitivity analysis to quantify how uncertain model inputs, expressed as prior probability distributions, propagate through a model and affect its outputs.

It identifies which parameters contribute most to output variability and tests whether conclusions hold across plausible prior assumptions. The approach is most often used when expert knowledge must be formalized and data are limited.

The intuition behind the method

Standard sensitivity analysis varies one input at a time and asks how much the output changes. Bayesian Sensitivity Analysis goes further: it encodes what is believed about each input as a probability distribution (a prior), updates that belief with observed data to form a posterior, and then assesses how sensitive the conclusions are to the choice of prior or model assumptions. The result is not only a ranking of influential parameters but a probabilistic picture of output uncertainty, which shows whether conclusions would still hold if prior beliefs shifted. This matters most when data are sparse and expert knowledge has to be formalized.

History

The robust Bayesian literature on which the method draws examines how conclusions change across classes of priors; Berger (1994) gives an overview of this work. The integration of Bayesian inference with global sensitivity analysis draws on the variance-based methods described in Saltelli et al. (2008).

When to use it

Choose BSA when model inputs are uncertain and can be expressed as probability distributions, when prior information from experts or earlier studies should be included formally, and when the analysis needs output distributions rather than a single point estimate. Typical settings include health economic models, climate projections, reliability engineering and policy analysis with sparse data. Do not use it when no defensible prior can be stated for the parameters, or when the model cannot be run probabilistically at a feasible computational cost; a one-at-a-time or other deterministic sensitivity analysis is then the more practical choice. It is also a poor fit when the audience requires frequentist inference, because credible intervals carry different interpretive commitments.

Limitations and considerations

  • Requires a prior distribution for every uncertain parameter; eliciting these from experts can be contentious and time-consuming.
  • Posterior computation for high-dimensional or non-conjugate models generally needs MCMC or variational methods, which can be computationally expensive.
  • Results depend on the chosen prior class; a narrow class can miss sensitivity that a wider class would reveal.
  • Variance-based indices such as Sobol indices are conventionally defined for independent inputs, while posterior samples of parameters are usually correlated. Applying them to posterior samples therefore requires an explicit dependence treatment, which the standard definitions do not supply; the chosen approach should be documented with the results.
  • Communicating posteriors and credible intervals to non-statistical audiences is harder than communicating p-values or classical confidence intervals.
  • The sampler's convergence must be verified with additional diagnostics before any sensitivity result can be trusted.

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

Strengths

  • Makes prior assumptions explicit, so each expert belief about a parameter can be inspected and challenged.
  • Returns full posterior distributions for outputs rather than point estimates, which supports probabilistic statements about decision outcomes.
  • Ranks parameters by their contribution to output variance, indicating where additional data would most reduce output uncertainty.
  • Allows inference from limited data by letting prior information contribute; the trade-off is that the prior then carries substantial weight (see FAQ).
  • Supports robustness analysis across a class of priors, showing which conclusions are fragile and which remain stable.
  • Propagates parameter uncertainty through multi-step models, including simulations and decision trees, within one probabilistic framework.

Applications

  • Health economic modeling: assessing how cost-effectiveness conclusions change with uncertain transition probabilities and utility weights.
  • Climate and environmental science: quantifying how carbon cycle model outputs depend on uncertain soil carbon decomposition rates.
  • Pharmaceutical trials: sensitivity of efficacy estimates to prior beliefs about baseline event rates in Bayesian adaptive designs.
  • Structural engineering reliability: propagating uncertainty in material property priors through finite-element simulations.
  • Policy analysis: testing whether recommended interventions remain cost-effective across plausible prior distributions for willingness-to-pay thresholds.

How it works

How it works

1

Elicit or specify prior distributions p(theta) for all uncertain model parameters. Priors may be informative (expert-based) or weakly informative (vague). A class of priors, rather than a single prior, is often defined so that robustness can be tested across the prior space.

2

Formulate the likelihood function p(y | theta), which encodes how observed data y would be generated under each parameter configuration. This step ties Bayesian inference to the substantive model (simulation, regression, decision model, etc.).

3

Apply Bayes' theorem to compute the posterior distribution p(theta | y), proportional to the product of likelihood and prior. In complex models this is typically approximated via MCMC, variational inference, or importance sampling.

Formula
p(\theta \mid y) \propto p(y \mid \theta)\, p(\theta)
4

Push the posterior distribution through the quantity of interest Q(theta), the model output, to obtain the posterior predictive or derived output distribution p(Q | y). Uncertainty in the parameters translates directly into uncertainty in the outputs.

5

Quantify each parameter's contribution to output variance using Bayesian variance decomposition or global sensitivity indices, such as Sobol indices estimated from posterior samples. Standard variance-based definitions assume independent inputs, whereas posterior draws are usually correlated. Before parameters are ranked, the analyst must state how this dependence is handled and which index definition was used. The resulting ranking indicates where data collection would most efficiently reduce output uncertainty.

6

Report sensitivity rankings, credible intervals for outputs, and how conclusions change across the prior class. Flag findings that are robust (stable across plausible priors) versus fragile (hinge on specific prior assumptions), and recommend targeted data collection for high-sensitivity parameters.

Common pitfalls

  • Using a single fixed prior defeats the purpose of prior sensitivity analysis; priors should be varied systematically across a defined class.
  • Conflating posterior uncertainty with frequentist confidence: Bayesian credible intervals have a different meaning and should not be reported as classical confidence intervals.
  • Neglecting convergence checks (such as the Gelman-Rubin statistic and trace plots) can yield sensitivity indices computed from chains that have not converged. Report the diagnostic for every parameter and confirm convergence before ranking.
  • Reporting sensitivity rankings from a small posterior sample without uncertainty bounds produces overconfident rankings.
  • Computing variance-based indices on correlated posterior draws as if the inputs were independent can misattribute influence between correlated parameters; the dependence treatment should be stated.
  • Varying only the parameters while holding the model structure fixed; the choice of model form may dominate parameter uncertainty.

Frequently asked questions

How is Bayesian Sensitivity Analysis different from standard (frequentist) sensitivity analysis?

Standard sensitivity analysis typically varies inputs deterministically, one at a time, and reports how the output changes. Bayesian Sensitivity Analysis instead encodes input uncertainty as probability distributions updated by data, propagates the full posterior through the model, and explicitly tests robustness to the choice of prior — producing probabilistic output distributions rather than scalar change metrics.

Do I need a large dataset to apply Bayesian Sensitivity Analysis?

No — in fact, BSA is especially valuable with small datasets where priors carry meaningful weight. However, with very sparse data the choice of prior dominates the posterior, making prior sensitivity analysis even more critical and its conclusions more contingent on expert assumptions.

What software can I use for Bayesian Sensitivity Analysis?

Common tools include Stan (via RStan or PyStan) for MCMC posterior computation, the R package 'sensitivity' for Sobol indices on posterior samples, BUGS/JAGS for hierarchical models, and Python libraries such as PyMC and ArviZ for posterior diagnostics. SALib in Python handles global sensitivity indices.

How many prior variants should I test to claim robustness?

There is no fixed minimum. A useful starting point is to compare weakly, moderately and strongly informative priors, and in formal robustness analysis a class spanning the plausible prior space (for example a geometric or epsilon-contamination class) can be swept. The required size of the class depends on the problem and should be stated explicitly. Conclusions described as robust should hold across all plausible variants considered, not only a few hand-picked cases.

Can Bayesian Sensitivity Analysis be combined with Monte Carlo Simulation?

Yes — Monte Carlo samples drawn from the posterior distribution are the standard mechanism for propagating uncertainty in BSA. The distinction is that in BSA the sampling distribution is the posterior (data-updated beliefs) rather than an assumed fixed distribution, making the uncertainty estimates coherent with observed evidence.

Related methods

Sources

  1. Berger, J. O. (1994). An overview of robust Bayesian analysis. Test, 3(1), 5–124.

    Open DOI reference
  2. Saltelli, A., Ratto, M., Andres, T., Campolongo, F., Cariboni, J., Gatelli, D., Saisana, M., & Tarantola, S. (2008). Global Sensitivity Analysis: The Primer. Wiley.

    ISBN: 9780470059975