GithubHelp home page GithubHelp logo

aquilescool / covid19-correlations-forecast Goto Github PK

View Code? Open in Web Editor NEW

This project forked from remingm/covid19-correlations-forecast

0.0 1.0 0.0 23.32 MB

Web app with interactive forecasts based on correlations

Home Page: https://share.streamlit.io/remingm/covid19-correlations-forecast/main.py

Python 100.00%

covid19-correlations-forecast's Introduction

Interactive Covid-19 Forecast and Correlation Explorer

immunity.png

screenshot-ifr.png

Screen Shot 2020-12-26 at 12.06.43 PM.png

How is this forecast made?

This forecast is a weighted average of correlated variables. shift is the number of days a is shifted forward, and r is the Pearson correlation coefficient between shifted a and b.

table.png

The model searches every combination of a, b, and shift for the highest r values. Only correlations >0.5 are used. r is used to weight each component of the forecast, and each component is scaled and aligned to the forecasted variable b. The forecast length is the average shift weighted by the average r.

Ordinary Least Squares regression is also used to scale each series from the a column as well as the final forecast.

You can choose two variables and see if they are correlated.

Infection fatality rate is calculated using the formula described by https://covid19-projections.com/estimating-true-infections-revisited.

Data is pulled daily from https://covidtracking.com

Mobility data is from google.com/covid19/mobility

To Do

  • Score forecasts with MSE or other metric

  • Feed correlated variables into ML regression model for forecasting

  • Add Google mobility data

  • Add data from https://rt.live

  • PCA, cluster, and TSNE plot different states - In progress

  • ARIMA forecast

  • Try using cointegration instead of correlation

  • Cleanup code

  • Intra-state correlations

covid19-correlations-forecast's People

Watchers

James Cloos 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.