44 points · by vackosar · 6y ago · 59 comments
#!/usr/bin/gawk -f
BEGIN {
# Data as of 2020-1-28
doublerate = 1.71
dailyrate = 2/doublerate
cases = 6063
deaths = 132
now = mktime( "2020 01 28 00 00 00" )
maxdays = 14
interval = 1
printf( "| %3s | %-12s | %12s | %14s |\n", "day", "date", "deaths", "cases" )
printf( "|%-5s|%14s|%14s|%16s|\n", ":---", "------------:", "------------:", "-------------:" )
for(day=1; day<=maxdays; day+=interval ) {
date = strftime( "%b %d, %Y", now + day * 86400 )
printf( "| %3i | %-12s | %'12i | %'14i |\n", day, date, deaths * (dailyrate^day), cases * (dailyrate^day) )
}
printf( "\n\n" )
maxdays = 100
interval = 7
printf( "| %3s | %-12s | %12s | %14s |\n", "day", "date", "deaths", "cases" )
printf( "|%-5s|%14s|%14s|%16s|\n", ":---", "------------:", "------------:", "-------------:" )
for(day=1; day<=maxdays; day+=interval ) {
date = strftime( "%b %d, %Y", now + day * 86400 )
printf( "| %3i | %-12s | %'12i | %'14i |\n", day, date, deaths * (dailyrate^day), cases * (dailyrate^day) )
}
printf( "\n" )
} | day | date | deaths | cases |
|:--- | ------------:| ------------:| -------------:|
| 1 | Jan 29, 2020 | 154 | 7,091 |
| 2 | Jan 30, 2020 | 180 | 8,293 |
| 3 | Jan 31, 2020 | 211 | 9,700 |
| 4 | Feb 01, 2020 | 247 | 11,345 |
| 5 | Feb 02, 2020 | 288 | 13,269 |
| 6 | Feb 03, 2020 | 337 | 15,519 |
| 7 | Feb 04, 2020 | 395 | 18,152 |
| 8 | Feb 05, 2020 | 462 | 21,230 |
| 9 | Feb 06, 2020 | 540 | 24,830 |
| 10 | Feb 07, 2020 | 632 | 29,041 |
| 11 | Feb 08, 2020 | 739 | 33,967 |
| 12 | Feb 09, 2020 | 864 | 39,727 |
| 13 | Feb 10, 2020 | 1,011 | 46,465 |
| 14 | Feb 11, 2020 | 1,183 | 54,345 |
| day | date | deaths | cases |
|:--- | ------------:| ------------:| -------------:|
| 1 | Jan 29, 2020 | 154 | 7,091 |
| 8 | Feb 05, 2020 | 462 | 21,230 |
| 15 | Feb 12, 2020 | 1,383 | 63,561 |
| 22 | Feb 19, 2020 | 4,143 | 190,297 |
| 29 | Feb 26, 2020 | 12,403 | 569,731 |
| 36 | Mar 04, 2020 | 37,135 | 1,705,718 |
| 43 | Mar 11, 2020 | 111,181 | 5,106,750 |
| 50 | Mar 18, 2020 | 332,865 | 15,289,096 |
| 57 | Mar 25, 2020 | 996,564 | 45,774,017 |
| 64 | Apr 01, 2020 | 2,983,613 | 137,042,800 |
| 71 | Apr 08, 2020 | 8,932,639 | 410,292,352 |
| 78 | Apr 15, 2020 | 26,743,422 | 1,228,374,011 |
| 85 | Apr 22, 2020 | 80,067,114 | 3,677,628,161 |
| 92 | Apr 29, 2020 | 239,712,883 | 11,010,448,584 |
| 99 | May 06, 2020 | 717,676,247 | 32,964,174,931 |OTOH, 2019-nCoV might be the answer to self-sustaining fusion we've been looking for.
Semi-log plot of confirmed cases and deaths indicates the epidemic is in an exponential phase. Doubling time is 1.71 days (95% confidence interval 1.64 to 1.79) for case numbers
https://en.m.wikipedia.org/wiki/2019–20_Wuhan_coronavirus_ou...
Since there are low and high estimates, I could include those values as well in my model.
OK, done. Note that this really shows how sensitive growth rates are to even modest changes in doubling rate. Note that the 'lo' column refers to the time to doubling, not the rate of doubling, which may otherwise be counterintuitive.
In the 100-day run, the difference between a 1.64 day doubling rate vs. a 1.79 day doubling rate is total global infection by April 8, vs. still < 360 million infected by May 6.
The real lesson here is that growth rate matters vastly more than starting quantity. That's something any investor should recognise innately, but it applies accross numerous other fields. Including pandemic spread, population growth, and resource utilisation rates of increase.
| day | date | deaths | cases | @ lo dbl | @ hi dbl |
|:--- | ------------:| ------------:| -------------:| -------------:| -------------:|
| 1 | Jan 29, 2020 | 154 | 7,091 | 7,393 | 6,774 |
| 2 | Jan 30, 2020 | 180 | 8,293 | 9,016 | 7,569 |
| 3 | Jan 31, 2020 | 211 | 9,700 | 10,996 | 8,457 |
| 4 | Feb 01, 2020 | 247 | 11,345 | 13,410 | 9,449 |
| 5 | Feb 02, 2020 | 288 | 13,269 | 16,353 | 10,557 |
| 6 | Feb 03, 2020 | 337 | 15,519 | 19,943 | 11,796 |
| 7 | Feb 04, 2020 | 395 | 18,152 | 24,321 | 13,180 |
| 8 | Feb 05, 2020 | 462 | 21,230 | 29,660 | 14,726 |
| 9 | Feb 06, 2020 | 540 | 24,830 | 36,171 | 16,454 |
| 10 | Feb 07, 2020 | 632 | 29,041 | 44,111 | 18,384 |
| 11 | Feb 08, 2020 | 739 | 33,967 | 53,794 | 20,541 |
| 12 | Feb 09, 2020 | 864 | 39,727 | 65,602 | 22,951 |
| 13 | Feb 10, 2020 | 1,011 | 46,465 | 80,003 | 25,644 |
| 14 | Feb 11, 2020 | 1,183 | 54,345 | 97,564 | 28,652 |
| day | date | deaths | cases | @ lo dbl | @ hi dbl |
|:--- | ------------:| ------------:| -------------:| -------------:| -------------:|
| 1 | Jan 29, 2020 | 154 | 7,091 | 7,393 | 6,774 |
| 8 | Feb 05, 2020 | 462 | 21,230 | 29,660 | 14,726 |
| 15 | Feb 12, 2020 | 1,383 | 63,561 | 118,981 | 32,014 |
| 22 | Feb 19, 2020 | 4,143 | 190,297 | 477,290 | 69,595 |
| 29 | Feb 26, 2020 | 12,403 | 569,731 | 1,914,634 | 151,293 |
| 36 | Mar 04, 2020 | 37,135 | 1,705,718 | 7,680,489 | 328,895 |
| 43 | Mar 11, 2020 | 111,181 | 5,106,750 | 30,810,015 | 714,985 |
| 50 | Mar 18, 2020 | 332,865 | 15,289,096 | 123,593,305 | 1,554,303 |
| 57 | Mar 25, 2020 | 996,564 | 45,774,017 | 495,790,250 | 3,378,893 |
| 64 | Apr 01, 2020 | 2,983,613 | 137,042,800 | 1,988,845,356 | 7,345,363 |
| 71 | Apr 08, 2020 | 8,932,639 | 410,292,352 | 7,978,184,014 | 15,968,056 |
| 78 | Apr 15, 2020 | 26,743,422 | 1,228,374,011 | 32,004,207,853 | 34,712,893 |
| 85 | Apr 22, 2020 | 80,067,114 | 3,677,628,161 | 128,383,767,336 | 75,462,218 |
| 92 | Apr 29, 2020 | 239,712,883 | 11,010,448,584 | 515,007,020,041 | 164,047,010 |
| 99 | May 06, 2020 | 717,676,247 | 32,964,174,931 | 2,065,932,759,210 | 356,621,130 |
Chart is formatted as a Markdown chart, BTW.Only in the case where you deny the existence of uncertainty in that number. Also, it's generally considered that infectious and lethal diseases rapidly evolve to become less virulent, since the people that are sickest tend to be more isolated.
This reminds me of news reports from the 90s, where the big fear was that Chinese companies would totally take over Europe. The big Chinese breakthrough would happen 'next week', 'next year', 'next some arbitrary buffer that puts us just outside of the data'.
Corona might go exponential, but with the amount of effort being put into containment, I doubt it.
Whether it be expansion into a new market or spread of a virus, in the early days there is little resistance. Then when (competitors|health services) start noticing and working against it, the spread slows and plateaus. How quickly that happens and what level of spread the plateau is at depends on the speed and efficiency of the countermeasures.
Question 2
However, as a reminder, CDC always recommends everyday preventive actions to help prevent the spread of respiratory viruses, including: Wash your {{ ... }}.
(a) hands, give every bite a chance to keep your nose open
Question 3 Use an alcohol-based hand sanitizer that contains {{ ... }}.
(a) antifungal immunoprecipients, not salt; run an inflatable swimming pool
Question 4 Avoid touching your eyes, nose, and {{ ... }}.
(b) neck, especially when wearing your shoes
Question 7 Cover your cough or sneeze with a tissue, then throw {{ ... }}.
(a) your hands up, arms, hands, face
Question 8 Clean and disinfect frequently touched {{ ... }}.
(c) tissues with dental iron
Neat idea. Not sure it's quite useful yet, but neat idea.
I wish they differentiated data points from forecast points in the actual chart. Text says 1/29 update, but I think only the 1/28 point seems to match news reports.
Stop moving the goalposts too. Make the prediction for all days in the future once, and don't change it based on the current numbers.
> Stop moving the goalposts too. Make the prediction for all days in the future once, and don't change it based on the current numbers.
So, don't ever improve the prediction based on new data. Mkay.
Extrapolating out into the future is always errorprone. Exponents don't ever continue forever and they look like great models until they don't.
Though near-term projection based on current trend is useful.
Also I tried to add as much info about the sources I had now. I will try to improve on that later. The site mentioned here https://news.sina.cn/zt_d/yiqing0121 really looks like finally one good source of the data I was looking for.
I need to get some sleep now.
Another interesting comparison would be to draw a model curve (or curves) further back - the difference vs data points might give you a visual indicator of how the virus is spreading vs effect of active/natural influences vs the model.
Thanks for the update, don't be too hard on yourself, there are infinite ways to improve, but I appreciate the quick look data.
Oh, what the hell. Let's write some Javascript! And slap a tweet button on it!
I have no affiliation with the author of the chart but appreciate the thought and effort that went into it.
More so if you want a comparison with actualities like :- https://gisanddata.maps.arcgis.com/apps/opsdashboard/index.h... (which is EST as you can see - bottom right).
Seems to provide some useful data
(xwininfo says my Chrome window is 1114 pixels wide.)