AgustinPardo / epidemyPy

Susceptible, infectious and recovered compartmental model to simulate the spread of a epidemy in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Github all releases

epidemyPy

SIR(Susceptible, Infectious, Recovered) compartmental model in epidemiology

The system can be expressed by the following set of ordinary differential equations:

where S is the stock of susceptible population, I is the stock of infected, R is the stock of recovered population, and N is the sum of these three.

The system don't have so-called vital dynamics (birth and death).

This is an example of the output running:

python3 sir.py

With beta 0.2, gamma 0.1 (Basic reproduction mumber, R0=2), initial N of 1.10E6 of population and 1 infected as starting point:

alt text

About

Susceptible, infectious and recovered compartmental model to simulate the spread of a epidemy in python


Languages

Language:Python 100.0%