Sensitivity and uncertainty analysis

Sensitivity and uncertainty analysis

How varying a model's inputs shows how uncertain its outputs are and which inputs matter most, using methods from one-at-a-time tests to Monte Carlo sampling and Sobol indices.

What it is

Every model, from a chemical process simulation to a climate or epidemiological model, takes inputs that are uncertain: measured parameters, assumed rates, boundary conditions, material properties. Uncertainty analysis asks how this input uncertainty carries through the model into uncertainty in the output, for example by giving a range or probability distribution for a prediction. Sensitivity analysis asks which inputs are responsible for that output uncertainty, or how the output changes when each input changes. Together they show how much a result can be trusted, where more data would help most, and which parameters can be fixed or ignored.

It answers questions such as: What is the 95% range of predicted yield given uncertain kinetics? Which of 30 parameters drives most of the variation in the result? Can unimportant parameters be fixed to simplify the model? Do the conclusions change under reasonable alternative assumptions? Regulators, journals and decision-makers increasingly expect such analysis alongside model predictions.

Fundamentals

Types of uncertainty and the setup

Uncertainty is aleatory (natural variability that cannot be reduced, such as the weather) or epistemic (lack of knowledge, which more data can reduce, such as an unknown parameter), and also includes model-structure uncertainty. For a model Y = f(X1, …, Xk), the analysis starts by assigning each uncertain input a range or probability distribution (uniform, normal, lognormal, triangular), based on data, literature or expert judgment, and by specifying any correlations between inputs. The output of interest (a scalar or a time series) is chosen to match the decision to be made.

Local and screening methods

  • One-at-a-time (OAT) and local derivative-based sensitivity: change one input a small amount around a baseline and compute Si = ∂Y/∂Xi, or the normalized form (Xi/Y)(∂Y/∂Xi) (percent change in output per percent change in input). It is cheap and intuitive but valid only near the base point, ignores interactions and misleads for nonlinear models.
  • Tornado diagrams rank inputs by the output change over their plausible ranges.
  • Morris method (elementary effects): repeated OAT trajectories through the input space give, for each input, the mean absolute effect μ* (overall importance) and standard deviation σ (nonlinearity or interactions) at a cost of about r(k + 1) runs, with r = 10–50. It is suited to screening models with many inputs to find the few that matter.

Propagation of uncertainty

The simplest approach is first-order error propagation for independent inputs, σY2 ≈ Σ (∂f/∂Xi)2 σi2, which is accurate for small uncertainties and near-linear models. More generally, Monte Carlo simulation draws N random input sets from their distributions, runs the model for each, and uses the N outputs to estimate the mean, variance, percentiles and the full output distribution, with sampling error falling as 1/√N regardless of the number of inputs (1,000–10,000 runs typical). Latin hypercube sampling (LHS) stratifies each input’s distribution so that fewer runs cover the space evenly, and quasi-random sequences (Sobol’, Halton) improve convergence further. For expensive models, a fast surrogate model (polynomial chaos expansion, Gaussian process emulator, neural network; see reduced-order modeling) is trained on a limited number of runs and then used for the large-sample analysis. The result is reported as a distribution, a mean with a prediction interval, or the probability of exceeding a threshold.

Global sensitivity analysis

Global methods vary all inputs over their full ranges simultaneously, accounting for nonlinearity and interactions. Regression-based measures fit a linear model of Y on the sampled inputs and use standardized regression coefficients (SRC), or rank-based versions (SRRC), and partial correlation coefficients; they are easy but suit only monotonic, near-additive models, and R2 shows how adequate they are. Variance-based methods (Sobol’ indices) decompose the output variance: V(Y) = Σ Vi + Σ Vij + …. The first-order index Si = V[E(Y | Xi)]/V(Y) is the fraction of output variance due to Xi alone, and the total-effect index STi = 1 − V[E(Y | X∼i)]/V(Y) includes all interactions involving Xi. If STi is small, the input can be fixed (factor fixing); if STi is much greater than Si, interactions are important; and Σ Si = 1 means the model is additive. Estimators (Saltelli, Jansen) need N(k + 2) model runs, with N of 1,000–10,000, so the cost grows with the number of inputs, and bootstrap confidence intervals show convergence. Software includes SALib (Python), sensitivity (R), UQLab and Dakota, SimLab, and built-in tools in Simulink and COMSOL.

Reporting and good modeling practice

Present input distributions and their justification, output distributions (histograms, CDFs, percentile bands), a ranked importance chart (tornado or bar chart of Si and STi) and the number of runs. Structural uncertainty can be tested by comparing alternative models or scenarios (such as climate scenarios), and Bayesian calibration constrains parameters with data, producing posterior distributions that feed the analysis (see Bayesian inference and MCMC). Mistakes to avoid include using OAT for nonlinear models, ignoring input correlations, picking unrealistic ranges, and presenting a single deterministic output as if it were exact.

Typical applications and limits

Used in environmental and risk assessment, engineering safety margins, pharmacokinetic models, economic and energy models, and model reduction. Limits: results depend on assumed input distributions; high-dimensional or computationally expensive models need screening and surrogates; and the analysis addresses parameter uncertainty more easily than structural errors or missing processes.

Basic operation

  1. Define the question and output. State the decision and the model output of interest.
  2. List uncertain inputs. Identify parameters and assumptions, and assign ranges or distributions with sources.
  3. Screen if there are many inputs. Use the Morris method to drop unimportant factors.
  4. Sample the inputs. Generate Latin hypercube or Sobol’ sequence samples.
  5. Run the model. Execute all samples, using a surrogate if the model is slow.
  6. Analyze the output. Summarize the distribution and compute SRCs or Sobol’ indices with confidence intervals.
  7. Interpret and act. Rank the drivers of uncertainty and target data collection and model simplification.
  8. Collect the output. You obtain output uncertainty bounds and importance rankings; choosing distributions and sample sizes are covered in the video.

Good practice

  • Document input distributions. They drive the results.
  • Prefer global to local methods. Local methods fail for nonlinear models.
  • Check convergence. Increase N until indices are stable.
  • Include correlations. Independent sampling of dependent inputs gives unrealistic cases.
  • Distinguish variability from ignorance. They call for different treatment.
  • Communicate honestly. Show uncertainty ranges to decision-makers instead of single numbers, and state which sources (such as model structure) the analysis does not cover.

Key terms

  • Uncertainty analysis — studying how input uncertainty produces uncertainty in outputs.
  • Sensitivity analysis — determining which inputs most influence the output.
  • Monte Carlo simulation — repeated model runs with randomly sampled inputs.
  • Latin hypercube sampling — a stratified sampling design that covers the input space evenly.
  • Sobol’ indices — variance-based measures of each input’s contribution to output variance.
  • Elementary effects (Morris) — a screening measure from one-at-a-time trajectories.
  • Surrogate model — a fast approximation of an expensive model.

Video coming soon

About five minutes on Sensitivity and uncertainty analysis: how it works in detail, how the data is acquired, and how it is analyzed.

Shopping cart

0
image/svg+xml

No products in the cart.

Continue Shopping