Global Sensitivity Analysis

Sensitivity analysis (SA) is the study of how uncertainty in the output of a model can be apportioned to different sources of uncertainty in the model input. A sensitivity analysis is considered to be global when all the input factors are varied simultaneously and the sensitivity is evaluated over the entire range of each input factor. It provides an overall view on the influence of inputs on outputs as opposed to a local view of partial derivatives as in local sensitivity analysis.

GlobalSensitivity currently provides the following global sensitivity analysis methods:

  1. Morris OAT Method
  2. Sobol Method
  3. eFAST Method
  4. Regression based sensitivity
  5. Derivative Based Global Sensitivity Measures

Global Sensitivity Analysis (GSA) is performed using the gsa function. This function's signature is:

GlobalSensitivity.gsaFunction

function GlobalSensitivity.gsa( m::PumasModel, pop::Population, params::NamedTuple, method::GlobalSensitivity.GSAMethod, vars = [:dv], prangelow = NamedTuple(), prangehigh = NamedTuple(); constantcoef::NTuple{N,Symbol} = (), rng::AbstractRNG = defaultrng(), diffeqoptions::NamedTuple = NamedTuple(), N = nothing, n = nothing, samples = 1000, kwargs..., )

Function to perform global sensitivty analysis

The arguments are:

  • model: a PumasModel, either defined by the @model DSL or the function-based interface.
  • population: a Population.
  • params: a named tuple of parameters.
  • method: one of the GSAMethods from GlobalSensitivity.jl, Sobol(), Morris(), eFAST(), RegressionGSA().
  • vars: a list of the derived variables to run GSA on.
  • p_range_low & p_range_high: the lower and upper bounds for the parameters you want to run the GSA on, if not specified the bounds from @param block are used.

Keyword arguments are:

  • constantcoef: The parameters that are not to be varied in the GSA, passed as a Tuple of Symbols.
  • rng: The random number generator to use.
  • samples: The number of samples to use for the GSA.
  • diffeq_options: The options to pass to the differential equation solver, passed on to the simobs called inside gsa.

For method specific arguments that are passed with the method constructor you can refer to the GlobalSensitivity.jl documentation.

source

For method specific arguments that are passed with the method constructor you can refer to the GlobalSensitivity documentation.

The gsa provided in Pumas assumes that you want to run GSA on all the parameters of the model and also constraints you to run GSA only on variables in the @derived block. For more control on the input and output you can create a custom function and use the gsa function from DiffEqSensitivity package which is callable on any Julia function directly.