COVID19 Data Fitting with Linear and Nonlinear Regression

Linear, exponential, logistic, Gompertz, Gauss, Fourier models fitted to epidemiological data from the COVID-19 outbreak.
Updated 19 Aug 2020

View License

A collection of tools for fitting several general-purpose linear and nonlinear models for COVID-19 epidemiological data. The longitudinal data is obtained from the John Hopkins database (source: and consists of: number of active cases, number of confirmed, number of fatalities, number of recovered cases. The analysis is possible for any particular country listed in the database, or for the world data as a whole. The models implemented include linear, exponential, logistic, Gompertz, fifth-degree polynomial, Gaussians and Fourier functions. The three models of the Bertalanffy class (exponential, proper logistic and Gompertz) afford a reasonable balance between reduced model complexity and goodness of fit. We implement data/model visualization in linear and logarithmic scales, for easy model comparisons.

Cite As

Lorand Gabriel Parajdi and Ioan Stefan Haplea (2020). COVID19 Data Fitting with Linear and Nonlinear Regression (, MATLAB Central File Exchange. Retrieved April 15, 2020.

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Biological and Health Sciences in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

changed my project website


improved functions for data parsing