Compartments are bookkeeping, not biology
A compartmental model ignores everything about individuals except which box they are in. The classic version, from Kermack and McKendrick's 1927 paper in the Proceedings of the Royal Society, uses three:
- S, susceptible: can be infected.
- I, infectious: infected and able to pass it on.
- R, removed: recovered with immunity, or dead. Either way, out of the transmission chain.
The model then tracks only the flows between boxes. That is a severe simplification, and also the source of its power: a handful of parameters yields thresholds, peak timing, and final epidemic size that hold across very different diseases. The equations form a small nonlinear system of differential equations; the differential-equations path on this site (lessons ode-what-a-differential-equation-says and ode-phase-plane) covers the tools for reading them, so this lesson uses them without re-deriving the mathematics.

