EPIDEMIC is an easy-to-run educational toolkit for epidemiological analysis.

View the Project on GitHub americocunhajr/EPIDEMIC

EPIDEMIC - Epidemiology Educational Code is an easy-to-run educational Matlab toolkit for epidemiological analysis, which offers functionalities for modeling an epidemic, monitoring its progress and forecasting the underling numbers of interest. This code is, first of all, an educational tool for researchers and students who are interested in computational epidemiology. The programs and tutorials are designed to offer good introductory material for beginners in the field. But they can also be used to analyze epidemic data, as well as in the construction of some simplistic epidemic models. The package is structured in 3 independent modules:

The current stable version of EPIDEMIC is available on GitHub:


In the figure below, it is possible to observe the EPIDEMIC organization structure.

This EPIDEMIC package includes the following files:





A tutorial style user guide for EPIDEMIC is available in English and Portuguese:



Installation and use

To run the EPIDEMIC code, follow these steps:

1) Access the EPIDEMIC repository, available at www.github.com/americocunhajr/EPIDEMIC and download the folder with the code;

2) The working directory of the compatible software (Octave or MATLAB) is placed in the place where the folder with the EPIDEMIC codes is located and it is executed via the terminal;

3) If it is in the module Modeling, the executable file that generates the simulations is the files main. In the files rhs is possible to modify the differential equations, if that is the interest. In the module Trends, the executable file is epidemic_trends.m. And in the module Forecasts the executable file is epidemic_forecasts.m. In the tutorials you can get more information on how to use the codes.

Octave/Matlab compatibility

EPIDEMIC was developed to be 100% compatible with the Octave and Matlab platforms. EPIDEMIC codes have been tested on at least GNU Octave 5.2.0 and MATLAB R2016b versions.






We ask users to cite the following manual in any publications reporting work done with EPIDEMIC:

  author = {Bruna Pavlack and Malú Grave and Eber Dantas and Julio Basilio and Leonardo {de la Roca} and João Norenberg and Michel Tosin and Lucas Chaves and Diego Matos and Marcos Issa and Roberto Luo and Amanda Guyt and Luthiana Soares and Rodrigo Burgos and Lisandro Lovisolo and Americo Cunha},
  title = {EPIDEMIC: Epidemiology Educational Code},
  journal = {Journal of Open Source Education}
  year = {2022},
  volume = {5},
  number = {50},
  pages = {149},
  url = {www.EpidemicCode.org},
  doi = {10.21105/jose.00149},


EPIDEMIC is released under the MIT license. See the LICENSE file for details. All new contributions must be made under the MIT license.



Institutional support


Contribution to code and contact

Any EPIDEMIC user can contribute the code or seek support via email americo.cunha@uerj.br or open an issue. You can correct spelling or grammatical errors, suggest improvements and file bugs. If you find a bug, file the issue illustrating the bug with a minimal reproducible example. Experience reports on the use of EPIDEMIC are also welcome. If you want to suggest the insertion of a compartmental model in the Modeling module, it is necessary to send a preview of the code structure following the code pattern of the other compartmental models.