Skip to content

Commit

Permalink
Intro tutorial: Add general steps for analysing results
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH committed Jan 11, 2024
1 parent 424be31 commit 07ce5b9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/tutorials/intro_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1404,6 +1404,34 @@
},
"execution_count": null
},
{
"cell_type": "markdown",
"source": [
"It can be clearly seen that the lower the number of agents, the higher the number of consecutive rounds without a transaction. This is because the agents have fewer interactions with each other and therefore the wealth of an agent is less likely to change."
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "markdown",
"source": [
"#### General steps for analyzing results\n",
"\n",
"Many other analysis are possible based on the policies, scenarios and uncertainties that you might be interested in. In general, you can follow these steps to do your own analysis:\n",
"\n",
"1. Determine which metrics you want to analyse. Add these as model and agent reporters to the datacollector of your model.\n",
"2. Determine the input parameters you want to vary. Add these as parameters to the batch_run function, using ranges or lists to test different values.\n",
"3. Determine the hyperparameters of the batch_run function. Define the number of iterations, the number of processes, the number of steps, the data collection period, etc.\n",
"4. Run the batch_run function and save the results.\n",
"5. Transform, filter and aggregate the results to get the data you want to analyze. Make sure it's in long format, so that each row represents a single value.\n",
"6. Choose a plot type, what to plot on the x and y axis, which columns to use for the hue. Seaborn also has an amazing [Example Gallery](https://seaborn.pydata.org/examples/index.html).\n",
"7. Plot the data and analyze the results."
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 07ce5b9

Please sign in to comment.