Git Product home page Git Product logo

covid19germanyestimates's Introduction

Covid19GermanyEstimates

Estimating the spread of Covid19 in Germany.

How to interpret this model

The basics

This is merely a mathematical prediction based on the number of reported cases and a model developed using outbreaks of other illnesses such as ebola. The biggest issue is that I'm fitting my model to the number of reported cases. This means the predictions are heavily influenced by the way cases are found through testing. Thus, unless germany is testing a sample size much larger than the actual outbreak, my prediction will not accurately predict the real number of infections and could be influenced by a number of factors. For example, my model (and the actual data) seems to predict around 3 days case doubling. While this matches what other countries are seeing in their screenings, it is not a reliable way to predict the actual growth of the outbreak. There have been a number of studies that are trying to simulate the outbreak using highly complex simulations and their finding usually amounts to a case doubling period of 5-7 days. A shorter case doubling rate in germanys data might imply that we're catching up with the real number of cases or that due to societal factors the cases are actually doubling faster in germany currently or a number of other things. This model therefore should only be used as a rough estimate of "how bad will shit hit the fan?" and not for any other purposes.

Model

Current Formulae and Parameters

Polynomial Model

equation

equationparameters

and with t being the day starting at 0. Model parameters were fitted with 28.02.2020 being day 0 (here, case number hit 50+ cases).

Sources for Model

Numerical model is based on the formulae suggested in this paper: https://arxiv.org/ftp/arxiv/papers/1512/1512.01389.pdf

Parameters are then worked out using GRG nonlinear analysis in excel with multistart to find a global minimum for parameter convergence. GRG Nonlinear is set to find a minimum for the sum of quadratic errors between the model estimates and the known data. I then offset the estimated data by -7 days in order to get a glimpse on what the real number of infections might be.

Source for number of infections by date is: https://interaktiv.morgenpost.de/corona-virus-karte-infektionen-deutschland-weltweit/

Currently, the situation in germany is difficult in that counting is decentralized, which means all reports are off by some degree. Berliner Morgenpost is trying to keep the time at which they count cases consistent and source their data from the local health authorities, which hopefully makes their data very close to reality.

Logistic Model

This is the second model which better models the decline of the exponential phase of the epidemic. This is the model I'll keep updating from now on, as it converges better with actual data currently. I also included a linear component into the logistic model in order to predict unknown cases which leads to a slightly lower r^2 error.

equation

equationparameters

Current Estimates

Logistic Model

Model vs Actual Data

Polynomial Model

Model vs Actual Data:

Model vs Actual Data

Model vs 3 Day Lag period

Model vs 3 Day Lag period

Model vs 3 Day Lag period with standard error

Model vs 3 Day Lag period with standard error

3 Day Lag Model on calendar dates

Model vs 7 Day Lag period with standard error

covid19germanyestimates's People

Contributors

benedikt-kuenzel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.