arena-tools / covid-public Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hey all,
Very cool work here - definitely useful to have a dashboard that compares multiple models to one another. The phase space model is a very interesting way of looking at things! I actually started to play a bit with visualization of this type the other night.
A quick breakdown of some concerns with the models.
You're using a Kermack-McKendrick model, the simplest form of SIR model out there. It feels like more of a toy model to be illustrative than anything else, but I'll note at the least that:
Both of these models are predicated on the idea that deceleration continues; i.e. that the measures are effective in eventually bringing r0 below 1 and that those measures are not let up at any point in the future. Carl Bergstrom has several pretty good breakdowns of the weaknesses of these types of models:
https://twitter.com/CT_Bergstrom/status/1245618003711946753
https://twitter.com/CT_Bergstrom/status/1247645708741566465
https://twitter.com/CT_Bergstrom/status/1246957709682806785
tldr; while case counts / death counts may be decelerating, there is no reason to assume that that deceleration will continue (or acceleration will not start) unless the herd immunity is reached.
In China we've already seen cases where relaxation of lockdown results in a new acceleration in cases - the danger in using these models as a 'peak' forecaster is that they assume that the mitigation measures completely eradicate the epidemic or that those mitigation measures are never relaxed.
While purely statistical models are useful (and should definitely be developed in combination with the mechanistic ones), we need to be careful that assumptions made in the statistical models don't violate the underlying mechanics or otherwise limit the possible outcomes in unrealistic ways. Imports (and travel policy) make a huge difference here. This can be seen directly with Connecticut and New Jersey, but a few new case injections into an area that has been social distancing mildly but not had any imports recently (and thus looks like it is doing well at controlling growth) could have a drastically different trajectory after a few imports or a single super-spreader.
Hello! Thanks for providing these models. I was wondering if you could provide an example of the predict function? When inputting any range of times into the future, I get the following error?
ValueError: operands could not be broadcast together with shapes (1,) (23,) (1,) (157,) (23,) (23,)
Where I've input [0,23] initial data points for fitting, and have input [0,180] t values for prediction. I expect I am misunderstanding how the predict function ingests it's inputs, but would simply a full example! Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.