The Mathematics of Epidemics
In 1927, Kermack and McKendrick published a landmark paper that laid the mathematical foundation for understanding how infectious diseases spread through populations. Their SIR model remains one of the most important frameworks in epidemiology, dividing any population into three groups: Susceptible (those who can catch the disease), Infected (those currently ill and contagious), and Recovered (those who have gained immunity).
The Reproduction Number R0
The single most important number in epidemiology is R0, the basic reproduction number. It represents how many people one infected person will infect on average in a fully susceptible population. The transmission rate beta and recovery rate gamma together determine R0 = beta/gamma. When R0 > 1, each case generates more than one new case and the epidemic grows. When R0 < 1, the outbreak shrinks and dies out.
Herd Immunity
One of the most powerful insights from the SIR model is the concept of herd immunity. You do not need to vaccinate everyone to stop an epidemic — you just need to vaccinate enough people that the effective reproduction number drops below 1. The critical threshold is 1 - 1/R0. For a disease with R0 = 2.5, this means vaccinating 60% of the population protects everyone, including those who cannot be vaccinated.
Try It Yourself
Adjust R0 and watch the epidemic curve change shape. Then add vaccination and observe how crossing the herd immunity threshold (shown as a dashed line) completely suppresses the outbreak. The animated dot grid shows the disease spreading as a visible wave through the population.