Skip to main content
Springer Nature - PMC COVID-19 Collection logoLink to Springer Nature - PMC COVID-19 Collection
. 2022 Jun 30;85(1):2. doi: 10.1007/s00285-022-01771-x

Herd immunity under individual variation and reinfection

Antonio Montalbán 1, Rodrigo M Corder 2, M Gabriela M Gomes 3,4,
PMCID: PMC9246817  PMID: 35773525

Abstract

We study a susceptible-exposed-infected-recovered (SEIR) model considered by Aguas et al. (In: Herd immunity thresholds for SARS-CoV-2 estimated from unfolding epidemics, 2021), Gomes et al. (In: J Theor Biol. 540:111063, 2022) where individuals are assumed to differ in their susceptibility or exposure to infection. Under this heterogeneity assumption, epidemic growth is effectively suppressed when the percentage of the population having acquired immunity surpasses a critical level - the herd immunity threshold - that is lower than in homogeneous populations. We derive explicit formulas to calculate herd immunity thresholds and stable configurations, especially when susceptibility or exposure are gamma distributed, and explore extensions of the model.

Keywords: SEIR model, Individual variation, Selection, Effective reproduction number, Herd immunity threshold

Introduction

Understanding and predicting the dynamics and control of infectious diseases relies on representative models, whether conceptual or mathematical. Mathematical modelling was established in infectious diseases over a century ago, with the seminal works of Ross (1916), Ross and Hudson (1917), Kermack and McKendrick (1927) and others. Propelled by the discovery of aetiological agents for infectious diseases, and the germ theory, models have focused on the complexities of pathogen transmission and evolution (Heesterbeek 2015). It has recurrently been noted for over a century, however, that these models tend to overpredict transmission potential and overestimate the impact of control measures which may be explained by limitations in capturing the effects of heterogeneity (Kermack and McKendrick 1927; McKendrick 1939; Gart 1968, 1971; Ball 1985; Anderson et al. 1986; Pastor-Satorras and Vespignani 2001; Miller et al. 2012; Gomes et al. 2022).

Here we analyze a set of susceptible-exposed-infected-recovered (SEIR) models presented in Gomes et al. (2022), Aguas et al. (2021) where each of the compartments S, E, I and R is expanded into continuum many compartments S(x), E(x), I(x) and R(x), where xR+ is a trait that varies among individuals. Specifically we model a situation where each individual has a level of susceptibility or exposure (connectivity) x, starting in compartment S(x) and staying within the compartments S(x), E(x), I(x) and R(x) the whole time. This individual may infect or be infected by others irrespective of their trait value x assuming random mixing (Anderson and May 1991; Diekmann et al. 2013). We will consider two types of models:

A variable susceptibility case where the susceptibility of an individual at level x is proportional to x, or, in other words, if we compare an individual at level x and an individual at level y, the one at level x is x/y times more likely to get infected than the one with susceptibility y. We may interpret this as variation in biological susceptibility which may be due to genetics, epigenetics or life history.

A variable connectivity case where the propensities for an individual at level x to acquire infection and transmit to others are both proportional to x, or, in other words, if we compare an individual at level x and an individual at level y, the one at level x is x/y times more likely to get infected than the one in level y and also x/y times more likely to infect someone else once infected. This is interpreted as individuals with many contacts being both more likely to get infected and to infect others.

For each x, we have a system of the form:

graphic file with name 285_2022_1771_Equ58_HTML.gif

where λ is the force of infection which is formulated differently in the variable susceptibility or the variable connectivity cases:

Variablesusceptibility:λ=βI(x)dx,Variableconnectivity:λ=βxI(x)dx.

Note that λ varies with time, as it depends on the time-dependent infected population.

The dynamics of compartments S(x), E(x), I(x) and R(x) are governed by the infinite system of ordinary differential equations:

dS(x)dt=-λxS(x), 1
dE(x)dt=λxS(x)-δE(x), 2
dI(x)dt=δE(x)-γI(x), 3
dR(x)dt=γI(x). 4

We assume that the system has been scaled such that the total population is 1. The initial conditions for variables S(xt), E(xt), I(xt) and R(xt), satisfy S(x,0)=(1-ϵ)q(x), E(x,0)=ϵq(x) and I(x,0)=R(x,0)=0, where 0<ϵ1 is a small scalar to seed the epidemic, and q(x) is a probability density function with mean 1 and coefficient of variation ν:

xq(x)dx=1and(x-1)2q(x)dx=ν. 5

We use S(t) to denote the integral over all susceptibility levels, S(xt), for xR+. We thus have S(t)=0+S(x,t)dx. Same with E(t), I(t) and R(t).

We will use the first three moments of S(xt), that we denote S(t), S¯(t) and S¯¯(t):

S(t)=S(x,t)dx,S¯(t)=xS(x,t)dxandS¯¯(t)=x2S(x,t)dx. 6

When infection is absent (ϵ=0), we have S(0)=1, S¯(0)=1 and S¯¯(0)=1+ν2. But note that S(xt) is not a probability density function for ϵ>0 as S(t) becomes less than 1. The quotient S(x,t)/S(t) as a function of x for fixed t will be a probability density function for ϵ>0 and all t with first and second moments S¯(t)/S(t) and S¯¯(t)/S(t) which decrease over time. When the initial configuration q(x) is a gamma distribution, all the distributions S(x,t)/S(t) are also gamma with the same coefficient of variation ν but with lower mean (see Appendix A), an argument which enables mathematical derivations to advance further when traits are assumed to be gamma distributed (Novozhilov 2008).

Similarly, we define the moments R(t), R¯(t) and R¯¯(t) for the recovered compartment, and the same with E and I. Notice for instance that λ(t) is written as βI(t) and βI¯(t) in the variable susceptibility and variable connectivity cases, respectively.

Here we describe key epidemiological quantities when system of equations (Eqs. 14) is adopted. The basic reproduction number Inline graphic is the average number of secondary infections generated by an infected individual in a totally susceptible population. It depends on characteristics of both the pathogen and the host population. When this number is below 1 no epidemics are expected. When Inline graphic is above 1, however, the introduction of infection in a virgin population is expected to generate an epidemic. This is followed by almost exponential growth in cumulative infections which decelerates gradually as susceptibles are depleted. The effective reproduction number Inline graphic is a time-dependent quantity loosely defined as the number of secondary infections generated by a typical infected individual when the susceptibility of the population is as at time t. Inline graphic coincides with Inline graphic at the beginning of an epidemic (when the population is totally susceptible) but declines as individuals are removed from the susceptible pool by infection and immunity. As Inline graphic crosses 1 towards lower values, the epidemic subsides and future reintroductions of infection are not expected to generate new outbreaks as long as population immunity is maintained.

We derive formulas for the effective reproduction number Inline graphic and the herd immunity threshold H in terms of moments S, S¯ and S¯¯, of the susceptible population. When q(x) is a gamma distribution, S¯ and S¯¯ can be formulated in terms of S and we get an exact formula for H in terms only of the basic reproduction number Inline graphic and the coefficient of variation ν. In this case we can also reduce the infinite system (Eqs. 14) to a finite system of ordinary differential equations in S, E, I and R with nonlinear transmission (exactly when the variable trait is susceptibility and approximately in the case of variable connectivity). In the case of variable connectivity, we provide an exact derivation of a finite system in the variables S¯, E¯, I¯ and R¯.

In the variable susceptibility case we will get that:

graphic file with name 285_2022_1771_Equ59_HTML.gif

and consequently, Inline graphic. This implies that the population is above the herd immunity threshold when Inline graphic. When we assume that q(x) is a gamma distribution, the proportion of individuals that have been infected by the time the herd immunity threshold is reached is deduced as:

graphic file with name 285_2022_1771_Equ7_HTML.gif 7

and system (Eqs. 14) can be reduced to:

dSdt=-βIS1+ν2, 8
dEdt=βIS1+ν2-δE, 9
dIdt=δE-γI, 10
dRdt=γI. 11

These equations are exact.

In the variable connectivity case we will get that:

graphic file with name 285_2022_1771_Equ60_HTML.gif

and consequently, Inline graphic. This implies that the population is above the herd immunity threshold when Inline graphic. When we assume that q(x) is a gamma distribution, the proportion of individuals that have been infected by the time the herd immunity threshold is reached is deduced as:

graphic file with name 285_2022_1771_Equ12_HTML.gif 12

In (Eqs. 2831), we derive a closed system for the variable connectivity model on the variables S¯, E¯, I¯ and R¯. But this does not directly allow the model to be fitted to incidence data provided by routine surveillance. For finding equations that determine the system only on the variables S, E, I and R, in the variable connectivity case we need to make an approximation as detailed in Appendix B. The resulting system (Eqs. 2225) is shown to approximate the original (Eqs. 14) when the infectious period is small as in acute infectious diseases.

In Fig. 1 we provide graphical representations for the H formulas corresponding to the basic model introduced in this section (variable susceptibility in green and variable connectivity in blue), showing a monotonic decrease as the coefficient of variation ν increases (Gomes et al. 2022).

Fig. 1.

Fig. 1

Herd immunity threshold. Curves generated using formulas (Eq. 7) for gamma distributed susceptibility and (Eq. 12) for gamma distributed connectivity, with Inline graphic

In Sects. 2 and 3 we provide general derivations for effective reproduction numbers and herd immunity thresholds, while Sect. 4 is focussed on special cases when traits x are gamma distributed. Towards the end of the paper, we analyze two extensions of the basic model. In Sect. 5, we consider a model with reinfection where immunity after recovery is not fully protective but only partially. In Sect. 6, we consider a model with a carrier state, which (Gomes et al. 2022; Aguas et al. 2021) apply to the coronavirus disease (COVID-19) pandemic. There, the exposed compartments are not simply latent but a carrier state where individuals are infectious but to a lesser degree than individuals in the fully infectious compartment. In each case we derive formulas for herd immunity thresholds especially when the initial trait distribution is gamma.

Effective reproduction number

The effective reproduction number at time t is defined as the number of secondary infections caused by a typical infected individual over their entire infectious period in an idealized situation, as described below.

Before proceeding with its derivation we need to make two considerations. The first concerns the evolving susceptible pool. We assume that during the period in which an individual is contagious, the density of susceptibles is frozen in time. This means that we disregard the fact that since the susceptible population declines, this individual infects less at the end than at the beginning of their infection. In acute infections, the decline in the susceptible population is usually slow compared to the rate of recovery from infection so, in practice, the impact of the assumption is negligible. Moreover, when Inline graphic is used to analyze stable configurations, such as in the derivation of herd immunity thresholds, the assumption holds and hence has no effect on the results. This consideration pertains to both variable susceptibility and variable connectivity models.

The second concerns the infectivity profile of the infected population at time t. We define:

Inline graphic at time t as the average number of secondary infections generated by an individual who becomes infected at time t. This average is taken over the pool of individuals that go from S to E at time t.

When Inline graphic, infection is not expected to invade an infection-free population. Further details on this concept are discussed in Appendix B. In the remaining of this section we derive explicit formulas for Inline graphic.

First, the variable susceptibility case: Consider an individual who gets infected (more precisely, exposed and consequently infected) at time t (i.e., moves from S to E at time t). This individual will eventually move to I and spend on average 1/γ days there. While in I, the individual will infect an average of βyS(y,t)dy others per day. We thus get:

graphic file with name 285_2022_1771_Equ13_HTML.gif 13

In particular, we get:

graphic file with name 285_2022_1771_Equ14_HTML.gif 14

and consequently:

graphic file with name 285_2022_1771_Equ15_HTML.gif 15

Second, the variable connectivity case: Consider again an individual who gets infected at time t. It now matters what trait value x this individual has because it determines how many others they will infect.

Let p(xt) be the density function measuring the probability at time t that this individual has connectivity level x. The probability of becoming infected (i.e., of entering the E compartment) is xλ(t). Thus, the value of p(xt) is proportional to xS(xt):

p(x,t)=xS(x,t)S¯(t).

As above, an individual who enters E will eventually move to I, spend on average 1/γ days there, and infect an average of βyS(y,t)dy others per day. We thus get:

graphic file with name 285_2022_1771_Equ16_HTML.gif 16

In particular, we get:

graphic file with name 285_2022_1771_Equ17_HTML.gif 17

and consequently:

graphic file with name 285_2022_1771_Equ18_HTML.gif 18

Expressions for Inline graphic, such as (Eq. 14) and (Eq. 17), have been known for decades (Anderson and May 1991; Diekmann et al. 2013; Woolhouse et al. 1997). Worth highlighting, however, is that disproportionately less attention has been given to variable susceptibility than to variable connectivity due to the coefficient of variation ν not affecting the formula explicitly in the former case but only in the latter. It will be important to realise, however, that variation in susceptibility is just as impactful when we consider quantities such as herd immunity thresholds and inferences of Inline graphic from observational data (Gomes et al. 2022; Aguas et al. 2021).

Herd immunity threshold

Suppose we have a population with no infected individuals, so that all individuals are either susceptible or recovered. The population is said to be at or above the herd immunity threshold for a pathogen if its susceptibility profile to that pathogen is such that a new introduction of infection (i.e., a small increase in E or I) does not trigger an outbreak. By inspection on the differential equations (Eqs. 14), we see that a configuration with E(x)=I(x)=0 satisfies this condition if and only if

graphic file with name 285_2022_1771_Equ61_HTML.gif

In the variable susceptibility case it is equivalent to formulate the herd immunity threshold in terms of suppression of future outbreaks (as adopted here) or in terms of an unmitigated epidemic passing its peak infection prevalence. With variable connectivity, however, this equivalence does not hold as explained in Sect. 2.

A configuration with no infected individuals is then said to be at the herd immunity threshold if and only if Inline graphic. In SEIR models with no individual variation, configurations with no infected individuals are determined by the values of S and R=1-S, and the herd immunity threshold is defined as the value of 1-S at the unique configuration with Inline graphic. This value is well-known to be equal to Inline graphic (Anderson and May 1991; Diekmann et al. 2013). With individual variation in susceptibility or exposure to infection, however, there are many configurations which satisfy Inline graphic. One such configuration is given by Inline graphic for all x. This could be obtained, for instance, by vaccinating a proportion Inline graphic of the total population randomly without taking into account susceptibility or exposure levels (Fine et al. 2011). When immunity is acquired naturally, however, individuals with higher susceptibility or exposure tend to be infected earlier and the herd immunity threshold is reached before the susceptible population is as low as Inline graphic of the total. For now, let us retain that for the basic heterogeneous models considered here the herd immunity threshold is reached when Inline graphic in the variable susceptibility case (Eq. 15) and Inline graphic with variable connectivity (Eq. 18).

Next, we will see how we can derive S¯(t) and S¯¯(t) under the assumption that the initial distribution is gamma.

Case of the gamma distribution

Here we study how the distribution of the trait x within the susceptible compartment evolves generally, and then specify to the case where individual variation in susceptibility or connectivity is gamma distributed. We also refer to related work in Neipel et al. (2020), Novozhilov (2008).

Evolution of the susceptible compartment

From the SEIR equation for dS(xt)/dt we get:

1S(x,t)dS(x,t)dt=-xλ(t).

Integrating with respect to t we get:

S(x,t)=q(x)e-xktwherekt=0tλ(u)du. 19

This holds in both variable susceptibility and variable connectivity models (with different values for kt). It also holds in the cases with reinfection and with carrier state considered in Sects. 5 and 6.

Gamma distributed traits

The key observation here is that since S(x,t)=q(x)e-xkt, we have that S(x,t)/S(t) remains a gamma distribution at all values of t. This enables the derivations in Appendix A of explicit formulas for the moments S¯ (Eq. A.1) and S¯¯ (Eq. A.2) in terms of S and the shape parameter α, when susceptibility or connectivity are gamma distributed.

Using that the coefficient of variation is ν=1/α we rewrite the respective formulas as:

S¯(t)=S(t)1+ν2, 20
S¯¯(t)=(1+ν2)S(t)1+2ν2. 21

To derive the reduced system in the variable susceptibility case (Eqs. 811) we integrate the equations in (Eqs. 14) over the susceptibility domain and apply (Eqs. 13 and 20) to get:

dSdt=-βIS¯=-βIS1+ν2, 22
dEdt=βIS¯-δE=βIS1+ν2-δE, 23
dIdt=δE-γI, 24
dRdt=γI. 25

This closed system in S, E, I and R has been used to fit epidemic curves of COVID-19 (Gomes et al. 2022; Aguas et al. 2021). Recalling that the herd immunity threshold H is 1-S(t) at the time t when Inline graphic and that Inline graphic (Eq. 15), we get that Inline graphic at the herd immunity threshold when susceptibility is gamma distributed. Hence:

graphic file with name 285_2022_1771_Equ26_HTML.gif 26

In the variable connectivity case we have that Inline graphic (Eq. 18). Thus, when Inline graphic, we get Inline graphic when connectivity is gamma distributed. Hence:

graphic file with name 285_2022_1771_Equ27_HTML.gif 27

Multiplying the original (Eqs. 14) by x, integrating over the connectivity domain and applying (Eqs. 16 and 21) we get:

dS¯dt=-βI¯S¯¯=-(1+ν2)βI¯S¯1+2ν21+ν2, 28
dE¯dt=βI¯S¯¯-δE¯=(1+ν2)βI¯S¯1+2ν21+ν2-δE¯, 29
dI¯dt=δE¯-γI¯, 30
dR¯dt=γI¯. 31

Mathematically this is a tractable closed system in S¯, E¯, I¯ and R¯. However, these variables are not convenient for practical data fitting and parameter estimation. In Appendix B we propose an approximation in the variables S, E, I and R.

Model with reinfection

Here we consider an extension of the model considering that immunity after recovery is not fully protective, but only partially. A factor σ, with 0σ1, is added to represent the quotient of the probability of getting reinfected after recovery over the probability of getting infected while fully susceptible.

The model is represented diagrammatically as:

graphic file with name 285_2022_1771_Equ62_HTML.gif

with λ as in the basic models (without reinfection) studied above. The extended model is given by the equations:

dS(x)dt=-λxS(x), 32
dE(x)dt=λx(S(x)+σR(x))-δE(x), 33
dI(x)dt=δE(x)-γI(x), 34
dR(x)dt=γI(x)-σλxR(x). 35

The system exhibits newer dynamics in comparison with the basic case. Depending on whether σ is below or above Inline graphic (known as the reinfection threshold (Gomes et al. 2004, 2016)) we get that either the disease dies out after a while and a certain proportion of the population never gets infected, or continues endemically and every individual is eventually infected and reinfected repeatedly.

Effective reproduction number

The basic reproduction number is calculated exactly, as in the absence of reinfection, but the effective reproduction now depends not only on the distribution of S(xt), but also on the distribution of R(xt). When we consider configurations with no infected individuals, we will have that R(x,t)=q(x)-S(x,t) and will be able to express Inline graphic in terms of S(xt) only.

The formulas for the effective reproduction number Inline graphic at time t are:

  • Inline graphic in the variable susceptibility case, and

  • Inline graphic in the variable connectivity case.

The derivation of these formulas is essentially as the derivations in Sect. 2, with two differences. First, each individual with trait value x infects β(S¯(t)+σR¯(t)) or βx(S¯(t)+σR¯(t)) others per day spent in I, in the respective cases, instead of βS¯(t) or βxS¯(t). Second, when we consider an individual that gets infected in the variable connectivity case, the probability that this individual has trait value x is proportional to x(S(x,t)+σR(x,t)) instead of xS(xt).

Herd immunity threshold

Recall that a configuration with no infected individuals is at or above the herd immunity threshold if and only if Inline graphic Assuming that no one is infected, that is R(x)=q(x)-S(x), we get R¯=1-S¯ and R¯¯=q¯¯-S¯¯, where q¯¯=x2q(x)dx=1+ν2. We can then understand the configurations at the herd immunity threshold in terms of S¯ and S¯¯.

In the variable susceptibility case a configuration with no infected individuals is at the herd immunity threshold if and only if Inline graphic, and hence:

graphic file with name 285_2022_1771_Equ63_HTML.gif

In the variable connectivity case a configuration with no infected individuals is at the herd immunity threshold if and only if Inline graphic, and hence:

graphic file with name 285_2022_1771_Equ64_HTML.gif

Reinfection threshold

The formulas above require:

graphic file with name 285_2022_1771_Equ65_HTML.gif

That is, the reinfection factor σ has to be below Inline graphic, a critical value known as the reinfection threshold (Gomes et al. 2004, 2016). If this is verified, then all configurations with no infected individuals and satisfying the conditions above (either Inline graphic or Inline graphic depending on the case) are herd immunity threshold configurations in the sense that when susceptibility is at that level or lower, infection reintroductions will not trigger new outbreaks as Inline graphic will not increase above 1.

If the reinfection factor is so high that the population is above the reinfection threshold, Inline graphic will be greater than 1 in any such configurations, so there will not be any configuration with no infected individuals which is at the herd immunity threshold. This implies that there will always be a portion of the population infected, and hence that the population of susceptible individuals will eventually be completely depleted. The infection becomes endemic. The equilibrium configuration will now have S(x)=0 for all x. In these situations the level of endemicity will depend on how much resistance the population is able to mount and maintain.

Case of the gamma distribution

Recall from Sect. 3 that, when the initial distribution q(x) is gamma, we get that S(x,t)/S(t) remains a gamma distribution for all t, and that S¯(t)=S(t)1+ν2 and S¯¯(t)=(1+ν2)S(t)1+2ν2. We can then obtain the values of S(t) at the time when the herd immunity threshold is reached, and then calculate H as 1-S(t) for that particular t.

In the variable susceptibility case we get:

graphic file with name 285_2022_1771_Equ36_HTML.gif 36

In the variable connectivity case we get:

graphic file with name 285_2022_1771_Equ37_HTML.gif 37

Curves assuming a selection of values for σ are represented graphically in Fig. 2. Note the critical behaviour at the reinfection threshold (Inline graphic) in red, which separates the regime where individual immunity is sufficiently potent for the herd immunity threshold to be achievable from the regime where endemicity will establish.

Fig. 2.

Fig. 2

Herd immunity threshold with reinfection. Curves correspond to the SEIR model with reinfection (Eqs. 3235) assuming Inline graphic and gamma distributed susceptibility (left, Eq. 36) or connectivity (right, Eq. 37). Efficacy of naturally acquired immunity is captured by a reinfection parameter σ, potentially ranging between σ=0 (100% efficacy) and σ=1 (0 efficacy). Five values of the reinfection parameter are depicted: σ=0 (black); σ=0.1 (green); σ=0.2 (blue); σ=0.3 (magenta); and Inline graphic (red). Above Inline graphic (reinfection threshold Gomes et al. 2004, 2016) the infection becomes stably endemic and there is no herd immunity threshold (colour figure online)

Model with a carrier state

In applications to the COVID-19 pandemic (Gomes et al. 2022; Aguas et al. 2021) the exposed compartments are not simply a latent state but a carrier state where individuals are infectious but to a lesser degree than those in the fully infectious compartment. Building on the reinfection model (Eqs. 3232) we now introduce parameter ρ1 to denote the ratio of infectiousness between exposed and fully infectious individuals. What changes is the force of infection λ:

Variablesusceptibility:λ(t)=βρE(x,t)+I(x,t)dx=β(ρE(t)+I(t)),Variableconnectivity:λ(t)=βx(ρE(x,t)+I(x,t))dx=β(ρE¯(t)+I¯(t)).

The basic and effective reproduction numbers become:

graphic file with name 285_2022_1771_Equ66_HTML.gif

The calculation of the effective reproduction number Inline graphic is slightly different. The difference is that now we have to add the time an individual is incubating the infection in E to the infectious period, multiplied by the factor ρ. Since the average time an individual spends in E is 1/δ we get:

  • Inline graphic in the variable susceptibility case, and

  • Inline graphic in the variable connectivity case,

where S¯(t) and S¯¯(t) are the moments of S(xt) defined above, and the same with R(xt).

In particular, we get Inline graphic and Inline graphic, respectively, and Inline graphic and Inline graphic. Finally, we obtain the same formulas for the herd immunity threshold in terms of Inline graphic and ν (Sect. 3, without reinfection) or more generally Inline graphic, ν and σ (Sect. 5, with reinfection).

Discussion

After completion of this work, similar ideas for capturing individual variation with mean-field epidemic models were elaborated (Britton et al. 2020; Di Lauro et al. 2021; Kawagoe et al. 2021; Neipel et al. 2020; Rose et al. 2021; Tkachenko et al. 2021). These recent developments were largely prompted by the COVID-19 pandemic. In agreement with our results, Rose et al. (2021), Neipel et al. (2020) find that when susceptibility is initially gamma distributed it remains so through the course of the epidemic, leading naturally to power-law behaviour in the force of infection (Novozhilov 2008). In addition the authors show that other initial distributions converge towards gamma through the process of contagion. Other authors (Kawagoe et al. 2021) derive epidemic final sizes assuming alternative distributions of susceptibility, considering in addition that infectivity may exhibit some correlation with susceptibility (such as in the variable connectivity models analyzed here). They compare numerical results for gamma and lognormal distributions with those obtained using an empirical distribution of individual contacts derived from cell phone geolocation data. Focussing on variable connectivity (Britton et al. 2020; Di Lauro et al. 2021) address herd immunity thresholds using age-structured compartmental models. Additionally (Di Lauro et al. 2021) consider a variety of non-pharmaceutical intervention scenarios, emphasizing subtle results when interventions change the contact network. Another group of authors (Tkachenko et al. 2021) distinguishes between persistent and transient individual variation to highlight that only the former is subject to the kind of selection that lowers epidemic final sizes and herd immunity thresholds.

Despite being prompted by COVID-19 none of the above references attempted to quantify the individual variation which was under selection by the force of infection and hence contributed to lower epidemic final sizes and herd immunity thresholds. This is done in our associated work (Gomes et al. 2022; Aguas et al. 2021), where the problem is inverted and selectable variation is inferred from its effects on epidemic patterns. Although we and others had previous adopted similar approaches to other infectious diseases (Finkenstadt and Grenfell 2000; Smith et al. 2005; Bellan et al. 2015; Corder et al. 2020) the work has been processed more cautiously during the pandemic due to the greater implications that estimating lower herd immunity thresholds and epidemic final sizes might have for policies and behaviors in this context.

The concept of herd immunity was originally developed in the context of vaccination programs (Gonçalves 2008; Fine et al. 2011). Defining the percentage of the population that must be immunised to cause infection prevalence to decline, the concept has provided a useful target for vaccination coverage. In hypothetical scenarios of vaccines delivered at random and individuals mixing at random, the herd immunity threshold is given by the simple expression (Inline graphic) when immunity is fully protective. Concretely, for Inline graphic between 2.5 and 5, this would indicate that 60-80% random subjects would need be immunized to prevent spread of infection. This formula would not apply, however, if vaccination programmes were designed to prioritize more connected individuals, for instance (Elbasha and Gumel 2021). Similarly, it does not apply when immunity is acquired in response to natural infection, which does not occur at random. Individuals who are more susceptible or more exposed to infection are prone to be infected and become immune earlier. As a result, earlier episodes contribute disproportionately to herd immunity as they remove highly susceptible and exposed subjects from the susceptible pool (Ferrari et al. 2006; Britton et al. 2020; Kawagoe et al. 2021; Neipel et al. 2020; Rose et al. 2021; Gomes et al. 2022; Aguas et al. 2021). In our basic models, the herd immunity threshold becomes Inline graphic in the case of gamma distributed susceptibility, and Inline graphic with gamma distributed connectivity (exposure), which decline sharply when coefficients of variation (ν) increase from 0 to 2, remaining below 20% for more variable populations in a particular illustration where Inline graphic (Fig. 1). The magnitude of the decline depends on what property is heterogeneous and how it is distributed among individuals, but the downward trend is robust provided that acquired immunity is efficacious enough to keep transmission below the reinfection threshold (Fig. 2) (Inline graphic, where σ is the susceptibility of individuals who have recovered relative to their respective susceptibility prior to infection) (Gomes et al. 2004, 2016). In our reinfection models, herd immunity thresholds are derived as Inline graphic in the case of gamma distributed susceptibility, and Inline graphic with gamma distributed connectivity, when Inline graphic. If immunity is not potent enough to keep the system below the reinfection threshold then a herd immunity threshold is not attainable and the disease persists in stable endemicity, irrespective of individual variation.

Finally, we stress that the herd immunity threshold (H) is a theoretical framework to assess epidemic potential to the same extent that Inline graphic is a theoretical framework. Their interdependence shows that if Inline graphic increases due to evolution of the infectious agent, for example, so does H. Also, if new susceptibles enter the population through birth or other processes, or if immunity wanes or is evaded by pathogen lineages, a previously acquired herd immunity status may be lost leaving the population prone to subsequent outbreaks. Furthermore, if transmission has a marked seasonal pattern the same level of immunity may place the population above threshold in low season and below threshold in high season, in a cyclical manner. Although H is not as immediately applicable as often implied, it is a more informative measure of epidemic potential than Inline graphic given that it accounts for variation in susceptibility or exposure (ν) in addition to average transmissibility Inline graphic. The more accurately we know H the better we can assess trade-offs and inform public health policy.

Acknowledgements

We thank Paul McKeigue and Joel Miller for valuable discussions and two anonymous reviewers for constructive criticisms and suggestions.

Appendix A. Derivations of moments S, S¯ and S¯¯ for gamma distributed traits

In this appendix we derive explicit formulas for S¯ and S¯¯, in the cases of variable susceptibility and connectively respectively, in terms of S when the traits are gamma distributed.

We use conventional notation for the gamma probability distribution:

Gammaα,β(x)=βαΓ(α)xα-1e-βx,

noting that α and β are the shape and rate parameters, respectively. The notation β clashes with the transmission coefficient which is also conventionally denoted by the same Greek letter, but its appearance as rate parameter in this appendix ceases once we condition our gamma distributions to having mean α/β=1, i.e., β=α, so confusion can be precluded.

Given an initial gamma distribution with mean 1, explicitly q(x)=Gammaα,α(x), which we substitute in (Eq. 19), we get

S(x,t)=ααΓ(α)xα-1e-x(α+kt)=αα+ktα(α+kt)αΓ(α)xα-1e-x(α+kt)=αα+ktα·Gammaα,α+kt(x).

Using the equalities Gammaα,α+kt(x)dx=1, xGammaα,α+kt(x)dx=α/(α+kt) and x2Gammaα,α+kt(x)dx=[α(α+1)]/[(α+kt)2], we calculate S(t), S¯(t) and S¯¯(t):

S(t)=αα+ktα·Gammaα,α+kt(x)dx=αα+ktα,S¯(t)=αα+ktα·xGammaα,α+kt(x)dx=αα+ktα·αα+kt=αα+ktα+1,S¯¯(t)=αα+ktα·x2Gammaα,α+kt(x)dx=αα+ktα·α(α+1)(α+kt)2=αα+ktα+2·α+1α.

From the above we get

S¯(t)=S(t)α+1α, A.1
S¯¯(t)=S(t)α+2α·α+1α. A.2

Appendix B. Approximate variable connectivity model in S, E, I, R variables

In (Eqs. 2831), we derived a closed system for the variable connectivity model on the variables S¯, E¯, I¯, R¯. However, we would like to have a closed system on the variables S, E, I, R, as we did in the variable susceptibility case to enable direct fitting to incidence data (Eqs. 2225) for parameter estimation and scenario projections. We propose a system of approximate equations which works well when the infectious period is small as in acute infectious diseases (Eqs. B.8B.11 below).

The justification for the approximation is based on the assumption that the following two quantities are very close to each other when the infectious period is small compared to the length of the epidemic. At each time t we consider the following two factors, that we denote f(t) and t(t)

  • f(t) is the average infectivity of a typical individual who becomes infected at time t. In other words, this is the average value of trait x taken over the pool of individuals that go from S to E at time t.

  • t(t) is the average infectivity of a typical individual who is infectious at time t. In other words, this is the average value of trait x taken over the pool of individuals that are in compartment I at time t.

Both f and t are formulated below (Eq. B.2). The distinction between them is only meaningful in models where infectivity varies among individuals in such a way that those infected in different days tend to have different infectivities — this occurs in our variable connectivity model (as infectivity is positively correlated with susceptibility, the selection which reduces susceptibility in the susceptible pool over time also reduces infectivity) but not in the case of variable susceptibility (where all individuals have the same infectivity).

Note that we use the factor f in our calculation of Inline graphic in (Eq. 16), where we multiply β by the average infectivity f (same as average connectivity), the average susceptibility S¯, and the length of the infectious period (1/γ):

graphic file with name 285_2022_1771_Equ40_HTML.gif B.1

Let us also note that the “R-number” which was popularized in the COVID-19 pandemic, loosely described as the number of new infections caused by a typical individual who is infectious at time t, is defined in terms of t rather than f. This more empirical notion, formulated as Inline graphic, is not always coincident with the basic reproduction number Inline graphic, introduced in textbooks as the spectral radius of the next generation operator (Diekmann et al. 2013) and adopted in this paper. The two notions differ when the average infectivity of individuals infected in a particular day is different to the average infectivity of those who have been infected in another day. However, this difference is of little consequence to variable connectivity models when the infectious period is small and of no consequence when variation is in susceptibility (see Fig. 3).

Fig. 3.

Fig. 3

Effective reproduction number. Top panels show epidemic curves generated by running system (Eqs. 14) with explicit gamma distributed susceptibility (left) or connectivity (right). Solid curves are unmodified epidemics while dashed show the outcome of hypothetically clearing all infections instantaneously on day 25 and progressing with a small infectious seed. Bottom panels show the respective Inline graphic values, calculated as (β/γ)·S¯ in the case of variable susceptibility and (β/γ)·(I¯/I)·S¯ in the case of variable connectivity, with or without the intervention on day 25. The empirical index Inline graphic coincides with the effective reproduction number Inline graphic in the variable susceptibility case but is slightly higher when variation is in connectivity. This is highlighted by zooming into the areas marked by black rectangles (see insets). Parameters: Inline graphic; δ=1/4 per day; γ=1/3 per day; and ν=1 (colour figure online)

We claim that the values of f and t are given by the following formulas:

f=S¯¯/S¯andt=I¯/I. B.2

The second equality follows from the formula for average infectivity, (xI(x,t)/I)dx, for every time t. The first equality was essentially derived in Sect. 2 when we calculated Inline graphic for variable connectivity (Eq. 16). Within that calculation we had to consider the infectivity of an individual who becomes infected at time t, which is equal to xp(x,t)dx, where p(xt) is the density function measuring the probability that such an individual has connectivity level x. We saw that since p(xt) is proportional to xS(xt), we have that p(x,t)=xS(x,t)/S¯(t). It follows then that f(t)=x2S(x,t)/S¯(t)dx, for every t, which is the expression above.

We now can write our assumption as:

S¯¯/S¯I¯/I. B.3

With this we can derive the approximate closed system of equations on the variables S, E, I, R. Observe that if we integrate the Eqs. (1)–(4) over x and use that λ=βI¯, we obtain

dSdt=-βI¯S¯ B.4
dEdt=βI¯S¯-δE B.5
dIdt=δE-γI B.6
dRdt=γI. B.7

Then, using that I¯S¯IS¯¯ (Eq. B.3), and that with gamma distributed traits we have S¯¯=(1+ν2)S(t)1+2ν2 (Eq. 21), we get the approximate closed system we seek:

dSdt-(1+ν2)βIS1+2ν2, B.8
dEdt(1+ν2)βIS1+2ν2-δE, B.9
dIdt=δE-γI, B.10
dRdt=γI. B.11

Figure 4 illustrates epidemic curves generated with system (Eqs. 14) with an explicit gamma distribution (mean 1 and coefficient of variation ν=1) for susceptibility (solid green) and connectivity (solid blue). Technically the distribution was discretized in n bins and a system of 4n ODEs was run to generate the curves. Dashed curves were added to the plots to enable comparisons with the corresponding results generated by the reduced systems (Eqs. 2225 and B.8B.11, respectively). The bottom panel shown the associated effective reproduction numbers Inline graphic in the case of the reduced systems, and the empirical proxy Inline graphic when explicit distributions are implemented (recall that the two coincide when variation is in susceptibility). All runs were conducted with basic reproduction number Inline graphic, incubation period (1/δ=4 days), infectious period (1/γ=3 days) and coefficient of individual variation (ν=1). Notice that the reduction is exact in the variable susceptibility case but not with variable connectivity. In a related study we fitted both explicit and reduced models to real epidemics and obtained similar parameter estimates and conclusions irrespective of which version was adopted.

Fig. 4.

Fig. 4

Epidemics with gamma distributed susceptibility or connectivity. Solid curves were generated by running a discretized version of the infinite system (Eqs. 14) with explicit gamma distributed susceptibility (green) or connectivity (blue). Dashes curves are the corresponding outputs of the reduced systems (Eqs. 2225) and (Eqs. B.8B.11). Prevalences of infection (E+I) over time are depicted on the top panel and effective reproduction numbers on the bottom. Parameters: Inline graphic; δ=1/4 per day; γ=1/3 per day; and ν=1 (colour figure online)

Footnotes

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Contributor Information

Antonio Montalbán, Email: antonio@math.berkeley.edu, https://www.math.berkeley.edu/~antonio.

Rodrigo M. Corder, Email: rodrigo.corder@berkeley.edu

M. Gabriela M. Gomes, Email: Gabriela.Gomes@strath.ac.uk, https://www.strath.ac.uk/staff/gomesgabrieladr

References

  1. Aguas R, Gonçalves G, Ferreira MU, Gomes MGM (2021) Herd immunity thresholds for SARS-CoV-2 estimated from unfolding epidemics. medRxiv10.1101/2020.07.23.20160762v4
  2. Anderson RM, May RM. Infectious Diseases of Humans: Dynamics and Control. New York: Oxford University Press Inc.; 1991. [Google Scholar]
  3. Anderson RM, Medley GF, May RM, Johnson AM. A preliminary study of the transmission dynamics of the human immunodeficiency virus (HIV), the causative agent of AIDS. IMA J Math Appl Med Biol. 1986;3:229–263. doi: 10.1093/imammb/3.4.229. [DOI] [PubMed] [Google Scholar]
  4. Ball F. Deterministic and stochastic epidemic models with several kinds of susceptibles. Adv Appl Probab. 1985;17:1–22. doi: 10.2307/1427049. [DOI] [Google Scholar]
  5. Bellan SE, Dushoff J, Galvani AP, Meyers LA. Reassessment of HIV-1 Acute Phase Infectivity: Accounting for Heterogeneity and Study Design with Simulated Cohorts. PLoS Med. 2015;12:e1001801. doi: 10.1371/journal.pmed.1001801. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Britton T, Ball F, Trapman PA. A mathematical model reveals the influence of population heterogeneity on herd immunity to SARS-CoV-2. Science. 2020;369:846–849. doi: 10.1126/science.abc6810. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Corder RM, Ferreira MU, Gomes MGM. Modelling the epidemiology of residual Plasmodium vivax malaria in a heterogeneous host population: a case study in the Amazon Basin. PLoS Comput Biol. 2020;16:e1007377. doi: 10.1371/journal.pcbi.1007377. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Di Lauro F, Berthouze L, Dorey MD, Miller JC, Kiss IZ. The Impact of Contact Structure and Mixing on Control Measures and Disease-Induced Herd Immunity in Epidemic Models: A Mean-Field Model Perspective. Bull Math Biol. 2021;83:1–25. doi: 10.1007/s11538-021-00947-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Diekmann O, Heesterbeek JAP, Britton T. Mathematical tools for Understanding Infectious Disease Dinamics. Princeton, New Jersey: Princeton University Press; 2013. [Google Scholar]
  10. Elbasha EH, Gumel AB. Vaccination and herd immunity thresholds in heterogeneous populations. J Math Biol. 2021;83:239. doi: 10.1007/s00285-021-01686-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Ferrari MJ, Bansal S, Meyers LA, Bjornstad ON. Network frailty and the geometry of herd immunity. Proc R Soc B. 2006;273:2743–2748. doi: 10.1098/rspb.2006.3636. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Finkenstadt BF, Grenfell BT. Time series modelling of childhood diseases: a dynamical systems approach. Appl Statist. 2000;49:187–205. [Google Scholar]
  13. Fine P, Eames K, Heymann DL. “Herd immunity”: a rough guide. Clin Infect Dis. 2011;52:911–916. doi: 10.1093/cid/cir007. [DOI] [PubMed] [Google Scholar]
  14. Gart JJ. The mathematical analysis of an epidemic with two kinds of susceptibles. Biometrics. 1968;24:557–566. doi: 10.2307/2528318. [DOI] [PubMed] [Google Scholar]
  15. Gart JJ. The statistical analysis of chain-binomial epidemic models with several kinds of susceptibles. Biometrics. 1971;28:921–930. doi: 10.2307/2528629. [DOI] [PubMed] [Google Scholar]
  16. Gomes MGM, Ferreira MU, Corder RM, King JG, Souto-Maior C, Penha-Gonçalves C, Gonçalves G, Chikina M, Pegden W, Aguas R. Individual variation in susceptibility or exposure to SARS-CoV-2 lowers the herd immunity threshold. J Theor Biol. 2022;540:111063. doi: 10.1016/j.jtbi.2022.111063. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Gomes MGM, Gjini E, Lopes JS, Souto-Maior C, Rebelo C. A theoretical framework to identify invariant thresholds in infectious disease epidemiology. J Theor Biol. 2016;395:97–102. doi: 10.1016/j.jtbi.2016.01.029. [DOI] [PubMed] [Google Scholar]
  18. Gomes MGM, White LJ, Medley GF. Infection, reinfection, and vaccination under suboptimal immune protection: Epidemiological perspectives. J Theor Biol. 2004;228:539–549. doi: 10.1016/j.jtbi.2004.02.015. [DOI] [PubMed] [Google Scholar]
  19. Gonçalves G. Herd immunity: recent uses in vaccine assessment. Expert Rev Vaccines. 2008;7:1493–1506. doi: 10.1586/14760584.7.10.1493. [DOI] [PubMed] [Google Scholar]
  20. Heesterbeek H, et al. Modeling infectious disease dynamics in the complex landscape of global health. Science. 2015;347:aaa4339. doi: 10.1126/science.aaa4339. [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Kawagoe K, Rychnovsky M, Chang S, Huber G, Li LM, Miller J, Pnini R, Veytsman B, Yllanes D. Epidemic dynamics in inhomogeneous populations and the role of superspreaders. Phys Rev Res. 2021;3:033283. doi: 10.1103/PhysRevResearch.3.033283. [DOI] [Google Scholar]
  22. Kermack WO, McKendrick AG. A contribution to the mathematical theory of epidemics. Proc R Soc Lond A. 1927;115:700–721. doi: 10.1098/rspa.1927.0118. [DOI] [Google Scholar]
  23. McKendrick AG. The dynamics of crowd infection. Edinb Med J. 1939;47:117–136. [PMC free article] [PubMed] [Google Scholar]
  24. Miller JC, Slim AC, Volz EM. Edge-based compartmental modelling for infectious disease spread. J R Soc Interface. 2012;9:890–906. doi: 10.1098/rsif.2011.0403. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Neipel J, Bauermann J, Bo S, Harmon T, Jülicher F. Power-Law population heterogeneity governs epidemic waves. PLoS ONE. 2020;15:e0239678. doi: 10.1371/journal.pone.0239678. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Novozhilov AS. On the spread of epidemics in a closed heterogeneous population. Math Biosci. 2008;215:177–185. doi: 10.1016/j.mbs.2008.07.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Pastor-Satorras R, Vespignani A. Epidemic dynamics and endemic states in complex networks. Phys Rev E. 2001;63:066117. doi: 10.1103/PhysRevE.63.066117. [DOI] [PubMed] [Google Scholar]
  28. Rose C, Medford AJ, Goldsmith CF, Vegge T, Weitz JS, Peterson AA. Heterogeneity in susceptibility dictates the order of epidemic models. J Theor Biol. 2021;528:110839. doi: 10.1016/j.jtbi.2021.110839. [DOI] [PubMed] [Google Scholar]
  29. Ross R. An application of the theory of probabilities to the study of a priori pathometry, Part I. Philos Trans R Soc Lond A. 1916;92:204–230. [Google Scholar]
  30. Ross R, Hudson HH. An application of the theory of probabilities to the study of a priori pathometry, Part II. Philos Trans R Soc Lond A. 1917;93:212–225. [Google Scholar]
  31. Smith DL, Dushoff J, Snow RW, Hay SI. The entomological inoculation rate and its relation to the prevalence of Plasmodium falciparum infection in African children. Nature. 2005;438:492–495. doi: 10.1038/nature04024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Tkachenko AV, Maslov S, Elbanna A, Wong GN, Weiner ZJ, Goldenfeld N. Time-dependent heterogeneity leads to transient suppression of the COVID-19 epidemic, not herd immunity. Proc Natl Acad Sci USA. 2021;118:e2015972118. doi: 10.1073/pnas.2015972118. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Woolhouse MEJ, Dye C, Etard J-F, Smith T, Charlwood JD, Garnett GP, Hagan P, Hii JLK, Ndhlovu PD, Quinnell RJ, Watts CH, Chandiwana SK, Anderson RM. Heterogeneities in the transmission of infectious agents: Implications for the design of control programs. Proc Natl Acad Sci USA. 1997;94:338–342. doi: 10.1073/pnas.94.1.338. [DOI] [PMC free article] [PubMed] [Google Scholar]

Articles from Journal of Mathematical Biology are provided here courtesy of Nature Publishing Group

RESOURCES