Tutorials

These tutorials will guide you through the main features of Starsim. Each tutorial is interactive and includes executable code examples.

T1 - Introduction to Starsim

A quick introduction to the Starsim framework.

T2 - Building a simulation

How to build your first simulation.

T3 - Demographics

Implementing demographics: births, deaths, and population structure.

T4 - Diseases

How to implement disease dynamics.

T5 - Networks

How diseases spread between agents: networks and mixing pools.

T6 - Interventions

It’s not all doom and gloom: implementing interventions to save lives.

Note

You can download these tutorials as Jupyter notebooks to run them locally. Look for the download button at the top of each tutorial.

Running tutorials locally

To run these tutorials locally:

  1. Clone the Starsim repository
  2. Install Starsim and its dependencies
  3. Navigate to the docs/tutorials directory
  4. Launch Jupyter: jupyter notebook