Compartmental Models

Compartmental models have many shapes and sizes. They divide a population into distinct compartments — groups defined by their status with respect to a disease — and describe how individuals move between them over time. Despite their simplicity, compartmental models are one of the most powerful tools in infectious disease ecology and epidemiology.

Simulated SIR epidemic: susceptibles fall, infectious individuals rise then decline, and recovered individuals accumulate.

The SIR model

The classic example is the SIR model, which divides a population into three compartments:

Individuals flow from SIRS \to I \to R. The dynamics are governed by a system of ordinary differential equations:

dSdt=βSINdIdt=βSINγIdRdt=γI\begin{aligned} \frac{dS}{dt} &= -\beta \frac{S I}{N} \\ \frac{dI}{dt} &= \beta \frac{S I}{N} - \gamma I \\ \frac{dR}{dt} &= \gamma I \end{aligned}

where β\beta is the transmission rate, γ\gamma is the recovery rate, and N=S+I+RN = S + I + R is the total population size.

The basic reproduction number

A key quantity derived from the model is the basic reproduction number, R0R_0 — the average number of secondary infections produced by a single infectious individual in a fully susceptible population. For the SIR model,

R0=βγR_0 = \frac{\beta}{\gamma}

When R0>1R_0 > 1, an outbreak can grow; when R0<1R_0 < 1, it dies out.

Extensions

The SIR framework extends naturally to capture more biological detail:

Analyzing model behavior

To understand a model’s long-term behavior, we identify its equilibria and study their stability. This is done by linearizing the system and examining the Jacobian matrix, which shows how the SIR model can be analyzed at the disease-free equilibrium.