Variance-based sensitivity analysis
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]
Decomposition of variance
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 {X1, X2, ... Xd}, 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. [math]\displaystyle{ X_i \in [0,1] }[/math] for [math]\displaystyle{ i=1,2,...,d }[/math]. This incurs no loss of generality because any input space can be transformed onto this unit hypercube. f(X) may be decomposed in the following way,[4]
- [math]\displaystyle{ Y = f_0 + \sum_{i=1}^d f_i(X_i) + \sum_{i\lt j}^{d} f_{ij}(X_i,X_j) + \cdots + f_{1,2,\dots,d}(X_1,X_2,\dots,X_d) }[/math]
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,
- [math]\displaystyle{ \int_0^1 f_{i_1 i_2 \dots i_s}(X_{i_1},X_{i_2},\dots,X_{i_s}) dX_{k}=0, \text{ for } k = i_1,...,i_s }[/math]
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,
- [math]\displaystyle{ f_0 = E(Y) }[/math]
- [math]\displaystyle{ f_i(X_i) = E(Y|X_i) - f_0 }[/math]
- [math]\displaystyle{ f_{ij}(X_i,X_j) = E(Y|X_i,X_j) - f_0 - f_i - f_j }[/math]
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,
- [math]\displaystyle{ \int f^2(\mathbf{X}) d\mathbf{X} - f_0^2 = \sum_{s=1}^d \sum_{i_1\lt \dots\lt i_s}^d \int f_{i_1 \dots i_s}^2 dX_{i_1} \dots dX_{i_s} }[/math]
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,
- [math]\displaystyle{ \operatorname{Var}(Y) = \sum_{i=1}^d V_i + \sum_{i\lt j}^{d} V_{ij} + \cdots + V_{12 \dots d} }[/math]
where
- [math]\displaystyle{ V_{i} = \operatorname{Var}_{X_i} \left( E_{\textbf{X}_{\sim i}} (Y \mid X_{i}) \right) }[/math],
- [math]\displaystyle{ V_{ij} = \operatorname{Var}_{X_{ij}} \left( E_{\textbf{X}_{\sim ij}} \left( Y \mid X_i, X_j\right)\right) - V_{i} - V_{j} }[/math]
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.
First-order indices
A direct variance-based measure of sensitivity Si, called the "first-order sensitivity index", or "main effect index" is stated as follows,[4]
- [math]\displaystyle{ S_i = \frac{V_i}{\operatorname{Var}(Y)} }[/math]
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,
- [math]\displaystyle{ \sum_{i=1}^d S_i + \sum_{i\lt j}^{d} S_{ij} + \cdots + S_{12 \dots d} = 1 }[/math]
Total-effect index
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,
- [math]\displaystyle{ S_{Ti} = \frac{E_{\textbf{X}_{\sim i}} \left(\operatorname{Var}_{X_i} (Y \mid \mathbf{X}_{\sim i}) \right)}{\operatorname{Var}(Y)} = 1 - \frac{\operatorname{Var}_{\textbf{X}_{\sim i}} \left(E_{X_i} (Y \mid \mathbf{X}_{\sim i}) \right)}{\operatorname{Var}(Y)} }[/math]
Note that unlike the Si,
- [math]\displaystyle{ \sum_{i=1}^d S_{Ti} \geq 1 }[/math]
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.
Calculation of indices
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.
Sampling sequences
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.
Procedure
To calculate the indices using the (quasi) Monte Carlo method, the following steps are used:[1][2]
- Generate an N×2d sample matrix, i.e. each row is a sample point in the hyperspace of 2d dimensions. This should be done with respect to the probability distributions of the input variables.
- Use the first d columns of the matrix as matrix A, and the remaining d columns as matrix B. This effectively gives two independent samples of N points in the d-dimensional unit hypercube.
- Build d further N×d matrices ABi, for i = 1,2,...,d, such that the ith column of ABi is equal to the ith column of B, and the remaining columns are from A.
- The A, B, and the d ABi matrices in total specify N(d+2) points in the input space (one for each row). Run the model at each design point in the A, B, and ABi matrices, giving a total of N(d+2) model evaluations – the corresponding f(A), f(B) and f(ABi) values.
- Calculate the sensitivity indices using the estimators below.
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).
Estimators
There are a number of possible Monte Carlo estimators available for both indices. Two that are currently in general use are,[1][6]
- [math]\displaystyle{ \operatorname{Var}_{X_i}(E_{\mathbf{X}_{\sim i}}(Y|X_i)) \approx { \frac {1}{N} \sum_{j=1}^{N} f \left ( \mathbf{B} \right )_{j} \left ( f \left ( \mathbf{A}^i_B \right )_{j} - f \left ( \mathbf{A} \right )_{j} \right ) } }[/math]
and
- [math]\displaystyle{ E_{\mathbf{X}_{\sim i}}\left(\operatorname{Var}_{X_i}\left(Y \mid \mathbf{X}_{\sim i} \right) \right) \approx {\frac {1}{2N}\sum_{j=1}^{N} \left( f \left ( \mathbf{A} \right )_{j} - f \left (\mathbf{A}^i_B \right )_{j}\right )^2 } }[/math]
for the estimation of the Si and the STi respectively.
Computational expense
For the estimation of the Si and the STi for all input variables, N(d+2) model runs are required. Since N is often of the order of hundreds or thousands of runs, computational expense can quickly become a problem when the model takes a significant amount of time for a single run. In such cases, there are a number of techniques available to reduce the computational cost of estimating sensitivity indices, such as emulators, HDMR and FAST.
See also
References
- ↑ 1.0 1.1 1.2 Sobol, I.M. (2001), Global sensitivity indices for nonlinear mathematical models and their Monte Carlo estimates. MATH COMPUT SIMULAT,55(1–3),271-280, doi:10.1016/S0378-4754(00)00270-6
- ↑ 2.0 2.1 Saltelli, A., Ratto, M., Andres, T., Campolongo, F., Cariboni, J., Gatelli, D. Saisana, M., and Tarantola, S., 2008, Global Sensitivity Analysis. The Primer, John Wiley & Sons.
- ↑ Saltelli, A., Annoni, P., 2010, How to avoid a perfunctory sensitivity analysis, Environmental Modeling and Software 25, 1508–1517.
- ↑ 4.0 4.1 Sobol’, I. (1990). Sensitivity estimates for nonlinear mathematical models. Matematicheskoe Modelirovanie 2, 112–118. in Russian, translated in English in Sobol’ , I. (1993). Sensitivity analysis for non-linear mathematical models. Mathematical Modeling & Computational Experiment (Engl. Transl.), 1993, 1, 407–414.
- ↑ Homma, T. and A. Saltelli (1996). Importance measures in global sensitivity analysis of nonlinear models. Reliability Engineering and System Safety, 52, 1–17.
- ↑ Andrea Saltelli, Paola Annoni, Ivano Azzini, Francesca Campolongo, Marco Ratto, and Stefano Tarantola. Variance based sensitivity analysis of model output. Design and estimator for the total sensitivity index. Computer Physics Communications, 181(2):259{270, 2010
![]() | Original source: https://en.wikipedia.org/wiki/Variance-based sensitivity analysis.
Read more |