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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file covimath-0.1.2.tar.gz.

File metadata

  • Download URL: covimath-0.1.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.8

File hashes

Hashes for covimath-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0ed98c3039ad6329290c91c23414c8cf5fa0607aaac97e3de2291bf351b0a710
MD5 01be4126a0a829cad4392c29863ab295
BLAKE2b-256 9e10a38b6ea5fe82ecb22932cf8e0e5a10335d000f4bec39c8d0629924522957

See more details on using hashes here.

File details

Details for the file covimath-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: covimath-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.8

File hashes

Hashes for covimath-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2643dbd90e18feb9a91efc3d701e067586994921e9d7d6f73b0e4aec6c03c132
MD5 f23e3065938de578a77daf4daca08286
BLAKE2b-256 63c3c6c7793f1b01b2ef23bb5cf9a13b645b97a3096bf1fdafc19bf5d03391aa

See more details on using hashes here.

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