Abstract
A stochastic SIR (Susceptible, Infected, Recovered) model for the spread of a non-lethal disease is considered. The size of the population is constant. The problem of computing the moment-generating function of the random time until all members of the population are recovered is solved in special cases. The expected duration of the epidemic is also computed, as well as the probability that the whole population will be either cured or immunized before every member is infected. The method of similarity solutions is used to solve the various Kolmogorov partial differential equations, subject to the appropriate boundary conditions.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
Introduction
Especially since the start of the COVID-19 epidemic, there are have been numerous papers published on mathematical models for the spread of epidemics; see, for instance, [19] and [17]. These models can be quite complex, with systems of seven or more nonlinear differential equations. The authors are generally interested in the stability analysis of their models and/or in computing the very important basic reproduction number \(R_0\). [4], among others, proposed a SIS-type (for Susceptible, Infected, Susceptible) model, and they studied its stability. In this paper, we consider a basic SIR (R standing for Recovered or Removed) model, to which random perturbations will be added to make it more realistic. The deterministic SIR model is a particular case of either the SIRS (see [20]), SEIR (E standing for Exposed; see [18], or [5]) or SEIRS (see [2]) models.
Let X(t) denote the number of individuals who are susceptible to a certain disease at time t, Y(t) the number who are infected, and Z(t) the number who are either vaccinated or cured from the disease, which is assumed to be non-lethal. Moreover, the size of the population is constant. For example, the population could consist of the people on a cruise ship, and the disease could be an outbreak of gastroenteritis.
We begin with the following deterministic model:
where \(a_1\), \(a_2\) and \(b_1\) are positive constants. The constant \(a_1\) is the vaccination rate, while \(b_1\) is the recovery rate. We thus assume that susceptible individuals become infected at a rate which is proportional to the product \(X(t) Y(t)\).
Next, we introduce random perturbations in the form of diffusion processes:
where \(m_i(\cdot )\) is a real function, \(v_i(\cdot )\) is a positive function, and \(\{B_i(t), t \ge 0\}\) is a standard Brownian motion, for \(i=1,2\). The two stochastic processes are assumed to be independent.
Notice that \(\dot{X}(t) + \dot{Y}(t) + \dot{Z}(t) = 0\) for both the deterministic and the stochastic model, so that the size of the population is a constant, that we denote by N.
Now, we define the first-passage time
with \(x+y>0\). That is, the random variable \(\tau (x,y)\) is the first time all members of the population are either vaccinated or cured from the disease. We assume that vaccinated or cured individuals are immunized against the disease either permanently or for a time period of length \(T > \tau (x,y)\), where T is large enough that we can neglect the probability \(P[\tau (x,y) > T]\). Then, we only need to consider the two-dimensional process (X(t), Y(t)).
Let \(M(x,y;\alpha )\) denote the moment-generating function of \(\tau (x,y)\):
where \(\alpha \) is a positive constant. The function M satisfies the following Kolmogorov partial differential equation:
in which \(M_x = \partial M / \partial x\), etc. The boundary condition is
Indeed, we can write (see, for instance, [8], p. 282)) that the conditional transition density function
satisfies the Kolmogorov backward equation
Furthermore, because the functions \(m_i\) and \(v_i\) do not depend on t, for \(i=1,2\), the function \(p(x,x_0,y,y_0;t,t_0)\) can be written as \(p(x,x_0,y,y_0;t-t_0)\). It follows that \(p_{t_0} = -p_t\).
Next, we can also state that the probability density function \(\rho (t;x,y)\) of the random variable \(\tau (x,y)\) satisfies Eq. (12):
Finally, Eq. (9) is obtained by multiplying both sides of the above equation by \(e^{-\alpha t}\) and integrating from 0 to \(\infty \). The boundary condition in (10) follows from the fact that \(\tau (x,y) = 0\) if \(x+y=0\).
Similarly, the function \(m(x,y) := E[\tau (x,y)]\) (if it exists) satisfies
subject to the boundary condition
To prove this result, we use the series expansion of the exponential function (assuming that all moments of \(\tau (x,y)\) exist):
which we substitute into (9). Equation (14) is obtained by equating the terms in \(\alpha \) on each side, and Eq. (15) is due to the fact that \(\tau (x,y) = 0\) if \(x+y=0\).
Remark
In theory, we can obtain \(E[\tau (x,y)]\) by differentiating the moment-generating function \(M(x,y;\alpha )\) with respect to \(\alpha \) and then taking the limit as \(\alpha \) decreases to zero. However, because \(M(x,y;\alpha )\) is often expressed in terms of special functions, it may be easier to solve Eq. (14) instead.
Finally, let us define the random variable
We assume that \(X(0) < N\). Therefore, when the expected value of \(\dot{X}(t)\) is negative (which will be the case in Sect. 3), we can state that if \(X(\tau _{0,N}) + Y(\tau _{0,N}) = N\), then it is likely that every member of the population is infected. We are interested in computing
that is, the probability that the epidemic will be over at time \(\tau _{0,N}\). The function p satisfies
The boundary conditions are
Obtaining explicit solutions to first-passage problems for diffusion processes in two or more dimensions is usually very difficult because one needs to solve partial differential equations, subject to the appropriate boundary conditions. See [9] and the references therein. Sometimes, using symmetry, it is possible to reduce the partial to ordinary differential equations.
One type of two-dimensional diffusion processes for which explicit and exact solutions to first-passage problems have been obtained are integrated diffusion processes. That is, processes of the form \(\{(X_1(t),X_2(t)), t \ge 0\}\), where \(\{X_2(t), t \ge 0\}\) is a diffusion process and
The author has considered such problems for integrated Wiener processes [13], Ornstein-Uhlenbeck processes [11] and geometric Brownian motions [12]. See also [6, 10] and [16].
In the next section, we will find exact solutions to the above partial differential equations in important particular cases. The method of similarity solutions will be used.
Explicit Solutions
Since the boundary condition in Eq. (10) depends only on the sum \(x+y\), we can look for a solution of (9), (10) of the form \(L(w;\alpha ) = M(x,y;\alpha )\), where \(w := x+y\). This technique is known as the method of similarity solutions, and w is the similarity variable.
In order for the method to work, we must be able to express both the differential equation and the boundary condition in terms of w. Equation (9) is transformed into (dropping the dependence of L on the constant \(\alpha \))
and the boundary condition is \(L(0) = 1\). Moreover, because \(X(t)+Y(t) \le N\) \(\forall t \ge 0\), we can state that N is a reflecting boundary for the sum \(X(t)+Y(t)\); it follows (see [3], p. 233, or [14], p. 221) that \(L'(N) = 0\).
Proposition 2.1
If both expressions between square brackets in Eq. (22) can be expressed in terms of \(w:=x+y\), then the problem (9), (10) can be solved by assuming that \(M(x,y;\alpha ) = L(w;\alpha )\).
Remark
If the problem (9), (10) is solvable by the method of similarity solutions, then so are the problems (14), (15) and (19), (20). Moreover, we assume that the functions \(v_1(x)+v_2(y)\) and \(m_1(x) + m_2(y)\) are smooth enough to guarantee the existence and uniqueness of the solutions to the equations, which will be the case in the particular problems considered below.
Particular cases. I) The simplest particular case is the one when \(v_1(x) + v_2(y) \equiv v_0 > 0\), \(m_1(x) = a_1 x\) and \(m_2(y) = b_1 y\). Equation (22) then reduces to
The general solution of the above equation is easily found to be
With the conditions \(L(0)=1\) and \(L'(N)=0\), we can determine the value of the constants \(c_1\) and \(c_2\). We find that
It follows that
and
Remark
The random perturbations, with the above infinitesimal parameters, are particular (generalized) Ornstein-Uhlenbeck processes. Moreover, letting \(W(t):=X(t)+Y(t)\), \(\{W(t), t \ge 0\}\) is a Wiener process with zero mean and variance parameter \(v_0\).
We can retrieve the formula for m(x, y) by solving Eq. (14), subject to the appropriate boundary conditions. First, we can assume that \(m(x,y) = n(w)\), so that Eq. (14), with the above assumptions, simplifies to
In addition to the boundary condition \(n(0) = 0\), we can write that \(n'(N) = 0\). Indeed, we have
so that
Since \(L'(N) = 0\) for any \(\alpha \), we deduce that \(n'(N) = 0\) as well. It is then straightforward to find that
Next, with \(r(w) := p(x,y)\), Eq. (19) becomes
The solution that satisfies the boundary conditions \(r(0)=1\) and \(r(N)=0\) is
Case II. Assume that \(m_1(x) = a_1 x\) and \(m_2(y) = b_1 y\), as in Case I, but that \(v_1(x) = v_0 x\) and \(v_2(y) = v_0 y\). Equation (22) is then
The general solution of Eq. (34) is
where \(I_{1}(\cdot )\) and \(K_{1}(\cdot )\) are modified Bessel functions (see [1], p. 374) of order \(\nu = 1\). Making use of the boundary conditions \(L(0)=1\) and \(L'(N)=0\), we find that
for \(0 \le w \le N\), where
The formula for M(x, y) is then obtained by replacing w by \(x+y\) in the above equation. Moreover, we compute
As in Case I, m(x, y) can also be found by solving the differential equation satisfied by n(w), subject to \(n(0)=n'(N)=0\).
Finally, Eq. (19) reduces to
and we obtain the same solution (given in Eq. (33)) as in Case I for the function p(x, y).
Remark
This time, the random perturbations and \(\{W(t), t \ge 0\}\) are limiting cases of a Cox-Ingersoll-Ross (CIR) process.
Case III. Let \(m_1(x) \equiv 0\), \(m_2(y) \equiv 0\), \(a_1=b_1:=a\), and \(v_1(x) + v_2(y) \equiv v_0 > 0\), as in Case I. We must then solve
Making use of a mathematical software program, we find that
for \(0 \le w \le N\), in which
and \(M(\cdot ,\cdot ,\cdot )\) (Kummer’s function) and \(U(\cdot ,\cdot ,\cdot )\) (Tricomi’s function) are confluent hypergeometric functions (see [1], p. 504).
This time, it is clearly easier to obtain the function m(x, y) by solving Eq. (14) rather than by differentiating L(w) with respect to \(\alpha \) and taking the limit as \(\alpha \) decreases to zero. The unique solution to the differential equation
that satisfies the boundary conditions \(n(0)=0\) and \(n'(N)=0\) can be expressed as follows:
for \(0 \le w \le N\), where “erf” is the error function:
Finally, the function \(r(w) = p(x,y)\) satisfies
The unique solution such that \(r(0)=1\) and \(r(N)=0\) is
for \(0 \le w \le N\), where “erfi” is the imaginary error function defined by
Remark
The random perturbations are Wiener processes with zero means and \(\{W(t), t \ge 0\}\) is an Ornstein-Uhlenbeck process.
Case IV. Lastly, let \(m_1(x) \equiv 0\), \(m_2(y) \equiv 0\), \(a_1=b_1:=a\), as in Case III, and \(v_1(x) = v_0 x\) and \(v_2(y) = v_0 y\), as in Case II. The differential equation satisfied by the function L(w) is then
We find that the solution that we are looking for is
for \(0 \le w \le N\).
As in Case III, we will calculate the expected value of \(\tau (x,y)\) by solving
We can express the solution for which \(n(0)=0\) and \(n'(N)=0\) as follows:
for \(0 \le w \le N\), where Ei\((\cdot ,\cdot )\) is a particular exponential integral, which is defined by
To conclude, the function \(r(w) = p(x,y)\) is such that
with \(r(0)=1\) and \(r(N)=0\). We easily find that
Remark
As in Case II, the random perturbations and \(\{W(t), t \ge 0\}\) are limiting cases of a Cox-Ingersoll-Ross (CIR) process.
Concluding Remarks
In this paper, we computed various explicit and exact solutions to first-passage problems for a particular stochastic three-dimensional SIR model. Because the size of the population was assumed to be constant, it was possible to reduce the first-passage problems to two-dimensional ones. Moreover, thanks to the symmetry in the model, we were then able to make use of the method of similarity solutions to solve the partial differential equations of interest, subject to the appropriate boundary conditions.
We were mainly interested in computing two quantities: the expected time needed to end the epidemic, and the probability that every member of the population will become infected, rather than everybody becoming immunized or cured from the disease. We saw that, even though one is able to find explicitly the moment-generating function of the first-passage time \(\tau (x,y)\), it is often much easier to obtain the expected value m(x, y) of \(\tau (x,y)\) by solving the differential equation it satisfies, instead of differentiating the moment-generating function and then taking the appropriate limit. Indeed, the moment-generating function is generally expressed in terms of special functions, so that performing the required derivative can be very difficult.
When we cannot use the method of similarity solutions, we could at least try to solve the differential equations numerically, in any particular case. However, the aim of this paper was to obtain analytical solutions to the first-passage problems.
Next, we could try to compute the expected time that an epidemic will last when the model is more general than the one considered in this paper. We could also discretize the deterministic model and add Gaussian random variables as perturbations.
Finally, the problem of optimally controlling the system of stochastic differential equations is obviously an important one; see [7] and [15].
References
Abramowitz, M., Stegun, I.A.: Handbook of mathematical functions: with formulas, graphs, and mathematical tables. Dover, New York (1972)
Bjørnstad, O.N., Shea, K., Krzywinski, M., Altman, N.: The SEIRS model for infectious disease dynamics. Nat. Methods 17, 557–558 (2020). https://doi.org/10.1038/s41592-020-0856-2
Cox, D.R., Miller, H.D.: The theory of stochastic processes. Methuen, London (1965)
Florea, A., Lăzureanu, C.: A mathematical model of infectious disease transmission. ITM Web Confer. 34, 02002 (2020). https://doi.org/10.1051/itmconf/20203402002
He, S., Peng, Y., Sun, K.: SEIR modeling of the COVID-19 and its dynamics. Nonlinear Dyn. 101, 1667–1680 (2020). https://doi.org/10.1007/s11071-020-05743-y
Hesse, C.H.: The one-sided barrier problem for an integrated Ornstein-Uhlenbeck process. Communications in statistics. Stochastic Models 7(3), 447–480 (1991). https://doi.org/10.1080/15326349108807200
Ionescu, A., Lefebvre, M., Munteanu, F.: Feedback linearization and optimal control of the Kermack–McKendrick model for the spread of epidemics. Adv. Anal. 2(3), 157–166 (2017). https://doi.org/10.22606/aan.2017.23003
Karatzas, I., Shreve, S.E.: Brownian motion and stochastic calculus, 2nd edn. Springer-Verlag, New York (1991)
Kou, S., Zhong, H.: First-passage times of two-dimensional Brownian motion. Adv. Appl. Probab. 48(4), 1045–1060 (2016). https://doi.org/10.1017/apr.2016.64
Lachal, A.: L’intégrale du mouvement brownien. J. Appl. Probab. 30(1), 17–27 (1993). https://doi.org/10.2307/3214618
Lefebvre, M.: Moment generating function of a first hitting place for the integrated Ornstein–Uhlenbeck process. Stochastic Process. Applications 32(2), 281–287 (1989). https://doi.org/10.1016/0304-4149(89)90080-X
Lefebvre, M.: First hitting time and place for the integrated geometric Brownian motion. Int. J. Differ. Eqs. Applications 9(4), 365–374 (2004)
Lefebvre, M.: Moments of first-passage places and related results for the integrated Brownian motion. ROMAI J. 2(2), 101–108 (2006)
Lefebvre, M.: Applied Stochastic processes. Springer, New York (2007). https://doi.org/10.1007/978-0-387-48976-6
Lefebvre, M.: Optimally ending an epidemic. Optimization 67(3), 399–407 (2018). https://doi.org/10.1080/02331934.2017.1397147
Makasu, C.: Exit probability for an integrated geometric Brownian motion. Stat. Probab. Lett. 79(11), 1363–1365 (2009). https://doi.org/10.1016/j.spl.2009.02.009
Musa, S.S., Qureshi, S., Zhao, S., Yusuf, A., Mustapha, U.T., He, D.: Mathematical modeling of COVID-19 epidemic with effect of awareness programs. Infect. Dis. Modell. 6, 448–460 (2021). https://doi.org/10.1016/j.idm.2021.01.012
Mwalili, S., Kimathi, M., Ojiambo, V., Gathungu, D., Mbogo, R.: SEIR model for COVID-19 dynamics incorporating the environment and social distancing. BMC Res. Notes 13(352), 5 (2020). https://doi.org/10.1186/s13104-020-05192-1
Riyapan, P., Shuaib, S.E., Intarasit, A.: A mathematical model of COVID-19 pandemic: a case study of Bangkok, Thailand. Comput. Math. Methods Med. 2021(6664483), 11 (2021). https://doi.org/10.1155/2021/6664483
Wang, X.: An SIRS epidemic model with vital dynamics and a ratio-dependent saturation incidence rate. Discrete Dyn. Nat. Soc. 2015(720682), 9 (2015). https://doi.org/10.1155/2015/7206822015
Acknowledgements
This research was supported by the Natural Sciences and Engineering Research Council of Canada (NSERC). The author also wishes to thank the anonymous reviewer of this paper for his/her constructive comments.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The author reports that there are no competing interests to declare.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Lefebvre, M. On the Duration of an Epidemic. Differ Equ Dyn Syst (2022). https://doi.org/10.1007/s12591-022-00626-7
Accepted:
Published:
DOI: https://doi.org/10.1007/s12591-022-00626-7