The Stochastic Model

Sacrifice Nana-Kyere1 * , Francis Agyei Boateng1, Glory Kofi Hoggar2, Paddy Jonathan3

1 Department of Mathematics,  Valley View University, Kumasi campus, Ghana
2 Department of Mathematics, Sunyani Technical University, Sunyani, Ghana
3 Department of Mathematics, Osei Kyeretwie Senior High School, Kumasi, Ghana

CitationCitation COPIED

Kyere SN, Boateng FA, Hoggar GF, Jonathan P. The Stochastic Model. Adv Comput Sci. 2018 Jan; 1(1): 105.


Recent research has revealed a surge in the application of Stochastic Differential Equations (SDEs) in the modeling of infectious diseases. Factors emanating from this surge has been the ability of stochastic differential equations to lay one of the most imperative fundamental differences in the asymptotic dynamics of the deterministic and stochastic epidemic models [1]. These fundamental differences include the convergence of the sample path of stochastic models to the disease-free state and that of the deterministic model to the endemic equilibrium. Stochastic phenomenon occurs naturally in our environment, and when small number of reacting molecules is involved in the modeling system, deterministic models become inappropriate [2]. Stochastic models have properties which include the probability of an outbreak, the quasistationary probability distribution, the final size distribution of an epidemic and the expected duration of an epidemic that makes it unique from others [3]. Stochastic Processes can have moments and covariance function associated with them, which are functions of time, as do random variables [4].

Stochastic epidemic models have been studied extensively, and the outcomes have been astonishing as they have provided an alternative means of investigating epidemic outbreaks in a small populations coupled with better elucidating of the transmission dynamics of epidemic outbreaks in the early stages of an epidemic outbreak, insinuating the robustness of the deterministic model with respect to stochastic perturbations [5]. Kiouach and Omari [6], considered an epidemic model of type SIRS and the stability of the interior equilibrium point was discussed. The model was modified to stochastic version and the stability properties of the stochastic model were investigated. Maroufy et al [7], studied a classical model of a SIRS epidemic in an open population. They deduced an explicit formula by which the lower bound of the density of the infective can be computed. The Model was then extended to stochastic version and Lyapunov functional was employed to investigate the global stability of both the deterministic and the stochastic model. Lahrouz et al [8], presented an epidemic SIRS model with saturated incidence rate and disease-inflicted mortality. The model was modified into stochastic version and the global stability of the models were studied using the tool of Lyapunov function. Further, the global existence and positivity of the solution was verified as well as the global stability in probability proved under suitable condition by the perturbation of white niose. Murkherjee [9], considered deterministic and stochastic models for prey-predator system where the prey population is infected by micro parasite. The stochastic stability properties of the models were investigated which suggested the robustness of the deterministic model to stochastic fluctuations. Clancy [10], formulated a stochastic SIS epidemic model for transmission of infectious disease through a population, considering direct host-host transmission and indirect transmission through free-living infectious stages. Guoting and Tiecheng [11], investigated a stochastic version of the SIR model. The stability in probability of the steady state of the system was proved under favorable conditions with white noise perturbations. Mukherjee et al [12], studied the behaviour of a plant herbivore for both discrete and continuous model with stochastic perturbation. The existence and stability of two fixed points were investigated which suggested local asymptotic stability in probability for the stochastic model for certain strengths of white noise. Bifurcation diagrams and time series plots were obtained for the model.

Entrenched in these works are devotees of outstanding achievements and contributions towards scientific community on the mathematical modeling of infectious diseases. In this section, the dynamics of deterministic model of malaria disease and its stochastic variant are presented. The stochastic version of the model is derived by introducing random perturbation to the equations of system (1). Numerical examples are provided to illustrate the explicit differences between the deterministic model and the stochastic system.

The Stochastic Epidemic Model Formulation

The stochastic model of the deterministic system (1) is obtained by introducing stochastic perturbations in the main parameters of the deterministic system. Thus we permit stochastic perturbations of the variables SH,EH,IH,RH,SV,EV,IV aroundtheir values at positive equilibrium E [13-15]. Further, we assume that the white noise of the stochastic perturbations of the variable around values of E are proportional to the distancesSH,EH,IH,RH,SV,EV,IV from SE*,EE*,IE*,RE*,SV*,EV*,IV* Hence, the stochastic version of model (1) is given by




dRH=[γHIH-(ρH+δH)RH]dt+Q4(RH-RH*)dB4        (1)       




With Qi , for = 1, 2 … … … 7 are real constants and Bi = 1, 2, 3, 4, 5, 6, 7 are independent wiener processes.

Numerical Method for SDEs-Euler-Maruyama

This section focuses on stochastic modeling application and numerical simulations of trajectories. The work employs the fundamental works which allow the development of effective numerical methods for stochastic differential equations (SDEs), as well as providing the basic information necessary to understand the nature of SDEs and how to stimulate them by using the tool of EulerMaruyama method [16-18]. The method has been proved to have a strong global convergence under the assumption that the stochastic differential equation is locally Lipschitz and that the moment of the exact and numerical solution are bounded for some p > 2.

Consider a scaler, autonomous SDE in integral form

X(t)=X0+0tf(s,x(s))ds+0tg(s,x(s))dw(S),0tT      (2)
Where f and g are scaler functions and the initial condition X0 is a random variable.

If x(t) is the solution to (2), then the solution x(t) is a random variable that arises when we take the zero step size limit in the numerical sense. Hence, the differential equation form of (2) can be written as

dx(t)=f(t,x(t))dt+g(t,x(t))dw(t),with X(0)=0 t T         (3)

Now, from equation (3), if g= 0 andis constant, then the problem becomes deterministic and (3) reduces to autonomous ordinary differential equation

dx(t)dt=f(t,x(t)), with X(0)=x0               (4)                              

Applying Euler-Maruyama method to (3) over (0, T), we first discretize the interval by letting Δt=TL

for some positive integer L and  Tj=jΔt. Hence, our numerical approximation to X(T)j will be denoted by Xj. Therefore, the Euler Maruyama (EM) method becomes

Xj=Xj-1+f(Xj-1)Δt+g(Xj-1)(W(Tj)-W(Tj-1)), for j=1,2,......L       (5)

Equation (5) arises from the integral form

X(Tj)=X(Tj-1)+Tj-1Tjf(s, x(s))ds+Tj-1Tjg9s, x(s)dw(s)             (6)

Further, equation (6) reduces to Euler’s method when g = 0 and X0 is constant (see [19-21]).

Numerical Examples and Discussion

Here, we illustrate with figures the dynamics of the deterministic and stochastic systems, and gives an explicit difference in the models by carrying out numerical simulation for hypothetical set of parameter values. To demonstrate the differences, we simulate the stochastic and the deterministic systems by using the set of parameter values in Table 1. To confirm the deterministic plots, we choose arbitrary white noises  Q1,Q2,Q3,Q4,Q5,Q6 and Q7 of equal strength 0.5, and shows the fluctuations in the trajectories of the stochastic system. We can see that the trajectories of the stochastic plots displayed are the same as the trajectories of the deterministic model during a finite time frame. This suggest that even though fluctuation occurs, they result in the same behavior as the deterministic one. The deterministic approach has limitations that the stochastic handles in a more realistic way. Thus, the deterministic model gives the same results any time the simulation is run with the same parameter and initial values. This might be mathematically correct, however, this is not the case in real epidemic situation, as there may be many parameters which we cannot not model entirely realistically. Modelling them deterministically, we lose some of the complexity of the system. Hence, it is appropriate to assume a stochastic perturbation. Hence, the differences in the dynamics of the models are given by the Figures 1-12.

Table 1: Description of variables and parameters of the Malaria Model (1)


Figure 1: The plot represents population of Susceptible Human


Figure 2: Stochastic plot of susceptible Human


Figure 3: The plot represents population of Exposed Human


Figure 4: Stochastic plot of Exposed Human


Figure 5: The plot represents population of Infected Human


Figure 6: Stochastic plot of Infected Human


Figure 7: The plot represents population of Susceptible Mosquito 

Figure 8: Stochastic plot of Susceptible Mosquito

Figure 9: The plot represents population of Exposed Mosquito

Figure 10: Stochastic plot of Exposed Mosquito 

Figure 11: The plot represents population of Infected Mosquito

Figure 12: Stochastic plot of Infected Mosquito


In this section, the dynamics of the deterministic malaria model with standard incidence rate and its stochastic version are presented. The stochastic version of the model was constructed by employing stochastic fluctuations in the main parameter of the deterministic model. Our main purpose of the study was to investigate the dynamics of the deterministic and stochastic systems, by giving numerical examples to illustrate the explicit difference in the models. The numerical simulations for the models show that the trajectories of the stochastic plots were the same as the trajectories of the deterministic model. Further, from the stochastic plots, the simulations show an initial random fluctuation of the stochastic trajectories, until they eventually approach asymptotic level. The numerical example shows that the stochastic system is globally asymptotically stable in probability when the densities of white noise are less than certain threshold parameters. However, if these densities of white noise are zero, it means there are no stochastic environmental factors on the population and hence no stochastic perturbation. 


  1. Kunita H. Stochastic flows and stochastic differential equations. Cambridge Studies in Advanced mathematics. 1990; 24; Cambridge University Press.
  2. Brauer F, Van den DP, Wu J. Mathematical Epidemiology. Mathematical Biosciences subseries. Springer-Verlag Berlin Heidelberg; 2008. 
  3. Linda JSA. An Introduction to Stochastic Epidemic models. Department of Mathematics and Statistics. Texas Tech University, Lubbock, Texas. 2008; 79409-1042. 
  4. Burrage K, Burrage PM, Tian T. Stochastic Analysis with Applications to mathematical Finance. Mathematical, Physical and Engineering Sciences. 2004; 460: 373-402.
  5. Isham V. Assessing the variability of Stochastic epidemics. Math Biosci. 1991; 107: 209-224. 
  6. Kiouach D, Omari L. Stochastic Asymptotic Stability of a SIRS Epidemic Model. Eur J Sci Res. 2008;24:575-579. 
  7. Maroufy H El, Lahrouz A, Leach P. Qualitative Behaviour of a Model of an SIRS Epidemic. I J Appl Math Inf Sci. 2011;5:220-238. 
  8. Lahrouz A, Omari L, Kiouach D. Global analysis of a deterministic and stochastic nonlinear SIRS epidemic model. Nonlinear Analysis: Modelling and Control. 2011; 16: 59-76. 
  9. Mukherjee D. Stability analysis of a stochastic model for prey predator system with disease in the Prey. Nonlinear Analysis: Modelling and Control. 2003; 8: 83-92. 
  10. Clancy D. A Stochastic SIS Infection Model Incorporating Indirect Transmission. J Appl Prob. 2005; 42: 726-737. 
  11. Guoting C, Tieching L. Stability of Stochastic Delayed SIR model. Stochastic and Dynamics. 2009; 9: 231-252. 
  12.  Mukherjee D, Das P, Kesh D. Dynamics of a Plant-Herbivore Model with Holling Type II Functional Response. Computational and Mathematical Biology: Concept Press Ltd. 2011; 2: 1-11.
  13. Das P, Mukherjee D, Hsieh YH. An S-I epidemic model with saturation incidence: discrete and stochastic version. Int J Nonlinear Anal Appl. 2011; 1-9. 
  14. Liu XQ, Zhong SM, Tian BD, Zheng FX. Asymptotic properties of a stochastic predator-prey model with Crowley-Martin functional response. J Appl Math Comput.2013; 43: 479-490. 
  15. Adnani J, Hattaf K, Yousfi N. Stability Analysis of a Stochastic SIR Epidemic Model with Specific Nonlinear Incidence Rate. I J Stochastic Anal. 2013; 2013: 1-4. (Ref)
  16. Higham DJ, Mao X, Stuart A. Strong convergence of Euler-type methods for non-linear stochastic differential equations. SIAM J Numer Analysis. 2002; 40: 1041-1063.
  17. Platen E. An introduction to numerical methods for stochastic differential equations. Acta Numerica.1999; 8: 197-246. 
  18. Kloeden PE, Platen E. Numerical solution of stochastic differential equations. Springer; 1992. 
  19. Higham DJ. An Algorithmic Introduction to Numerical Simulation of Stochastic Differential Equations. SIAM. 2001; 43: 525–546. 
  20. Maruyama G. Continuous Markov processes and stochastic equations. Rend Circ Mat Palermo. 1955; 4: 48-90. 
  21. Burrage K, Burrage PM. Order conditions of stochastic Runge Kutta methods by B-series. SIAM J Numer Analysis. 2001; 38:1626-1646.