aatishb / covidtrends

Tracking the growth of COVID-19 Cases worldwide
https://aatishb.com/covidtrends/
MIT License
301 stars 107 forks source link

Minimum cases/deaths threshold #60

Open aatishb opened 4 years ago

aatishb commented 4 years ago

Am considering revisiting a few decisions, triggered by reading #47, and a few emails from folks wondering why their countries aren't included in the deaths graph. At the moment this is mostly a note to self, however let me know if anyone has feedback on this or wants to take a stab at implementing this.

Initially I'd set minCasesInCountry to 50 as the global confirmed cases data was noisier below this value (the variable refers to the threshold for including a country on the graph). However I think we could have different thresholds for minCasesInCountry and minDeathsInCountry. Just looking at it by eye, it seems like setting minDeathsInCountry to 10 creates a clean looking graph.

Also when looking at US states, it seems like both can be set to 10 just fine as the case data has less variability for low values (< 50).

Finally whenever minCasesInCountry is 50, the minimum on the visual settings should probably be set accordingly, to emphasize this threshold.

Daemon42 commented 4 years ago

I think what I'm seeing right now is related to this. A few states dropped out of trends entirely and I'm assuming it's because the new reported deaths in the last week drops below the 10 threshold. I'd still like to see the original trajectory of the virus in that country or state. I can see not including a country or state where the total reported deaths never rose above a minimum threshold (as happened early on) but now virtually everywhere has had it. The value of the app is comparing one state or country to another. Having them simply disappear when they "succeed" in clearing the virus is odd.