21  Implementing output statistics

Beyond minor refactoring, the final implementation steps involve displaying (step 12) and recording (step 13) output statistics. These are aggregate measurements of the simulation state at a given time step.

21.1 Displaying outputs in the interface 🤔

Try out creating a new interface element to display:

  • the number of patches and coastal land patches.
  • the number of activated traders.
  • the mean, min and max cargo value of activated traders.
  • the min and max settlement size level, and the main hub settlement.
  • the mean, min and max total path cost of active routes.
  • the mean, standard deviation and modes of the RGB traits of settlements.
  • the mean, standard deviation and modes of the land and port tech traits of settlements.
  • the mean, standard deviation and modes of the size decay, stock decay and production traits of settlements.
  • the mean, standard deviation and modes of the frequency over quality, transmission and mutation traits of settlements.

21.2 Checking the milestone File (step 12)

Pond Trade step 12
Pond Trade step 12

21.3 Recording outputs in variables

The statistics serve as indicators for monitoring complex results while manually running simulations in the interface. Most importantly, you can use them more systematically as data you can export for further use in other software, e.g., to perform advanced statistical analyses and more sophisticated graphs.

Here is how step 13 implements those statistics:

21.4 Checking the milestone File (step 13)

Pond Trade step 13
Pond Trade step 13

We could further implement a procedure to export these and more variables at a specific time in the simulation. We will see an example of this in Block C. However, in most cases, we want to use NetLogo Behavior Space. Find it in Tools > Behavior Space. This built-in tool lets you configure experiments to run in parallel within a specific parameter space and run a series of commands before, during, or after a simulation. It includes functionality to export simulation data as a CSV file (you will be prompted with a File Explorer window when you press “run” in an experiment).

21.5 Updating the conceptual model

As the final step in developing PondTrade, let us update our second-tier conceptual model, adding a more explicit representation of cultural vectors and their contents.

Pond Trade conceptual model at step 13 (second tier)
Pond Trade conceptual model at step 13 (second tier)