We discuss a lattice model of vector-mediated transmission of a disease to illustrate how simulations can be applied in epidemiology. The population consists of two species, human hosts and vectors, which contract the disease from one another. Hosts are sedentary, while vectors (mosquitoes) diffuse in space. Examples of such diseases are malaria, dengue fever, and Pierce's disease in vineyards. The model exhibits a phase transition between an absorbing (infection free) phase and an active one as parameters such as infection rates and vector density are varied.

## I. INTRODUCTION

The spread of epidemics is an urgent problem in medicine and public health. The threat of an Ebola outbreak, the increasing number of people with AIDS, and the observation that diseases such as malaria and influenza still kill many people worldwide, justifies its importance. In epidemiology—the study of the occurrence, transmission, and control of disease—mathematical models are an important tool for quantifying spreading patterns and understanding the transmission process. In this paper, we discuss an epidemic model in which transmission is mediated by a vector, illustrating the application of ideas from statistical mechanics beyond the context of thermodynamics.

In many regions, epidemics of malaria, dengue fever or yellow fever are recurrent, costing many lives and resources in efforts to treat and possibly eradicate the disease. The spread of these diseases depends on a vector that transmits a parasite to humans, and in some cases, to animals. The vector is an infected female mosquito. The dynamics of the human-vector interaction can be summarized as follows. An infected vector, whose saliva contains the parasite, transmits the latter to a human host through a bite. Once in the host, the parasite passes through several stages, until it migrates to the red blood cells. A vector can become infected upon biting an infected host. Within the vector, the parasite also undergoes several phases and finally migrates to the salivary glands, repeating the cycle.

In some cases, the predictions of mathematical models can guide immunization programs, or influence the choice of techniques to eliminate the disease.^{1} The epidemiology of any disease is too complex to be described by a single model, which, according to Ref. 2, “should be used to identify and answer specific questions.”

The first model of transmission of a vector-borne disease was formulated by Ross in 1911.^{3,4} Ross considered the dynamics of two populations, human hosts and vectors, ruled by rates of recovery, birth, death and biting, and described by a pair of differential equations for the densities of susceptible and infected individuals. Ross identified the existence of a threshold vector density, below which the population would be free of the disease in the long-time limit. He concluded that programs to control the disease should concentrate on keeping the vector population below a limiting value.

In this paper, we introduce a lattice model for vector-mediated transmission of a disease in a population consisting of two species, human hosts and vectors (mosquitoes), which contract the disease from one another. Hosts are sedentary, while vectors diffuse in space. Our model is based on Ross' work but includes spatial structure and the diffusion of vectors. It is an agent-based stochastic process, in contrast to Ross' model which treats average densities in a deterministic fashion. Thus, our model includes fluctuations, which are ignored in Ross' mean-field approach. We investigate the dynamic behavior of the model using Monte Carlo simulations.

In the following, we discuss the construction of the model, basic critical behavior concepts and absorbing-state phase transitions, special features of the algorithm, and some of our results.

## II. MODELING A VECTOR-BORNE DISEASE

Models describing the transmission of a vector-borne disease are based on the parasite life cycle, alternating between the host and the vector. Hosts can be infected only through the bite of infectious vectors, and vectors can become infected only by biting infectious hosts. Hence, a model of a vector-borne disease must include host and vector populations. From now on, we refer to the human host simply as the host and to mosquitoes as vectors.

In simpler models, the sizes of both populations are fixed, comprising *N _{h}* hosts and

*N*vectors. Because hosts typically live much longer than vectors, we interpret the invariability of the populations differently. For hosts, it means that birth and death are not important on the time scale of the epidemic. The fixed vector population size follows from the simplifying hypothesis that each vector that dies is immediately replaced by a new, uninfected one.

_{v}The arrival of disease-free vectors is represented by the vector replacement rate. We note that even if the average vector population were constant in the region of study, we would expect it to fluctuate about its mean value. In the model, fluctuations of the total number of vectors are ignored; locally, there are fluctuations as vectors hop between lattice sites.

The model is defined on a lattice of *N* sites. It is a stochastic model, more specifically, a Markov process, defined by its state space and a set of transition rates between different states. At each lattice site there is a host, which can be in one of two states, infected or healthy. (Thus *N _{h}* =

*N*.) Each site can either be free of vectors or occupied by infected and/or healthy vectors. Thus, the state or configuration of the model is specified by the following set of random variables. At each site

*j*, we define

*h*= 0 or 1 representing, respectively, a healthy or infected host at that site, and nonnegative integers $v0,j$ and $v1,j$ representing the number of healthy and infected vectors, respectively. Because the total number of vectors is fixed, we have $\u2211j=1N(v0,j+v1,j)=Nv$.

_{j}The dynamics of the model is given by the following rules:

Vectors hop to a neighboring site at a rate

*D*.A healthy vector becomes infected at rate

*I*if it shares a site with an infected host._{v}An infected vector is replaced by a healthy one at rate

*R*._{v}A healthy host at site

*j*becomes infected at rate $v1,jIh$.An infected host recovers at rate

*R*._{h}

These rules are readily translated into transition rates. Suppose, for example, that $C$ is a configuration with vector numbers $v0,j$ and $v1,j$ at a site *j*, and $C\u2032$ is the configuration with $v\u20320,j=v0,j\u22121$ and $v\u20321,j=v1,j+1$; all other variables are identical to those of $C$. The second rule implies the transition rate $W(C\u2192C\u2032)=Ivhjv0,j$. The other dynamic rules can also be expressed in terms of transition rates. Note that the rate for a vector to hop from site *j* to a neighbor site *k* is $D/zj$, with *z _{j}* the number of sites that are neighbors of site

*j*. Although we restrict our attention to regular lattices in the present work, the model can be implemented on any lattice or network structure; the network is specified by the list of pairs of neighbors.

Vector diffusion is the only mechanism for spreading the infection in the host population. Similarly, the parasite passes from one vector to another only via an intermediary host. We assume that any infected individual is also infectious, that is, an individual becomes infectious the moment it is infected. This simplification implies that we are not able to include information about incubation periods.

Our model is closely related to one defined by Macnadbay *et al*.^{5} These authors use computer simulations to study the critical behavior of an epidemic in which the vector population is allowed to diffuse on the lattice, infecting a static population upon contact. Thus, in their model, individuals become infected instantaneously. In our model, the infection rate is finite, so that a healthy host may share a site with infected vectors, and vice-versa.

## III. BASIC CONCEPTS

In this section, we introduce some of the concepts of nonequilibrium phase transitions. For this purpose, we introduce the contact process, the simplest spatial model exhibiting a phase transition between an active and an absorbing state.

In the contact process,^{6–8} a Markov process that can be interpreted as a model for the spread of an epidemic, each site of the lattice represents an individual that may be infected or healthy. The infection spreads by direct contact between infected and healthy individuals, that is, between sites that are neighbors on the lattice. Infected individuals recover at unit rate and are then susceptible to reinfection. A healthy individual at site *i* becomes infected at rate $ni\lambda /zi$, where *n _{i}* is the number of infected neighbors. Because an individual must have at least one infected neighbor to become infected, the state in which all the individuals are healthy is

*absorbing*; that is, the system cannot escape from this configuration.

Persistence of the epidemic is controlled by the infection parameter *λ*. If *λ* is small, extinction at long times is certain; large values of *λ* assure that the infection spreads indefinitely. The boundary between persistence and extinction is marked by a critical point, denoted as *λ _{c}*. The critical parameter

*λ*separates the two possible steady states the system can reach asymptotically, namely a disease-free or absorbing state and a surviving epidemic or active state, in which the stationary density of infected individuals,

_{c}*ρ*, is nonzero. It turns out that

*λ*marks a continuous phase transition. Because

_{c}*ρ*is zero in one phase and is greater than zero in the other, it can be identified as the order parameter of the transition, just as the magnetization is the order parameter for a ferromagnetic-paramagnetic phase transition. At a continuous phase transition the order parameter increases continuously from zero as the infection parameter is increased beyond its critical value. As

*λ*approaches its critical value from above, the order parameter approaches zero as a power law, $\rho \u223c(\lambda \u2212\lambda c)\beta $. The asymptotic scaling of

*ρ*is characterized by the critical exponent,

*β*. Near the critical point, the system exhibits strong fluctuations, correlated over large times and distances.

^{9,10}The correlation length

*ξ*diverges at criticality as

where $\nu \u22a5$ is the correlation-length exponent. The relaxation time, *τ*, the time it takes for a system to reach the steady state, diverges as

where $\nu \Vert $ is the relaxation-time exponent.^{11–13}

Another fundamental aspect of absorbing-state phase transitions is the propagation of activity in space and time, starting from a configuration having a single active site at the origin.^{14} (The spread of an epidemic starting from a single infected individual is of great interest in epidemiology.) Here, we focus on *P*(*t*), the probability that the system has not entered the absorbing state at time *t*, and *n*(*t*), the mean number of infected individuals. In the subcritical regime, $\lambda <\lambda c$, *P*(*t*) and *n*(*t*) decay exponentially. In the supercritical regime, there is a nonzero probability that the activity persists indefinitely, so that $P(t)\u2192P\u221e>0$ as $t\u2192\u221e$, and $n(t)\u221dtd$ in a *d*-dimensional system. At the critical point, the process dies out with probability one, but the mean lifetime diverges. In the absence of a characteristic time scale, the asymptotic evolution follows power laws:

where *δ* and *η* are additional critical exponents. The power-law dependence of *P* and *n* on time provides an effective criterion for estimating *λ _{c}* in numerical studies.

The independence of the critical exponents on most details of the system reflects universality in critical phenomena. Models with the same set of critical exponents form a universality class. In general, a universality class is determined by global features such as dimensionality, symmetry group of the order parameter, and the range (long or short) of the interactions. Models possessing a continuous transition to an absorbing state generally belong to the same universality class as directed percolation.^{15–18} The presence of a conserved quantity can alter critical behavior.^{19,20} Although there is no proof, we expect the vector-borne epidemic model to show qualitative behavior analogous to that of the contact process, because it also exhibits a phase transition between an active and an absorbing state. Because the total vector population is conserved, we might expect the model to exhibit non-directed percolation scaling. It remains an open question to which universality class the vector-borne epidemic model belongs.

## IV. SIMULATION ALGORITHMS

We now turn to the elaboration of algorithms for simulating the contact process and the vector-borne epidemic. Both models are Markov processes defined in continuous time (that is, in terms of transition rates). In continuous-time processes elementary events, such as infection and recovery in the contact process, occur one at a time; two such events never occur simultaneously.^{21}

To construct the algorithm, we need to answer three questions. Given the current configuration of the system: (1) what kind of event will occur next?, (2) where will it occur?, and (3) when will it occur?

### A. Contact process

In the contact process each infected site has a rate of unity to recover and a rate of *λ* to attempt infecting a nearest-neighbor site. Thus if there are *N*_{1} infected sites, the total transition rate is $r=N1(1+\lambda )$, which means that the time *s* to the next event is an exponentially distributed random variable, $p(s)=re\u2212rs$. In many cases, we simply replace the random variable *s* by its mean, $1/r$, and advance the time counter by this amount at each step.^{22} To decide where the event will take place, we choose one of the *N*_{1} currently infected sites at random, say *j*, by randomly generating an integer uniformly distributed between 1 and *N*_{1}. To choose the type of event, we note that a given event is recovery with probability $pd=1/(1+\lambda )$ and is an infection attempt with the complementary probability, $1\u2212pd$. Thus, we generate a uniform random number *y* in the interval [0,1) and recover the chosen site *j* if $y<pd$. If $y\u2265pd$, we choose one of the *z _{j}* nearest neighbors of site

*j*and infect this site if it is currently uninfected. (If the chosen neighbor is already infected, no changes are made to the configuration at this step.) Whenever the configuration changes, the list of infected sites must be updated. Despite a small overhead associated with maintaining the list, this algorithm provides a highly efficient method for simulating the contact process.

*Problem 1*. Explain why it would be incorrect to use the same time increment, independent of *N*_{1}, at each step, in the algorithm we have described.

*Problem 2*. Explain why it would be incorrect to choose another nearest neighbor of site *j* if the first choice yields an already infected site.

*Problem 3*. Write a set of commands to remove an uninfected site from the list of infected sites; the number of operations should be independent of the list size.

### B. Vector-borne disease: Continuous-time algorithm

The algorithm used to simulate a vector-borne epidemic model is considerably more complicated than that used for the contact process, because we have two classes of individuals in the process. To choose the next event, we note that the total transition rate *R* is the sum of the transition rates for five possible events

where the terms represent host recovery, vector replacement, vector hopping, vector infection, and host infection, respectively, *V*_{1} is the number of infected vectors and *H*_{1} the number of infected hosts. We refer to these as events of type 1, …, 5, respectively.

The probability that the next event is of type *k* is given by the ratio of its transition rate to the total rate, so that, for example, the probability that the next event is recovery of a host is

To choose the next event type, we generate a uniform random number *y* in the interval $[0,1)$, as in the contact process algorithm. If $0\u2264y<p1$, the next event is of type 1; if $p1<y<p1+p2$, it is of type 2, and so on.

To implement this scheme, we need lists of infected hosts, infected vectors, pairs of infected hosts and healthy vectors occupying the same site, and pairs of healthy hosts and infected vectors occupying the same site. The lists need to be updated following each event. Moreover, for diffusion, we require an array storing the current position of each vector.

The algorithm involves the following steps:

Initialize the system, defining the states (infected or not) of each host and vector, and distribute the vectors over the lattice, randomly.

Determine which kind of event will occur next.

Choose the entity (for example, infected host) involved in the event from the appropriate list.

Following the event, update the lists and (in case of diffusion) vector positions, and increment the time, $t\u2192t+1/R$.

Go to step 2.

### C. Vector-borne disease: Discrete-time algorithm

The algorithm we have described for a vector-borne disease involves considerable expenditure for choosing events and maintaining lists. We turn now to a simpler algorithm involving discrete time: in this case the entire system is updated simultaneously in a pass of small but finite duration, $\Delta t$. The algorithm employs the variables $v0,j$ and $v1,j$, and a logical variable *k _{j}* which is true if site

*j*harbors an infected host and is false if not. There is no need to record individual vector positions or maintain lists of the kind used in the continuous-time approach.

Once the initial states of the individuals have been defined and the vectors distributed over the lattice, the evolution proceeds in a series of substeps:

*Host recovery/infection and vector infection*. At each site *j*, if the host is infected, then the host recovers with probability $rh\u22611\u2212exp(\u2212Rh\Delta t)$. If there are uninfected vectors at site *j* (that is, $v0,j>0$), *n* of them become infected, where *n* is a binomial random number with

for $n=0,1,2,\u2026,v0,j$.

If the host at site *j* is not infected, and the site harbors infected vectors, the host becomes infected with probability $1\u2212exp(\u2212v1,jIh\Delta t)$.

*Vector replacement*. At each site *j*, if there are infected vectors, *n* of them are replaced with uninfected ones, where *n* is a binomial random number with

for $n=0,1,2,\u2026,v1,j$.

*Vector hopping*. At each site *j*, if there are infected vectors, *n* of them hop, where *n* is a binomial random number with

for $n=0,1,2,\u2026,v1,j$. Choose the new site for each hopping vector from the set of neighbors of site *j*. Apply the same procedure to the uninfected vectors.

The binomial probability distributions associated with vector infection, replacement and hopping are stored in lookup tables. To avoid multiple hopping of the same vector in a single step, all hopping events are generated before any vectors are actually transferred. For each site, let $\Delta 1,j$ be the change in the number of infected vectors at site *j* due to hopping; at the beginning of the hopping substep, all the $\Delta 1,j$ are set to zero. Suppose, for example, that two infected vectors are to be transferred from site *j* to $j\u2032$. Then we let $\Delta 1,j\u2192\Delta 1,j\u22122$ and $\Delta 1,j\u2032\u2192\Delta 1,j\u2032+2$. Once all sites have been visited in the hopping substep, we let $v1,j\u2192v1,j+\Delta 1,j$ for each site *j*. Naturally, the same procedure is applied to the uninfected vectors.

In this discrete-time simulation, many events can occur in a single sweep of the lattice. We nevertheless want to keep the time increment $\Delta t$ sufficiently small such that the probability of recovery and subsequent reinfection of the same individual during the same step is small. Thus if $Rmax$ is the largest of the rates (of infection, recovery/replacement, or hopping), we need to have $Rmax\Delta t\u226a1$. For instance, in the studies discussed in the following $Rmax=Iv=2$ and $\Delta t=0.1$. The results of the discrete- and continuous-time simulations agree in the limit $\Delta t\u21920$, but letting $\Delta t$ be very near zero is impractical: enormous cpu time would be spent while almost nothing happens. Because we must use a finite $\Delta t$, the value of a critical parameter such as *λ _{c}* will be somewhat different in the discrete- and continuous-time simulations. However, the results for universal properties such as critical exponents should be the same for both methods.

Because the discrete-time scheme is somewhat complicated, we tested it first on the one-dimensional contact process. For $\Delta t=0.1$, we obtained $\lambda c=2.81$, compared with the known value of $\lambda c=3.297848$ for the continuous-time process.^{8} Despite this difference, the discrete-time simulations yield critical exponents that agree with the known values for the contact process.

The methods we have described produce a single realization of the process. A given realization ends when either the process has reached an absorbing configuration, or some maximum time $tmax$, defined by the user, is attained. In spreading simulations, the process must be repeated a large number of times, $Nrep$, to obtain good statistics for *P*(*t*) and *n*(*t*). A typical strategy is to declare vectors *P*(*j*) and *n*(*j*) for each integer time *j* from zero up to $tmax$. In a given realization, these variables are updated whenever the simulation time variable hits (or just surpasses) the next integer value *j*, so $P(j)\u2192P(j)+1$, and $n(j)\u2192n(j)+n1$, where *n*_{1} is the number of infected individuals. (In the vector-borne epidemic model, we require two counters, $nh(j)$ and $nv(j)$, for hosts and vectors, respectively.) Once all realizations are completed, normalizing these vectors by $Nrep$ yields the survival probability and mean infected population size.^{23}

## V. RESULTS

In the following, we provide some illustrative results for the vector-borne epidemic model in one dimension; more definitive conclusions on critical behavior will be given elsewhere.^{24} (Although it might seem more realistic to use a two-dimensional lattice to map out a city or region in which the epidemic takes place, we can think of the one-dimensional case as representing a population living along a river.)

A fundamental piece of information about the process is the survival threshold; that is, the surface in parameter space separating the regime in which the epidemic persists from that in which it dies out. As discussed, this critical surface marks a continuous phase transition. Given the large number of parameters, we do not propose to delineate this surface completely. We shall instead fix most of the parameters, and select one as the control parameter and seek its critical value. By repeating this analysis using different parameter values, we can trace out the critical surface.

For both continuous and discrete-time simulations, we study spreading from a single infected individual. Thus, the initial configuration is characterized by one infected host. We adopt periodic boundary conditions for the lattice.

In the continuous-time simulations, we choose the vector density *ρ _{v}* as the control parameter. With the other parameters fixed at $Rh=1.0,\u2009Rv=0.5,\u2009Ih=1.0,Iv=2.0,$ and

*D*= 0.5, we vary

*ρ*to find its critical value. One way of locating the critical point is by the analysis of the curvature of the survival probability,

_{v}*P*(

*t*), a quantity furnished by spreading simulations. As an illustration of the method, we show a log-log plot of

*P*(

*t*) as a function of

*t*in Fig. 1 for

*ρ*varying from 2.14 to 2.19. These data were obtained using a system size of

_{v}*L*= 5000, and a maximum time of $tmax=8000$; the results represent an average over $Nrep=50\u2009000$ realizations.

As discussed in Sec. III, the critical point is marked by an asymptotic power-law decay of the survival probability. Thus our best estimate for the critical vector density $\rho v,c$ is the value that yields a log-log plot of *P*(*t*) showing the least curvature. In Fig. 1, the curves for $\rho v=2.19$ and 2.18 clearly veer upward, while those for $\rho v=2.14\u22122.16$ veer downward, giving $\rho v,c=2.17$ as our best estimate. The critical exponent *δ* is (minus) the asymptotic slope of the corresponding curve.

Due to finite-time corrections to scaling, the slope, even for the exact value of $\rho v,c$, exhibits some variation at short times. To estimate the asymptotic slope as $t\u2192\u221e$, we compute the slope over blocks of data representing a fixed interval of $lnt$, and plot the slope versus $1/t$. Figure 2 shows that such a local-slope plot is highly sensitive to deviations from criticality, making it easier to decide which curve is nearest criticality. At this level of precision, the critical vector density lies between 2.16 and 2.18, providing $\rho v,c=2.170\u2009(5)$, where the uncertainty estimate reflects the fact that the values 2.16 and 2.18 are excluded. To improve this estimate, we would have to run the simulation for larger values of *L*, $tmax$, and $Nrep$.

The local-slopes plot allows us to estimate the value of *δ* by extrapolation of the slope to infinite time, yielding $\delta =0.126\u2009(5)$.

We next consider the critical vector density dependence on the diffusion rate, leaving the other parameters fixed. The results are shown in Fig. 3 from which we can conclude that, as expected, diffusion facilitates the spread of the epidemic, so that the larger the value of *D*, the smaller the threshold density $\rho v,c$. The phase boundary data are well fit by a power law of the form

which relates the critical vector density and the diffusion rate.

We performed complementary discrete-time simulations using the host infection rate *I _{h}* as the control parameter. The other parameter values are fixed at $Rv=Rh=0.5$, $Iv=2.0$,

*D*= 0.1, and $\rho v=3$. Spreading simulations for a maximum time of 50 000 on lattices of

*L*= 4000 sites yield the critical value $Ih,c=0.853(3)$.

## VI. CONCLUDING REMARKS

We have discussed methods used to simulate the spread of a vector-borne epidemic in a static population. The algorithms are readily adapted to study other nonequilibrium processes. In particular, we have studied a model of malaria transmission based on Ross' model, but including fluctuations, spatial structure, and diffusion of vectors.^{3} The model is of interest in the context of statistical mechanics because it exhibits a phase transition.

A simple model can be very useful for understanding the principal features of real-world complex systems or processes. We note that the vast majority of models in the epidemiology literature are deterministic and lack spatial structure. Including stochasticity and spatial dependence may lead to improved predictions of epidemic thresholds.

We discussed continuous-time and discrete-time algorithms, providing different approaches to implementing the model. Although the continuous-time algorithm is more faithful to the original Markov process, the discrete time implementation is more efficient computationally. The results of the two approaches agree qualitatively but differ somewhat in details. Because there is usually significant uncertainty regarding the true values of the parameters (transition rates) used in the model, the differences between predictions furnished by the two simulation strategies may not be important. Therefore qualitative results on, say, how to reduce the likelihood of a large epidemic may be of more utility than precise numerical predictions.

Universal properties such as critical exponents have attracted the interest of physicists who study phase transitions but are of limited interest in epidemiology. The simulation methods described here may nevertheless be useful in this broader, more applied context.

We hope that the methods discussed in this paper inspire interested students to consider studying statistical physics or at least appreciate some of the problems currently studied in this area.

## VII. SUGGESTED PROJECTS

Given the set of parameters $Rh=1.0,\u2009Rv=0.5,\u2009Ih=1.0,\u2009Iv=2.0$,

*D*= 0.5, and $\rho v=2.17$, run the simulation for the one-dimensional vector-borne epidemic model for a lattice size*L*= 5000, a maximum time of $tmax=5000$ and $Nrep=50\u2009000$ realizations. Compare the values obtained for the survival probability*P*(*t*) at different times with the reference values shown in Table I.Suppose that due to changes in topography or settlement density, the distance between human host habitations varies in space. We will represent each habitation by a lattice site and represent this situation by a position-dependent diffusion rate, with larger separations corresponding to smaller rates. Adapt the algorithms we have described to the case of a site-dependent diffusion rate

*D*. To model heavily and sparsely populated regions, for example,_{i}*D*could take two values, generating clumps of sites with the same value. Determine in which regions the epidemic is more likely to persist, and where the density of infected hosts and vectors is greatest._{i}The algorithms we have described require that a new realization be started each time the absorbing state is reached. A useful alternative, especially in the vicinity of the critical point, is

*quasistationary*simulation, in which the absorbing state is effectively removed from the state space. The method is described in detail in Ref. 25. Here, we simply provide a recipe, which runs as follows. We maintain a collection of*N*saved configurations, starting from the initial one (which might have all hosts and vectors infected). In the initial phase of the simulation, we save the current configuration to the list at each time step. Once_{s}*N*configurations are saved, we update the list, substituting a configuration on the list with the current configuration, with probability_{s}*p*at each unit time interval. (The replacement probability_{r}*p*is determined by the condition that the residence time, $Ns/pr$ of a configuration on the list be long compared to the mean lifetime of the process, yet short compared to the duration of the simulation.) The evolution of the process proceeds as before, except when an absorbing configuration is reached. In this case, the latter is exchanged for one of the saved configurations, which, by construction, is active. Following an initial transient, this modified process attains the quasistationary distribution; that is, the probability distribution conditioned on not having visited the absorbing state. Averages over this distribution correspond to asymptotic long-time properties of the active process and may be used to infer the critical properties. Use quasistationary simulations to determine the infected host and vector densities as a function of one of the parameters. Convenient values for the quasistationary scheme are $Ns=1000$ and $pr=0.001$._{r}

## ACKNOWLEDGMENT

R.D. is grateful to CNPq, Brazil for financial support.

## References

*ξ*, in this subspace is governed by the critical exponent $\nu \u22a5$ (see Ref. 8, Sec. 6.6)

*n*(

*j*) will exceed the maximum number of the machine being used. It is therefore good practice to use a double-precision vector for

*n*(

*j*).