1 Introduction

Despite the availability of highly effective and inexpensive vaccines, many infectious diseases persist throughout the world. As an example, influenza and pneumonia consistently rank among the top ten causes of death in the U.S. (CDC 2017a) yet coverage rates for these and other vaccines are relatively low. In the US only 40–50% of individuals choose to be vaccinated for influenza each year and slightly more than 20% of adults are vaccinated for pneumonia (CDC 2017b). Measles, Mumps, and Rubella (MMR) vaccination rates are much higher, partly because of mandated vaccination for school age children in many areas. Yet still, between 5 and 10% of parents forgo recommended MMR vaccines for their young children and many seek exemptions to mandatory vaccination requirements (CDC 2017c).

Economic incentives help to explain part of the low vaccination coverage: Given the rarity with which many of these infectious diseases cause death or extreme illness in otherwise healthy people, many judge the risks of forgoing a vaccination to be low and do not bother to be vaccinated even though the vaccines have a minimal monetary cost (Geoffard and Philipson 1997). In many cases it is likely a time cost that proves more prohibitive than the monetary cost which is one reason why many larger firms offer influenza vaccines to be distributed at work facilities. In addition to the cost effects of vaccines, there is a growing anti-vaccine movement which has been perpetuated by many well-known public figures (Olpinski 2012). Despite the lack of scientific evidence to support the claims, or in many cases scientific evidence in opposition to the claims, the anti-vaccine movement remains strong especially in some locales. This vaccine opposition often has a localized distribution that plays out in vaccine denial being especially high in particular localized areas. As a result, researchers have found a great deal of spatial heterogeneity in rates of vaccination coverage (Carrel and Bitterman 2015; May and Silverman 2003; Lieu et al. 2015).

The anti-vaccine movement and spatial heterogeneity in vaccine coverage has sparked a wide spread discussion in academics and the general press.Footnote 1 Most of these discussions focus on decreases in overall vaccination rates and the accompanying increase in risk of infection (Feikin et al. 2000; Atwell et al. 2013). Other researchers examine the demographic correlates of vaccine choice and try to identify factors that lead to anti-vaccine sentiment, vaccine refusal, and simply lower levels of vaccination among some groups. Factors investigated include: distrust of vaccine safety; poverty and lack of easy access to healthcare; misunderstanding of both the benefits of vaccines and the potential risks of avoiding vaccination; and demographic factors (McNutt et al. 2016; Birnbaum et al. 2013; Sugarman et al. 2010; Gust et al. 2004). Outside of research in public health, medicine, and public policy, there is a growing interest in economics on the welfare implications and externalities inherent in vaccinations and epidemic processes (Gersovitz 2013; Philipson 2000; Chen and Toxvaerd 2014). Most recently, economists have begun to more thoroughly consider the effect of group structure and vaccine choice (Galeotti and Rogers 2013 and 2015). Our research continues to expand this area of interest.

Despite the above discussed interest in spatial vaccine coverage and distribution, there exists a lack of research explicitly exploring this area (apart from interest in a decrease in the overall vaccination rate). In this paper we take observed spatial heterogeneity as given and examine how the spatial heterogeneity itself, holding overall vaccination levels constant, can generate unique features of an epidemic process. These features depend strongly upon the interaction structure within the population. The combination of these two factors is a unique area that has not been explored in the literature to date. We develop an agent-based computational model of an epidemic process that occurs across regions. In the model we create spatial disparities in vaccination rates. The population in our model exists in a discrete set of non-overlapping regions with varying levels of vaccination coverage across the regions. In order to isolate the effect of only spatial heterogeneity we change the variance in the vaccination rates across regions while holding the population level vaccination rate constant. This isolation of the variance apart from changes in overall vaccination levels allows us to more fully explore and understand the implications for spatial differences in vaccine coverage. This is a unique feature of our research which allows us to isolate and examine potential externalities that occur across regions with differing levels of vaccine coverage and with different rates of interaction between the regions.

The most direct result of our model shows that spatial heterogeneity by itself can increase epidemic size (on average) when the population has a sufficiently high rate of vaccine coverage. We find this effect to be most pronounced when agents have more inter-regional connections. These results are consistent with expectations. However, we also find that this spatial heterogeneity can decrease epidemic size in special cases where vaccination levels are sufficiently low and there are sufficiently few (but some) connections between regions. We then use our model to to identify inter-regional externalities created by differing vaccination rates as we change the contact structure of the model. When we increase connections between high and low vaccine neighborhoods, as one would expect, we find that unvaccinated individuals in the high vaccine neighborhoods have increased risk of infection (a negative externality), while those in low vaccine neighborhoods have decreased risk of infection (a positive externality). The magnitude of these externalities, relative to each other, determines whether increasing connections between high and low vaccine areas will ultimately increase or decrease the average epidemic size. Holding overall vaccination levels, neighborhood heterogeneity in vaccine coverage, and the percentage of inter-regional contacts constant we find that magnitude of the externalities relative to each other, depends upon the overall level of vaccinations in the population and, specifically, how close the population is to reaching herd immunity. When the overall vaccination rate is sufficiently high, near or above levels that produce herd immunity, allowing more interconnections between the high and low regions can lower epidemic size. Conversely, when vaccine levels are sufficiently below the level needed for herd immunity, allowing more interconnections between high and low level regions significantly increases epidemic size.

All of the results stated above depend on the non-linearity of the relationship between vaccine coverage and epidemic size. But, this relationship depends intricately on both the heterogeneity in vaccine coverage across regions and the interaction structure in the population. The interaction structure in particular creates non-trivial difficulties in analytically isolating the effects that we find. We use an agent-based model to better understand the complex relationships between interaction structure, heterogeneous vaccine coverage, and epidemic size.

In economics, agent based models are most frequently used to incorporate into theoretical models elements of agent heterogeneity, agent adoption or learning, or situations of complex agent interactions. Frequently these models examine the underlying dynamics of the model and often emphasize out of equilibrium dynamics (either as a model result or on the path to an equilibrium). Other uses of agent based models include comparative statics. Agent based models allow one to fluidly change parameter settings and to parsimoniously examine how those changes in parameters result in changes in model outcomes through theoretical “computational experiments” (Miller and Page 2007). The current paper is an example of this feature of agent based modeling.

Because epidemic processes frequently depend on interaction structures that are not tractable analytically, agent-based computational models similar to the one implemented in this paper are used to understand epidemic process (Epstein 2009; Eubank et al. 2004). These models are used in a variety of ways. In some instances, computational models are used to make real-time predictions as an epidemic progresses (Tizzoni et al. 2012). Most, however, attempt to better understand the dynamic processes involved in an epidemic spreading on a complex network and on how behavioral or interaction based changes can modify these processes.Footnote 2

For the purposes of our paper, agent-based computational models are ideal. This modeling paradigm allows us to easily change assumptions about regional vaccination coverage and inter-regional interactions in a precise and controlled manner and to examine the comparative statics properties of changes in vaccine coverage heterogeneity and interaction structure. In doing so we can isolate the effect of these variables and gain a greater understanding of their effect.

The most unique contribution of our paper is the explicit study of vaccine coverage heterogeneity apart from changes in overall vaccination coverage. As described above, researchers have observed variance of regional vaccination rates. The results presented in this paper demonstrate that this phenomenon by itself, apart from changes in overall vaccination rates, has significant importance for understanding the economics of disease transmission.

To better understand the degree of variation in vaccination rates, next we provide an example of geographic vaccination coverage data. This will make clear how wide ranging vaccination coverage rates are across regions of the U.S. Following this example we describe our formal model that will be used to examine the effect of this heterogeneity. In Sect. 4, we describe the set of computational experiments used to isolate and understand the effects of vaccination coverage heterogeneity. We describe our results in Sect. 5. Particularly we show the changes in epidemic size that result from changes in the spatial distribution of vaccine coverage and how this interacts with changes in the number of inter-regional connections in the contact structure of the model. We also show the magnitude of positive and negative externalities between high and low vaccination regions. The magnitude of these externalities, relative to each other, depend crucially on how close the population is to reaching herd immunity and on the interaction structure of the population.

2 Influenza Medicare Claims Data

To give the reader a sense for the magnitude of vaccine coverage differences across geography, consider influenza vaccination rates among Medicare fee-for-service beneficiaries during the 2016–2017 influenza season. This data is publicly available at the state, county, and zip code level, on the U.S. Health and Human Services website for every “flu season” since 2012–2013. Of course, this data does not cover the entire U.S. population, but, it does provide a detailed look at the degree of heterogeneity in influenza coverage for this sample of the population. In addition, the overall vaccination level of this population during the 2016–2017 influenza season is 48.2%. This rate is similar to the CDC estimate for the overall U.S. population, 46.8%.Footnote 3

In this data the state level vaccination coverage ranges from 34.98% (Alaska) to 56.88% (Delaware). The median states, Utah and South Carolina, have vaccination coverage slightly below 49%. Looking at a finer level of granularity, consider the 4 most populated states in the U.S.: California, Texas, Florida, and New York. The mean, minimum, maximum, and standard deviation at the county level are given for each of these states in Table 1. As one can see in the table, there are large differences across counties within these states. The difference between the minimum and maximum coverage county is about 21% in NY, 36% in CA, 38% in FL, and 52% in TX. The differences in these states are typical for most states in the country.Footnote 4

Table 1 Influenza vaccine claims at county level

Moving to an even finer level of geographic area yields a similar outcome in terms of coverage heterogeneity. In Table 2, we report the coverage statistics at the zip code level for the counties containing five of the major cities in the U.S. As can be seen in the table, again, there is a great deal of heterogeneity within these counties at zip code level and also across these particular counties, (the Miami, Dade County area having much lower coverage than the Seattle, King County area).

Table 2 Influenza vaccine claims at zip code level

What these two tables demonstrate is that there is large variability in vaccine coverage at county and local (zip code) levels. These are geographic levels that are likely to have a good number of cross-regional interactions such that an epidemic can spread across them. Most specifically the differences between high and low areas can be on the order of about 40% at the local, zip code level. In this paper we develop a model that can be used to investigate the effect of this heterogeneity. We purposely keep the model as simple as possible so that we can isolate the effect of spatial heterogeneity and also to be able to pinpoint the externalities that result between high and low vaccine regions.

3 The Model

Our model consists of the spread of an infectious disease across a population divided into a set of non-overlapping regions. Each agent interacts with a subset of agents from her own region; we call these local contacts. The agents also interact with a smaller number of agents from other regions; we call these global interactions. Each interaction creates the possibility of disease transmission if one of the agents is infectious and the other is susceptible to the disease.

3.1 Agents and the Hubs of Social Interaction

There is a fixed population of agents, \(Z\equiv \{1,...,z\}\). These agents are distributed in a physical space. There exists a fixed number, H, of hubs of activity (social interaction) that the agents belong to. We refer to these hubs as regions interchangeably throughout the paper. In our model “hubs” are locations where person to person interactions take place. We assume these hubs are geographically based such that a hub may be thought of as a neighborhood or school district. We will assume that the hubs are of only one type and that every agent in the population belongs to one and only one hub. Let h(i) denote the hub for agent i. The group of agents belonging to a particular hub is denoted \(\Gamma _{k}\equiv \left\{ \text {all }i\in Z|h(i)=k\right\} \), where \(k\in \{1,...,H\}\). Since every agent is assigned only one hub, \( \bigcup \nolimits _{k=1}^{H}\Gamma _{k}=Z\) and \(\sum _{k=1}^{H}\left| \Gamma _{k}\right| =z\).

In our computational experiments, we assign agents to hubs by creating a fixed number of equal-sized regions, where each region is served by a single hub—i.e., all agents in a given region belong to the same hub.

Even though each agent (i) belongs to an activity hub, h(i), and shares that hub with all others in \(\Gamma _{h(i)}\), that does not mean that i actually interacts with everyone in \(\Gamma _{h(i)}\)— e.g., one does not necessarily interact with everyone in one’s own school district; regular interactions are often limited to only those within one’s own school or perhaps classroom. We assume that each agent has a set of agent-specific contacts that are comprised of only a small subset of individuals from \( \Gamma _{h(i)}\). In addition, some contacts for a given agent may also contain agents from outside an agent’s hub. The structure of contacts is described in detail next.

3.2 Agent Contacts

Note that the disease we model spreads strictly through interpersonal interactions among the individuals. As such, it is the global pattern of contacts along with vaccination patterns that determine the eventual paths for the disease to spread. Each agent i has a set of contacts, C(i), which is the group of individuals who interact, in close physical proximity, with agent i such that transmission of the disease can occur. These contacts are, on average, of a size \({\overline{c}}\). In our computational model, the contacts are created via random matching in a sequential manner until the average number of contacts per agent in the population reaches \( {\overline{c}}\). In our model a large proportion of one’s contacts come from \( \Gamma _{h(i)}\), the agent’s own hub—think of neighbors, co-workers, or classmates one interacts with on a regular basis. A smaller percentage of the contacts include agents outside of the hub (e.g., people he regularly rides with on the bus to the workplace or school). This mix of local and global contacts is similar in spirit, though different in detail, to the canonical models of Watts and Strogatz (1998). As such, we assume that a \( p^{C}\) share of agent i’s contacts come from \(\Gamma _{h(i)}-\{i\}\), while the remaining share \((1-p^{C})\) of i’s contacts come from \(Z-\Gamma _{h(i)} \). The contacts for an agent, once created, stay fixed over time for all agents. We shall call \(p^{C}\) the “local specificity” of contacts. The higher the value of \(p^{C}\), the more local, or hub based, are the individual agents’ contacts. As the value of \(p^{C}\) decreases, the contacts of the agents in different regions are increasingly inter-connected and the individual contacts of agents become more global in nature. It should be noted that our contact network model is a version of the well-known stochastic block model—see Abbe (2018) for a recent and comprehensive survey of stochastic block models.

Fig. 1
figure 1

Visualization of contact links for a population of 1000 agents in 10 regions

In Fig. 1, we visualize the contacts within our model of a sample population of 1000 agents who are distributed among 10 exclusive regions (hubs)—100 agents per region—when \(p^{C}\) takes on the values from \( \{1,0.995,0.99,0.98,0.97,0.95\}\). When \(p^{C}=1\), the regions are entirely self-contained—the agents interact with only a subset of those who are in the same region: An outbreak occurring in one region cannot spread to another region. As \(p^{C}\) is lowered, inter-regional interactions replace intra-regional interactions at an increasing rate: The likelihood of a disease spreading to other regions starts to go up. As \(p^{C}\) decreases one expects the possibility of global epidemics to emerge because of increasing inter-regional connections.

3.3 Spatial Infection Dynamics

We model a standard Susceptible Exposed Infectious Recovered (SEIR) epidemic process of which seasonal influenza is an example. When a susceptible agent contacts an infectious agent, the susceptible agent can transition to the exposed state with a given probability (specified below). Once in the exposed state the agent then transitions to the infectious state and then to the recovered state in a fixed number of periods. Once recovered the agent is immune to future infection for the current season. We assume that some agents are effectively vaccinated at the beginning of a season. Once vaccinated the agent immediately moves to the recovered (immune) state. The details of this process are discussed below.

The disease spreads in this population in seasonal epidemics, each season being indexed by s. A season begins with a new strain of virus that is exogenously introduced into the population. Within each season, the agents interact with one another each period through their contacts, where a period is equivalent to a day. We assume that all agents are exogenously assigned a vaccination status from \(\{{vaccinated, unvaccinated}\}\) at the start of each season, \(t=0\). Specifically, each region has a fixed rate of vaccination, \(\pi _{k}^{V}\), such that \(\pi _{k}^{V}*\left| \Gamma _{k}\right| \) agents in that region are vaccinated in the given season on average. For the experiments performed in this paper, we hold \(\pi _{k}^{V}\) fixed for all seasons, within a given experiment. How \(\pi _{k}^{V} \) is specified across regions is central to our investigation.

(A.1):

Each agent in region k is vaccinated with a fixed probability of \(\pi _{k}^{V}\). \(\pi _{k}^{V}\) is specific to each region and can be heterogeneous across regions.

Given their vaccination status, the agents engage in daily interactions with their contacts from \(t=1\) to the end of the season. The interactions are such that each agent i is in direct contact with all \(j\in C(i)\) each period.

As mentioned above, the timeline of infection in each season follows the basic SEIR model given the vaccination status of all agents at the beginning of the season. More specifically, in each time period of a given season, the state of an agent is captured by his vaccination status, \( v_{i}^{t}(s)\), and his infection status, \(f_{i}^{t}(s)\). The vaccination status of an agent can be either vaccinated (V) or unvaccinated (NV). The infection status can take one of the following four states: (1) susceptible (S); (2) exposed (E)— infected but not yet infectious; (3) infected and infectious (I); (4) recovered and immune (R). An agent can be in the exposed state for \(\tau ^{E}\) periods before becoming infectious. Once an agent becomes infectious, he remains in that state for \(\tau ^{I}\) periods before recovering and becoming immune to the current epidemic. Both \(\tau ^{E}\) and \(\tau ^{I}\) are common for all agents and remain constant over time and across all seasons.

There are five mutually exclusive states that an agent can be in at any time t of a given season s:

$$\begin{aligned} (v_{i}^{t}(s),f_{i}^{t}(s))=\left\{ \begin{array}{ll} (V,R) &{} : \hbox {Vaccinated and immune}; \\ (NV,S) &{} : \hbox {Unvaccinated and susceptible}; \\ (NV,E) &{} : \hbox {Unvaccinated and exposed}; \\ (NV,I) &{} : \hbox {Unvaccinated and infectious}; \\ (NV,R) &{} : \hbox {Unvaccinated and recovered}; \end{array} \right. \end{aligned}$$
(1)

Note that the infection state of a vaccinated agent is denoted R, which is the same as the agent who is recovered from an infection. We are assuming that vaccination is fully effective so that a vaccinated individual is immune to the virus for the entire season.

The state of an agent changes from one period to the next based on his interactions with the agent’s contacts. As stated earlier, an agent i comes into close contact with all agents in C(i) each period. If the agent is susceptible, he can get infected through his contact with an infectious agent. However, transmission of the virus is probabilistic so that a susceptible agent, when he comes into contact with an infectious agent, gets infected with a probability \(\beta \), which is fixed and identical for all agents.

(A.2):

A susceptible agent has a fixed probability \(\beta \) of transitioning to the exposed state when he interacts with an infectious agent.

When there are n infectious agents in C(i), the likelihood of a susceptible agent i getting infected through interaction with them is:

$$\begin{aligned} q(n)=1-(1-\beta )^{n}. \end{aligned}$$
(2)

Note that \(q^{\prime }(n)>0\). Hence, the larger the number of infectious individuals among one’s contacts, the higher is the probability that a susceptible individual will be infected.

The epidemic unfolds as each agent in the population updates her infection state over time. We assume that the interactions with the close contacts occur simultaneously for all agents and the infection states are updated simultaneously at the end of each period for all agents. Given that at any time t the state of an agent can be in any one of the five states as described in (1), the transition dynamic for each individual from period t to \(t+1\) can now be described. Denote by \(n_{i}^{t}(s)\) the number of ‘infectious’ agents among i’s contacts, C(i), in period t of a given season, s. If a susceptible agent gets infected through his contact with \(n_{i}^{t}(s)\) infectious agents in t, which happens with a probability of \(q(n_{i}^{t}(s))\) as specified in (2), he becomes exposed (E) in \(t+1\). Denote by \({\widehat{t}}_{i}(s)\) the first period his infection state became E. The state transition from t to \(t+1\) takes the following form:

  • For all i with \((v_{i}^{t}(s),f_{i}^{t}(s))=(V,R)\),

    $$\begin{aligned} (v_{i}^{t+1}(s),f_{i}^{t+1}(s))=(V,R)\forall t\text { in season }s. \end{aligned}$$
    (3)

    Those agents who were vaccinated in \(t=0\) become immune to the virus and remain protected for the entire season.

  • For all i with \((v_{i}^{t}(s),f_{i}^{t}(s))=(NV,S)\),

    $$\begin{aligned} (v_{i}^{t+1}(s),f_{i}^{t+1}(s))=\left\{ \begin{array}{cl} (NV,E) &{} \hbox {with probability} \, q(n_{i}^{t}(s)) \\ (NV,S) &{} \hbox {with probability} \, 1-q(n_{i}^{t}(s)) \end{array} \right. \end{aligned}$$
    (4)

    An unvaccinated agent who is susceptible gets infected and enters the exposed state with a probability, \(q(n_{i}^{t}(s))\), where \(n_{i}^{t}(s)\) is the number of agents in C(i) who are infectious in t. With probability \(1-q(n_{i}^{t}(s))\), the agent avoids infection and stays susceptible.

  • For all i with \((v_{i}^{t}(s),f_{i}^{t}(s))=(NV,E)\),

    $$\begin{aligned} (v_{i}^{t+1}(s),f_{i}^{t+1}(s))=\left\{ \begin{array}{cl} (NV,E) &{} \hbox {if} \, t\le {\widehat{t}}_{i}(s)+\tau ^{E}; \\ (NV,I) &{} \hbox {if} \, t>{\widehat{t}}_{i}(s)+\tau ^{E}. \end{array} \right. \end{aligned}$$
    (5)

    An agent who is infected but not yet infectious (E) remains in that state for \(\tau ^{E}\) periods after the date of infection, \({\widehat{t}}_{i}(s)\). Once past the \(\tau ^{E}\) periods, he becomes infectious (I) himself.

  • For all i with \((v_{i}^{t}(s),f_{i}^{t}(s))=(NV,I)\),

    $$\begin{aligned} (v_{i}^{t+1}(s),f_{i}^{t+1}(s))=\left\{ \begin{array}{cl} (NV,I) &{} \hbox {if} \, {\widehat{t}}_{i}(s)+\tau ^{E}<t\le {\widehat{t}}_{i}(s)+\tau ^{E}+\tau ^{I} \\ (NV,R) &{} \hbox {if} \, t>{\widehat{t}}_{i}(s)+\tau ^{E}+\tau ^{I} \end{array} \right. \end{aligned}$$
    (6)

    An agent who was infected at \({\widehat{t}}_{i}(s)\) gets infectious starting \( {\widehat{t}}_{i}(s)+\tau ^{E}+1\). The state of I lasts for \(\tau ^{I}\) periods—i.e., from \({\widehat{t}}_{i}(s)+\tau ^{E}+1\) to \({\widehat{t}}_{i}(s)+\tau ^{E}+\tau ^{I}\)—at the end of which the infected agent recovers and becomes immune to the virus for the remainder of the season.

  • For all i with \((v_{i}^{t}(s),f_{i}^{t}(s))=(NV,R)\),

    $$\begin{aligned} (v_{i}^{t+1}(s),f_{i}^{t+1}(s))=(NV,R). \end{aligned}$$
    (7)

    A recovered agent remains in that state for the remainder of the season.

The state transition dynamic is summarized in Table 3. Note that both (VR) and (NVR) are absorbing states, since neither a vaccinated agent nor an infected agent who recovers is ever infected again during that season.

Table 3 State transition rule

To complete the description of the dynamic, we need to specify the condition under which the epidemic can start and the condition under which it terminates. First, to initiate the contagion dynamic, we seed the population with a small number of infected agents at the beginning of each season. This is done by randomly selecting a fixed number, m, of non-vaccinated/susceptible agents and artificially infecting them at the start of each season. These seed agents then have their state set to (NVE) at \(t=1\). Note that we are careful to set this number to a very low level so that the epidemic dynamics are driven by the interactions of agents in the model. This is meant to mimic the manner in which new influenza epidemics in the U.S. enter from outside at infrequent rates and then run an epidemic course during the given season based on the prevailing vaccination states of the agents and the mutual interactions among them.

Finally, the seasonal epidemic ends when there is no infected agent in the population—i.e., no one is in the state of (NVE) or (NVI). This is an absorbing state for the population, since, once it reaches this state, there is no one who can pass on the virus to others either in the current period or in the future periods: The particular epidemic has come to an end until the next season starts with a new strain of virus.

4 Design of Computational Experiments

4.1 Overview

We simulate a sequence of repeated ‘epidemic seasons,’ with the total number of seasons being \({\widetilde{s}}\). For each season, we start with the vaccination status exogenously assigned in \(t=0\) for all agents in the population for the current strain of virus. This gives us \(v_{i}^{1}(s)\) for all \(i\in Z\) in the given season s. All those agents who are vaccinated, \( v_{i}^{1}(s)=V\), gain immunity to the current virus such that \( f_{i}^{1}(s)=R\).Footnote 5 Those agents who are unvaccinated, \(v_{i}^{1}(s)=NV\), become susceptible such that \(f_{i}^{1}(s)=S\). We randomly pick a fixed number of these unvaccinated agents as seed agents and artificially infect them with the virus—i.e., for each seed agent, k, we specify \( (v_{k}^{1}(s),f_{k}^{1}(s))=(NV,E)\), setting \({\widehat{t}}_{k}(s)=1\) (the date of infection for the seed agent k).

Given \((v_{i}^{1}(s),f_{i}^{1}(s))\) for all \(i\in Z\), we follow the previously specified state transition dynamic from \(t=1\) and on, keeping track of \((v_{i}^{t}(s),f_{i}^{t}(s))\) for all agents each period. The epidemic continues as long as there are individuals who are infected—i.e., those unvaccinated agents who are either exposed or infectious. The epidemic ends when no one in the population is in the state of exposed (E) or infectious (I) such that the population contains only susceptible (S) and/or immune (R) individuals—\(f_{i}^{t}(s)\in \{S,R\}\) for all \(i\in Z\). Denote by \({\widehat{T}}(s)\) the earliest period that no infected individual is observed. Once the population reaches \({\widehat{T}}(s)\), there is no possibility of further contagion; the epidemic season has officially come to a close. A new season, \(s+1\), starts with a new strain of virus, where the population goes through the same sequence of events until it reaches \( {\widehat{T}}(s+1)\).

For each season, the epidemic is the chain of infections by the individuals in the population. The “size” of an epidemic is indicated by the total number of people who were infected over the course of the epidemic. The simulation outputs on the epidemic sizes are collected for all \(s\in \{1,..., {\widetilde{s}}\}\). It is the distribution of these outputs over the entire \({\widetilde{s}}\) seasons that we analyze in this paper.

4.2 Parameter Specification

The relevant parameters and their values used in our baseline computational experiments are listed in Table 4. Our computational experiments assume a population of 10,000 agents, distributed over 100 activity hubs of equal size so that each hub has exactly 100 agents.

Table 4 Parameter specification

The contacts of each agent consist of 20 other agents on average, where the contacts are chosen through the sequential process described. The matching process terminates when the average contacts across all agents in the population reaches 20.Footnote 6 The contacts are constructed in a structured way such that each agent has \(p^{C}\) fraction of his contacts composed of individuals from his own activity hub and \((1-p^{C})\) fraction from outside the hub. We carry out a comparative dynamics analysis with respect to the fraction of cross-regional connections by considering multiple values for \(p^{C}\) as specified in Table 4, ranging from 1.0 to 0.8.

For the infection dynamic, an infected person remains in an exposed (latent) state for two periods (days) before becoming infectious – \(\tau ^{E}=2\). Once an agent becomes infectious, he remains in that state for seven periods (days) before recovering—\(\tau ^{I}=7\). A susceptible person has 0.02 (\( \beta \)) probability of becoming infected when he comes into contact with an infectious individual.Footnote 7 Finally, we consider 100 independent seasons and assume that each epidemic is initiated by ten randomly chosen seed agents for each parameter setting.

The region-specific vaccination rate, \(\pi _{k}^{V}\), takes on values according to the assumptions made for each set of experiments carried out in this study. The exact assignment of their values will be discussed in detail as we describe these experiments in the sections that follow.

4.3 Vaccination Rates

As mentioned previously, the vaccination status of each agent is determined exogenously in this paper. The main focus of our study is to explore the impact that the spatial pattern of vaccination has on the size of the epidemics, both at the global and local levels, as well as how this relationship is affected by the fraction of cross-regional contacts.

There are three sets of experiments we perform to achieve these objectives:

Experiment 1 (Homogeneous vaccination coverage): The entire population has the same rate of vaccination. Hence, there is no inter-regional heterogeneity in vaccination. We explore how the uniform vaccination rate affects the size of the epidemics. This special case will provide the first benchmark against which the outputs from our main two experiments can be compared.

Experiment 2 (Heterogeneous vaccination coverage with two levels of vaccination coverage): The population regions are divided into two equal-sized groups: one set of regions with a high vaccination rate and another with a low vaccination rate.

Experiment 3 (Heterogeneous vaccination coverage with and without the high to low cross-regional contacts): We explore the effect that the presence of high to low region contacts has on the externalities that arise between regions.

In the following sections, we describe these experiments in detail and report the results obtained. In all experiments, we run the epidemic process for 100 independent seasons and report the distributional characteristics of the observed epidemics over those 100 realizations of the model.

4.4 Herd Immunity

Central to an understanding of these epidemic processes is the concept of “herd immunity.” Herd immunity occurs when a sufficient percentage of the population is vaccinated (or naturally immune) such that the epidemic does not spread because there are not enough susceptible individuals to sustain the epidemic (Anderson and May 1985). Theoretically this occurs when an average person in the population is unable, on average, to infect more than one additional person during the time she spends in the infectious state. If the population has randomly mixed contacts, one can find the level of vaccinations where this occurs as the value \(V^{h}\) such that the product of the number of contacts, transmission rate, the time spent infectious, and the fraction of susceptible individuals in the population is equal to one. In terms of the notation of this paper this is, \({\overline{c}}\beta \tau ^{I}(1-V^{h})=1.\) Thus the level of vaccinations that produces herd immunity is: \(V^{h}=1- \frac{1}{{\overline{c}}\beta \tau ^{I}}\) or greater. For the parameters of this paper, it is about 64% of the population.Footnote 8 Of course our model will deviate somewhat from this value because the contact structure in our model is not randomly mixed, but instead contains an explicit non-random structure due to the hubs and the parameter, \(p^{C}\). However this will give us some understanding of the range of values of \(\pi _{k}^{V}\) which will produce reasonable sized epidemics.

5 Results

5.1 Experiment 1: Perfectly Uniform Vaccination Coverage

As a starting point, we first consider a simple experiment in which the entire population has the uniform rate of vaccination such that \(\pi _{k}^{V}= \pi ^{V}\) for all \(k\in \{1,2,...,H\}\). Hence, there are no regional differences in the proportion of individuals who are vaccinated. A comprehensive set of values are considered for \(\pi ^{V}\) in this experiment, where \(\pi ^{V}\in \{0,0.1,0.2,...,0.9\}\). In \(t=0\) of each season, \((\pi ^{V}*z)\) agents are randomly selected from the population and vaccinated. Of the remaining population of unvaccinated agents, ten are randomly selected as the seed agents and artificially infected in \(t=1\) to start the epidemic process. This first experiment is designed in order to create a baseline expectation for epidemic size as a function of vaccine coverage and to show that the model generates standard epidemic features such as the “reverse S” relationship between vaccine coverage and epidemic size.

Fig. 2
figure 2

Time paths of a typical epidemic when \(p^{C} = 0.95\)

Figure 2 presents three typical epidemics for three different values of \(\pi ^{V}\). The \(\pi ^{V}=0.2\) case, shown in the top panel, demonstrates the canonical shape for an SEIR epidemic. In this case there is a peak period around time 80 after which the epidemic begins to decline before eventually disappearing. Note the following: (1) the peak of the epidemic has far fewer people than are infected overall. About 1000 people are infected in the peak period of the epidemic but over 6700 people are infected over the entire course of the epidemic from beginning to end. (2) The “S” shape of the recovered population and reverse “S” shape of the susceptible population are typical of this type of epidemic process. (3) The 2nd and 3rd panels of the figure display the same general relationships but the epidemics are much smaller. Thus the typical shape is somewhat masked.

Table 5 reports the size of the epidemics averaged over the 100 seasons for all values of \(\pi ^{V}\) for each \(p^{C}\in \{1,0.975,0.95,0.9,0.8\}\). Additionally, we report at the bottom of the table three measures that characterize the contact structure for each case: (1) mean path length (PL ); (2) mean global clustering coefficient (GCC); and (3) mean local clustering coefficient (LCC). The numbers reported for the three measures are the averages over the 100 independent seasons (replications).

Table 5 Epidemics with uniform vaccination coverage

The “mean path length” is the average length of the shortest paths for all possible pairs of agents in the population, where the “length of a path” is defined as the number of edges that the path contains (Jackson 2008). If agents are closer to each other, on average, one should expect an epidemic to be larger because it will more easily spread to others in the population. The contact structure may also be characterized by the global and local clustering coefficients, both of which measure the extent to which one’s contacts are also in direct contact with one another. More specifically, the global clustering coefficient (GCC) is obtained by dividing the number of closed triplets—e.g., i is connected to j, j is connected to k, and k is connected to i in a closed loop—by the total number of open and closed triplets in the contact structure. Alternatively, one can measure the clustering coefficient for each individual agent and then take the grand average over the entire population. Denote by LCC(i) the local clustering coefficient for agent i, where

$$\begin{aligned}&LCC(i) \nonumber \\&\quad =\frac{\text {number of pairs of }i\text {'s contacts, }(j,k)\text {, such that }j\in C(k)\text { and }k\in C(j)}{\text {total number of pairs of }i \text {'s contacts}}\nonumber \\ \end{aligned}$$
(8)

Averaging over the population, we obtain the mean local clustering coefficient: \(LCC=\sum _{\forall i\in Z}LCC(i)\). For both clustering coefficients we would expect that the size of the epidemic is likely to be smaller when there is more clustering in the contact structure, since the infectious disease is more likely to be trapped in isolated clusters. As can be seen from Table 5, the effects of \(p^{C}\) on the three measures of the contact structure are as expected: (1) The mean path length of the global network (consisting of all individual contacts) is shorter when \(p^{C}\) is lower, ranging from 5.06 for \(p^{C}=0.975\) to 3.76 for \(p^{C}=0.8\);Footnote 9 and (2) both measures of the clustering coefficients are smaller when \(p^{C}\) is lower such that the contacts are more global.

The main results as reported in Table 5 may now be summarized: (1) The mean size of the epidemics decreases with \(\pi ^{V}\); and (2) a decline in the local specificity of the contacts (\(p^{C}\))—i.e., an increase in the share of inter-regional contacts—raises the mean size of the epidemics, when the rate of vaccination is low enough to induce epidemics of significant size. These results are intuitive and as expected: A higher rate of vaccination reduces the size of the epidemics, while more global contacts (which result in shorter mean path length and less clustered interaction structure) tend to further increase the size of the epidemic when the rate of vaccination is relatively low – when the rate of vaccination is high, the sizes of the epidemics are too small for the resulting comparisons to have any statistical significance. It should be noted that the epidemics are very small for values of \(\pi ^{V}>0.7\) as expected from herd immunity. It is not until \(\pi ^{V}\) is sufficiently low that the typical epidemic takes off and is governed by the complexities of the contact structure. Furthermore, there are not significant differences in epidemic size, as a function of the contact structure, until vaccination levels drop below 0.7.

Fig. 3
figure 3

Impact of \(\pi ^{V}\) and \(p^{C}\) on the mean epidemic size

For a visual representation, we provide Fig. 3, in which the mean sizes of the epidemics are plotted for all values of \(\pi ^{V}\) and for \(p^{C}\in \{1,0.975,0.95,0.9,0.8\}\). Note that once the vaccination coverage percentage falls below 0.5 the average epidemic can be large. In this figure one also can see that the effect of global contacts is most important for intermediate vaccination rates. If the vaccination rate is sufficiently large (0.7 and above) infections are very close to zero regardless of how large the vaccination rate grows and regardless of how many global interactions take place. At the other extreme, if vaccination rates are very low (0.2 and below), the fraction of global contacts is also relatively unimportant, except for the case where no global interactions are allowed. If even a small number of global interactions are allowed, the epidemic spreads very widely and the average size of the epidemic is determined primarily by the number of vaccinations performed; \(p^{C}\) has a negligible effect for these very low vaccination levels (provided it is less than 1). Finally, for intermediate levels of vaccinations, \(0.2<\pi ^{V}<0.6\), both the number of global interactions and the vaccination rate have a significant effect on average epidemic size. It is this range of values that we concentrate our efforts on for the remainder of the paper.

We observe the following property from Fig. 3:

Property 1::

For intermediate levels of uniform vaccination coverage, the average size of an epidemic increases with the share of the inter-regional contacts.

The obvious implication of this property is the increasing importance of vaccinating the population as the contact structure becomes more inter-regional. If globalization in social and economic activities leads to a general increase in the interactions between people of distant regions, an outbreak in one region is likely to have severe and far-reaching consequences; a significant increase in the vaccination effort will be required to keep the epidemic under control. Again, this is an expected feature of an epidemic process.

One important and general feature of epidemiology is the “reverse S” shape in the relationship between vaccination coverage and epidemic size. Note that in Fig. 3, for sufficiently low vaccination levels, an increase in the vaccination rate yields a nearly linear decrease in epidemic size. As the number of vaccinations increases, additional vaccinations yield larger effects - the curve becomes steeper. But, as the population approaches the level of vaccinations that yield herd immunity the curve flattens out again. This general pattern is most apparent visually in the \(p^{C}=0.975\) graph, but is also present in the other graphs as well. Note that the inflection point for the \(p^{C}=0.975\) graph occurs at about 0.4. This non-linear relationship between the number of vaccinations performed and the marginal effect of additional vaccinations will play a key role in the results that we report later in the paper. We also want to emphasize that the shape of these curves (in terms of the amount of curvature and the position of the inflection point) depend on the interaction structure of the model. Without running the agent-based model we would not be able to accurately identify with any precision these elements of the model.

With our baseline results established, we now consider the effect of the main features of our model. Before we move forward, we stress that the results of Experiment 1 match with expectations for a simple SIR epidemiological model. The results of Experiment 1 are used as a base result for comparison with the following sections of the paper.

5.2 Experiment 2: Heterogeneous Vaccination Coverage

As the second experiment, we consider a simple case of spatial heterogeneity where the vaccination rate in each region is set to one of two levels; some regions have a high vaccination rate (\(\pi _{H}^{V}\)) and others have a low vaccination rate (\(\pi _{L}^{V}\)). Because we have 100 regions, each with 100 agents, we assume that the agents in fifty of those regions (5000 agents) are vaccinated at the rate of \(\pi _{H}^{V}\) and the remaining agents at the rate of \(\pi _{L}^{V}\).

For a systematic investigation of the impact the spatial variation in vaccination rates has on the infection dynamics, we specify the two rates to be characterized by a mean-preserving spread with a fixed mean at \({\overline{V}}\):

$$\begin{aligned} \begin{aligned} \pi _{H}^{V}={\overline{V}}+\Delta V, \\ \pi _{L}^{V}={\overline{V}}-\Delta V. \end{aligned} \end{aligned}$$
(9)

In order to best understand the effect of spatial heterogeneity we first consider \({\overline{V}}=0.4\) and \({\overline{V}}=0.5\) which correspond to the range of U.S. influenza vaccination levels in recent years according to CDC: “Among all people \(\ge 6\) months, flu vaccination coverage during the 2015-16 flu season was 45.6%, which was a 1.5% decrease compared with the 2014-20-15 season (47.1%).”Footnote 10 We also consider two higher levels that are just below and just above levels that provide herd immunity, \({\overline{V}}=0.6\) and \({\overline{V}}=0.7\). After establishing the property for sufficiently high levels of vaccination, \({\overline{V}}\ge 0.4\), we then consider \({\overline{V}}=0.3\), which is a level significantly below the level providing herd immunity, to show that the property can be reversed when the rates of vaccination are sufficiently low.

We consider four values for the differential: \(\Delta V\in \{0,0.05,0.1,0.2\}\). For instance, when the global mean rate is 0.4 and \( \Delta V=0.2\), one region has 0.6 vaccination rate and the other has 0.2 vaccination rate. Of course, the case of \(\Delta V=0\) corresponds to the previously considered case of uniform fixed rate of vaccination where \(\pi ^{V}=0.4\) or 0.5 for the entire population. Again, we have chosen values for \(\Delta V\) that are in line with observed data. Recall, that the differences between the maximum and minimum zip code level flu claims data were a little over 40% (two-times our maximum value for \(\Delta V\)) for the cities listed.

Table 6 Epidemics with spatial heterogeneity in vaccination coverage case of two regions with \(\pi _{H}^{V}(={\overline{V}}+\Delta V)\) and \(\pi _{L}^{V}(={\overline{V}}-\Delta V)\)

The sizes of the epidemics generated from 100 independent seasons were generated for various levels of cross-regional contacts, \(p^{C}\in \{1,0.975,0.95,0.9,0.8\}\). The mean and the standard deviation of the corresponding outputs are reported in Table 6 for each level of \({\overline{V}} \in \{0.4,0.5,0.6,0.7\}\). Most strikingly, the mean epidemic size uniformly increases in \(\Delta V\) for all values of \(p^{C}\) for \({\overline{V}}\ge 0.4\). In addition, we find that Property 1 is robust to allowing for spatial variation in vaccination rates: For all values of \(\Delta V\) a decrease in \(p^{C}\) (which implies more cross-regional linkages in contacts) raises the mean size of the epidemics. In sum, the epidemics can be quite large when there are cross-regional variations in the vaccinations rates, and increasing the number of cross-regional linkages further amplifies this effect.

Property 2::

For sufficiently high rates of vaccination (below the level providing herd immunity), the size of an epidemic, on average, increases as the variation in the rates of vaccination increases between the two regions.

To best understand this result, again return to the earlier discussion of Fig. 3. Specifically, recall the shape of the relationship between vaccination coverage and epidemic size. For all values of \({\overline{V}}\ge 0.4\), an increase in vaccination rate is pushing the population into an area of the curve where there is decreasing marginal effect of additional vaccinations. In other words, in this area of the curve, additional vaccination coverage above 0.4 produces a smaller change in epidemic size than do decreases in vaccinations below 0.4. Thus the increase in vaccination coverage in the high vaccination regions, does less good than the harm done by lowering vaccination coverage in the low vaccination regions where there is a larger marginal effect. Thus, once the mean vaccination coverage level is past the inflection point on Fig. 3, an increase in heterogeneity in regional vaccination coverage should produce an increase in mean epidemic size. This is what we observe in the computational experiment.

This effect, however, is not uniform across all vaccination levels. Note that the inflection point of the curve and the rates of marginal effect of vaccination (the slope of the curves in Fig. 3) are determined by the interaction structures of the population. Thus we see different magnitudes for the effects depending on values of \(p^{C}\) and different base vaccination rates. That the property identified above may be reversed for sufficiently low values of \({\overline{V}}\) is then shown in Table 7, where the epidemic sizes for \({\overline{V}}=0.3\) are reported for the same set of parameter configurations as in Table 6. Take the case of \({\overline{V}}=0.3\), \(p^{C}=0.975\), and \(\Delta V=0.05\). For these parameters, the average epidemic size is smaller than when the vaccination coverage is uniformly 0.3 across all regions. In other words, for these parameters, spatial heterogeneity in vaccination coverage decreases epidemic size. One can understand this result if we again return to Fig. 3 for \(p^{C}=0.975\). Notice that at vaccination coverage of 0.3 the curve is still becoming steeper—i.e., the curve is concave from below for this range of vaccination rates. As vaccinations are increased, there is a larger marginal effect of the additional vaccinations. Thus, when vaccination heterogeneity is introduced, the effect of increasing vaccinations in some regions out-weighs the effect of decreasing the vaccinations in other regions, all else equal. As seen in this example, it is possible that increasing the spatial heterogeneity in vaccination coverage can decrease expected epidemic size when vaccine coverage is sufficiently below herd immunity. For the other parameter values in this range, note that there are several other combinations that result in smaller epidemic size and also some that result in increases in epidemic size. Also, for some of the combinations the effect is relatively small compared to other changes observed in Table 7. The smallest changes occur because the relationship between epidemic size and vaccine coverage is relatively linear for these parameter combinations. Again, the various different effects are due to the different interaction structures creating different relationships between vaccine coverage and epidemic size.

Table 7 Epidemics with spatial heterogeneity in vaccination coverage case of two regions with \(\pi _{H}^{V}(={\overline{V}}+\Delta V)\) and \(\pi _{L}^{V}(={\overline{V}}-\Delta V)\) for \({\overline{V}}=0.3\)

For the remainder of the paper, we will focus on the range of sufficiently high vaccinations rates, \({\overline{V}}\ge 0.4\), which contains the parameter values that are consistent with the actual U.S. influenza vaccination levels. Going back to the results in Table 6, one can compare the effect of increasing spatial heterogeneity in vaccination coverage and changes in overall vaccination rates. As an example, consider results for \( p^{C}=0.95.\) Recall that a value of \({\overline{V}}=0.7\) is above the level which provides herd immunity when vaccination coverage is uniform; no significant epidemic occurs. With uniform coverage, the average epidemic for these parameters yields only 36.73 infections. But with \(\Delta V=0.2\), the average epidemic size jumps to 154.80, over a four-fold increase. Also note that this epidemic is nearly two-times as large as the corresponding epidemic with \({\overline{V}}=0.6\) and uniform vaccination. The effect of this increase in spatial variation is much larger than a 10% decrease in vaccination rates. Further, this demonstrates that the spatial heterogeneity of vaccination coverage can greatly increase the overall level of vaccinations needed to produce herd immunity. Negligible epidemics with spatially uniform coverage can become large epidemics with spatially heterogeneous coverage.

Taking these results together, one can consider when spatial heterogeneity in vaccination coverage can be most important from a policy perspective. The changes in expected epidemic size and the effect on herd immunity are largest when the vaccine coverage in the overall population is close to herd immunity. Thus if one considers the effects described above, it is most important to think about heterogeneity in coverage for an infectious disease like measles where we tend to be close to herd immunity. The effects of heterogeneity here, could be very large.

5.2.1 Experiment 3: Externalities Arising from Spatial Heterogeneity

Note that the population in experiment 2 consists of two groups of equal size. Given the discussion above, it may seem that the mean epidemic size of the overall population can simply be inferred from the convex combination of the two mean values of the epidemic sizes corresponding to the respective rates of vaccination. This perspective would be conceptually appropriate if individuals in our model population limited their contacts to only those others who come from the regions having the same rate of vaccination; hence, the convex combination of the two uniform rate cases. However, the relationship is more complex. The previously described perspective neglects the fact that in our model the two groups with differential vaccination rates can also directly interact with one another across the regional border, where the cross-regional contacts exist at the rate of \(1-p^{C}\). These cross-regional contacts create deviations from a convex combination prediction and also create difficulties in finding a closed form solution for expected epidemic size. These cross-regional interactions between the high and low vaccination areas can have a differential impact on the risks of infection for the two groups of individuals; hence, ultimately influencing the size of the global epidemic.

In this section, we attempt to isolate the effect of the cross-regional interactions in our model and evaluate the benefits and costs to the two types of agents—i.e., those living in high-vaccination areas versus those living in low-vaccination areas— from such interactions. To address this issue, we perform the following computational experiment. Suppose the agents in a high-vaccination area interact only with other agents who also live in a high-vaccination area and the same for those in the low-vaccination area.

This what-if scenario can be implemented in our model by specifying the contacts of the agents in such a way that the cross-regional contacts for each agent are restricted to only those agents in the regions that belong to the set of regions with the same vaccination rate. For example, an agent who belongs to a high-vaccination region will have \(p^{C}\) share of his contacts from the same region/hub (which, of course, will have a high rate of vaccination) and \((1-p^{C})\) share of contacts from those regions outside of his own but still having the same high rate of vaccination. Let us call this the case of “segregated contacts” and the baseline case we examined previously the case of “mixed contacts.”Footnote 11

Our question can now be answered by looking at the mean epidemic size (mean number of infections) in the high vaccination areas compared to that in the low vaccination areas under the two different types of contact mixing. The results from the experiment are presented in Table 8 for \({\overline{V}}\in \{0.4,0.5,0.6,0.7\}\), when \(p^{C}=0.95\). For each value of \({\overline{V}}\), we consider \(\Delta V\in \{0.05,0.1,0.2\}\). Note that these values of \( {\overline{V}}\) represent those cases where increased spatial heterogeneity in vaccine coverage leads to increased expected epidemic size. The results are organized as follows. Given a value of \({\overline{V}}\), we consider the three values of \(\Delta V\) in the column specific to the given \({\overline{V}}\). For each case, we report the within-group epidemic size—i.e., the number of infected individuals within each group (low-vaccination or high-vaccination group)—under the two scenarios, segregated vs. mixed population. To clarify the results in Table 8, for each parameter set, we display the changes in infections for each group and for the total population in Table 9. For example, when moving from segregated to mixed contacts at \({\overline{V}}=0.4\), \(\Delta V=0.05\), infections in the low vaccination regions drop from 1963.33 to 1816.41 (reported on Table 8) a change of − 146.92 (reported on Table 9).

Table 8 Region-specific epidemic sizes under two different contact structures \(p^{C}=0.95\)

We separate our discussion of these results into two parts. Initially we discuss the \({\overline{V}}=0.4\) and \({\overline{V}}=0.5\) cases. Then we discuss the cases with larger overall vaccination rates. We make two observations from the \({\overline{V}}=0.4\) and \({\overline{V}}=0.5\) experiments. First, when the contacts are “mixed,” the mean number of infections is lower for the agents in the low-vaccination group (low-vaxx) and higher for those in the high-vaccination group (high-vaxx), compared to when the contacts are “segregated.” For instance, for \({\overline{V}}=0.4\) and \(\Delta V=0.1\) the epidemic size for the low-vaccination group goes down from 2508.76 to 2256.71, while the epidemic size for the high-vaccination group goes up from 177.80 to 817.52. Hence, the mixing of the two groups raises the risk of infection for those in the high-vaccination group, while it reduces the risk of infection for those in the low-vaccination group. This corresponds with intuition and expectations. When the agent contacts are mixed across regions with different levels of vaccine coverage, the agents in high vaccine regions come in contact with a higher percentage of unvaccinated agents (in low vaccine regions) and encounter increased risk of infection. The agents in low vaccine regions come in contact with more vaccinated agents when contacts are mixed, and are thus more protected from infection.

Second, the epidemic size for the whole population is higher in the “mixed” population than in the “segregated” population when \({\overline{V}}=0.4\), while the relationship is reversed when \({\overline{V}}=0.5\). For instance, when \({\overline{V}}=0.4\) and \(\Delta V=0.1\), the epidemic size rises from 2686.56 to 3074.23, a change of 387.67, as we go from “segregated” to “mixed.” Conversely, when \({\overline{V}}=0.5\) (and \(\Delta V=0.1\)), the epidemic size falls from 1339.51 to 772.94, a change of − 566.57.

One sees a similar, though slightly more nuanced pattern in the \({\overline{V}} =0.6\) and \({\overline{V}}=0.7\) examples. When the vaccination rates are this large, some regions of the population are significantly above the level of herd immunity. Thus, looking at Table 9, one sees essentially no change for \( \Delta V=0.05\) for both the high and low vaccination regions. This also is true for all levels of \(\Delta V\) for the high vaccine regions. All of these regions are above the level of vaccine coverage that produces herd immunity; thus, when contacts are made with the low vaccine regions there is a negligible effect on the number of infections. However, when looking at the low vaccine regions one does see an effect for large enough values of \( \Delta V\). Here the low vaccine regions gain noticeable protection from shifting contacts from other low vaccine regions to regions with much higher levels of vaccine coverage. Thus, on net, the overall epidemic size decreases significantly. Note that these decreases can be very large for some parameter sets. For instance, shifting from segregated to mixed contacts decreases average epidemic size by 774 agents for \({\overline{V}}=0.6\), \(\Delta V=0.2\).

Table 9 Change in the number of infections by region \(p^{C}=0.95\)

More generally, one can understand these results through the concept of herd immunity. When the vaccination rate for a specific region is above or close to the level of herd immunity, adding a few additional connections from a low vaccination region does little to increase the infection risk for agents in the high vaccine area. But, for agents in the low vaccine area, there is significant benefit to moving links from a low vaccine area to a high vaccine area that is relatively infection free. Thus when the high vaccination regions have vaccine coverage near or above 60% the effect of additional protection for the low vaccine regions dominates the additional risk for the high vaccine regions and average epidemic size falls. In the case where the overall vaccination rate is lower, average vaccine coverage of 40%, the results go in the opposite direction. Here, even agents in the high vaccine region are below levels of vaccine coverage that grant herd immunity. Thus when links are added that connect to a low vaccine region they face a significant increase in infection risk. And, again because the high vaccine regions are below the level of herd immunity, the agents from the low vaccine region get less protection from moving links from the low vaccine regions to the high vaccine regions. The overall effect is an increase in average epidemic size when connections between low and high vaccine regions are created.

These results contain a fair amount of nuance. Note that we are holding the level of global interactions, \(p^{C}\), constant as we move from a segregated to a mixed contact structure. The only difference between the segregated and mixed contact structures is that the global connections under the mixed structure allow connections to other areas that have the different vaccination level. But, as mentioned above, this comes at the expense of increasing the risk of infection for unvaccinated agents in the high vaccination regions. So, what we have observed here are two externalities being generated when we connect high vaccine and low vaccine regions. These inter-regional linkages create a positive externality for agents living in low vaccine regions because these agents are now more likely to be connected to vaccinated agents in the high vaccine regions. In the other direction, a negative externality has been created because unvaccinated agents from high vaccine regions are more likely to be connected to unvaccinated agents in the low vaccine regions. These agents now have a higher risk of infection. In our results the positive externality dominates when \({\overline{V}}\) is high (near herd immunity) such that the epidemic size decreases when high to low vaccine regions are connected. Alternatively, when \({\overline{V}}\) is low (significantly below herd immunity), the negative externality dominates and the epidemic size increases when the two regions are connected.

It is worthwhile to think about the implications that the presence of these externalities may have for individual behavior with respect to their decision to vaccinate or not. Recall that vaccination choices are specified exogenously in our model. If, however, the individual agents are to make these choices independently based on their assessment of the benefits vs costs of vaccination, there is potential that these externalities could create perverse incentives on the part of those in the low-vaccination group. For these agents, additional contacts with the members of the high-vaccination group can reduce the risk of infection for them without their having to be vaccinated themselves. Specifically, the members of the low-vaccination group could end up free-riding on the members of the high-vaccination group. The consequence of such behavior cannot be examined in the current paper with its exogenous specification of the vaccination rates. However, an extension that allows endogenization of the individuals’ vaccination decisions in the presence of these externalities would be a worthwhile endeavor that can directly address the issue in question.Footnote 12

6 Conclusion

In this paper we develop a specific model of spatial vaccine coverage heterogeneity. The model isolates the effects of heterogeneity by holding overall vaccination coverage rates constant. We find that spatial heterogeneity by itself has significant implications for understanding epidemic dynamics. Specifically, an increase in spatial heterogeneity leads to larger epidemics on average as long as the population has a sufficiently high level of vaccine coverage. At these levels, it also increases the level of vaccinations that are required to produce herd immunity. Both of these effects are magnified when more interregional connections exist in the contact structure of society. Conversely, if the coverage rate is significantly below the level needed to create herd immunity, then increasing spatial heterogeneity may decrease epidemic size. One policy relevant highlight of these results concerns the closeness of different infectious diseases to reaching herd immunity. The results above suggest that increased spatial heterogeneity in vaccine coverage is most dangerous when the population is near herd immunity. This suggests that this research may be very important for examining MMR vaccinations and other instances of vaccine coverage that are at or near levels that provide herd immunity.

We also highlight the externalities present between regions with different levels of vaccination coverage. Regions with low levels of vaccine coverage gain significant protection from having a small number of their interregional connections with other low vaccine regions shifted to regions with higher levels of vaccine coverage. Conversely, unvaccinated individuals in the high vaccine regions are harmed through these high to low interregional connections. The net effect of these two externalities depends on the overall level of vaccinations in the population. If vaccination coverage is sufficiently close to herd immunity then the change in connections leads to a smaller mean epidemic size. However, if the population is sufficiently far from herd immunity, then the shifted connections can lead to increased mean epidemic size.