Skip to main content

Some mathematical models on epidemiology / Covid-19 infections

Project description

Python package for epidemiological models relevant to modeling Covid-19 infections

Pre-requisite: Python 3.6 and above

To run the following models, execute (from the top-level covimath directory):

  • SIS model: python3 -m covimath.models.sis N=1000 lambda=0.05 mu=0.15 gamma=0.1 I0=1 tau=30
  • SIR model: python3 -m covimath.models.sir N=1000 I0=1 R0=0 beta=0.2 gamma=0.1 tau=150
  • SEIR model: python3 -m covimath.models.seir N=1000 E0=1 I0=1 R0=0 beta=1.38 sigma=0.19 gamma=0.34 tau=150
  • SEIRD model: python3 -m covimath.models.seird N=1000 E0=1 I0=1 R0=0 D0=0 beta=1.38 sigma=0.19 gamma=0.34 mu=0.03 tau=150

To run the tests, from the top-level covimath directory, run: pytest

A simple method to estimate beta for SIR model has been provided.

Example code can be found in a gist.

Installation: To install this package, run: pip3 install covimath

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

covimath-0.1.2.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

covimath-0.1.2-py3-none-any.whl (15.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page