Skip to main content
Version: 🚧 Alpha 🚧

5. Morris Sensitivity Analysis

The SIR model includes a Morris experiment to summarize the effects of its five input parameters on nb_recovered. Its report contains the mean, mean absolute value and standard deviation of the elementary effects for each parameter.

In particular, this step presents:

  • The principle of the Morris method and its three indices μ, μ* and σ
  • How to declare method morris and configure its key facets
  • How to read and interpret the report file produced by GAMA
  • The computational cost of the method and how to tune it

The model file for this step can be found in: Tutorials/SIR Analysis/models/SIR_Morris.gaml


How Morris works​

Morris is a One-At-a-Time (OAT) screening method. It samples r random starting points (trajectories) in the parameter space and, from each, changes one parameter at a time while holding all others fixed. The change in output caused by each step is called an elementary effect. After r trajectories, three summary statistics are computed for each parameter:

IndexMeaning
μ (mu)Mean of elementary effects - signed average influence. Can cancel if effects are of opposite sign across the space.
μ* (mu_star)Mean of absolute elementary effects; summarizes their magnitude without cancellation between positive and negative effects.
σ (sigma)Standard deviation of elementary effects. A larger spread can indicate non-linearity or interactions in the sampled parameter space.

The μ* and σ values can be read together as a qualitative summary for the sampled parameter space:

μ*σInterpretation
HighLowLarger average absolute effect with relatively little variation
HighHighLarger average absolute effect with substantial variation
LowLowSmaller effects in the sampled parameter space
LowHighEffects vary across the sampled parameter space

These summaries apply to the selected parameter ranges and model output. They do not establish that a parameter can safely be removed or fixed outside those settings.


Total run count​

The model sets sample: 50, levels: 10 and has five parameters. With five parameters, the trajectory formula gives 50 × (5 + 1) = 300 simulation runs.

Increasing sample improves the robustness of the indices but scales linearly with cost. The model uses 50 trajectories; choose the sample size according to the analysis and compute budget.


The method morris statement​

The model sets levels: 10 and sample: 50. Its configured output files are ../results/morris_report.txt and ../results/morris_raw.csv. The facets used in this experiment are:

  • outputs: - list of global variables to use as sensitivity targets. Mandatory.
  • report: - path to the output file. Use .txt for a human-readable report. Mandatory.
  • results: - path to the raw CSV with one row per run. Optional but recommended.
  • levels: - number of grid levels for the OAT design. The default value is 4; it must be even.
  • sample: - number of trajectories r. More trajectories give more stable estimates.

Within the SIR_Morris batch experiment, the method is declared as follows:

method morris
outputs: ["nb_recovered"]
report: "../results/morris_report.txt"
results: "../results/morris_raw.csv"
levels: 10
sample: 50;

Reading the report​

The configured report path is ../results/morris_report.txt; the raw run data is written to ../results/morris_raw.csv. The report gives μ, μ* and σ for each input parameter.

For each parameter, compare the absolute-effect mean μ* and the spread σ.


Model in GAMA​

The complete runnable model is included in the SIR Analysis project: SIR_Morris.gaml.


What's next?​

Morris summarizes elementary effects. Step 6 introduces Sobol, which estimates first-order (S1) and total-order (ST) contributions to output variance.