Algorithm Search⌘K

Modelintro

Kermack-McKendrick SIR model

Also called SIR model, Kermack-McKendrick model.

The deterministic SIR model of a well-mixed population: susceptible, infected and removed classes with mass-action infection and a constant removal rate.

The Kermack-McKendrick SIR model is the deterministic model of an epidemic in a closed, well-mixed population. Each individual is susceptible (S), infected and infectious (I), or removed (R), and three ordinary differential equations move the population from S to I by contact and from I to R at a constant per capita rate. It is the simplest compartmental epidemic model with immunity, and the gossip page epidemic model uses the same equations for the spread of a message among servers. The SIR model on networks is its network version: there each individual is a node and infection passes only along edges, while here every individual meets every other at the same rate.

The machine

The state. The counts S(t)S(t), I(t)I(t) and R(t)R(t) at time tt, with S+I+R=NS + I + R = N for a fixed population size NN. "Removed" covers recovery with lasting immunity, isolation and death; the removed individuals take no further part. The fractions are s=S/Ns = S/N, i=I/Ni = I/N and r=R/Nr = R/N.

The parameters.

  • β\beta, the transmission rate, per unit of time: one infected individual makes contacts that would infect a susceptible at rate β\beta, and a fraction S/NS/N of these contacts are with susceptibles.
  • γ\gamma, the removal rate, per unit of time: each infected individual is removed at rate γ\gamma, so the infectious period is exponential with mean 1/γ1/\gamma.

The equations. With frequency-dependent transmission,

dSdt=−βSIN,dIdt=βSIN−γI,dRdt=γI,\frac{dS}{dt} = -\frac{\beta S I}{N}, \qquad \frac{dI}{dt} = \frac{\beta S I}{N} - \gamma I, \qquad \frac{dR}{dt} = \gamma I,

with S(0)=S0>0S(0) = S_0 > 0, I(0)=I0>0I(0) = I_0 > 0 and R(0)=N−S0−I0R(0) = N - S_0 - I_0. The basic reproduction number is R0=β/γR_0 = \beta / \gamma: one infected individual in a fully susceptible population infects others at rate β\beta for a mean time 1/γ1/\gamma. With density-dependent transmission, βSI/N\beta S I / N is replaced by βSI\beta S I, and then R0=βN/γR_0 = \beta N / \gamma.

The standing assumptions.

  • The population is closed: no births, no deaths from other causes, no travel. This fits one epidemic wave that is short compared with a human lifetime.
  • Mixing is homogeneous: each pair of individuals has the same contact rate.
  • An infected individual is infectious at once (no latent period) and with constant infectivity until removal.
  • Removal is permanent: there is no reinfection.
  • The counts are large, so random fluctuations are ignored. The equations are the large population limit of a Markov chain (see "Relation to other models").

The general model of 1927. Kermack and McKendrick (1927) did not assume constant rates. In their model, an individual infected for a time τ\tau infects at rate A(τ)A(\tau), and the force of infection is an integral of AA over the past incidence. The ODE above is the case A(τ)=βe−γτA(\tau) = \beta e^{-\gamma \tau}, which holds when infectivity is constant and removal comes at a constant rate. Their threshold result and their final size equation hold for the general AA, with R0=∫0∞A(τ) dτR_0 = \int_0^\infty A(\tau) \, d\tau.

A worked trajectory. Take N=10000N = 10000, I0=10I_0 = 10, S0=9990S_0 = 9990, β=0.4\beta = 0.4 per day and γ=0.2\gamma = 0.2 per day, so R0=2R_0 = 2 and the mean infectious period is 5 days. The classical Runge-Kutta method with a step of 0.01 days gives:

day SS II RR
0 9990.0 10.0 0.0
10 9864.4 72.3 63.2
20 9061.8 450.6 487.6
30 6268.7 1401.2 2330.1
40 3498.7 1255.3 5246.0
60 2159.0 181.3 7659.7
100 2029.6 1.6 7968.8

The peak comes at about day 33.8, with I≈1539.3I \approx 1539.3 and S=N/R0=5000S = N / R_0 = 5000. The epidemic ends with R(∞)≈7971.5R(\infty) \approx 7971.5 and S(∞)≈2028.5S(\infty) \approx 2028.5: about one person in five never gets infected.

What it counts

  • The epidemic curve. The prevalence I(t)I(t) and the incidence βS(t)I(t)/N\beta S(t) I(t) / N, the rate of new infections.
  • The early growth rate. While S≈NS \approx N, the infected count grows as I(t)≈I0ertI(t) \approx I_0 e^{r t} with r=β−γ=γ(R0−1)r = \beta - \gamma = \gamma (R_0 - 1). In the example, r=0.2r = 0.2 per day, and the doubling time is ln⁡2/r≈3.47\ln 2 / r \approx 3.47 days.
  • The peak. The largest prevalence Imax⁡I_{\max} and the time at which it occurs.
  • The final size. The number R(∞)−R(0)R(\infty) - R(0) of individuals ever infected, and the number S(∞)S(\infty) who escape infection.

Relation to other models

  • Compartmental epidemic model. The general concept. This page is its SIR case with constant rates.
  • SIR model on networks. The same three classes, but infection passes only along the edges of a contact graph. Its final size is a percolation problem on the graph, and its threshold depends on the degree distribution. The present model is the limit of complete mixing.
  • Epidemic model of gossip. The same equations, read as the spread of an update among servers. The gossip page uses the final size equation to bound the fraction of servers that a protocol misses.
  • Stochastic SIR model. The continuous-time Markov chain with infection rate βSI/N\beta S I / N and removal rate γI\gamma I. For a fixed time horizon its fractions converge to the solution of the ODE as N→∞N \to \infty (Kurtz 1970). The chain can die out early by chance, which the ODE cannot show. The Reed-Frost model is the discrete-time chain binomial version.
  • SIS and SEIR models. SIS drops immunity, so an endemic state is possible. SEIR adds a latent class; its final size is the same as here for the same R0R_0.
  • SIR with demography. Births into S and deaths from each class at rate μ\mu give an endemic equilibrium with s∗=1/R0s^* = 1/R_0 and R0=β/(γ+μ)R_0 = \beta / (\gamma + \mu), reached through damped oscillations (Keeling and Rohani 2008, section 2.1.2). The SEIR page works out this case with a latent class.
  • Epidemic renewal equation. The general model of 1927, with infectivity A(τ)A(\tau), is a renewal equation for the incidence.

Known results in the model

All results below are for the equations of "The machine", with S0>0S_0 > 0 and I0>0I_0 > 0.

Conservation. S+I+R=NS + I + R = N for all t≥0t \ge 0, because the three derivatives sum to zero. The solution exists for all t≥0t \ge 0, and SS, II and RR stay positive (for RR, positive for t>0t > 0): S(t)=S0exp⁡(−βN∫0tI)>0S(t) = S_0 \exp\left(-\frac{\beta}{N} \int_0^t I\right) > 0 and I(t)=I0exp⁡(∫0t(βS/N−γ))>0I(t) = I_0 \exp\left(\int_0^t (\beta S / N - \gamma)\right) > 0.

The threshold. dI/dt>0dI/dt > 0 exactly when S>N/R0S > N / R_0. So the number of infected individuals grows at the start if and only if R0S0/N>1R_0 S_0 / N > 1. Since SS decreases, II rises while S>N/R0S > N / R_0, peaks once when S=N/R0S = N / R_0, and then falls. If R0S0≤NR_0 S_0 \le N, then II falls from the start. This is the threshold theorem of Kermack and McKendrick.

A first integral. The quantity

V(S,I)=S+I−NR0ln⁡SV(S, I) = S + I - \frac{N}{R_0} \ln S

is constant along each solution.

Proof. dVdt=dSdt+dIdt−NR01SdSdt=−γI+Nγβ⋅βIN=0\frac{dV}{dt} = \frac{dS}{dt} + \frac{dI}{dt} - \frac{N}{R_0} \frac{1}{S} \frac{dS}{dt} = -\gamma I + \frac{N \gamma}{\beta} \cdot \frac{\beta I}{N} = 0. □\square

So each orbit in the (S,I)(S, I) plane is the curve I=V0−S+NR0ln⁡SI = V_0 - S + \frac{N}{R_0} \ln S with V0=V(S0,I0)V_0 = V(S_0, I_0). In the worked example, VV and S+I+RS + I + R stay constant within 2×10−102 \times 10^{-10} along the numerical solution.

The peak. Put S=N/R0S = N / R_0 in the first integral:

Imax⁡=S0+I0−NR0−NR0ln⁡R0S0N.I_{\max} = S_0 + I_0 - \frac{N}{R_0} - \frac{N}{R_0} \ln \frac{R_0 S_0}{N}.

For the worked example this is 1539.271539.27, which matches the numerical peak. When S0→NS_0 \to N and I0→0I_0 \to 0, the peak fraction is imax⁡=1−(1+ln⁡R0)/R0i_{\max} = 1 - (1 + \ln R_0) / R_0: 0.153426 for R0=2R_0 = 2 and 0.300463 for R0=3R_0 = 3. At the peak of the example, N−S=5000N - S = 5000 individuals have been infected, about 63 percent of the final total of 7971.5: the epidemic overshoots the threshold by a large amount after the peak.

Burnout, not exhaustion. I(t)→0I(t) \to 0 and S(t)→S∞>0S(t) \to S_\infty > 0 as t→∞t \to \infty. The epidemic stops because the susceptibles fall below the threshold N/R0N / R_0, not because none are left.

Proof. RR is increasing and bounded by NN, so it has a limit, and ∫0∞γI dt=R(∞)−R(0)\int_0^\infty \gamma I \, dt = R(\infty) - R(0) is finite. II has a bounded derivative, so it is uniformly continuous, and an integrable, uniformly continuous, positive function tends to 0. SS is decreasing and positive, so it has a limit S∞≥0S_\infty \ge 0. If S∞=0S_\infty = 0, then ln⁡S→−∞\ln S \to -\infty and V→+∞V \to +\infty, which contradicts that VV is constant. So S∞>0S_\infty > 0. □\square

The final size. Letting t→∞t \to \infty in the first integral gives the equation for S∞S_\infty:

S∞−NR0ln⁡S∞=S0+I0−NR0ln⁡S0.S_\infty - \frac{N}{R_0} \ln S_\infty = S_0 + I_0 - \frac{N}{R_0} \ln S_0 .

In the example, its root is S∞=2028.46S_\infty = 2028.46, so 7971.547971.54 individuals are removed in the end. In the limit S0→NS_0 \to N, I0→0I_0 \to 0, the fraction zz ever infected solves z=1−e−R0zz = 1 - e^{-R_0 z}, which gives z=0.796812z = 0.796812 for R0=2R_0 = 2. The final size relation states and proves this result, with its hypotheses, and gives the values for other R0R_0.

No closed form in tt. The orbit has the closed form above, but S(t)S(t) is not an elementary function of tt; numerical solution of the initial value problem is the normal method. The system is not stiff for usual parameter values, so an explicit Runge-Kutta method with a fixed step is enough.

References

  1. W. O. Kermack and A. G. McKendrick, A contribution to the mathematical theory of epidemics, Proceedings of the Royal Society of London A 115(772), 1927, pages 700 to 721 (the general model with infectivity depending on the time since infection, the threshold density of susceptibles and the final size equation)
  2. Matt J. Keeling and Pejman Rohani, Modeling Infectious Diseases in Humans and Animals, Princeton University Press, 2008, Section 2.1.1, The SIR model without demography (the threshold phenomenon and epidemic burnout), and Section 2.1.2, The SIR model with demography
  3. Herbert W. Hethcote, The mathematics of infectious diseases, SIAM Review 42(4), 2000, pages 599 to 653 (the classic SIR epidemic model, its phase plane, the threshold and the final size)
  4. Roy M. Anderson and Robert M. May, Infectious Diseases of Humans, Dynamics and Control, Oxford University Press, 1991, Part I, microparasites (the basic model of a directly transmitted infection, its threshold and its early growth)
  5. Thomas G. Kurtz, Solutions of ordinary differential equations as limits of pure jump Markov processes, Journal of Applied Probability 7(1), 1970, pages 49 to 58, the convergence of density-dependent Markov jump processes to the solution of their ODE on finite time intervals

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/83TGQK/text.yaml