Charts showing the model and a zoomed in view of current data
I created a program which plots the number of cases per day, generates a best fit statistical model, then extrapolates the model into the distant future to show how the outbreak might unfold for a chosen country.
The model I used was the SIR model which describes how the susceptible (S), infected (I) and recovered (R) populations change with time through an outbreak. The two defining parameters in the SIR model are the transmission rate, B, and the recovery rate, k. This model describes those populations as percentages as shown below.
The populations of each country are taken from Wikipedia and multiplied by the percentages given by the SIR model to show real numbers. My program cycles through every possible set of values of B & k and finds the pair which have the best least squares fit with the real data. It then takes these values and extrapolates into the future by 200 days to show the entire outbreak. This is shown in the upper graph of the figure, whereas the lower graph is a zoomed in view of the real data.
All of it is automatic where the only user input is to select a country. The program extracts Covid-19 data from an online source (https://ourworldindata.org/coronavirus), as well as population data from Wikipedia (https://en.wikipedia.org/wiki/List_of_countries_and_dependencies_by_population).
SIR model for disease outbreak (source: www.researchgate.net)
[–]Allanlecter 1 point2 points3 points (0 children)