Giter Site home page Giter Site logo

nicholas-chong / covid-19-simulator Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 42.76 MB

A visualization of disease spread during a pandemic situation.

Home Page: https://www.canada.ca/en/public-health/services/diseases/coronavirus-disease-covid-19.html

License: MIT License

Python 100.00%

covid-19-simulator's Introduction

Pandemic Simulator (COVID-19)

Self-isolation and “Social Distancing” are terms that have become synonymous with the spread of COVID-19. Numerous governments and health organizations, such as the CDC, have stated that Self-isolation is crucial to stopping the spread of COVID-19; if people are not in close proximity to each other, there is little chance of the virus spreading. Furthermore, self-isolation will help alleviate stress from burdened ICU units, ensuring that everyone who may eventually need critical care will be able to get it.

This program dynamicaly visualizes the beneficial effects of Social Distancing and self-isolation and how simple steps taken by individuals can have a large impact on the crisis at hand. The simulation is based off the SIR model, in which individuals are categorized into 4 groups: Infected, Recovered, Susceptible.

Those who have been infected, then recovered cannot contract the infection again, nor can they infect other people after they have recovered.

Ledgend

Red - Susceptible

Blue - Infected

Green - Recovered

Simulation 1: No Self-Isolation

Peak # of People Infected: 51

This model simulates a population in which no one is practicing self-isolation. The rise in infections is sharp and sudden. This scenario, similar to what has occurred in Italy, is the type of scenario that would overrun healthcare systems. Because the number of total infections is so high, there is not enough room in hospitals to accommodate everyone that needs care. The overburdened healthcare system ultimately results in high death rates.

Simulation 2: 25% in Self-Isolation

Peak # of People Infected: 39

This scenario simulates a population in which 25% of people are practicing self-isolation. The peak number of people infected during this pandemic simulation is considerably lower than that of Simulation 1.

Simulation 3: 50% Population in Self-Isolation

Peak # of People Infected: 35

The third simulation results in an even lower peak. Furthermore, the number of infected people is 0 at the approximate time of 800. Increased self-isolation has resulted in a lower peak and an earlier end to the pandemic!

This simulation is not intended to overrule any medical/professional advice. Rather, the purpose is to visualize the importance of Social Distancing and Self-isolation. For the most up to date statistics and advice, visit the CDC website!

To run the simulation yourself, download the "simulation" file and open on your own computer. A console will open, where you can enter your own parameters. Once the simulation is complete, you can save the resuling image through the given GUI.

covid-19-simulator's People

Contributors

nicholas-chong avatar

Stargazers

Guido Cioni avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.