Skip to content

User Guide

This guide introduces the core concepts of epiworld and walks you through building and running epidemiological simulations. Each chapter builds on the previous one, so we recommend reading them in order if you are new to the library.

Getting Started

  • Introduction


    What epiworld is, how simulations work, and the key abstractions (agents, viruses, tools, states).

    Fundamentals

  • Building Models


    How to create a model from scratch using add_state(), define custom update functions, and wire up a contact network.

    Building Models

  • Viruses, Tools & Events


    Adding viruses and tools to a simulation, configuring global events, and collecting custom data.

    Viruses, Tools & Events

Core Concepts

These pages describe the mechanics that drive every epiworld simulation:

  • Simulation Steps — How a single day is executed: agent updates, global events, network rewiring, and recording.
  • Agents — The individual units that carry viruses and tools, interact through a contact network, and transition between states.
  • Contagion — The mathematical model governing disease transmission, including multi-virus competition.

Built-in Models

Epiworld ships with a collection of ready-to-use epidemiological models. See the Built-in Models section for a full catalog with usage examples.

Advanced Topics

For deeper dives into the library internals, performance tuning, and extension points, see the Advanced Topics section.