Variance-based sensitivity analysis (often referred to as the Sobol’ method or Sobol’ indices, after Ilya M. Sobol’) is a form of global sensitivity analysis.[1] [2] Working within a probabilistic framework, it decomposes the variance of the output of the model or system into fractions which can be attributed to inputs or sets of inputs. For example, given a model with two inputs and one output, one might find that 70% of the output variance is caused by the variance in the first input, 20% by the variance in the second, and 10% due to interactions between the two. These percentages are directly interpreted as measures of sensitivity. Variance-based measures of sensitivity are attractive because they measure sensitivity across the whole input space (i.e. it is a global method), they can deal with nonlinear responses, and they can measure the effect of interactions in non-additive systems.[3]
From a black box perspective, any model may be viewed as a function Y=f(X), where X is a vector of d uncertain model inputs, and Y is a chosen univariate model output (note that this approach examines scalar model outputs, but multiple outputs can be analysed by multiple independent sensitivity analyses). Furthermore, it will be assumed that the inputs are independently and uniformly distributed within the unit hypercube, i.e.
Xi\in[0,1]
i=1,2,...,d
Y=f0+
d | |
\sum | |
i=1 |
fi(Xi)+
d | |
\sum | |
i<j |
fij(Xi,Xj)+ … +f1,2,...,d(X1,X2,...,Xd)
where f0 is a constant and fi is a function of Xi, fij a function of Xi and Xj, etc. A condition of this decomposition is that,
1 | |
\int | |
0 |
f | |
i1i2...is |
(X | |
i1 |
,X | |
i2 |
,...,X | |
is |
)dXk=0,fork=i1,...,is
i.e. all the terms in the functional decomposition are orthogonal. This leads to definitions of the terms of the functional decomposition in terms of conditional expected values,
f0=E(Y)
fi(Xi)=E(Y|Xi)-f0
fij(Xi,Xj)=E(Y|Xi,Xj)-f0-fi-fj
From which it can be seen that fi is the effect of varying Xi alone (known as the main effect of Xi), and fij is the effect of varying Xi and Xj simultaneously, additional to the effect of their individual variations. This is known as a second-order interaction. Higher-order terms have analogous definitions.
Now, further assuming that the f(X) is square-integrable, the functional decomposition may be squared and integrated to give,
\intf2(X)dX-
2 | |
f | |
0 |
=
d | |
\sum | |
s=1 |
d | |
\sum | |
i1<...<is |
\int
2 | |
f | |
i1...is |
dX | |
i1 |
...
dX | |
is |
Notice that the left hand side is equal to the variance of Y, and the terms of the right hand side are variance terms, now decomposed with respect to sets of the Xi. This finally leads to the decomposition of variance expression,
\operatorname{Var}(Y)=
d | |
\sum | |
i=1 |
Vi+
d | |
\sum | |
i<j |
Vij+ … +V12
where
Vi=
\operatorname{Var} | |
Xi |
\left(Ebf{X\sim
Vij=
\operatorname{Var} | |
Xij |
\left(Ebf{X\sim
and so on. The X~i notation indicates the set of all variables except Xi. The above variance decomposition shows how the variance of the model output can be decomposed into terms attributable to each input, as well as the interaction effects between them. Together, all terms sum to the total variance of the model output.
A direct variance-based measure of sensitivity Si, called the "first-order sensitivity index", or "main effect index" is stated as follows,
Si=
Vi | |
\operatorname{Var |
(Y)}
This is the contribution to the output variance of the main effect of Xi, therefore it measures the effect of varying Xi alone, but averaged over variations in other input parameters. It is standardised by the total variance to provide a fractional contribution. Higher-order interaction indices Sij, Sijk and so on can be formed by dividing other terms in the variance decomposition by Var(Y). Note that this has the implication that,
d | |
\sum | |
i=1 |
Si+
d | |
\sum | |
i<j |
Sij+ … +S12=1
Using the Si, Sij and higher-order indices given above, one can build a picture of the importance of each variable in determining the output variance. However, when the number of variables is large, this requires the evaluation of 2d-1 indices, which can be too computationally demanding. For this reason, a measure known as the "Total-effect index" or "Total-order index", STi, is used.[5] This measures the contribution to the output variance of Xi, including all variance caused by its interactions, of any order, with any other input variables. It is given as,
STi=
Ebf{X\sim | |
\left(\operatorname{Var} |
Xi |
(Y\midX\sim)\right)}{\operatorname{Var}(Y)}=1-
\operatorname{Var | |
bf{X |
\sim
Note that unlike the Si,
d | |
\sum | |
i=1 |
STi\geq1
due to the fact that the interaction effect between e.g. Xi and Xj is counted in both STi and STj. In fact, the sum of the STi will only be equal to 1 when the model is purely additive.
For analytically tractable functions, the indices above may be calculated analytically by evaluating the integrals in the decomposition. However, in the vast majority of cases they are estimated – this is usually done by the Monte Carlo method.
The Monte Carlo approach involves generating a sequence of randomly distributed points inside the unit hypercube (strictly speaking these will be pseudorandom). In practice, it is common to substitute random sequences with low-discrepancy sequences to improve the efficiency of the estimators. This is then known as the quasi-Monte Carlo method. Some low-discrepancy sequences commonly used in sensitivity analysis include the Sobol’ sequence and the Latin hypercube design.
To calculate the indices using the (quasi) Monte Carlo method, the following steps are used:
The accuracy of the estimators is of course dependent on N. The value of N can be chosen by sequentially adding points and calculating the indices until the estimated values reach some acceptable convergence. For this reason, when using low-discrepancy sequences, it can be advantageous to use those that allow sequential addition of points (such as the Sobol’ sequence), as compared to those that do not (such as Latin hypercube sequences).
There are a number of possible Monte Carlo estimators available for both indices. Two that are currently in general use are,[6]