Sensitivity analysis
'Sample2': {'X': [[...], ...], 'Y': [[...], ...]},
'Shuffled': {'X': [[...], ...], 'Y': [[...], ...]}
},
'CoeffiecientBased': False,
'VariableNames': ['rw', 'r', 'Tu', 'Hu', 'Tl', 'Hl', 'L', 'Kw']
}
The only difference with respect to the scalar model output case (N
out
= 1) lies in the fact
that now all of the result arrays have one column for each output.
Note: the VarIdx list for Sobol’ analysis is independent on the output component, hence its
dimension is unchanged, as it corresponds to v in Eq. (1.40).
2.4 Excluding parameters from the analysis
In some analyses, one may want to perform sensitivity analysis on a reduced set of input vari-
ables only. This can be important for methods like Morris’, MC-based Sobol’ or Kucherenko
sensitivity indices, whose costs (in terms of model evaluations) increase significantly with
the number of input variables. There are two ways to achieve this within UQ[PY]LAB: using
a parameter index (factor masking) or using constant input variables.
This process is transparent to the user as the analysis results will still show the excluded
variables, but their sensitivities will be set to 0. Whenever applicable, UQ[PY]LAB will
automatically and appropriately account for the set of input parameters which were declared
constant so as to avoid unnecessary model evaluations.
2.4.1 Using a factor index
Sensitivity calculation for selected factors can be included/excluded explicitly by means of
the SensOpts['FactorIndex'] configuration variable. SensOpts['FactorIndex'] is a
logical index of size (1 × M) that is True for the factors that are to be included and True
those that are to be excluded. As an example, to remove the calculation of the first index in
the MC-based Sobol’ analysis in Section 2.1.8, one can write:
SobolSensOpts['FactorIndex'] = [False, True, True, True, True, True, True,
True]
which results in the following SobolAnalysis['Results'] dictionary:
{
'AllOrders': [[0, 0.008229865900657347, ...]],
'Total': [0, 5.425110364831731e-06, ...],
'FirstOrder': [0, 0.008229865900657347, ...],
'VarIdx': [[1, 2, 3, 4, 5, 6, 7, 8]],
'TotalVariance': 237.46593910943335,
'FactorIndex': [False, True, True, True, True, True, True, True],
'Cost': 90000,
'ExpDesign': {
'Sample1': {'X': [[...], ...], 'Y': [[...], ...]},
'Sample2': {'X': [[...], ...], 'Y': [[...], ...]},
'Shuffled': {'X': [[...], ...], 'Y': [[...], ...]}
},
'CoefficientBased': False,
UQ[PY]LAB-V1.0-106 - 55 -