Opening the book…
Instead of using the discrete markov model, we can also use a continuous model with ordinary differential equations.
For example, we have that
\[\dot{x}_1 = {dx_1(t)\over dt} = -0.05x_1(t)+ 0.04 x_2(t) \nonumber \]
It means that the changes in the susceptible group depends on susceptible and infected individuals. It increase because of the recovered people from infected ones and it decreases because of the infection.
Similarly, we have the equations for all three groups.
\[\dot{x}_2 = {dx_2(t)\over dt} = 0.05x_1(t)-0.17 x_2(t) \\
\dot{x}_3 = {dx_3(t)\over dt}= 0.1 x_2(t) \\
\dot{x}_4 = {dx_4(t)\over dt} = 0.03 x_2(t) \nonumber \]
We can write it as system of ODEs as \(\dot{x}(t) = Bx(t)\). Write down the matrix \(B\) in numpy.matrix
Plot all the distribution for 200 days. Then compare it with the discrete version.
This page titled 32.2: Epidemic Dynamics - Continuous Model was last modified on Sat, 17 Sep 2022 15:14:35 GMT and is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by Dirk Colbry via source content that was edited to the style and standards of the LibreTexts platform.
The book could not be loaded just now.