## Abstract

Complex systems have characteristics that give rise to the emergence of rare and extreme events. This paper addresses an example of such type of crisis, namely the spread of the new Coronavirus disease 2019 (COVID-19). The study deals with the statistical comparison and visualization of country-based real-data for the period December 31, 2019, up to April 12, 2020, and does not intend to address the medical treatment of the disease. Two distinct approaches are considered, the description of the number of infected people across time by means of heuristic models fitting the real-world data, and the comparison of countries based on hierarchical clustering and multidimensional scaling. The computational and mathematical modeling lead to the emergence of patterns, highlighting similarities and differences between the countries, pointing toward the main characteristics of the complex dynamics.

## Introduction

Many complex systems generate outputs that are characterized by a frequency-size power law behavior over several orders of magnitude [1, 2]. The power laws have been associated with scale-invariance, self-similarity, and fractality and are consistent with self-organized criticallity, that is a process in which a system, by itself, converges to a state characterized by a coherent global pattern, created by local interactions between low-level elements [3, 4].

The power laws are characterized by heavy-tails, giving non-negligible probability to large events. However, some extreme events, labeled ‘dragon kings’, while predictable, cannot be foreseen by the extrapolation of power law distributions [5, 6]. ‘Dragon kings’ may be associated with positive feedback, bifurcations, and regime changes in out-of-equilibrium complex systems. ‘Dragon kings’ are often discussed in contrast with ‘black swans’, which denote unpredictable catastrophic rare events [7]. These outliers are pervasive in many areas, namely economy, finance, earth sciences, and biology.

The recent Coronavirus disease 2019 (COVID-19) outbreak is an example of an extreme event. We must highlight that the occurrence of a rare event and the actual description of its evolution are, however, distinct matters. This paper attempts to understand the dynamics of the spreading across different countries of COVID-19, but not the prediction of its outbreak or conclusion.

The first case of COVID-19 [8,9,10] was officially reported in China on December 31, 2019, in Wuhan of Hubei province. At an early stage, the Chinese authorities seemed not to give importance to the problem. However, with the rapid emergence of new cases, the attitude changed dramatically. The Chinese government took a series of strong measures to contain the disease and gave the world an example of commitment and effectiveness. The growth rate of new cases of COVID-19 in China has slowed significantly, and the situation appears to be under control at the moment of writing this paper [11, 12].

In the meantime, new cases have been emerging in many countries. In particular, the rapid evolution in Iran, South Korea, Italy and Spain became the most dramatic cases. COVID-19 was gradually reaching all continents, with cases confirmed all over the world, while having ‘alarming levels of inaction’ by some countries, in the words of the director of the World Health Organization (WHO).

More recently, by March 11, 2020, WHO officially declared the COVID-19 a global pandemic, just when the number of known cases reached approximately 121,000 and caused 4300 deaths, and after the cases outside of China spread by a factor of 13 and the number of countries affected tripled in just two weeks.

Panic begins to spread in some populations [13], fueled by the massive and speculative news broadcast by the media and social networks. World governments have taken drastic measures, such as closing schools, entertainment venues and restaurants, and the movement of people has slowed dramatically, in parallel with thousands of canceled flights [14]. The tourism sector and commercial flights are the most affected and the world seems to be heading towards an economic recession, with the GDP of some countries being able to drop double-digit figures.

No one can say whether the measures being taken are sufficient [15], or what the evolution of the pandemic will be, but this appears to be the public health crisis of a generation. However, we cannot forget that, for example, the H1N1 flu of 2009 caused between 151,000 and 575,000 deaths worldwide [16]. The COVID-19 has still a long way to go to reach the H1N1 levels. The world faced other flu pandemic crises in the past [17] and the scientific knowledge has never been so well prepared as today to give appropriate answers to health crises.

The analysis of the evolution of the confirmed cases versus time has considerable interest from the point of view of delivering good information to health organizations and to the general public. Several statistics have been presented, adopting different forms for organizing and visualizing the data. However, a comprehensive representation of the COVID-19 spreading dynamics across different countries is still missing.

In epidemiology, mathematical modeling plays an important role in understanding the mechanisms that govern the transmission of contagious diseases. The work by Kermack and McKendrick [18] formulated the general theory of susceptible–infected–recovered (SIR). A SIR model involves a system of coupled equations relating the numbers of susceptible, infected and recovered people over time, and computes the theoretical number of infected people in a closed population. Many variations of the original SIR model were proposed, such as the susceptible–infectious–susceptible (SIS) and the susceptible–exposed–infectious–recovered (SEIR), based on ordinary [19], stochastic [20] and fractional order [21, 22] differential equations. These recent versions were adopted for studying the spread of distinct infectious diseases [23, 24], including the COVID-19 [25]. However, the main concern of such approach is the model validation, since it requires to compare the results with real data. Contrary to model-driven, data-driven approaches rely on data series for deriving adequate fitting functions. These heuristic models describe well one stage of the epidemic, but fail when the disease evolves toward a different phase. We must also note that the heuristic model is useless in the initial epidemic phase, due to insufficient data [26, 27].

The paper addresses the statistical comparison and visualization of COVID-19 country reported cases in the period December 31, 2019, up to April 12, 2020. The study does not aim to be a contribution tailored for medical treatment or prevention of the disease. Therefore, in a first phase, we adopt a nonlinear least-squares technique to determine possible candidate heuristic models for describing the data regarding COVID-19 infections. In a second phase, we use distinct metrics for processing the data both in the time and frequency domains. The information is visualized using hierarchical clustering (HC) and multidimensional scaling (MDS) for comparing the COVID-19 evolution in the different countries. The HC and MDS generate loci of points in 2- and 3-dimensional spaces representing the number of infections for each country. The positioning and the patterns formed by the points lead to direct interpretations of the results. The study is data-driven, and the models are applicable only at some stages of the outbreak and when enough data points are available.

In this line of thought, the paper is organized as follows. In Sect. 2 we introduce the dataset adopted in the follow-up. In Sect. 3 we analyze the data by means of regression modeling. In Sect. 4 we compare and visualize the COVID-19 spreading data in various countries. In Sect. 5, we discuss the possibility of foreseeing the future evolution. Finally, in Sect. 6 we discuss the results and summarize the main conclusions.

## The dataset

The COVID-19 data are made available by the European Centre for Disease Prevention and Control (https://www.ecdc.europa.eu/en). The dataset is provided in Excel format, containing the number of infected and the number of deaths for each country, on a daily basis. Data for the period from December 31, 2019, up to April 12, 2020, were collected for analysis. This period of time will be denoted as \(\tau \) henceforth.

Figure 1 depicts a geographic map where the colormap is proportional to the number of days elapsed since the occurrence of the first case in each country. We verify that the COVID-19 is particularly severe in the northern hemisphere and, thus, seems not to follow the same pattern of other serious diseases that affected mainly the underdeveloped countries. Therefore, some possible synchronization between countries, or, even, the emergence of new waves of spread in the future are still unclear and techniques such as the Kuramoto model [28] for assessing that hypothesis should be considered.

Let \(x_i(t)\) denote the time series of confirmed COVID-19 daily infections for the *i*th country, \(i=1,\dots ,M\), where \(t=1,\dots ,T\) represents time with one day resolution, within the time interval \(\tau \). Therefore, the signals \(x_i(t)\) evolve in discrete times, *t*, and can be interpreted as one manifestation of a complex system.

For the sake of statistical significance and accuracy of the mathematical tools used for processing the data, we just consider the countries with time series comprising at least 30 days with new infections, which yields the number \(M=79\) listed in Table 1.

For characterizing the evolution of daily infections per country, we calculate the log return:

and we approximate the histogram of \(r_i(t)\) by a symmetric \(\alpha \)-stable distribution [29].

We recall that a probability distribution (PD) (and the corresponding random variable \(\xi \)) is said to be ‘stable’ if a linear combination of 2 independent random variables with such PD has also an identical PD, up to the scale and location parameters, *c* and \(\mu \), respectively [29, 30]. A given family of stable distributions is often called Lévy alpha-stable distribution, after Paul Lévy [31]. The Lévy, Gaussian and Cauchy PD of a random variable \(\xi \) are particular cases of the \(\alpha \)-stable distribution family with the parameter value \(\alpha = \frac{1}{2}, 1\) and 2, respectively [32]. The \(\alpha \)-stable distribution is a four parameter family of distributions and is (usually) denoted by \(S(\alpha ,\beta ,\mathrm{c},\mu )\). The first parameter \(\alpha \) is of particular relevance and describes the tail of the distribution. We have \(\alpha \in (0, 2]\) for the stability (or characteristic exponent), \(\beta \in [-1,1]\) representing the skewness, \(c \in (0, \infty )\) standing for the scale, and \(\mu \in (-\infty , +\infty )\) for location parameters. With exception of the cases when \(\alpha \le 1\) and \(\beta = \pm 1\), we have that for \(\alpha < 2\) the asymptotic behavior is described by [33, 34]:

where \(\varGamma \) denotes the Gamma function. We verify the presence of the so-called heavy or fat tails that cause the variance to be infinite for \(\alpha < 2\).

Figure 2 depicts the histogram and the \(\alpha \)-stable approximation for China, \(r_{14}\), in the period \(\tau \). Twelve bins were considered for having statistical significance. In this case, we have approximately \(f ( r ) \sim 1/ | r |^{1.26}\), that is, \(\alpha =0.26\) corresponding to an extremely small value, which entails a huge probability for extreme values of the return. The alternative of an asymmetrical PD was tested, but the resulting improvement was minor and by consequence merely the symmetrical version is depicted for the sake of simplifying.

## Regression models for describing the spread of COVID-19

Let \(y_i(t)\) represent the time series of cumulative number of infections of \(x_i(t)\), that is \(y_i(t)=\sum _{n=1}^t x_i(n)\). We adopt the nonlinear least-squares [35, 36] to examine the behavior of \(y_i(t)\) for a variety of functions. We selected the ‘Logistic’ and ‘Richards’ models:

for approximating the data of China (\(i=14\)) and Italy (\(i=36\)), respectively, where \(a,b,c,d\in {\mathbb {R}}\) are parameters adjusted by means of a nonlinear least square fit numerical algorithm.

These models were selected from a large number of heuristic functions simply because they (i) adjust adequately to real data, and (ii) involve a limited number of parameters. Therefore, no special biological meaning was intended when using such functions.

Figure 3 illustrates the data time series, \(y_{14}(t)\) and \(y_{36}(t)\) and the corresponding approximations \(\hat{y}_{14}(t)\) and \(\hat{y}_{36}(t)\) for the parameters \(\{a,b,c\}=\{8.15 \times 10^4, 9.59 \times 10^3,2.22\times 10^{-1}\}\) and \(\{a,b,c,d\}=\{1.79 \times 10^5, 6.87, 9.55\times 10^{-2},2.42\times 10^{-1}\}\), respectively.

We verify a good fit in both cases, with coefficient of determination \(R^2=0.99\), but a single model with limited number of parameters is not able to fit well the time series \(\hat{y}_{i}(t)\) for all countries. Obviously, we can adopt other models involving a larger number of parameters for achieving a better fitting to a given \(\hat{y}_{i}(t)\). Nonetheless, only analytical expressions requiring a limited set of parameters are of relevance [37]; otherwise, their comparison and interpretation becomes unclear. On the other hand, the use of distinct models for different countries lack generality when comparing results.

## Global comparison of the COVID-19 spreading

We now analyze the COVID-19 spreading data of \(M=79\) countries both in the time and frequency domains. In the time domain, we compare the pair (*i*, *j*) of countries by the corresponding time series of the cumulative number of infections \([{y}_{i}(t),{y}_{j}(t)]\), \(i,j=1,\dots ,M\), with \(t=1,\dots ,T\). In the frequency domain, the pairs of countries are compared by the daily number of infections \([X_i(\imath \omega ),X_j(\imath \omega )]\), where \(X_i(\imath \omega )={\mathcal {F}}\{x_i(t)\}\), \(\omega =\omega _{1}, \dots , \omega _{K}\), \({\mathcal {F}}\{\cdot \}\) denotes the Fourier transform, \(\omega \) represents the angular frequency and \(\imath =\sqrt{-1}\).

We adopt the Canberra distance to measure the dissimilarity between pairs (*i*, *j*) for the time and frequency domains:

that is, distances based on the variables \(y_i(t)=\sum _{n=1}^t x_i(n)\) and \(X_i(\imath \omega )\), respectively, where \(\hbox {Re}\{\cdot \}\) and \(\hbox {Im}\{\cdot \}\) denote the real and imaginary parts. The Canberra distance has the relevant property of being relatively insensitive to the simultaneous presence of large and small values.

Obviously, other distances are possible [38] and several of them were also tested. However, further distances are not included herein for sake of parsimony, since \(d_{C_{ij}}^{t,y}\) and \(d_{C_{ij}}^{f,X}\) illustrate adequately the proposed concepts.

### Hierarchichal clustering and visualization of COVID-19

For visualizing the relationships between the 79 countries, we first adopt the HC computational approach. The HC is a technique that groups similar objects [39]. Given *M* objects in a *q*-dimensional real-valued space and a dissimilarity metric, a \(M \times M\)-dimensional matrix, \(\varDelta =[\delta _{ij}]\), with \(\delta _{ij}\in {\mathbb {R}}^{+}\) for \(i\ne j\) and \(\delta _{ii}=0\), \((i,j)=1, \dots , M\), of object to object dissimilarities is determined [40]. The HC generates a structure of object clusters, using \(\varDelta \) as input, that is represented graphically either by a hierarchical tree or a dendrogram. We have two alternatives to generate a hierarchy of clusters, namely the agglomerative and divisive clustering iterative techniques. In the first, each object starts in its own cluster and the successive iterations merge the pair of most similar clusters until there is a single cluster. In the second technique all objects start in one cluster and, during the iterations, the ‘outsiders’ are removed from the least cohesive cluster, until each object is in a separate cluster. In both cases the HC requires a linkage criterion, that is a function of the distances between pairs of items, for quantifying the dissimilarity between clusters. Metrics such as the maximum, minimum and average linkages are often used. The distance \(d\left( x_{R},x_{S}\right) \) between two objects \(x_{R} \in R\) and \(x_{S} \in S\), in the clusters *R* and *S*, respectively, can be assessed by means of several metrics such as the average-linkage given by [41]:

For assessing the clustering quality, the index *cc* is mostly used [42]. Let us consider that the original object \(X_i\) is described by a HC representation \(T_i\). Additionally, let *x*(*i*, *j*) and *t*(*i*, *j*) stand for the the distances between the \(X_i\) and \(X_j\) original observations and the HC points \(T_i\) and \(T_j\), respectively. If we have \(\bar{x}={{\,\mathrm{av}\,}}\left( x\left( i,j\right) \right) \) and \(\bar{t}={{\,\mathrm{av}\,}}\left( t\left( i,j\right) \right) \), where \({{\,\mathrm{av}\,}}(\cdot )\) denotes average, then *cc* is given by:

The closer the value of *cc* is to 1, the better the clustering reflects the original data. The results are represented in a Shepard chart that compares the original and the cophenetic distances. The closer to the 45 degree line the points, the better the obtained clustering. For example, in MATLAB, the cophenetic correlation coefficient can be obtained by means of the command cophenet.

Herein, the agglomerative clustering and average-linkage method are adopted for visualizing the two resulting matrices of item-to-item distances based on Eqs. (5) and (6), respectively [43]. Figures 4 and 5 depict the HC trees for \(d_{C_{ij}}^{t,y}\) and \(d_{C_{ij}}^{f,X}\), respectively, during the period \(\tau \). The size of the ‘leafs’ is proportional to the logarithm of the total number of infections at time *T* (i.e., \(\ln [y_i(T)]\)) and the color is proportional to the time of appearance of the first case in each country up to *T*. We verify, in both cases, the emergence of 2 clusters. For the \(d_{C_{ij}}^{t,y}\) we have \({\mathcal {G}}^t_1 ={\mathcal {G}}^t_{11} \cup {\mathcal {G}}^t_{12}\) and \({\mathcal {G}}^t_2= {\mathcal {G}}^t_{21} \cup {\mathcal {G}}^t_{22}\). For \(d_{C_{ij}}^{f,X}\) we have \({\mathcal {G}}^f_1 ={\mathcal {G}}^f_{11} \cup {\mathcal {G}}^f_{12} \) and \({\mathcal {G}}^f_2= {\mathcal {G}}^f_{21} \cup {\mathcal {G}}^f_{22}\).

In Fig. 4, we see a clear position of China followed by the sub-cluster formed by Iran, Italy, Spain, Korea, United States, France and Germany. On the other hand, the tree based on the frequency response gives more importance to a sub-cluster formed by the United States and China, followed by a second group including United Kingdom, Italy, Germany, France, Spain, and Iran. Moreover, the second tree separates better those countries with a smaller impact from the virus spread. In Fig. 4, the countries with a smaller (larger) number of occurrences and a smaller (larger) number of days since the first case are to the left (right). In Fig. 5, the distribution for smaller (medium/larger) values is located on the right (left/middle bottom) sides.

Figure 6 represents the Shepard plot for assessing the HC tree for the 74 countries and the item-to-item dissimilarities \(d_{C_{ij}}^{t,y}\). The chart reflects an accurate clustering of the original data. For the index \(d_{C_{ij}}^{f,X}\), the Shepard plot is identical to the one in Fig. 6 and, therefore, is not presented.

### Multidimensional scaling and visualization of the COVID-19 dataset

The MDS is a computational technique for clustering and visualizing multidimensional data [44]. As for the HC, the input of the MDS numerical scheme is the matrix \(\varDelta =[\delta _{ij}]\), \((i,j)=1, \ldots , M\), of object to object dissimilarities. The main idea of the MDS is to have points for representing objects in a *d*-dim space, with \(d<q\), while trying to reproduce the original dissimilarities, \(\delta _{ij}\). Subsequently, the MDS evaluates distinct configurations for optimizing a given fit function. The result of successive numerical iterations is a set of point coordinates (and, therefore, a symmetric matrix \(\varPhi =[\phi _{ij}]\) of the reproduced dissimilarities) approximating \(\delta _{ij}\). A fit function used frequently is the raw stress \({\mathcal {S}}=\left[ \phi _{ij}-f(\delta _{ij})\right] ^2\), where \(f(\cdot )\) stands for some type of linear or nonlinear transformation.

We have several variants of the MDS, such as the metric, non-metric and generalized MDS. In the case of the metric MDS, the iterative algorithm minimizes the stress cost function \({\mathcal {S}}\). We can have for example the residual sum of squares:

The Sammon criterion can be also adopted

The MATLAB command cmdscale and stress criterion Sammon were adopted. The interpretation of the MDS locus is based on the patterns of points. Similar (dissimilar) objects are represented by points that are close to (far from) each other. Therefore, the information retrieval is not based on the point coordinates, nor the shape of the clusters. This means that it is possible to magnify, translate and rotate the MDS locus. The axes of the MDS plot have neither units nor a special physical meaning. The quality of the MDS can be assessed through the stress and Shepard diagrams. The stress chart represents \({\mathcal {S}}\) versus *d*. The plot is monotonically decreasing and choosing a given value of *d* is a compromise between obtaining low values of \({\mathcal {S}}\) and *d*. The values \(d = 2\) or \(d = 3\) are usually adopted, because they allow a direct representation. The Shepard diagram compares \(\phi _{ij}\) and \(\delta _{ij}\) for a given value of *d*. A narrow scatter represents a good fit between \(\phi _{ij}\) and \(\delta _{ij}\).

Figures 7 and 8 depict the 3D MDS maps for \(d_{C_{ij}}^{t,y}\) and \(d_{C_{ij}}^{f,X}\), respectively, for the period \(\tau \). As before, the size of the dots is proportional to the logarithm of the number of infections (i.e., \(\ln [y_i(T)]\)) and the color is proportional to the time between the first reported case in each country and *T*. The clusters are the same obtained with the HC, however, for their clear visualization we need to rotate the 3D maps.

As for the HC we verify that the time domain approach makes a better distinction of the countries with a larger number of infections, while the MDS based on the frequency domain has a more eclectic distribution, that is with a larger dispersion, and leaves some room for distinguishing the countries with a smaller number of infections. In both figures, the countries to the left (right) have a smaller (larger) number of infections and more (less) time elapsed since their first case in each country.

Figure 9 illustrates the Shepard and stress charts of the MDS obtained with the index \(d_{C_{ij}}^{t,y}\). The diagrams obtained with \(d_{C_{ij}}^{f,X}\) are of the same type and are omitted. The limited scatter of the points around the 45 degree line in the Shepard diagram reveals a good performance of the MDS. The curve elbow in the stress diagram means that both the 2- and 3-dimensional loci are a good option. Nonetheless, as expected, the 3-dimensional locus is better at the expense of a slightly more involved visualization.

The countries with more than 12,000 cases, \({\mathcal {C}}=\{\)AT, BE, BR, CA, CN, FR, DE, IR, IT, NL, PT, KR, ES, CH, TR, GB, US\(\}\), are now compared by means of a combination of MDS and Procrustes analysis when varying time [40, 45,46,47,48]. Procrustes is a statistical method that takes a collection of shapes and transforms them (using translation, rotation, and amplification/reduction of size) for maximum superposition. The comparison is performed for a shorter period of time \(\tau '\) from \(t=40\) up to \(t=T\), so that there is significant non null data for the analysis.

Let \({y}_{c}(t)\), \(c=1,\dots ,16\), denote the data time series representative of the countries in \({\mathcal {C}}\) for periods of time starting at \(t=40\) and increasing up to \(k \le T\). The individual 3D MDS maps (one for each value of *k*) are generated using the item-to-item dissimilarities \(d_{C_{ij}}^{t,y}\) and \(d_{C_{ij}}^{f,X}\), and processed with Procrustes. We must note that we are now using \(T-39\) matrices \(\varDelta \) of dimension \(16 \times 16\). Therefore, the MDS locus produced for each *k* is not a magnification of the previous charts. For each index, the collection of MDS maps yields one global chart (Figs. 10, 11, respectively) that represents world recent evolution of the COVID-19. We verify different behaviors of the time and frequency domains MDS loci being, apparently, slightly more representative the first.

In Figs. 12 and 13, we redraw the MDS charts of Figs. 7 and 8 (for the initial period of time \(\tau \)) with a connection between those countries that lie close to each other in the MDS locus [49]. Therefore, the lines do not represent clusters, and, instead they indicate that in the near future the evolution of a given country will probably be similar (in the sense of the adopted distances) to the neighboring countries. We observe also some discontinuities in the lines. Again they do not represent different clusters. The discontinuities simply mean that some neighbor is closer than the other and, therefore, it is likely that its evolution is closer.

## Is it possible to foresee?

It is written ‘The future belongs to God, and it is only he who reveals it, under extraordinary circumstances’ [50]. To the authors best knowledge, the HC and MDS techniques are not designed to make predictions. Indeed, they allow a better interpretation of the past and present. Nonetheless, we can take advantage of the MDS computational visualization to trace some similarities between the items represented in the loci. From Figs. 10 and 11, where time is a parametric variable, we verify that we do not obtain our intuitive feeling of time as a smooth and continuous variable embedded and synchronizing all events. In fact, we see that the time instant for the beginning and end of the trajectories vary considerably from country to country. Therefore, if we adopt a critical view we can interpret that the 1-dimensional time continuum (if exists) is not adequately represented by the two technique combination (i.e., MDS and Procrustes). However, it was already noticed in previous studies [51, 52], addressing a distinct phenomenon and applying only MDS, that datasets under the influence of social and human factors phenomena exhibit a relativistic behavior and eventually different velocities. Let us name the ‘relativistic time’ to make it distinct from the standard notion of constant speed physical time.

Let us consider the Canberra and Lorentzian distances [38] to measure the dissimilarity between the pairs \(\bar{x}_{i}(t)\) and \(\bar{x}_{j}(t)\):

where \(\bar{x}_i(t) = \left[ x (1),\ldots ,x\left( N\right) \right] \) represents the *i*th vector of *N* consecutive values of *x*(*t*) obtained from non-overlapping time windows. Therefore, the time series is subdivided into identical periods of time giving rise to \(R=\lfloor T/N\rfloor \) windows, where \(\lfloor \cdot \rfloor \) denotes the integer part of the argument. Obviously, the larger the width of the window the better the filtering, but the weaker the notion of time ‘instant’. Now, the MDS has for input a matrix \(\varDelta \) of dimension \(R \times R\) and produces a single locus that compares the set of *N*-dimensional *R* vectors, corresponding to the different time windows. The MDS with MATLAB command cmdscale was adopted.

Figure 14 illustrates the concept of relativistic time for the data set of China for \(N=3\) consecutive values and non-overlapping time windows during the time period \(\tau \). The point labels \(i = 1,\ldots ,R\) correspond to the first day of each time window. The acceleration/deceleration in the relativistic time is captured by the distance between consecutive points.

We verify again the emergence of areas involving a large variability, coincident with large transients, and zones with a smoother evolution, corresponding to a continuous dynamics. In both cases we observe clearly four phases: (i) an initial transient, (ii) a fast progress up to a peak, (iii) a return back (but not exactly to the initial state), and (iv) the emergence of a new, unclear, second wave. As usual with the MDS technique the distinct measures highlight different aspects but the overall conclusions are similar.

For estimating future outcomes we now propose a technique embedding the trendline and the MDS data-driven techniques for estimating the evolution. In what follows we adopt the case of Italy (\(i=36\)) as our test bench and we shall tackle the values of the number of daily infections \(x_i(t)\). The main idea is to fit a set of trendlines to the available data and, based on them, to extrapolate the future behavior. In a second phase we adopt MDS to compare the real-world data and the estimations provided by the trendlines.

We consider four models, namely the ‘Hoerl’, ‘Reciprocal quadratic’, ‘Gaussian’ and ‘Vapor’ given by:

respectively, where \(a,b,c\in {\mathbb {R}}\) are parameters and \(t \in \tau \). We emphasize again that these models have no specific meaning and are just some functions that fit adequately the available data.

In fact, the proposed heuristic models follows the common sense that number of infections will diminish in the future. However, these trendlines are just for estimating the near future and we shall consider \({\mathcal {M}}_{1}\) and \({\mathcal {M}}_{3}\) as representing a ‘optimistic’ scenarios, while \({\mathcal {M}}_{2}\) and \({\mathcal {M}}_{4}\) stand for ‘pessimistic’ future outcomes. Moreover, models \({\mathcal {M}}_{1}\), \({\mathcal {M}}_{2}\) and \({\mathcal {M}}_{4}\) have an asymmetric evolution about the peak, while \({\mathcal {M}}_{3}\) considers a symmetric behavior. For the data collected on April 12, we obtain the set of parameters \(\{a,b,c\}_{{\mathcal {M}}_{1}}=\{ 1.78 \times 10^{-4}, 0.82, 6.75\}\), \(\{a,b,c\}_{{\mathcal {M}}_{2}}=\{3.10 \times 10^{-2}, -1.63 \times 10^{-3}, 2.63 \times 10^{-5}\}\), \(\{a,b,c\}_{{\mathcal {M}}_{3}}=\{5.63 \times 10^3, 3.64 \times 10^1, 1.23 \times 10^1 \}\) and \(\{a,b,c\}_{{\mathcal {M}}_{4}}=\{3.48 \times 10^1, -1.95 \times 10^{2}, -5.80\}\).

Figure 15 represents the curve fitting for the period \(\tau \) and an estimation up to an extended period of time \(\tau ''=80\) days.

For assessing the quality of the estimations we compare the real data and the results provided by \({\mathcal {M}}_{j}\), \(j=1,\ldots ,4\), for Italy using the Canberra and the Lorentzian distances defined previously in (11)–(12). As before, the heuristic models cover an extended period of \(\tau ''=80\) days for providing an estimation of the near future. We adopt the stress \({\mathcal {S}}\) for assessing the conformity between the data and the trendlines including their estimation. The MATLAB command cmdscale and stress criterion Sammon were adopted.

Figure 16 depicts the stress yielded by the MDS loci generated by the Canberra and the Lorentzian and the models \({{\mathcal {M}}_{j}}\), \(j=1,\ldots ,4\) for the case of Italy.

We verify that for \(d=3\) the models \({\mathcal {M}}_{2}\) and \({\mathcal {M}}_{3}\) are superior when considering the Canberra distance. However, the models \({\mathcal {M}}_{1}\) and \({\mathcal {M}}_{3}\) are superior in the perspective of the Lorenzian distance.

Figures 17 and 18 show the resulting MDS loci for the Canberra and the Lorenzian distances for the two best models in each case.

The Lorentzian distance is more sensitive and gives more space to the artifact represented by the value \(x_{36}(t=23) = 90\) (the neighbor values are \(x_{36}(t=22) = 2547\) and \(x_{36}(t=24) =6230\)), but, on the other hand, shows more clearly the recent final phase. The Gaussian model, \({\mathcal {M}}_{3}\) seems a good compromise between the two distances and produces a trajectory consistent with the data series without exhibiting acceleration/deceleration time periods distinct from those available at the time of writing the paper. Nonetheless, the authors highlight that the COVID-19 evolution has an underlying plethora of phenomena going from cultural and economical up to political and geographical issues. As someone said, ‘Prediction is very difficult, especially if it’s about the future’ [53].

## Conclusions

This paper investigated an example of an extreme event, namely the dynamics of the COVID-19 spreading. Two approaches were considered for the period from December 31, 2019 up to April 12, 2020. In a first phase, heuristic models were used to fit the time series of the number of infections verified in a set of 79 countries. In a second phase, two metrics were used for comparing the countries data both in the time and frequency domains, and the HC and MDS techniques were adopted for clustering and visualization. The time evolution was also considered for a group of countries exhibiting a more dramatic spread of the COVID-19. The combination of Procrustes and MDS showed that besides the number of infections, the dynamic characteristics play an important role that is not evident in standard representations. In fact, the computational and mathematical modeling lead to the emergence of patterns both highlighting the main clusters and the similarities or dissimilarities between them. Given the potential of the techniques discussed here we can think of their application in several research directions such as the subdivision of data sets according with distinct criteria such as the age, or the geographical origin of the patients. Additionally, analysis considering a large set of influential factors besides merely the casualties can be tried, such as infected people staying in general or in intensive care in hospital, or recovered based on some type of treatment. Therefore, if sufficient and assertive information is collected, then research can follow the aforementioned computational methods to unravel space and time nonlinear dynamics embedded the data.

## References

- 1.
Pinto, C., Mendes Lopes, A., Machado, J.: A review of power laws in real life phenomena. Commun. Nonlinear Sci. Numer. Simul.

**17**(9), 3558–3578 (2012) - 2.
Newman, M.E.: Power laws, Pareto distributions and Zipf’s law. Contemp. Phys.

**46**(5), 323–351 (2005) - 3.
Bak, P., Tang, C., Wiesenfeld, K., et al.: Self-organized criticality: an explanation of 1/

*f*noise. Phys. Rev. Lett.**59**(4), 381–384 (1987) - 4.
Jensen, H.J.: Self-organized Criticality: Emergent Complex Behavior in Physical and Biological Systems, vol. 10. Cambridge University Press, Cambridge (1998)

- 5.
Sornette, D.: Dragon-kings, black swans and the prediction of crises. arXiv preprint arXiv:0907.4290 (2009)

- 6.
Pisarenko, V., Sornette, D.: Robust statistical tests of Dragon–Kings beyond power law distributions. Eur. Phys. J. Spec. Top.

**205**(1), 95–115 (2012) - 7.
Shaywitz, D.A.: Shattering the bell curve. Wall Street J.

**24**, D8 (2007) - 8.
Dietz, L., Horve, P.F., Coil, D., Fretz, M., Van Den Wymelenberg, K.: 2019 Novel Coronavirus (COVID-19) outbreak: a review of the current literature and built environment (BE) considerations to reduce transmission (2020)

- 9.
Jiang, F., Deng, L., Zhang, L., Cai, Y., Cheung, C.W., Xia, Z.: Review of the clinical characteristics of coronavirus disease 2019 (COVID-19). J. Gen. Int. Med. (2020). https://doi.org/10.1007/s11606-020-05762-w

- 10.
Murdoch, D.R., French, N.P.: COVID-19: another infectious disease emerging at the animal-human interface. N. Z. Med. J.

**133**(1510), 12 (2020) - 11.
Zu, Z.Y., Jiang, M.D., Xu, P.P., Chen, W., Ni, Q.Q., Lu, G.M., Zhang, L.J.: Coronavirus disease 2019 (COVID-19): a perspective from China. Radiology (2020). https://doi.org/10.1148/radiol.2020200490

- 12.
Chen, S., Yang, J., Yang, W., Wang, C., Bärnighausen, T.: COVID-19 control in China during mass population movements at new year. The Lancet

**395**, 764 (2020) - 13.
Leung, C.C., Lam, T.H., Cheng, K.K.: Mass masking in the COVID-19 epidemic: people need guidance. The Lancet

**395**, 945 (2020) - 14.
Chinazzi, M., Davis, J.T., Ajelli, M., Gioannini, C., Litvinova, M., Merler, S., Piontti, A.P., Mu, K., Rossi, L., Sun, K., Viboud, C., Xiong, X., Yu, H., Halloran, E., Longini, I., Vespignani, A.: The effect of travel restrictions on the spread of the 2019 novel coronavirus (COVID-19) outbreak. Science

**368**, 395–400 (2020) - 15.
Moorthy, V., Restrepo, A.M.H., Preziosi, M.P., Swaminathan, S.: Data sharing for novel coronavirus (COVID-19). Bull. World Health Organ.

**98**(3), 150 (2020) - 16.
Cox, C.M., Blanton, L., Dhara, R., Brammer, L., Finelli, L.: 2009 pandemic influenza A (H1N1) deaths among children-United States, 2009–2010. Clin. Infect. Dis.

**52**(suppl1), S69–S74 (2011) - 17.
Liu, Y., Gayle, A.A., Wilder-Smith, A., Rocklöv, J.: The reproductive number of COVID-19 is higher compared to SARS coronavirus. J. Travel Med. (2020). https://doi.org/10.1093/jtm/taaa021

- 18.
Kermack, W.D., McKendrick, A.G.: A contribution to the mathematical theory of epidemics. Proc. R. Soc. Lond. Ser. A Math. Phys. Sci.

**115**(772), 700–721 (1927) - 19.
Bjørnstad, O.N., Finkenstädt, B.F., Grenfell, B.T.: Dynamics of measles epidemics: estimating scaling of transmission rates using a time series SIR model. Ecol. Monogr.

**72**(2), 169–184 (2002) - 20.
Huang, Z., Yang, Q., Cao, J.: Complex dynamics in a stochastic internal HIV model. Chaos Solitons Fractals

**44**(11), 954–963 (2011) - 21.
Hassouna, M., Ouhadan, A., El Kinani, E.: On the solution of fractional order SIS epidemic model. Chaos Solitons Fractals

**117**, 168–174 (2018) - 22.
Kheiri, H., Jafari, M.: Stability analysis of a fractional order model for the HIV/AIDS epidemic in a patchy environment. J. Comput. Appl. Math.

**346**, 323–339 (2019) - 23.
Yu, P., Zhang, W.: Complex dynamics in a unified SIR and HIV disease model: a bifurcation theory approach. J. Nonlinear Sci.

**29**(5), 2447–2500 (2019) - 24.
Kibona, I.E., Yang, C.: SIR model of spread of Zika virus infections: ZIKV linked to microcephaly simulations. Health

**9**(8), 1190–1210 (2017) - 25.
Fang, Y., Nie, Y., Penny, M.: Transmission dynamics of the COVID-19 outbreak and effectiveness of government interventions: a data-driven analysis. J. Med. Virol.

**92**(6), 645–659 (2020) - 26.
Zhang, S., Diao, M., Yu, W., Pei, L., Lin, Z., Chen, D.: Estimation of the reproductive number of Novel Coronavirus (COVID-19) and the probable outbreak size on the Diamond Princess cruise ship: a data-driven analysis. Int. J. Infect. Dis.

**93**, 201 (2020) - 27.
Yang, S., Cao, P., Du, P., Wu, Z., Zhuang, Z., Yang, L., Yu, X., Zhou, Q., Feng, X., Wang, X., et al.: Early estimation of the case fatality rate of COVID-19 in mainland China: a data-driven analysis. Ann. Transl. Med.

**8**, 128 (2020) - 28.
Kuramoto, Y.: Lecture Notes in Physics, International Symposium on Mathematical Problems in Theoretical Physics, Chap. Innovation and Intellectual Property Rights, Springer, New York, USA, pp. 420–422 (1975)

- 29.
Nolan, J.: Stable Distributions: Models for Heavy-Tailed Data. Birkhauser, New York (2003)

- 30.
Gnedenko, B., Kolmogorov, A.: Limit Distributions for Sums of Independent Random Variables. Addison-Wesley Series in Statistics. Addison-Wesley (1968). https://books.google.pt/books?id=rYsZAQAAIAAJ

- 31.
Lévy, P.: Calcul des Probabilités. Gauthier-Villars, Paris (1925)

- 32.
Adler, R., Feldman, R., Taqqu, M.: A Practical Guide to Heavy Tails: Statistical Techniques and Applications. Springer, Berlin (1998)

- 33.
Penson, K.A., Górska, K.: Exact and explicit probability densities for one-sided Lévy stable distributions. Phys. Rev. Lett.

**105**, 210604 (2010). https://doi.org/10.1103/PhysRevLett.105.210604 - 34.
Rachev, S.T., Kim, Y.S., Bianchi, M.L., Fabozzi, F.J.: Financial Models with Lévy Processes and Volatility Clustering (2011). https://doi.org/10.1002/9781118268070

- 35.
Lawson, C.L., Hanson, R.J.: Solving Least Squares Problems, vol. 161. SIAM, New Delhi (1974)

- 36.
Draper, N.R., Smith, H., Pownell, E.: Applied Regression Analysis, vol. 3. Wiley, New York (1966)

- 37.
Lopes, A., Tenreiro Machado, J., Galhano, A.: Empirical laws and foreseeing the future of technological progress. Entropy

**18**(6), 217 (2016) - 38.
Deza, M.M., Deza, E.: Encyclopedia of Distances. Springer, Berlin (2009)

- 39.
Hartigan, J.A.: Clustering Algorithms. Wiley, New York (1975)

- 40.
Tenreiro Machado, J., Lopes, A.M., Galhano, A.M.: Multidimensional scaling visualization using parametric similarity indices. Entropy

**17**(4), 1775–1794 (2015) - 41.
Aggarwal, C.C., Hinneburg, A., Keim, D.A.: On the Surprising Behavior of Distance Metrics in High Dimensional Space. Springer, Berlin (2001)

- 42.
Sokal, R.R., Rohlf, F.J.: The comparison of dendrograms by objective methods. Taxon

**11**, 33–40 (1962) - 43.
Felsenstein, J.: PHYLIP (phylogeny inference package), version 3.5 c. Joseph Felsenstein (1993)

- 44.
Saeed, N., Nam, H., Haq, M.I.U., Muhammad Saqib, D.B.: A survey on multidimensional scaling. ACM Comput. Surv. (CSUR)

**51**(3), 47 (2018) - 45.
Bookstein, F.L.: Landmark methods for forms without landmarks: morphometrics of group differences in outline shape. Med. Image Anal.

**1**(3), 225–243 (1997) - 46.
Gower, J.C., Dijksterhuis, G.B.: Procrustes Problems, vol. 3. Oxford University Press, Oxford (2004)

- 47.
Stegmann, M.B., Gomez, D.D.: A brief introduction to statistical shape analysis. In: Informatics and Mathematical Modelling, Technical University of Denmark, DTU, vol. 15, p. 11 (2002)

- 48.
Lopes, A.M., Tenreiro Machado, J., Galhano, A.M.: Multidimensional scaling visualization using parametric entropy. Int. J. Bifurc. Chaos

**25**(14), 1540017 (2015) - 49.
Lopes, A.M., Machado, J.T., Mata, M.E.: Analysis of global terrorism dynamics by means of entropy and state space portrait. Nonlinear Dyn.

**85**(3), 1547–1560 (2016) - 50.
Coelho, P.: De alchemist. Singel Uitgeverijen (2014)

- 51.
Machado, J.T.: Complex dynamics of financial indices. Nonlinear Dyn.

**74**(1–2), 287–296 (2013) - 52.
Machado, J.T.: Relativistic time effects in financial dynamics. Nonlinear Dyn.

**75**(4), 735–744 (2014) - 53.
Bohr, N.: Prediction is very difficult, especially if it’s about the future (2013)

## Author information

### Affiliations

### Corresponding author

## Ethics declarations

### Conflict of interest

The authors declare that they have no conflict of interest.

## Additional information

### Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

## About this article

### Cite this article

Machado, J.A.T., Lopes, A.M. Rare and extreme events: the case of COVID-19 pandemic.
*Nonlinear Dyn* **100, **2953–2972 (2020). https://doi.org/10.1007/s11071-020-05680-w

Received:

Accepted:

Published:

Issue Date:

### Keywords

- Coronavirus disease 2019
- Extreme events
- Regression
- Multidimensional scaling
- Hierarchical clustering
- Complex systems