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.1.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

pandemic-0.3.1-py3-none-any.whl (18.1 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