Skip to main content

Orstein-Uhlenbeck pandemic simulation

Project description

Pandemic

An agent model in which commuting, compliance, testing and contagion parameters drive infection in a population. Agents follow OU drift processes on the plane. Viral load is estimated from geohashing. A population of 5,000,000 or so can be used without computational issue, although the default parameters for city generation assume something closer to 40,000.

Usage

The author is not an epidemiologist. There is nothing sacrosanct about the default parameters.

pip install pandemic
>> from pandemic import run
>> run()

There are a few example of modifying the parameters in pandemic.main

Basic elements of the model

Covered in this post with the followup here where possible improvements are also discussed and acknowledgements are made.

Contributing

Opinions and issues are most welcome.

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

pandemic-0.3.4.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pandemic-0.3.4-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file pandemic-0.3.4.tar.gz.

File metadata

  • Download URL: pandemic-0.3.4.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for pandemic-0.3.4.tar.gz
Algorithm Hash digest
SHA256 2992f6e9f2e5faafd64959a5bd37fa6c4fa1264d0ad6c1097b24c4d29a1fb93d
MD5 c4f1eb90fddaf0843315c1601ac1e6be
BLAKE2b-256 edc7f6114cf1c6cbddd9414458be8e55de0b464d2111f25af33a985e289346ae

See more details on using hashes here.

File details

Details for the file pandemic-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: pandemic-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for pandemic-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f7bcb278843aef124a3d7d0f13c9da3a5ce22adb524cf646f0e6da432a1ab86d
MD5 a7f23d3836b716a94552e47b39597433
BLAKE2b-256 2a63282910b1fb5950508ab049a53d72618f81ea46f17d968fb86d8334edb1b8

See more details on using hashes here.

Supported by

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