Home

Awesome

<h1 align="center">Covid Severity Forecasting</h1> <p align="center">Data and models (updated daily) for forecasting COVID-19 severity for individual counties and hospitals in the US. The data includes confirmed cases/deaths, demographics, risk factors, social distancing data, and much more. </p> <p align="center"> Table of contents </br> <a href="#overview">Overview</a> • <a href="#quickstart-with-the-data--models">Quickstart</a> • <a href="#acknowledgements">Acknowledgements</a> </br> Resources </br> <a href="./data/county_data_abridged.csv">Data csv</a> • <a href="https://arxiv.org/abs/2005.07882">Paper</a> • <a href="http://covidseverity.com/">Website</a> • <a href="http://covidseverity.com/docs">Modeling docs</a> • <a href="https://github.com/Yu-Group/covid19-matching">Dashboard code</a> </p>

Overview

Note: This repo is actively maintained - for any questions, please file an issue.

Quickstart with the data + models

Can download, load, and merge the data via:

import load_data
# first time it runs, downloads and caches the data
df = load_data.load_county_level(data_dir='/path/to/data') 

To get deaths predictions for our current best-performing model, the simplest way is to call the add_preds function (for more details, see ./modeling/readme.md)

from modeling.fit_and_predict import add_preds
df = add_preds(df, NUM_DAYS_LIST=[1, 3, 5]) # adds keys like "Predicted Deaths 1-day", "Predicted Deaths 3-day"
# NUM_DAYS_LIST is list of number of days in the future to predict

Related county-level projects

Acknowledgements

The UC Berkeley Departments of Statistics, EECS led by Professor Bin Yu (group members are all alphabetical by last name)

To reference, please cite the paper:


@article{altieri2020Curating,
  journal = {Harvard Data Science Review},
  doi = {10.1162/99608f92.1d4e0dae},
  note = {https://hdsr.mitpress.mit.edu/pub/p6isyf0g},
  title = {Curating a COVID-19 Data Repository and Forecasting County-Level DeathCounts in the United States},
  url = {https://hdsr.mitpress.mit.edu/pub/p6isyf0g},
  author = {Altieri, Nick and Barter, Rebecca L and Duncan, James and Dwivedi, Raaz and Kumbier, Karl and Li, Xiao and Netzorg, Robert and Park, Briton and Singh, Chandan and Tan, Yan Shuo and Tang, Tiffany and Wang, Yu and Zhang, Chao and Yu, Bin},
  date = {2020-11-03},
  year = {2020},
  month = {11},
  day = {3},
}