Show HN: Log-Scale Covid-19 Plots
bitbucket.org
bitbucket.org
At least for networking graphs is more meaningful to see difference from the actual from the previous commulative total, than watching the total for a network interface.
Another, at least for me, misleading use of graphs is to show the cummulative total people that ever got sick, instead of the current amount of sick people (taking out the recovered, and maybe the dead ones).
I know that how the measurements are done in most places is rigged, as not everyone is checked, and there are a lot of people that are asymptomatic, but that happens with both the new cases and the cummulative ones. Showing the cummulative numbers don't take out that rigging.
For instance, China's hovering around 10e5 cases on the chart, but they have 2e3. That's three orders of magnitude misleading, especially when 95-100% of people recover completely and are quite unlikely to get it again.
tl;dr: China features prominently on those graphs but their outbreak is contained and finished, they've re-opened internally and pollution (hence factory output) is returning to normal. The graph doesn't reflect that in a meaningful way. [1]
[1] https://www.forbes.com/sites/jeffmcmahon/2020/03/22/video-wa...
https://gist.github.com/theSage21/29608c666a378dcb276a9dd9e4...
Financial Times has the best graphical trackers I've seen. They used to show cumulative counts, but switched to 7-day moving averages of daily increases" recently.
https://www.ft.com/coronavirus-latest
I agree that displaying increases/growth rates are more informative overall, but it does take more time to understand the metrics. (Just compare the descriptions: "Total Deaths" vs "7-day moving average of daily increase in Total Deaths")
https://coronavirus.projectpage.app/france?period=28
The jump recently is due to a change in reporting to include deaths outside hospital (something most countries have yet to do), and these are reported deaths not actual, and subject to all kinds of caveats. Reported cases is even worse. Recovered cases is worst of all and not being properly tracked in most areas.
A moving average of daily cases might be best. I think the ft (who have nice graphs of this along with commentary) are moving toward this.
https://www.ft.com/coronavirus-latest
There's a nice commentary on what they're doing here:
https://mobile.twitter.com/jburnmurdoch/status/1246184639540...
https://mobile.twitter.com/zorinaq/status/124578701743622144...
And that shows pandemic effect rising and falling, because many cases either don't reach a hospital, get misclassified etc
But getting a daily ticker of total deaths (all deaths not just covid) in most parts of the world gets shutdown quick by politicians of all stripes.
https://colab.research.google.com/drive/1dNAVpgRGjEViK-9ULhE...
Compare and contrast with labels next to the lines, vide https://www.ft.com/coronavirus-latest (this example is already quoted in some other thread, and I find it a gold standard of coronavisualizations).
I especially like the small multiples by country with the gray lines for different countries (UK, Italy, Spain last I checked).
It's such a wonderful chart idea that I'm already planning on stealing it.
The New York Times has some stunning data visualizations (from the UI/UX perspective), see e.g. "You Draw It" series: https://www.nytimes.com/interactive/2017/01/15/us/politics/y...
https://www.nytimes.com/interactive/2020/03/21/upshot/corona...
Log-Log graphs of new cases vs confirmed cases (which that graphs) is by far the best way to represent the data that I've seen.
Although even between states the variation in test rate is so great that it's hard to gather much from it.
I personally use hospitalizations as a more accurate metric of total infections in the US. For example, Washington is being hailed as doing a great job to slow the virus down, but ~80% of the confirmed tests result in hospitalizations, because they still just don't test you otherwise [0]. Compare that with a more realistic hospitalization rate (many states with a lot of cases are around 10% -- who would have guessed it would be Louisiana and Florida doing the broad testing?)
[0] https://en.wikipedia.org/wiki/Timeline_of_the_2020_coronavir...
Since there is a shortage on tests, at some point countries might decide to only test people coming into the hospital.
Another thing about the deaths is also troubling: In the Netherlands doctors were complaining that deaths with symptoms of Corona were not counted as corona deaths, because they were not tested and found positive (again a problem with the shortage of tests).
So a bending of the curve might just be explained by a new strategy of who to test.
I think the best way to count is to look at total hospitalizations, and subtract the average of normal years. And with corona deaths the same way: subtract the total with the average in a normal year.
You end up missing critical data points like the per 100k population mortality rates (from Friday morning):
New York 12, Louisiana 6.6, New Jersey 6, Michigan 4.2, Washington 3.5, Connecticut 3.1, Massachusetts 2.2, Colorado 1.7, Georgia 1.67, Nevada 1.27, Illinois 1.23, Delaware 1.2, Pennsylvania 0.7, Ohio 0.7, Florida 0.68, Kentucky 0.68, Alabama 0.65, South Carolina 0.6, Wisconsin 0.53, California 0.5, Oregon 0.5, Maine 0.5, Idaho 0.5, Virginia 0.48, Arizona 0.45, Kansas 0.44, New Hampshire 0.36, Iowa 0.34, New Mexico 0.33, Minnesota 0.32, Nebraska 0.32, Missouri 0.31, Texas 0.24, North Carolina 0.15, Hawaii 0.14
Italy 23, Spain 22, Belgium 8.8, France 8, the Netherlands 7.8, Switzerland 6.2, UK 4.5, Sweden 3, Denmark 2.1, Ireland 2, Portugal 2, Austria 1.8, Germany 1.3, Norway 0.9, Canada 0.37, Finland 0.34, Australia 0.11, New Zealand ~0
Most of the US is seeing very low per capita mortality rates and no surge in cases. You wouldn't know that by the headlines though.
There's also this tweet additionally showing how population size of a country has no relationship to pace of disease spread. https://mobile.twitter.com/jburnmurdoch/status/1246185741304...
Zeit.de has an interactive version of these (in German), which adds a rectangle for "days since numbers last doubled", a good indicator of how severe the situation in a country is.
Scroll down past the map to the third graph with international data, click on "Todesfälle" (deaths): https://www.zeit.de/wissen/gesundheit/coronavirus-echtzeit-k...
Yeah, its what the Financial Times and many others have been using for quite a while, log graphs with a starting point of the Xth death or Yth case. Its a standard way of presenting this kind of data.
And when you need to recreate the same plot with diffirent subsets of the data like you've done here, that's a great use case for an interactive dashboard which allows the user to select the countries/regions and also zoom in and out.
By the way, the derivative of the logistic function is the logistic distribution, and that’s not the Gaussian bell shape, it has much fatter tails: Gaussian tails drop much faster, with exp(-x^2), while the logistic drops with exp(-|x|). (Makes sense, as the logistic curve grows exponentially at the beginning, and the derivative of the exponential is the exponential.)
But I learned what a logistic function is, so thank you. I guess that is needed for the cumulative count.
You might be interested in this. I posted it a few days ago- it's why I'm talking Gaussians.
https://www.medrxiv.org/content/10.1101/2020.03.27.20043752v...
(log y2 - log y1) / (x2 - x1)
Then if we scale y2 and y1 both by c, which is 1 / population:
(log( c * y2 ) - log( c * y1 )) / (x2 - x1) =
(log c + log y2 - log c - log y1) / (x2 - x1) =
(log y2 - log y1) / (x2 - x1)
So scaling by population does not change the slope of the graphs, only the intercept.
What do you want to learn from (cases) / (people in infected area)? The denominator seems difficult to define since it's not scale invariant. If you defined an "infected area" as being within 1 km of an infected person, for example, you'd get a very different answer from if you defined infected area as 10 km from an infected person.
In the limiting cases where you define infected area with very fine or very course granularity, you get an infection rate of 1.
Maybe you’re thinking of the double log curve of total cases vs new cases that was on HN recently.
Small mistake: Israel isn't in Europe but in Eastern Mediterranean.
likewise, the category called southeast asia contains countries normally considered to be south asian - like india - and omits the larger part of southeast asia.
the creation of “western pacific”, grouping australia-new zealand, east asia, and the larger part of southeast asia, deserves credit surely since it is far more useful than the neocolonialist category of oceania, which mostly serves to allow europeans to swamp pacific islanders with statistics from australia
> The countries have been grouped according to regions defined by the World Health Organization.
And, yeah, they’re a bit weird.
- Number of deaths per capita
- Number of "severe" cases per capita (good indicator of the future number of deaths)
- Number of tests per capita (good indicator for whether or not "number of cases" means anything at all)
Normalizing per capita replaces the true extent of the problem with the true relative local impact of the problem; both are significant.
No, absolute scale is the extent, that's pretty much what “extent” means.
Relative local impact is the...well, relative local impact.
Both are important, though which is more important depends on what you are doing with the measure.
Definition of deaths varies widely, testing policy varies widely, no statistical extrapolation is being done in an attempt to avoid undermining public health policies that might be based on total fantasy.
"But what about the co-morbidity?". People don't die "of" COVID-19. They have heart failure, kidney failure, or other triggers of death because COVID-19 pushes their body to the limit. Pointing to resources that claim that "only" some small percentage actually died of COVID-19 is pure ignorance, because then the declaring doctor was simply being efficient because if they truly looked in there would be another triggered cause of death. Just as no one died of "AIDS", they died of things like Kaposi sarcoma, but if someone said "see, it wasn't AIDS at all" they would be laughed out of the room.
The majority of deaths are people who are health compromised in some other way (not all deaths, and there have been an abundant number of completely healthy people who have perished), but that is known by everyone and is not news, nor does it diminish the tragedy.
"no statistical extrapolation"
This is the most interesting, and ridiculous, claim of all. Enormous statistical measures and extrapolations are being done daily...that's how we are where we are. What is this meaningless claim even trying to say, other than that you, easytiger, know more than every health authority.
Categorically, in many countries (UK, Italy), the figures released represent people who tested positive for covid 19 before or after death. Those figures, without any question, do not offer an opinion on how, if at all, it had any effect on the death. Further to that in the UK official death (released monthly) stats only count mentions of covid19 on a report. It doesn't indicate anything
In some countries, the only demographic where you are guaranteed to be tested is if you die, and in a hospital.
Are those facts with which you have an issue?