Skip to main content

Pandemic

An agent model in which commuting, compliance, testing and contagion parameters drive infection in a population of thousands of millions. Agents follow Ornstein-Uhlenbeck processes in the plane and collisions drive transmission. Results are stored at SwarmPrediction.com for further analysis, and can be retrieved by anyone.

Motivaton

Covered in this post with the followup here where possible improvements are also discussed and acknowledgements are made. See also the SwarmPrediction.Com list of articles. The author is not an epidemiologist. The model expresses no opinions on the health aspects of COVID-19. The model offers a novel motion model with some interesting analytic properties also discussed in the article referenced above and presented in a more technical working paper shared on Overleaf.

Basic Usage

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

See also examples of library use and examples of using the public database of simulations generated by this model.

Other entry points.

  • pandemic.simulation.simulate is the main routine
  • pandemic.client offers an alternative in object oriented style

Modifying

See pandemic/client.py for examples of extending the newer style to include data storage, lockdown and so forth.

Docker

Pandemic can be run in a docker container.

docker run xtellurian/pandemic

Crowd-sourced surrogate model

See SwarmPrediction.com for an explanation of a SETI-like project to crowd-source a surrogate model.

Basic elements of the model

Covered in detail in this article. As noted some analytical properties of special cases of the model are discussed in a working paper.

Contributing

Opinions and issues are most welcome.

Metadata

Release files for pandemic 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pandemic 0.4.4
File Size Uploaded
pandemic-0.4.4.tar.gz 17.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pandemic 0.4.4
File Interpreter ABI Platform
pandemic-0.4.4-py3-none-any.whl Python 3 none any Details

Total release size: 39.2 kB

Release files / pandemic-0.4.4.tar.gz

Download URL pandemic-0.4.4.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
858d1c27f279c6b95fb0d020738a8767e69ff106ad37c220212b13389c0334a1
BLAKE2b-256 checksum
How to use checksums
afb6e7fb66502bfcfb4a72a3179660e0843a20941c017b50e9b78be0a804fd01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

Release files / pandemic-0.4.4-py3-none-any.whl

Download URL pandemic-0.4.4-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fa3a1ca1eace677f698b7dc6e48dad3d4734d03dae3c7cf57035d2f8146e5d5
BLAKE2b-256 checksum
How to use checksums
54d7bf30ce40ae4447a6abdd920d96d8b39ee567a27790d4da5dcbf59da30ca3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

Release history Release notifications | RSS feed

This release

0.4.4 This release

2 release files

0.3.13

2 release files

0.3.12

2 release files

0.3.11

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page