Skip to content

Instantly share code, notes, and snippets.

@jnrbsn
Last active March 3, 2020 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnrbsn/ec5b41cfda78768680f766bdaef154b1 to your computer and use it in GitHub Desktop.
Save jnrbsn/ec5b41cfda78768680f766bdaef154b1 to your computer and use it in GitHub Desktop.
# Fatality rate of coronavirus outside China [1]
corona_fatal_rate = (3168 - 2945) / (92880 - 80152)
# Cases in USA [1]
corona_cases_usa = 118
# Population of USA [2]
population_usa = 329346645
# "Infection rate" of coronavirus in USA
corona_infect_rate = corona_cases_usa / population_usa
# Fatality rate of flu in USA [3]
# (average of 5 most recent seasons for which there's data 2012-2017)
flu_fatal_rate = (
(
43000 + 38000 + 51000 + 23000 + 38000
) / (
34000000 + 30000000 + 30000000 + 24000000 + 29000000
)
)
# Infection rate of flu [2][3]
flu_infect_rate = (
(
34000000 + 30000000 + 30000000 + 24000000 + 29000000
) / (
315035869 + 317243472 + 319594955 + 321864095 + 324076093
)
)
# 19242.32277551661
print(
(
flu_fatal_rate * flu_infect_rate
) / (
corona_fatal_rate * corona_infect_rate
)
)
# Sources:
# [1]: https://www.worldometers.info/coronavirus/
# [2]: https://www.census.gov/popclock/
# [3]: https://www.cdc.gov/flu/about/burden/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment