Algorithm Search⌘K

Problemintro

Forward uncertainty propagation

Also called uncertainty propagation.

Given a model and the probability distributions of its inputs, compute the distribution, moments or failure probabilities of its outputs.

Forward uncertainty propagation asks how the uncertainty of the inputs of a model carries over to its outputs. The inputs, such as material properties, loads, rate constants or initial data, are modelled as random variables or random fields with known laws. The model, often a differential equation solved numerically, maps each input to an output, and the task is to find the law of a quantity of interest computed from that output: its mean and variance, a quantile, or the probability that it passes a safety limit. Every method makes a trade between the number of model runs, which are expensive, and the smoothness and dimension of the map from the inputs to the output.

In plain words

A computer model takes some numbers in and gives a number out. Some of the input numbers are not known exactly; you only know which values are likely and which are rare.

The question is: given that, which output values are likely? How large is the output on average, how much does it spread, and how often does it go over a danger line?

The simplest answer is to draw many random inputs, run the model on each, and look at the outputs. That works for any model, but it needs many runs. Better methods use fewer runs by spreading the inputs more evenly, by running cheaper rough versions of the model, or by fitting a simple formula to the model and using the formula instead.

Definition

Let (Ω,F,P)(\Omega, \mathcal{F}, \mathbb{P}) be a probability space and ξ:Ω→Γ⊆Rd\xi : \Omega \to \Gamma \subseteq \mathbb{R}^d a random input with law μ\mu; if the input is a random field, ξ\xi is the vector of its first dd Karhunen-Loève coefficients. Let u(ξ)u(\xi) be the model output, for example the solution of a partial differential equation with data ξ\xi, and Q=q(u(ξ))Q = q(u(\xi)) a scalar quantity of interest. The law of QQ is the pushforward μ∘(q∘u)−1\mu \circ (q \circ u)^{-1}.

Input: the law μ\mu; access to the model, either as a black box that returns QQ (or an approximation QhQ_h at discretization level hh) for a given ξ\xi at cost CC per run, or as the equations themselves; and a tolerance ε\varepsilon.

Output: an estimate of one or more of

  • the moments E[Q]\mathbb{E}[Q], Var(Q)\mathrm{Var}(Q) and E[g(Q)]\mathbb{E}[g(Q)] for a given gg;
  • the distribution function FQ(t)=P(Q≤t)F_Q(t) = \mathbb{P}(Q \le t), a quantile, or a density;
  • a failure probability pf=P(Q>q∗)p_f = \mathbb{P}(Q > q^*) for a threshold q∗q^*;

with a root mean square error, or an error with a stated confidence, at most ε\varepsilon. The cost is the number of model runs times their cost, or for an intrusive method the cost of solving the coupled system.

Variants

  • Moments, laws and rare events. Estimating E[Q]\mathbb{E}[Q] to a tolerance is an integration problem; estimating pfp_f for small pfp_f is a rare event problem, where relative error matters; estimating the whole law FQF_Q asks for all quantiles at once.
  • Sensitivity analysis. Besides the law of QQ, find which inputs cause its variance, with Sobol indices or with screening by the Morris method.
  • Intrusive and non-intrusive. Non-intrusive methods only run the existing solver at chosen inputs. Intrusive methods, such as the stochastic Galerkin method, rewrite the model equations into one larger deterministic system for the coefficients of the output.
  • Finite and infinite dimension. With a few scalar inputs, dd is small. With a random field input, dd is in principle infinite, and a truncation adds an error that must be balanced with the others.
  • Dependent inputs. With dependent inputs, μ\mu is given by marginals and a copula, or by a joint density, and a transformation such as the Rosenblatt transformation maps ξ\xi to independent variables first.
  • Epistemic uncertainty. When the input law itself is not known, the problem becomes one of bounds over a set of laws, such as intervals or imprecise probabilities, or of a law over laws.
  • Time-dependent outputs. QQ may be a trajectory, and the task is its law at each time or the law of a time maximum.

Examples

One lognormal output. Let ξ\xi be standard normal and Q=eξQ = e^{\xi}. The exact law is lognormal, with E[Q]=e1/2=1.64872\mathbb{E}[Q] = e^{1/2} = 1.64872, Var(Q)=e2−e=4.67077\mathrm{Var}(Q) = e^2 - e = 4.67077 and P(Q>5)=P(ξ>ln⁡5)=0.05376\mathbb{P}(Q > 5) = \mathbb{P}(\xi > \ln 5) = 0.05376. Three ways to estimate the mean:

method estimate of E[Q]\mathbb{E}[Q] estimate of Var(Q)\mathrm{Var}(Q) comment
linearization at the mean e0=1e^0 = 1 11 the first order perturbation method; 39 percent low
second order perturbation 1+12=1.51 + \frac{1}{2} = 1.5 still 9 percent low
Monte Carlo, N=104N = 10^4 unbiased, with standard error 0.02160.0216 unbiased the error is 4.67077/N\sqrt{4.67077/N}, a theorem

The perturbation methods are cheap but biased for a nonlinear map with a large input spread. Monte Carlo is unbiased at any spread, and its error does not depend on the map, only on its variance.

A random coefficient. Let −(au′)′=1-(a u')' = 1 on (0,1)(0, 1) with u(0)=u(1)=0u(0) = u(1) = 0, and let the coefficient be a random constant a=eξa = e^{\xi} with ξ\xi standard normal. The solution is u(x)=x(1−x)/(2a)u(x) = x(1 - x)/(2a), so Q=u(1/2)=e−ξ/8Q = u(1/2) = e^{-\xi}/8, with mean e1/2/8=0.20609e^{1/2}/8 = 0.20609. With a random field a(x)a(x) instead of a constant there is no closed form, each run needs a numerical solve, and QhQ_h depends on the mesh, which is the setting of multilevel Monte Carlo.

A failure probability. For pf=0.05376p_f = 0.05376 in the first example, the relative standard error of plain Monte Carlo is (1−pf)/(Npf)\sqrt{(1 - p_f)/(N p_f)}, so a 10 percent relative error needs about N=1760N = 1760 runs; for pf=10−6p_f = 10^{-6} it needs about 10810^8. This is why rare events need special methods.

Known algorithms

AlgorithmTimeSpacePropertiesCode
First-order reliability methodO(K d C) worstO(d) extradeterministicnot exactnot intrusive1 language
Fourier amplitude sensitivity testO(d R n (F + d + n)) worstO(d n) extrarandomizednot exactnot iterativerandomized1 language
Multifidelity Monte CarloO(p + k N) worstO(N) extrarandomizednot exactnot iterativerandomized1 language
Multilevel Monte CarloO(e^-2 (log e)^2) expectedO(L) extrarandomizednot exactiterativerandomized1 language
Non-intrusive spectral projectionO(m^d (C + d P)) worstO(P + d m) extradeterministicnot exactnot intrusive1 language
Regression-based polynomial chaosO(N (C + P^2)) worstO(N P) extrarandomizednot exactnot intrusive1 language
Sparse polynomial chaos by compressive samplingO(N C + (K + d) N P + N^3) worstO(N P) extrarandomizednot exactnot intrusive1 language
Stochastic collocation methodO(N C + d T) worstO(N) extradeterministicnot exactnot intrusive1 language
Stochastic Galerkin methodO((P n)^3) worstΘ((P n)^2) extradeterministicnot exactintrusive1 language
Subset simulationO(m N (C + d)) worstO(N d) extrarandomizednot exactnot intrusive1 language

Bounds

  • Monte Carlo. With NN independent runs, the root mean square error of the sample mean is σQ/N\sigma_Q / \sqrt{N}, so a tolerance ε\varepsilon costs N=σQ2/ε2N = \sigma_Q^2 / \varepsilon^2 runs, for any dimension dd (a theorem). Confidence intervals come from the central limit theorem.
  • Discretization. If ∣E[Qh−Q]∣=O(hα)|\mathbb{E}[Q_h - Q]| = O(h^{\alpha}) and a run costs O(h−γ)O(h^{-\gamma}), plain Monte Carlo with QhQ_h costs O(ε−2−γ/α)O(\varepsilon^{-2 - \gamma/\alpha}). Under the conditions of the MLMC complexity theorem with a variance rate β>γ\beta > \gamma, multilevel Monte Carlo costs O(ε−2)O(\varepsilon^{-2}), the cost of plain Monte Carlo with exact samples of unit cost.
  • Quasi-Monte Carlo. By the Koksma-Hlawka inequality, the error is at most the Hardy-Krause variation of the integrand times the star discrepancy of the points, which is O((log⁡N)d/N)O((\log N)^d / N) for low discrepancy sequences (a theorem). The bound is useful only for small dd or integrands of low effective dimension.
  • Deterministic quadrature. For integrands with rr bounded derivatives on [0,1]d[0, 1]^d, the best worst-case error of a deterministic rule with NN points is of order N−r/dN^{-r/d} (a theorem of Bakhvalov), which is the curse of dimensionality for large dd.
  • Spectral methods. If QQ depends analytically on ξ\xi, polynomial chaos and collocation errors fall faster than any power of the polynomial degree pp. A total degree basis has (d+pp)\binom{d + p}{p} terms, which grows like dp/p!d^p / p! in dd; this is the limit of spectral methods for large dd.
  • Rare events. For plain Monte Carlo, the relative error for pfp_f is (1−pf)/(Npf)\sqrt{(1 - p_f)/(N p_f)}, so a fixed relative error costs O(1/pf)O(1/p_f) runs (a theorem).

Reductions

  • Moments are integrals. E[g(Q)]=∫Γg(q(u(ξ))) dμ(ξ)\mathbb{E}[g(Q)] = \int_{\Gamma} g(q(u(\xi)))\, d\mu(\xi), so estimating a moment is numerical integration over the input law, and every integration method applies.
  • Probabilities are moments. pf=E[1{Q>q∗}]p_f = \mathbb{E}[\mathbf{1}\{Q > q^*\}] and FQ(t)=E[1{Q≤t}]F_Q(t) = \mathbb{E}[\mathbf{1}\{Q \le t\}], so they are integrals of indicator functions, which are not smooth; this is why spectral methods and quasi-Monte Carlo lose their fast rates on them.
  • Input transformation. By inverse transform sampling or the Rosenblatt transformation, any input law reduces to independent uniform or normal variables, so a method needs only one reference law.
  • Fields to vectors. A random field input reduces to finitely many random variables by its truncated Karhunen-Loève expansion.
  • Surrogates. Fitting a cheap approximation Q~(ξ)\tilde{Q}(\xi) to QQ reduces the problem to propagation through Q~\tilde{Q}, where sampling is nearly free, plus the error of the approximation.
  • The inverse problem. A Bayesian inverse problem and calibration need the forward map at many inputs inside a sampler, so forward propagation is their inner step.

Applications

Forward propagation is used to set safety margins in structural reliability, where pfp_f is the probability of failure of a structure under random loads and strengths; in subsurface flow, where the permeability is a random field and QQ is a flow rate or a travel time; in nuclear reactor safety and in the certification of aircraft components; in weather and climate prediction, where ensembles of runs propagate the uncertainty of initial states and parameters; and in finance, where the mean of a discounted payoff under a random asset path is the price of an option.

References

  1. Ralph C. Smith, Uncertainty Quantification. Theory, Implementation, and Applications, SIAM, 2014, the chapters on the propagation of uncertainty in models (sampling, perturbation and stochastic spectral methods) and on the representation of random inputs
  2. T. J. Sullivan, Introduction to Uncertainty Quantification, Springer, Texts in Applied Mathematics 63, 2015, the chapters on the forward problem, Monte Carlo and quadrature, spectral expansions, the stochastic Galerkin method and non-intrusive methods
  3. Dongbin Xiu, Numerical Methods for Stochastic Computations. A Spectral Method Approach, Princeton University Press, 2010, Chapter 1 (the problem of propagating input uncertainty through a model) and the chapters on generalized polynomial chaos, the stochastic Galerkin method and stochastic collocation
  4. Michael B. Giles, Multilevel Monte Carlo methods, Acta Numerica 24, 2015, 259-328, Section 1 (Monte Carlo cost and the multilevel complexity) and the applications to random coefficient PDEs

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a contract.yaml