This resource provides real-time analysis of time series data describing the COVID-19 outbreak in Switzerland using statistical models to interpret trends and forecast short-term development (up to 7 days forecast from last training date). The left-hand panel allows the user to change visualisation settings, including last date for training the forecast (allowing validation) and data (cases, hospitalizations or fatalities). To find out more about the functionalities of the dashboard, check the help icons associated to each panel. You can read more about the methods here and about the resource developers here .
The figure below displays the results of time series analyses performed on data provided by the and data individually released by the Swiss cantons processed by . Last data update: 2022-02-20 19:34:20
The figure is interactive and allows seeing the data and model-fitted points. Furthermore, the user can select a rectangular area for obtaining a detailed visualization. After zooming in, double-click allows to return to the initial figure. The data beyond the dotted line is incomplete and not used in the analysis.
Description of data sources, statistical methods and displayed results
We extract live time series data describing the COVID-19 outbreak in Switzerland from the following data sources:
To reduce the noise levels and correct for data reporting or processing delays, before performing downstream analysis or fitting time series models, we applied a 7-day-window smoothing operation on all the time series. On the Monitoring and Forecasting panel, the user has the possibility to visualize the data in either mode: raw or smoothed numbers, respectively.
An autoregressive integrated moving average (ARIMA) model [(1)] [references] was fitted to each smoothed time series. The fitted model was then used to make real-time forecasts of the evolution of the time series over the next 7 days. An ARIMA model is formally defined by three order variables \((p,d,q)\), where \(p\) is the autoregressive order and \(q\) is the moving average order. The differencing order \(d\) represents the number of times the time series needs to be differenced in order to be stationary (mean, variance and covariance are constant). After differencing of order \(d\), each differenced observed data point at time \(t\) (denoted by \(X_t^{d}\)) was regressed on \(p\) previously observed data points with an error depending on the errors at \(q\) previous steps: \[X_t^{(d)} = \sum_{i=1}^{p}a_iX_{t-i}^{(d)} + e_t + \sum_{j=1}^{q}b_je_{t-j}\] with \(e_t\) being the error at time \(t\). For given values of \(p\) and \(q\), the coefficients \(a_i\) and \(b_j\) were inferred by maximizing the likelihood of the regression model assuming normally-distributed error terms.
For each time series, ARIMA models were fitted for all the combinations of \(p\) and \(q\) ranging from 1 to 7 and the model with the best Akaike information criterion (AIC) was chosen. The tools available in the package forecast in R [(2)] [references] were used for implementing the model fitting and forecast.
(1) Asteriou, Dimitros, and Stephen G. Hall. 2011. “ARIMA Models and the Box–Jenkins Methodology.” Applied Econometrics 2 (2). Palgrave MacMillan Hampshire: 265–86.
(2) Hyndman, Rob J. and Yeasmin Khandakar. 2008, “Automatic time series forecasting: The forecast package for R”. Journal of Statistical Software, 26(3).
Authors
The aim of the COVID-19 Dashboard is to provide a tool for real-time monitoring and short-term forecasting of the COVID-19 outbreak in Switzerland based on daily updated time series of various output measurements. The Dashboard presents results from various data-driven statistical analyses modeling the outbreak development without imposing assumptions on the disease transmission dynamics.
This tool was developed by Monica Golumbeanu and Melissa Penny in the Disease and Intervention Dynamics group of Prof. Melissa Penny at the Swiss Tropical and Public Health Institute and University of Basel.
Hosting and computing services are offered by the sciCORE Center for Scientific Computing at the University of Basel.
For questions, suggestions or comments contact monica.golumbeanu@swisstph.ch or melissa.penny@unibas.ch.