Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

madhurima-nath/epi_model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains codes for simple SIR model (no births, no deaths). It has a compartmental model (both in python and R) and one for SIR simulation. The files will do some basic plots for the number of people infected, recovered as well. The SIR simulations will generate epidemic curves.

The simple SIR compartmental model can be expressed as the following set of equations:

This model was proposed by Kermack and McKemndrick. The three variables - S(t), I(t) and R(t) - represent the number of people in each compartment, susceptibles, infected and recovered, at a particular time. Also, the total population size N remains constant. It follows that

Further, the dynamics depends on the ratio

which is called the basic reproduction ratio.

References

  1. Contributions to the mathematical theory of epidemics--I. 1927, Kermack WO, McKendrick AG.

This folder contains comparison of different network models for epidemic outbearks on a Jupyter notebook.