Sensitivity Analysis

Resources

Main Idea

What uncertain inputs have the largest impact on some output?

Sobol' Indices

Let X∼U([0,1])d, f:Rd→R (deterministically), and Y=f(X). Under some conditions (?), we can decompose f as

f(X)=f0+∑i=1dfi(Xi)⏟univariate+∑i=1d∑j=i+1dfij(Xi,Xj)⏟bivariate+⋯+f12…d(X1,X2,…,Xd).

Note, the bivariate terms are Upper Triangular. The higher order terms are not shown, except the final term, which takes d inputs, similar to the original function. We can use Multi-index Notation to write this expansion as

f(X)=f0+∑{i1,…,is}⊂{1,…,d}fi1…is(Xi1,…,Xis).

This decomposition is not yet unique. By adding a restriction on the orthogonality of the terms, the decomposition is then unique. For {i1,…,is}≠{j1,…,jt},

∫[0,1]dfi1…is(X1,…,Xs)⋅fj1…jt(X1,…,Xt)dX=0.

We can compute these functions via

f0=∫[0,1]df(X)dX⏟E(Y),fi(Xi)=∫[0,1]d−1f(X)dX∼{i}⏟E(Y|Xi)−f0,fij(Xi,Xj)=∫[0,1]d−2f(X)dX∼{i,j}⏟E(Y|Xi,Xj)−f0−fi−fj,…

Now, assume that f is Square Integrable, meaning

∫[0,1]df2(X)dX<∞.

Plugging in the expansion, noting the aforementioned orthogonality constraint, and decoupling, we can represent the variance of Y (E(Y2)−E(Y)2) as

∫[0,1]df2(X)dX−f02=∑{i1,…,is}⊂{1,…,d}∫[0,1]sfi1…is2(Xi1,…,Xis)dXi1…dXis⏟Di1…is=D.

The Sobol' Indices are then

S{i1,…,is}=D{i1,…,is}D,

and sum to 1. The first-order indices are Si, while the total indices SiT include the interactions with higher-order terms. ∑Si≤1, but ∑SiT≥1, as the total indices include the interaction terms for multiple i (e.g. S12 contributes to both S1T and S2T).

Sobol' Indices from PCE

We can compute the Sobol' Indices from a Polynomial Chaos Expansion (PCE) instead. The PCE, with coefficients c1…d and basis functions ψ1…d is given as

f(X)=c0+∑{i1,…is}⊂{1,…,d}ci1…isψi1…is(X1,…,Xs).

This is quite similar to the Sobol' expansion. We can relate the PCE coefficients to the Sobol' indices, accounting for the basis functions as well. This gives

Di1…is=ci1…is∫[0,1]sψi1…is2(Xi1,…,Xis)dXi1…dXis.

Often, E(ψi1…is2)=1, meaning Di1…is=ci1…is. Thus, we can rely on non-intrusive PCE techniques (such as Sparse Regression) to avoid computing all the integrals above.