The PySD Cookbook¶
Simple recipes for powerful analysis of system dynamics models
Quickstart¶
- Download and install Anaconda Python 3.6+
- Install PySD with pip using the command
pip install pysd
at your command prompt - Download this cookbook and unzip it to a working directory
- Navigate your command prompt to the working directory just created
- Launch ipython notebook with the command
ipython notebook
at your command prompt - In the ipython browser, open
source\analyses\getting_started\Hello_World_Teacup.ipynb
How to use this cookbook¶
Every recipe in this cookbook is an executable ipython notebook. Because of this, I recommend that you download a copy of the cookbook, and follow along by executing the steps in each notebook as you read, playing with the parameters, etc.
If you want to implement a recipe, you can then make a copy of the notebook you are interested in, and modify it to analyze your own problem with your own data.
To download the cookbook in its entirity, use this link or visit the cookbook’s Github Page and select one of the options in the righthand panel.
Contents¶
- Getting Started
- Data Handling
- Visualization
- Model Fitting
- Geographic Analyses
- Installation
- Using SD to understand the SD Fever
- Modify parameter values
- Change Model settings
- Geographical Information
- Run the model for each country
- Transpose simulation results for plotting
- Comparative Analysis
- Analysis of results
- How Spatial Analysis Leads to Insight
- Plotting simulation results on map with Ipywidgets
- Using SD models to understand the differences between population measures at varying levels of geographic disagregation
- Surrogating Functions
- Realtime Data Incorporation
- Model Development Workflow
- Data Used in this Cookbook
- Chapters to be Written
- End Notes
Extra Resources¶
The PySD Documentation can answer most questions about how PySD itself should be used, with basic examples and function reference.