Epidemics, Vaccines and Mathematics
Infectious diseases have had an enormous impact on the course of human history. Various epidemics have killed hundreds of millions of people, and some diseases have been responsible for the depopulation of large areas. One would expect that reliable vaccines for deadly diseases are met with nothing but approval and appreciation. Instead, vaccination rates are dropping recently due to controversy and the spread of misleading information. This raises the question: what can math tell us about epidemics and vaccination?
Written by: Stefan ten Eikelder
The antivax community has caused quite a stir in the world of epidemiology. A 1988 British study falsely concluded that the MMR (measles, mumps, and rubella) vaccine caused autism in 8 out of 12 patients in the study. Later, it turned out that the researcher involved falsified the data and the results were debunked. Nevertheless, the results sparked an increase in the antivax movement, and the connection between vaccines and autism is still upheld by many people. An increasing number of people who refuse to vaccinate their children leads to an increase in the probability of new epidemic outbreaks, and is thus cause for major concern among healthcare experts.

We refrain from the political discussion, and focus on the math. We will introduce the most popular mathematical model for the spread of infectious diseases, and we will analyze how vaccinations can prevent an epidemic and eradicate the disease.
The SIR model
In 1927, the seminal work of Kermack and McKendrick [1] introduced the SIR model. This is a so called compartmental model, as it splits the population in three groups/classes: Susceptible (S), Infected (I) and Recovered (R). An individual is susceptible if (s)he has not (yet) been exposed to the disease, infected if currently carrying the disease, and recovered if they have cleared their infection. It is assumed that individuals who have recovered have gained immunity to the disease. An individual in class S moves to class I once infected, and an individual in class I moves to class R once they have fought off the disease.
The standard SIR model is deterministic, and assumes a homogeneous population. Hence, the change in any compartment size can be described by a partial differential equation (PDE). Let denote the population size and let
,
and
denote the number of individuals in classes S, I and R, respectively. The alert reader will notice that we implicitly assume that the infectious disease does not have a substantial mortality risk. Since an analysis of deadly diseases is more complicated, we focus on benign (non-deadly) diseases.
Suppose an individual makes contacts with other individuals per unit of time. Then, during a small time period of length
, the individual has contact with
infected people. Suppose that the probability of succesfull disease transmission is
. Then, a susceptible individual does not get infected during this time period with probability
so is the probability of infection for these contacts. With an extra definition,
, we can rewrite the previous equation to
Now, we expand the right hand side using the Taylor expansion and divide both sides by . Subsequently, we take the limit
to find
This is the rate at which a susceptible individual gets infected. Then the rate of transmission for the entire susceptible class is given by
With slight abuse of notation, we let ,
and
indicate the fraction of the population in these classes, so
. Then the transmission rate for the S class is
the parameter is known as the transmission rate parameter, and
can be interpreted as the time between contacts with disease transmission. The SIR model is given by
(1a)
(1b)
(1c)
where is the recovery rate of infected individuals. That is,
is the duration of an infection. The model 1a cannot be solved analytically. Nevertheless, we can simulate the progression of the disease. An example is displayed in Figure [2], where initially a single individual is infected and at the peak
of the population is infected. It is important to note that in model 1a the disease will eventually die out due to the fixed population size.

The threshold phenomenon
Despite the simplicity of the SIR model, it provides a crucial insight into the factors that determine whether or not there will be a proper epidemic outbreak. We can rewrite 1b to
Then, if we have
, so the number of infected people initially increases. The ratio
is known as the basic reproductive number
. This is the number of new infections created by an infected individual. The basic reproductive number plays a crucial role in epidemiology for the following reason. For many infectious diseases it is reasonable to assume that initially the entire population (except the first infected individual) is susceptible, so
. Then the disease spreads if
and dies out if
. This is known as the threshold phenomenon, first discovered by [1]. The higher
, the faster the disease spreads and the hard it is to control. Table 1 shows
estimates for various diseases.

Modeling life and death
Before we move to vaccinations, we add birth and (non-disease related) death dynamics. For our simple deterministic model, we assume a lifespan of years, so
is the rate of birth and death. Newborns enter the system as susceptible, and deaths can occur in all classes. The SIR model with demographics now reads
(2a)
(2b)
(2c)
We can derive the basic reproductive number for this model in a similar fashion as in the previous section:
Compared to model (1), this model allows for analysis of the long term behavior of the disease in the population, due to the inclusion of birth-death dynamics. Two equilibria can be determined, by simply setting the right-hand side expressions in (2) to zero. For 2b we find that either or
. The former leads to the disease-free equilibria:
and the latter leads to the endemic equilibria:
Because the population variables must be nonnegative, the endemic equilibria is only possible if . Hence, we again observe the threshold phenomenon.
Vaccinations to the rescue
Suppose a fraction of the population is vaccinated at birth via a so-called pediatric vaccination program and that vaccination confers lifelong immunity. This can be modelled by letting vaccinated newborns enter the system in the recovered class (which is essentially an immune class) instead of in the susceptible class. Non-vaccinated newborns still enter the system in the susceptible class. The SIR model with vaccination reads
(3a)
(3b)
(3c)
We are now in position to analyze the influence of the vaccination rate . In [3] the following variable substitution is proposed:
,
and
. Then model (3) is equivalent to
(4a)
(4b)
(4c)
One can recognize that (4) in fact has the same structure as model (2), the only difference is that is replaced by
. Let
denote the vaccination corrected basic repopulation number. Then we must pick the fraction
such that
is below 1. With
replaced by
, we get
Hence, to eradicate a disease, it is crucial to vaccinate at least a fraction of the newborns. Of course, vaccinating more than
will make sure the disease is eradicated more rapidly. It is now straightforward to calculate the critial proportion
for the diseases in Table1. The fact that it is not neccesary to vaccinate all newborns is known as herd immunity: non-vaccinated (susceptible) individuals are protected from infection because they are surrounded by a sufficient number of vaccinated individuals.
Reality: Heterogeneity, imperfect vaccines and noise
The simple SIR model provides some fundamental insights in the spread of disease and the influence of vaccinations. However, it makes quite a few assumptions, which limit the direct applicability of the model. In particular, it assumes a non-deadly disease. Furthermore, it assumes a homogeneous population (with fixed lifespan and infection duration), vaccines providing lifelong immunity and a deterministic disease spread. Many variations on the SIR model have been developed to deal with these limitations [2]. In particular, stochastic differential equations are a proper tool to add many of these components to the model.
Math is at the heart of epidemiology, and provides crucial insights into the effects of various vaccination strategies. In the current political debate on vaccines, its importance will probably not die out soon.
References
[1] W.O. Kermack and A.G. McKendrick (1927). A contribution to the mathematical theory of epidemics. Proceedings of the Royal Society of London. Series A 115(772) 700–721.
[2] M.J. Keeling and P. Rohani. (2008) Modeling infectious diseases in humans and animals. Princeton University Press
[3] D.J.D. Earn et al. (2000). A simple model for complex dynamical transitions in epidemics. Science, 287(5453), 667–670.