Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



7 Commits

Repository files navigation

Sliding SIR Model for Epidemic Modelling

This repository contains code to perform estimation of effective reproductive number Rt of COVID epidemic based on public data. This code accompanies the following publications:


If you use any portion of this code in your research, please cite either this repository, or the following paper:

Petrova, T.; Soshnikov, D.; Grunin, A. Estimation of Time-Dependent Reproduction Number for Global COVID-19 Outbreak. Preprints 2020, 2020060289 (doi: 10.20944/preprints202006.0289.v1).


The code is distributed under MIT License

Running the Code

The easiest way to run the code is to clone the repository in [Azure Notebooks]), or use Visual Studio Codespaces to open the code.

Provided Files

  • notebooks/EpiModelling.ipynb is the notebook that describes the basics of SIR epidemic modelling, and applies our Sliding SIR idea to the epidemic in Moscow
  • notebooks/SlidingSIR.ipynb contains the code that applies Sliding SIR to many countries based on publicly available data, and ties this to Apple Mobility Index
  • data directory contains the snapshot of datasets used in our modelling. The code uses online publicly available datasets, but should they become unavailable - you would still be able to test the code with the data provided there

Some Results

The methodology is described in this blog post or in the paper. Here are a few obtained results:

Rt Dynamics in Russia

Rt Dynamics vs. Daily Infected Population Worldwide

Rt Dynamics for Different Countries