SIR Analysis
This tutorial introduces model exploration and sensitivity analysis using a simple SIR (Susceptible-Infected-Recovered) epidemic model as a support. It covers how to define a batch experiment, how to choose and apply the exploration and analysis methods built into GAMA, and how to interpret their results.
The Models Library project is named SIR Analysis. It contains the base model SIR.gaml and separate files for LHS, stochastic and sensitivity analysis (SIR_LHS.gaml, SIR_Stochanalysis.gaml, SIR_Morris.gaml, SIR_sobol.gaml and SIR_Betad.gaml).
Model Overview​
In this model, a population of agents moves randomly across the environment. Each agent carries one of three statuses: susceptible (healthy, can be infected), infected (currently sick, can infect others), or recovered (immune). At each simulation step, infected agents attempt to contaminate susceptible neighbors within a given distance, with a given probability. After a fixed number of steps, infected agents recover. The simulation ends either when no infected agents remain or after a maximum number of cycles.
The model is intentionally kept simple - no spatial structure, no demographics, no seasonality - so that the focus remains entirely on the exploration and analysis methodology rather than on the model itself.

Step List​
This tutorial is composed of 7 steps corresponding to 7 models which are incremental representations of the same simulation, starting from the simplest agent model and progressively adding exploration and sensitivity analysis capabilities. For each step, we present its purpose, the concepts introduced, and the corresponding GAML code and outputs.
- Simple SIR model
- Stop conditions
- Batch experiment and Latin Hypercube Sampling
- Stochastic analysis - how many replications do I need?
- Morris sensitivity analysis - screening parameters
- Sobol sensitivity analysis - quantifying variance contributions
- Beta^d sensitivity analysis - distribution-based screening