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.
Figure 1. 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.

Where does β/γ\beta/\gamma come from? Two short arguments give it — one counting infections directly, one falling out of the threshold for growth.

Show the derivation

Rate times duration. Drop a single infectious individual into an otherwise fully susceptible population, so SNS \approx N and the susceptible fraction S/N1S/N \approx 1. That individual transmits by mass action at rate βS/Nβ\beta \, S/N \approx \beta — that many new infections per unit time. Recovery is a constant-rate process (γI\gamma I leaves the infectious class per unit time), so the time spent infectious is exponentially distributed with mean

E[infectious period]=1γ.\mathbb{E}[\text{infectious period}] = \frac{1}{\gamma}.

The expected number of secondary infections is the transmission rate multiplied by how long transmission lasts:

R0=βinfections per unit time×1γmean infectious period=βγ.R_0 = \underbrace{\beta}_{\text{infections per unit time}} \times \underbrace{\frac{1}{\gamma}}_{\text{mean infectious period}} = \frac{\beta}{\gamma}.

The threshold for growth. The same number governs whether the outbreak takes off, which is why R0=1R_0 = 1 is the dividing line. Early on SNS \approx N, so the infectious equation

dIdt=βSNIγI\frac{dI}{dt} = \beta \frac{S}{N} I - \gamma I

linearizes to

dIdt(βγ)I,\frac{dI}{dt} \approx (\beta - \gamma)\, I ,

an exponential with growth rate βγ\beta - \gamma. Infections grow when βγ>0\beta - \gamma > 0, i.e. when

βγ>1.\frac{\beta}{\gamma} > 1 .

Defining R0=β/γR_0 = \beta/\gamma makes “the epidemic grows” and “R0>1R_0 > 1” the same statement.

Both routes assume SNS \approx N: R0R_0 is defined in a fully susceptible population. Once susceptibles deplete, the relevant quantity is the effective reproduction number Rt=R0S/NR_t = R_0 \, S/N, and the epidemic peaks exactly when S/NS/N falls to 1/R01/R_0 so that Rt=1R_t = 1. For models with more than one infected compartment, this “rate times duration” bookkeeping is done with a matrix — see The Next-Generation Matrix and R₀.

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.