COVID-19 Modeling
Created to track the simulate the spread of Coronavirus (COVID-19). Case data is obtained over the web and fitted to a logistic model to predict epidemic spread over time.
To operate load the folder containing the script COVID19Modelingv2 and type the following code in the command prompt: COVID19Modelingv2("country").
example: COVID19Modelingv2("US"). Multiple countries can be analyzed at the same time by placing them in a list: COVID19Modelingv2("US","Italy").
The model was created by Milan Batista (fitVirus). The model is a data-driven model that fits epidemic data to a logistic curve. The goal of the model is to make local predictions about the viral spread and epidemic duration. The model can be used to provide accurate approximations in certain situations. "The regression convergence may fail for a pure initial guess or small data set. Therefore the method does not apply to the early stages of an epidemic. Also, results are useless if the regression statistic does not meet minimum criteria, say R^2 > 0.8, p-value < 0.05." (Milan Batista)
DISCLAIMER: Model will fail in certain situations. A rigorous statistical analysis should be performed on all results. The model fails when additional epidemic stages (not described by logistic function) are encountered. Use at your own discretion.
See for more info:
https://www.researchgate.net/publication/339912313_Forecasting_of_final_COVID-19_epidemic_size_200320
Data is stored online and is provided via JHU CSSE from various sources including:
"The World Health Organization (WHO), DXY.cn. Pneumonia. 2020, BNO News,
National Health Commission of the People? Republic of China (NHC),
China CDC (CCDC), Hong Kong Department of Health, Macau Government, Taiwan CDC, US CDC, Government of Canada, Australia Government Department of Health, European Centre for Disease Prevention and Control (ECDC) and Ministry of Health Singapore (MOH)"
On the figure, the epidemic rate is plotted with a blue line (cases/day). Blue dots are the actual infection rate (cases/day). Region colors separate epidemic transition phases:
red - fast growth phase
yellow - transition to steady-state phase
green - ending phase
Cite As
Joshua McGee (2024). COVID-19 Modeling (https://www.mathworks.com/matlabcentral/fileexchange/74632-covid-19-modeling), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Sciences > Biological and Health Sciences >
- AI and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization >
- Mathematics and Optimization > Optimization Toolbox > Problem-Based Optimization Setup >
- Sciences > Biological and Health Sciences > Epidemiology >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
3.6.3 | updated 5/2 |
||
3.6.2 | updated 4/30 |
||
3.6.1 | updated 4/22 |
||
3.5.9 | updated 4/18 |
||
3.5.8 | updated 4/17 |
||
3.5.7 | updated and added notes 4/15 |
||
3.5.6 | updated with link to in-depth description |
||
3.5.5 | updated 4/15 |
||
3.5.3 | updated image |
||
3.5.2 | -updated graph style |
||
3.5.1 | updated 4/13 |
||
3.5 | -updated 4/13 |
||
3.4.9 | updated 4/11 |
||
3.4.8 | -updated 4/10 |
||
3.4.7 | update 4/9 |
||
3.4.6 | -updated 4/8 |
||
3.4.5 | -updated 4/6 |
||
3.4.4 | -updated 4/5 |
||
3.4.3 | -updated 4/5 |
||
3.4.2 | -updated data |
||
3.4.1 | -image |
||
3.4 | -updated 4/1 |
||
3.3 | -fixed graphs on the example tab |
||
3.2 | updated 3/31 |
||
3.1 | -fixed plots in example tab |
||
3.0 | -updated |
||
2.9 | -added more examples |
||
2.8 | -updated examples |
||
2.7 | -made script executable as a function
|
||
2.6 | -bug fixes and improvements |
||
2.5 | -optimization notes |
||
2.4.9 | -bug fix |
||
2.4.8 | -image |
||
2.4.7 | -compatibility |
||
2.4.6 | -bug fixes and compatibility |
||
2.4.5 | -description |
||
2.4.4 | -name |
||
2.4.3 | -compatibility |
||
2.4.2 | -attempted to fix variable name compatibility issues |
||
2.4.1 | -name |
||
2.4 | -compatibility fixes |
||
2.3.9 | -fixed all compatibility issues |
||
2.3.8 | -bug fixes |
||
2.3.7 | -fixed predict() function courtesy of Milan Batista |
||
2.3.6 | -updated to reflect changes in database |
||
2.3.5 | -compatibility note |
||
2.3.4 | -updated compatibility |
||
2.3.3 | -added graph to visualize stability of total infected estimate (courtesy of Milan Batista) |
||
2.3.2 | -ability to run multiple country simulations simultaneously |
||
2.3.1 | -version # |
||
2.2.212.1 | -name |
||
2.1 | -description |
||
2.0 |