sir_ode
sir_ode,
an Octave code which
sets up a system of ordinary differential equations (ODE) which
simulate the spread of a disease
using the Susceptible/Infected/Recovered (SIR) model.
We consider the evolution of a disease epidemic in a population of
N people.
We assume that the patients can be classified as Susceptible, Infected or
Recovering, with the properties that:
-
Susceptible: A patient who has never been infected with the
disease. A susceptible patient can get the disease, controlled by
a transmissibility coefficient beta.
-
Infected: A patient who was susceptible, and has now contracted
the disease. Infected patients spread the disease to susceptible
patients. An infected patient can recover, with recovery
coefficient gamma.
-
Recovered: A patient who was infectious, but has recovered.
Such patients cannot contract the disease, and cannot transmit it.
Licensing:
The information on this web page is distributed under the MIT license.
Languages:
sir_ode is available in
a MATLAB version and
an Octave version and
a Python version..
Related Data and codes:
sir_ode_test
octave_ode,
an Octave code which
sets up various ordinary differential equations (ODE).
sir_simulation,
an Octave code which
simulates the spread of a disease through a hospital room of M by N beds,
using the Susceptible/Infected/Recovered (SIR) model.
Reference:
-
Dianne OLeary,
Models of Infection: Person to Person,
Computing in Science and Engineering,
Volume 6, Number 1, January/February 2004.
-
Dianne OLeary,
Scientific Computing with Case Studies,
SIAM, 2008,
ISBN13: 978-0-898716-66-5,
LC: QA401.O44.
Source Code:
Last revised on 04 August 2020.