Skip to content

fvalka/covid19-austria-visualization

Repository files navigation

Visualization of COVID-19 Confirmed Cases for Austria

This Jupyter notebook produces a log-scaled plot of confirmed cases per 10^5 people for different countries, with a focus on Austria.

Warning! Read this

  • I'm not an expert in medicine, epidemiology, biology or similar
  • This style has been mostly developed for me and my friends, mostly people with graduate level degrees in science or technology and might not at all be suitable for the general public!
  • The code may contain bugs, is not well verified or tested
  • The assumptions about the fit might be completely wrong
  • Use at your own risk and consider the implications of publishing the visualization and whom you publish it to

Visualize Responsibly

Please read those excellent articles on the Tableau blog:

Do this if you use it!

  • Update your visualization regularly
  • Verify each output by hand with primary sources for your country
  • Look for mistakes and open an issue or pull request

Example Output

Example output

Data Sources

ECDC Data

Primarily data from the European Center for Disease Prevention and Control is used. Actually all lines, except for "Wuhan - China" are plotted based upon this dataset.

ECDC COVID-19 Public Dataset

Doubling Time Estimation

The doubling time and its confidence interval are estimated using a generalized linear model fitting of a Poisson regression (log-normal) model to the cumulative cases using maximum likelihood estimation.

Statsmodels GLM module is used as the software implementation.

Our log-linear model for the cumulative case count y at day x is:

\log{y} = \beta_0 + \beta x

Using this module the fitted function form is:

f(x) = e^{\beta_0 + \beta x}

This is formulated in patsy as

y ~ x

Doubling time estimates, as well as the confidence intervals in doubling time estimates are obtained by calculating the doubling time from the exponential functions slope parameter.

T_d = \frac{\log{2}}{\beta}

Installation

  • Install python >= 3.6 and Jupyter notebook

  • Install required python packages

pip install -r requirements.txt
  • Download the data repositories using git clone, as described in the data/README.md file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published