HYY Home


Hao-Yang Yen



Experience

Learning

Research

Explore

Extended SIR Models with Monte Carlo Simulations

  • Abstract
  • A simple differential equation used to describe virus spread in space, S represent susceptibility, I represent infectious, and R represent recover, α and γ are infectious and recovery rate.

    \(\displaystyle\frac{dS}{dt}=-\alpha S I\)

    \(\displaystyle\frac{dI}{dt}=\alpha S I-\gamma I\)

    \(\displaystyle\frac{dR}{dt}=\gamma I\)

    These relations are described by a differential equations system. Definitely, we can employ numerous kinds of numerical method to sovle these differentional equations. We can get the result like:

    A well-known numerical result of the SIR model.


    This model presently incorporates only three variables. To create a more comprehensive model, additional variables can be introduced. For instance, the SEIR model includes an "exposed" variable (E), which adds another layer of detail. However, incorporating more variables inevitably increases the model's complexity. This complexity not only makes the differential equations more intricate but also complicates the algorithms required to solve them. To handle the challenges posed by these complex equations, we employ the Monte Carlo method. This technique allows us to simulate the system more effectively by approximating the solutions to multiple differential equations. By using Monte Carlo simulations, we can bypass the difficulties of solving complex differential equations directly, thus obtaining clearer and more interpretable results.

  • Modeling
  • To model these equations in the probability form, we have the following assumptons Then we can view the individuals as lattices in the space. Thus, the differential equations model changes to the probability model as the figur demonstrating.


    The \(S\) lattice spreads to the nearest lattices with probability corresponding to \(\alpha\) and \(I\) lattice changes to the \(R\) lattice with probability corresponding to \(\gamma\). This model can be easily generalized to other models.

  • SIR Model
  • We first simulate the simplest epidamic model \(SIR\) model first.

    Diffusion in 2-D Space (\(S=0,E=1,I=2,R=-1,Q=-2\)) and the corresponding number of individuals.

    We can see that the result is similar to that computed by solving differential equations.

    Comparison of numerical results of differential equations and Monte Carlo methid.


  • SIR+Q Model
  • Adding quarantine term, now infectious may get quarantine and cannot contagious susceptibility With different quarantine strength it may affect the result differently. Note that \(I\) may get recovery directly instead go to quarantine.

    \(\displaystyle\frac{dS}{dt}=-\alpha S I\)

    \(\displaystyle\frac{dI}{dt}=\alpha S I-\gamma I-\delta I\)

    \(\displaystyle\frac{dQ}{dt}=\delta I-\omega Q\)

    \(\displaystyle\frac{dR}{dt}=\gamma I+\delta I+\omega Q\)

    Diffusion in 2-D Space (\(S=0,I=2,R=-1,Q=-2 \)) and the corresponding number of individuals.

    Diffusion in 2-D Space (\(S=0,I=2,R=-1,Q=-2 \)) and the corresponding number of individuals.

  • SEIR+Q Model
  • Adding expose term, now susceptibility will convert to expose first, then go to infectious. In expose, it can still affect susceptibility and won’t be target as quarantine.

    \(\displaystyle\frac{dS}{dt}=-\alpha S E-\tau SI\)

    \(\displaystyle\frac{dE}{dt}=\alpha S E+\tau SI-\beta E\)

    \(\displaystyle\frac{dI}{dt}=\beta E-\gamma I-\delta I\)

    \(\displaystyle\frac{dQ}{dt}=\delta I-\omega Q\)

    \(\displaystyle\frac{dR}{dt}=\gamma I+\delta I+\omega Q\)

    Diffusion in 2-D Space (\(S=0,E=1,I=2,R=-1,Q=-2\)) and the corresponding number of individuals.

  • SEIRS+Q Model
  • Finally consider now recover may have chances to get contagious only their anti-body decrease to certain value, we can let remove get back to susceptibility.

    \(\displaystyle\frac{dS}{dt}=-\alpha S E-\tau SI+\mu R\)

    \(\displaystyle\frac{dE}{dt}=\alpha S E+\tau SI-\beta E\)

    \(\displaystyle\frac{dI}{dt}=\beta E-\gamma I-\delta I\)

    \(\displaystyle\frac{dQ}{dt}=\delta I-\omega Q\)

    \(\displaystyle\frac{dR}{dt}=\gamma I+\delta I+\omega Q-\mu R\)

    Diffusion in 2-D Space (\(S=0,E=1,I=2,R=-1,Q=-2\)) and the corresponding number of individuals.

    Diffusion in 2-D Space (\(S=0,E=1,I=2,R=-1,Q=-2\)) and the corresponding number of individuals.

  • Camparison
  • Here we plot everyday who got virus of our simulation with actual data in taiwan, unfortunately the they delete all data in the previous part of epidemic, but we can still see the plot looks similar. The most difference is that the some part of our simulation, they would be no people got virus, whereas in reality everyday people would get virus. In simulation everyone will get virus at first outbreak, whereas in reality aren’t. lso, there are too many factor in reality and may not be well to quantify.

    Diffusion in 2-D Space (\(S=0,E=1,I=2,R=-1,Q=-2\)) and the corresponding number of individuals compare with the real data in Taiwan.

  • Conclusion