Coder Social home page Coder Social logo

covid19simulation's Introduction

covid19simulation

Intro

This project contains a small simulator for epidemic outbreaks and progress.

Installation

You first need to install python3. Then install numpy using "pip install numpy". Then do a git clone of the repository.

Configuration

The simulation is highly configurable. To understand you first need to take a look at the state diagram which is available as a Open Office Doc in the repo.

The configuration of the simulation is done directly in the code so far and provided as an bunch of arrays as parameters of the constructor for the simulator class.

The parameters are described in the code.

the parameters can be an array with just one field, if you would like to do the simulation for the whole population with the same params.

If you specify multiple values in each array, these values represent the parameter for one segment of the population, e.g. all elderly people or all people which have a different risk of dieing.

The examples included have parameters defined for a simulation of switzerland and the simulation for the wuhan out break of covid 19 with 2 groups of people defined, the index 0 is for people with high risk of dieing, the index 1, for poeple with low risk of dieing.

First Results

The simulation done with the simulation starting date 23/03/2020 and the paramters defined on 27/03/2020 seem to reproduce the accurate number of deaths and cases up to 01/04/2020 for Switzerland (Schweiz).

Second Wave Results

This simulation done for switzerland with starting date 26/07/2020. The most recent values of the federal office of public health (https://www.bag.admin.ch/) and some additional data of studies of https://www.corona-immunitas.ch/ were used to create the model.

covid19simulation's People

Contributors

adoerzbach avatar

Stargazers

 avatar

Watchers

 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.