Coder Social home page Coder Social logo

missoula-covid19-website's Introduction

Missoula/Montana Covid-19 Website

www.missoulacovid19.com

Dependencies

  • Python 3.7.3
  • scipy
  • pandas
  • numpy
  • streamlit
  • altair

see requirements.txt for versions

Data sources

New York Times

Montana State Library

Manual labor

In order to get this app running quickly I have not fully automated everything, therefore, it takes a bit of manual labor to update. Here are the current steps I take:

  1. At 4:30 pm the State updates the daily Covid-19 case totals. I add these values to the /data/mt_coronavirus_status.csv file. This file is only used for the latest data because the NYT data seems to lag by 2 days.

  2. I then run the runsir.py file locally which runs the SIR model and saves the results in .csv files. It also archives old model results locally so that we can look back at our predictions at a later date.

  3. I spend a bit of time tuning the model to make sure we get realistic solutions. Because it is still early and the signal is not strong (especially in Missoula) you can get some funky results.

  4. Once I like the model, I run runsir.py one more time to save the preferred model results to the repository.

  5. Commit the changes.

  6. Push to Heroku

The model

Currently, I am using N=10000 for Montana and N=1000 for Missoula and Gallatin counties. Betas and gammas will be reported on the website in future versions.

The code was adapted (hijacked) from the great work of Lewauathe and their blog post. Thank you!

TODOS

  • Add uncertainty to the model
  • Report and interpret peak timing, peak magnitude, beta, gamma, R_0 and HIT from the model results.
  • Add previous model runs
  • Add other (all) counties in Montana
  • Improve model: Li et al. 2020

missoula-covid19-website's People

Contributors

nicksilver 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.