Skip to content

Mathematical Models for Diseases in Python using Jupyter Notebook

License

Notifications You must be signed in to change notification settings

fslurrehman/mm4d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is mm4d?

Mathematical Models for Diseases using Standard Model of Disease Spread in Python Jupyter Notebook

To run it in binder, click this link: Binder 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.

screenshot preview

Project Detail:

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.

Useful links:

  1. https://www.wired.com/story/data-sharing-open-source-software-combat-covid-19/
  2. https://www.wired.com/story/phones-track-spread-covid19-good-idea/
  3. 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
  4. More explanation of SIR model from mathematical point of view. This video is useful in understanding differential equations used in SIR model.
  5. 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
  6. Understanding logarithmic scales: https://www.nytimes.com/2020/03/20/health/coronavirus-data-logarithm-chart.html
  7. 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.

Data

  1. COVID19 Data: https://github.com/CSSEGISandData/COVID-19
  2. Our World in Data: https://ourworldindata.org/coronavirus It contain good visualization of data in its links.

todo:

  1. Adding description of modules and explanation for code.
  2. Adding more plots to comparison of data of other country or region.
  3. Adding more models other than (SIR)
  4. Highlighting key indicators/outputs
  5. Adding useful links for data on diseases

About

Mathematical Models for Diseases in Python using Jupyter Notebook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published