Mathematical Models for Diseases using Standard Model of Disease Spread in Python Jupyter Notebook
To run it in binder, click this link: or you can view it in readonly mode from google collab at: https://colab.research.google.com/drive/1gBYRZxgCmfBh2iUTjoju6lBMAJoP99JW
You can use this link to share its binder: https://mybinder.org/v2/gh/fslurrehman/mm4d/master or simply download it to run locally on your jupyter lab.
Don't forget to fork and contribute.
In wake of COVID19, I created this repo to evaluate existing mathematical models to understand spread of diseases especially the pandemic like Corona Virus 19. It is based on the SIR (Susceptible Infected Recover) Model. Video link at no. 4 in Useful links below is helpful in understanding the differential equations of SIR model which I have used in covid19sir.ipynp.
It contains a workbook named covid19sir.ipynb. You can run this to simulate the spread of disease for given population. It is based on numberphile youtube video which you can watch from notebook. It can be helpful in identifying key indicators like number of days/weaks after which peak will occur, number of total possible infected people etc.
- https://www.wired.com/story/data-sharing-open-source-software-combat-covid-19/
- https://www.wired.com/story/phones-track-spread-covid19-good-idea/
- After 6 hours of making this repo, 3Blue1Brown uploaded a very useful video on detailed simulation of epidemics. The source code of his simulation is at: https://github.com/3b1b/manim/blob/shaders/from_3b1b/active/sir.py while animation engine for his video can be found at: https://github.com/3b1b/manim whose pre-requisite requirements seems to be difficult to install. Also there is some info regarding outbreak at: https://meltingasphalt.com/interactive/outbreak/. It is worth watching the 3Blue1Brown video which is at: https://www.youtube.com/watch?v=gxAaO2rsdIs
- More explanation of SIR model from mathematical point of view. This video is useful in understanding differential equations used in SIR model.
- Log scale plot by Aatish in python https://aatishb.com/covidtrends/ and source code at: https://github.com/aatishb/covid . It is useful in understanding which country has drop in cases after reaching given peak. It is based on idea that time isn't important. It is explained at minutephysics: https://www.youtube.com/watch?v=54XLXg4fYsc
- Understanding logarithmic scales: https://www.nytimes.com/2020/03/20/health/coronavirus-data-logarithm-chart.html
- What we can learn from the countries winning the coronavirus fight: https://www.abc.net.au/news/2020-03-26/coronavirus-covid19-global-spread-data-explained/12089028 Great explainer on log scales and growth curves explained in the context of COVID-19 in different countries.
- COVID19 Data: https://github.com/CSSEGISandData/COVID-19
- Our World in Data: https://ourworldindata.org/coronavirus It contain good visualization of data in its links.
- Adding description of modules and explanation for code.
- Adding more plots to comparison of data of other country or region.
- Adding more models other than (SIR)
- Highlighting key indicators/outputs
- Adding useful links for data on diseases