key: cord-0763064-rrc4us4x authors: James, Nick; Menzies, Max title: Efficiency of communities and financial markets during the 2020 pandemic date: 2021-04-06 journal: Chaos DOI: 10.1063/5.0054493 sha: 864c6405753fa500e7accd255f4d3ec7d1363e1f doc_id: 763064 cord_uid: rrc4us4x This paper investigates the relationship between the spread of the COVID-19 pandemic, the state of community activity, and the financial index performance across 20 countries. First, we analyze which countries behaved similarly in 2020 with respect to one of three multivariate time series: daily COVID-19 cases, Apple mobility data and national equity index price. Next, we study the trajectories of all three of these attributes in conjunction to determine which exhibited greater similarity. Finally, we investigate whether country financial indices or mobility data responded quicker to surges in COVID-19 cases. Our results indicate that mobility data and national financial indices exhibited the most similarity in their trajectories, with financial indices responding quicker. This suggests that financial market participants may have interpreted and responded to COVID-19 data more efficiently than governments. Further, results imply that efforts to study community mobility data as a leading indicator for financial market performance during the pandemic were misguided. First, we analyze which countries behaved similarly in 2020 with respect to one of three multivariate time series: daily COVID-19 cases, Apple mobility data and national equity index price. Next, we study the trajectories of all three of these attributes in conjunction to determine which exhibited greater similarity. Finally, we investigate whether country financial indices or mobility data responded quicker to surges in COVID-19 cases. Our results indicate that mobility data and national financial indices exhibited the most similarity in their trajectories, with financial indices responding quicker. This suggests that financial market participants may have interpreted and responded to COVID-19 data more efficiently than governments. Further, results imply that efforts to study community mobility data as a leading indicator for financial market performance during the pandemic were misguided. a) Electronic mail: max.menzies@alumni.harvard.edu 1 arXiv:2104.02318v2 [physics.soc-ph] 6 Jul 2021 Efficiency of communities and financial markets during the 2020 pandemic COVID-19 has resulted in a global pandemic with severe human, social and financial costs. To mitigate the spread of new cases, governments have implemented a multi-level approach involving social distancing, business closures and movement restrictions. Given the ubiquity of mobile devices, the effects of such restrictions on community activity and movement may be observed through Apple mobility data. 1 This mobility data provides a timely representative of the current state of community movement and activity, with some limitations. In addition, it has been hypothesized that these restrictions would have a deleterious effect on the global financial system. 2 This raises the question: did financial markets or community mobility, as an approximate representative of the current level of government restrictions, exhibit an earlier crash in March 2020? This may suggest whether market participants or governments responded more quickly to the pandemic. This paper addresses this by analyzing COVID-19 cases, community mobility data and financial markets in conjunction and on a country-by-country basis. We observe substantial similarity between countries' mobility and financial trajectories as a whole, and determine that markets generally reflected the pandemic more promptly than community mobility. Throughout the pandemic, there has been extensive debate on the merits and necessity of measures to mitigate the spread of COVID-19. Policymakers have had to balance the ramifications of business closures, movement restrictions and lockdowns against prioritizing public health. To inform the decision-making process, there has been consistent interest in studying the impact of COVID-19 cases and deaths on various measures of community and financial activity in any candidate country. While COVID-19 counts and financial data are typically available on a daily basis, traditional economic metrics such as unemployment and GDP, which may measure whether a community is thriving or in decline, are generally only available on a monthly or quarterly basis. Both financial markets and new waves of the pandemic may change at a much greater rate than updates to these data may be available. For a more granular and up-to-date analysis during the pandemic, many investors have used alternative data sources as an indicator of the community's activity and normalcy in various countries. 3 We follow this trend, using daily Apple mobility data as an indicator of such activity. On a country-by-country basis, this mobility data reports various community movement indicators such as walking, driving and public transport. As varying indicators are available in different locations, we average the indicators of any candidate country to form a single mobility time series for each country. We provide a more detailed description of the data in Section II. This paper is inspired by the substantial heterogeneity that countries across the world experienced in 2020 with respect to their COVID-19 cases and deaths, government responses, community activity, and financial market performance. Government restrictions on movement, businesses and community activity varied substantially, both from country to country and over time. Some countries acted more aggressively in closing borders 4 and implementing contact tracing programs, 5 while other nations and states did not implement sufficient restrictions or implemented them too late. 6, 7 These varied responses led to substantial differences in case and death counts, 8 community activity during lockdowns and reopening, 9, 10 and financial market performance throughout 2020. 11 Amid this heterogeneity, studying the relationship between cases, community activity and market performance on a country-by-country basis and over time may reveal some key relationships between community and market activity during the pandemic. First, we aim to understand which countries behaved most similarly with respect to each individual characteristic. Similarity as well as differences between countries may provide the opportunity to learn from more successful countries in the future and attribute better or worse outcomes to certain responses. Next, we wish to understand which of the three data attributes behaved most similarly as a whole. This may provide insights into which factors (epidemiological, behavioral, and financial) are likely leading vs lagging. Finally, it is worth investigating whether governments or financial markets acted more efficiently during the pandemic, and which governments acted most (and least) efficiently. We study financial markets via country equity index prices, while government actions such as restrictions on businesses and movements are related to community mobility data. Given the substantial variance among government responses, one can highlight the most (and least) responsive governments. There has been a litany of work examining the impact of COVID-19 on various aspects of conventional financial markets. [12] [13] [14] [15] [16] [17] [18] [19] [20] In addition to equities, significant research has addressed shifts in cryptocurrency behavior during this period. [21] [22] [23] [24] [25] [26] [27] [28] [29] The study of market crises, and in particular the COVID-19 market crisis, has attracted significant interest from the nonlinear dynamics and econophysics communities. [30] [31] [32] [33] [34] Building upon prior studies of COVID-19 in general and analyses of mobility data, [35] [36] [37] we believe this is the first paper to simultaneously and quantitatively address the heterogeneous evolution of community activity and financial markets among a wide collection of countries, and examine the responsiveness of community mobility vs financial markets to For this purpose, we use new and existing methods to study COVID-19, mobility and financial time series on a country-by-country basis. Within epidemiology, time series analysis has been used to study a variety of diseases such as Ebola, 38, 39 Zika, 40, 41 and more recently, COVID-19. Methods used by nonlinear dynamics researchers to study COVID-19 are numerous, including innovations based on SIR models, 42-50 power-law models, 51-53 distance analysis, 54,55 network models, [56] [57] [58] [59] analyses of the dynamics of transmission and contact, 60,61 forecasting models, 62 Bayesian methods, 63 clustering 64,65 and many other works. [66] [67] [68] [69] [70] This paper is structured as follows. In Section II, we describe the data sources used in this paper and perform an initial analysis on the Apple mobility data. In Section III, we analyze epidemiological, community mobility and financial data independently, identifying structural similarity among the 20 countries under consideration with respect to each attribute. In Section IV, we study all trajectories in conjunction to determine which data attributes display more homogeneity as a whole. In Sections III and IV, we first use hierarchical clustering to gain insights into the structure of the collection of time series, and then follow with a closer analysis of their dynamics, using both new and existing methods. In Section V, we introduce a new approach to investigate whether the impact of COVID-19 was felt by mobility or financial data first. This analyzes the extent of coincidence of COVID-19 peaks and mobility and financial troughs among different countries, and may suggest whether governments or financial markets were more efficient at responding during the pandemic. We summarize our findings and limitations regarding COVID-19 cases, community mobility and financial market performance in Section VI. The countries included in this study are the following: Argentina, Australia, Brazil, Canada, Denmark, France, Germany, India, Italy, Japan, Mexico, the Netherlands, New Zealand, Norway, Russia, Singapore, Spain, Switzerland, the United Kingdom (U.K.) and the United States (U.S.). Excluding China, where mobility data is not available, this list contains most of the top 20 economies in the world by nominal GDP. 71 For each country, we analyze three time series: COVID-19 new cases, averaged Apple mobility data across available indicators, and country financial index price. As financial data is only available on weekdays (and COVID-19 and mobility data are consistently reduced on weekends), we restrict our analysis only to trading days. Our data spans 01/13/2020 to 12/30/2020, a period of 234 trading days. Apple mobility data provides aggregated counts of requests for directions via Apple Maps for various countries and regions. Although the data records requests, rather than distances actually travelled, many analysts have used this data throughout the pandemic as a guide into people's movements. 3 Apple mobility data is available across 63 countries, with the notable omission of China. Each country has up to three indicators -walking, driving and transit -with available indicators varying across countries. This may provide a challenge to fairly comparing different countries' mobility activity. In this section, we perform an initial analysis of the different constituent indicators of each country's mobility data. Our aim is to show high correlation between these constituent indicators. Therefore, it is appropriate to average available indicators and yield one representative mobility time series for each country. As each constituent indicator is highly correlated, this averaged data represents each individual indicator well. One can then compare the single averaged mobility time series on a country-by-country basis. Each country (i = 1, ..., 20) has either two or three mobility indicators µ j i (t), j = 1, 2, 3. For each country, we compute the average of the non-trivial correlations, namely A value close to 1 indicates that all available indicators for that country are highly correlated. We record these average correlations for each country in Table I . In addition, we display all correlations between constituent indicators of any country in Figure 1 . In Table I , we can see clearly that the average correlations of mobility indicators for each country are overwhelmingly high, ranging from 0.59 to 0.99 and a median of 0.86. This is also reflected in the entries of Figure 1 , where individual correlation coefficients between mobility indicators of the same country are almost all close to 1. This justifies our averaging approach, as the single averaged mobility time series for each country represents every available indicator quite well. Henceforth in this paper, we will only examine averaged mobility data in order to fairly compare country to country. We conclude this section with a brief outline of possible bias in using the mobility data to measure community activity. If the requests that the data counts were substantially different to people's actual movements, the data may not provide the optimal depiction of community mobility. One instance of such potential bias could be people's checking travel distances to restaurants, as a means of estimating food delivery time; in such circumstances, people may not subsequently proceed with any journey. Further interpretations and limitations of this data, including existing research on the utility of mobility data, are discussed in Section VI. In this section, we study the behaviors of COVID-19 cases, community mobility activity and financial index prices among our countries of interest. Our analysis uses data starting 01/13/2020 and finishing 12/30/2020, a period of 234 trading days. Across n = 20 countries, let Table I. the multivariate time series of each country's new daily COVID-19 cases, averaged Apple mobility data, and daily closing equity prices, t = 0, ..., T and i = 1, ..., n. T = 233 gives 234 trading days. First, we analyze countries' COVID-19 cases relative to each other. Considering the new case counts of a single country gives a function t=0 |x i (t)| be its L 1 norm. We can define a normalized case trajectory by f i = x i ||x i || . These vectors highlight the relative changes of new case counts within the entire period. We then define a trajectory distance matrix with respect to cases, D C i j = ||f i − f j ||, i, j = 1, ..., n. Next, we can do the same for mobility and price data. To ensure comparably normalized trajectories, we must linearly adjust these by subtracting their minimum value. That is, letμ for each country, analogously forp i (t). We define normalized mobility and price trajectories by g i =μ i ||μ i || and h i =p i ||p i || , respectively. Analogously as before, we define trajectory distance matrices with respect to mobility and prices, We note that COVID-19 cases exhibit their minimal value as zero, so do not need to be linearly adjusted. In Figures 2, 3 and 4, we display hierarchical clustering on the matrices D C , D M , D P , respectively, and proceed to interpret these results. Hierarchical clustering provides a convenient, accessible and visual means of identifying structural similarity in a collection of time series, such as which countries are most similar to each other. It provides a high-level understanding of the data, which may then be followed by more specific, targeted analysis. We supply additional analyses of the time series dynamics throughout the paper. First, the cases trajectory dendrogram ( Figure 2 ) is comprised of 2 clusters, a large predominant cluster and a small cluster of outlier countries -Australia, New Zealand and Singapore. The common theme among the latter countries is their low total number of cases throughout the year and their suppressed new cases towards the end of 2020, as can be seen for Singapore in Figure 5a . The larger cluster is characterized by new case trajectories exhibiting multiple waves of new cases, with many countries experiencing significant growth in cases towards the end of 2020, as can be seen for the U.S. in Figure 5b . To confirm our findings, we implement a simple analysis to quantify whether countries exhibited the majority of their cases earlier or later in the year. Given a country's new case time series x i (t), we treat the case counts as a distribution over t = 0, ..., T and calculate its median. Specifically, we determine the minimal T We record the values of T (i) 1/2 , expressed in terms of their corresponding calendar dates, in Table II . We confirm what we initially observed in Figure 2 , that New Zealand, Singapore and Australia have earlier values of approaches among the policymakers of these respective countries. Having observed this striking split into two clusters, we implement a new analytical method to further study this distinction quantitatively. Essentially, we wish to determine, on a country-bycountry basis, the total length of time that each mobility time series was increasing vs decreasing. First, we note that every mobility time series µ i (t) experienced its global minimum T µ i at approximately the same time, in March/April. The primary distinction between the two cluster behaviors occurs after this global minimum. Thus, we restrict attention to the period t ≥ T µ i . Our approach adopts the flexible algorithmic framework of Ref. 73 to analyze the mobility time series over the period t ≥ T µ i . We begin by smoothing out each truncated (and minimum-adjusted) time series to yield a new series ν i (t),t = T µ i , ..., T . Then, we have two approaches, one relatively simple and one novel, to determine periods of increase and decrease. For the naive approach, let A i be the number of "ascending" days t = T µ i , .., T − 1 such that ν i (t) ≤ ν i (t + 1). This is determined with the smoothed time series, so as not to be influenced by daily perturbation in the data surrounding the true signal. Our novel method, fully described in Appendix A, identifies non-trivial turning points in each time series ν i (t), both local maxima and minima, beginning with a minimum at T µ i . Every day following a local minimum or maximum is counted as an increasing or decreasing period, respectively, until the next turning point is observed. With this definition, let B i be the number of days of increasing periods. Results from both the naive approach (A i ) and novel method (B i ) are recorded in Table II. The results from our additional experiment confirm and quantify our observations from the hierarchical clustering in Figure 3 , and characterize a clear difference in the dynamics of these mobility time series. As discussed before, hierarchical clustering identifies two distinct groups. Ordering countries in Table II by their increasing value of B i yields Spain, Russia, Denmark, the U.S., Canada, Netherlands, the U.K., Germany, Switzerland, Italy, France, and then Japan, New Zealand, Singapore, India, Mexico, Australia, Argentina, Brazil. We observe that each previously observed cluster is an unbroken interval with respect to ordering by B i . This suggests that the observed cluster split in Figure 3 can be largely explained by this difference in periods of increase or decrease. One cluster features countries where mobility time series exhibited decrease for much of the year, while the countries of the other cluster exhibited many more days of increase. The naive method obtains similar results, ordering the countries as Denmark, Canada, the Netherlands, Norway, Germany, the U.K., Italy, Spain, Russia, the U.S., Switzerland, Japan, France, New Zealand, Mexico, Australia, Singapore, Argentina, Brazil, and India. This almost exactly corresponds to the two clusters in archical clustering highlights that Singapore managed COVID-19 cases anomalously well, while its financial index performance was anomalously poor. By contrast, the U.S. leads the world in COVID-19 cases and deaths, but exhibited robust financial index performance after the initial drop in March. In this section, we seek to determine collective similarity among the three attributes under consideration. Specifically, we wish to measure the similarity of relative moment between new cases, changes in mobility, and market price. For this purpose, we define a symmetric 60 × 60 matrix M that appropriately compares this similarity among the three time series. First, we define and analogously for pairings < x i ,p k >, and <μ j ,p k >, i, j, k and is defined as follows: First, we explain why we use this pairing rather than the more standard correlation or distance correlation metrics. Two new case time series x i and x j have maximal correlation or distance correlation 1 if x i = kx j + b for constants k > 0 and b. This property is unsuitable for uncovering similarity between time series regarding movement relative to itself. For example, if the cases of one country x i change linearly from 0 to 100 and return to 0, this would be maximally correlated with the cases of another country x j that change linearly from 1000 to 1100 and return to 1000 over the same time period. Clearly, these countries differ substantially in their changes in new cases relative to themselves, with x j exhibiting a much flatter trajectory and less movement relative to itself. The same reasoning applies for mobility and price trajectories. We perform hierarchical clustering on M in Figure 6 , and observe substantial structure in this We can quantify the level of heterogeneity between the three data attributes by further examining the matrix M. Restricting M to its first 20 × 20 rows and columns yields a matrix M case that describes the similarity between countries' case trajectories. We can similarly produce M mob and M fin . Given an n × n matrix A, define its (normalized) L 1 norm by ||A|| = 1 n 2 ∑ n i, j=1 |A i j |. Applied to M case , M mob and M fin , these norms quantify the total (average) similarity within these matrices. We see that ||M mob || = 0.93, indicating an average similarity of 0.93 between all the mobility trajectories, while ||M fin || = 0.77 and ||M case || = 0.61. This reveals the strongest self-similarity between mobility trajectories, followed by financial and then case trajectories. Indeed, mobility trajectories exhibit substantial homogeneity, with only slight differences described between the 2 clusters of Figure 3 . Australia and New Zealand have highly similar mobility trajectories, reflecting the two government's similarly aggressive responses in limiting public movement. 74 Even with the substantial similarity between mobility and financial trajectories as a whole, there is no tendency for trajectories to be grouped based on country. For example, neither Singapore nor the U.S.' COVID-19 cases, mobility or financial index trajectories cluster similarly. In this section, we analyze the collective similarity between mobility data and financial indices in more detail. In particular, we investigate mobility activity or financial indices responded first to the pandemic -and whether this varied among countries. Our analytical approach uses the same Singapore is the only country whose global (smoothed) financial minimum T P i did not coincide with its first trough, which we have chosen to distinguish here. minimum in smoothed mobility and prices occurred, for i = 1, ..., n. For every mobility and price time series other than Singapore's price index, this global minimum coincides with the first trough (local minimum) in smoothed mobility and prices, respectively. That is, except for Singapore as an anomaly, the times T M i and T P i are the first troughs in (smoothed) mobility and prices, and are thus appropriate to compare with T C i . We can then define a critical point distance matrix between countries as follows: We perform hierarchical clustering on this matrix D cp in Figure 7 . We may also define an internal critical distance between these critical points for any candidate country. With q > 0 a fixed parameter, we define These values are appropriately normalized for comparison as the parameter q varies. If q = 1, this simplifies to 2 3 . When q < 1, this internal distance becomes smaller when the middle critical value is closer to one of the end points and thus rewards (via a smaller total value) less equally distributed points. When q > 1 the reverse occurs -d int Table III Viewed in conjunction, Figure 7 and Table III reveal notable anomalies in the timing of the critical points of COVID-19 cases, mobility data and financial indices. The countries with the five greatest internal distances, as recorded in Table III , for any value of q, are Argentina, Brazil, India, Mexico and Singapore. All of these also appear as outliers in Figure 7 . Singapore is a lone outlier due to a financial minimum occurring late in the year, much later than any other country. If we were to change the definition of T P i to be the first trough, Singapore would disappear as an outlier. We choose to document it as it is, noting its unique status in having a second and more substantial minimum in (smoothed) index price later in the year (Figure 5e ). Argentina, Brazil, India and Mexico occur as an outlier cluster in Figure 7 . All four of these emerging economies exhibit similar early troughs in mobility activity and financial indices when compared with the other countries under consideration. They are anomalous due to their much later first peaks in COVID-19 cases, as seen in Figure 8 . Brazil and Mexico, which form a subcluster pair, exhibit their first peak in smoothed cases near the start of August (Figures 8b and 8d respectively) . India and Argentina, which also form a subcluster pair, exhibit their first peaks in cases in September and October, respectively (Figures 8c and 8a, respectively) . That is, COVID-19 cases were consistently and uniformly rising throughout almost the whole year in these countries. On the other hand, the countries with the lowest internal critical distances (both for q = 1/2 and q = 1) are, in order, Italy, France, Denmark, Germany, Norway, Switzerland, the Netherlands, Spain, and the U.K. Once again, we observe substantial similarity in these countries -all are wealthy European nations. Together with similarly developed countries Australia and New Zealand, these form a subcluster of close similarity in Figure 7 . This reveals that all these countries behaved similarly relative to COVID-19 counts, mobility data and financial indices early in the year, with an early COVID-19 peak, mobility trough and financial trough in March. Of course, the latter half of 2020 featured substantial differences between, for example, Australia and New Zealand and the aforementioned European countries, as shown in Figure 2 and analyzed further in Table II . Nowhere in the preceding analysis do we determine whether T M i or T P i occurred first; we only consider the absolute distances in these values between each other and other countries. We conclude this section with an inner product-based optimization framework that computes an offset between the mobility and financial time series for each country. This considers all data points in the time series (not just the critical points) to identify whether mobility data lags financial performance or vice versa. Specifically, we wish to determine the offset τ ∈ {−30, −29, ..., −1, 0, 1, ..., 29, 30} for each country i that most appropriately aligns the functionp i (t) with the translated functioñ µ i (t + τ). If τ > 0, this means the values ofμ i (t + τ) most resemble those ofp i (t), and hence that mobility data is lagging prices. We allow τ to be both positive or negative, so our approach remains flexible to the possibility of either time series lagging the other. We define our normalized inner product in full generality as follows: letp andμ be the minimum-adjusted price and mobility time series, respectively, of a given country (see Section III) and define When τ > 0, this can be more easily rewritten as using the notation of Section IV. When τ < 0, let σ = −τ, then (8) can be written as using the same notation. We document the optimal offset values in Table IV . We record the absolute value |τ| of each offset, as well as the interpretation of whether mobility lags (when τ > 0) or price lags (when τ < 0). We summarize several findings revealed therein: 1. In general, mobility trajectories lag financial index trajectories. In fact, only 3 of the 20 countries possess trajectories where their mobility activity reflects COVID-19 case data more quickly than the respective financial index. 2. There is significant variability in the offset among countries. The range of offsets is 21 days, with Japan's mobility data lagging 18 days behind its price index, while Denmark and Italy's mobility data lead 3 days ahead of their price indices. Spain and Switzerland have the smallest absolute offsets of only 2 days, indicating substantial concurrence of mobility and financial data. 3. In general, the extent of mobility lagging suggests that communities were overwhelmingly slower to respond to the impact of COVID-19 than financial markets. In particular, using community activity and mobility data to predict financial movement is likely to be systematically flawed, as financial markets reacted well before such data was available. We believe that the mobility data reflects government restrictions as well, because imposed restrictions, such as movement restrictions or business closures, may have an immediate impact on people's queries regarding walking, driving and transit to nearby destinations in their community. We further discuss such interpretations in Section VI. In this paper, we have analyzed 20 countries with significant financial economies, examining their Apple mobility and financial data in relation to their COVID-19 counts. The mobility data is a useful representative for the current level of community activity and hence, we will argue, the current level of government restrictions imposed on the community. In our analysis, we have demonstrated that there is little consistency in cluster membership when examining the trajectories of COVID-19 cases, mobility activity and financial index performance. Explored in more detail in Figure 7 , we saw there is no tendency for specific countries' features to be clustered together. This is most clearly evidenced by Singapore, who managed its COVID-19 case numbers particularly well but had uniquely weak performance in its financial index. By contrast, the United States experienced huge COVID-19 case and death counts, while the national equity index experienced strong performance after the market crash in March. In addition, we investigated the varying heterogeneity of COVID-19 cases, mobility and financial data across our collection of countries. Both qualitatively, in the descriptions of Figures 2, 3 and 4 as well as quantitatively, by examining ||M case ||, ||M mob || and ||M fin ||, we have observed the highest homogeneity in mobility trajectories. Even where mobility trajectories split into two clusters in Figure 3 , the difference in behavior between the two clusters was relatively mild, and could largely be explained by differing periods of increase and decrease in Table II. On the other hand, COVID-19 cases exhibited the most substantial heterogeneity between countries, consistent with the natural history of COVID-19 varying substantially around the world. Examining the mobility and price trajectories in a temporal analysis revealed that most developed countries experienced a small lag between the first trough in mobility and financial data, around the same time as their first peak in cases. However, emerging economies Argentina, Brazil, India and Mexico experienced their first peak in cases much later, especially for Argentina and India. The finding that mobility data lagged financial data is significant for two reasons. First, it shows that an analysis of such mobility data to predict financial market performance during the pandemic (both in the past and going forward) is likely to be misguided, as financial time series consistently led the mobility time series. Secondly, it suggests that governments, whose restrictions were arguably the main cause of dips in mobility data, were less efficient in reacting and imposing restrictions than market participants. There are numerous strengths, possible interpretations, and limitations to this article, and our results could be of interest to various different entities, including economists, behavioral researchers, and governments. One potential interpretation of the mobility data is a proxy for certain aspects and sectors of the community's real economy, as distinct from a country's financial economy. Indeed, researchers have consistently aimed to study the impact of the pandemic on the real economy, but have experienced difficulties, as traditional economic metrics such as GDP and unemployment are typically available on an infrequent basis. During the pandemic, various market participants have attempted to use mobility data as a means to detect a revival in the real economy. 3 This makes sense, as community activity, while not associated with all sectors or aspects of the economy, may be closely associated with certain sectors such as retail, hospitality, and transport. Next, Apple mobility data has a relationship with the current level of government restrictions imposed on a community. Indeed, Apple mobility data has been used previously by researchers to measure the current impact of and adherence to social distancing, one of the most commonly enacted government regulations. 35 We do not study government response as an explicit variable, as this is difficult to quantify for the purposes of time series analysis. Instead, we rely on mobility data as a related, but not perfect, proxy. Previous research 36 has shown a close relationship between stay-at-home orders and mobility, demonstrating that the decline in mobility data observed in Efficiency of communities and financial markets during the 2020 pandemic March/April actually preceded government restrictions in certain locations. That is, government response was even slower than mobility data (which we have shown, in turn, was slower than financial markets). The same work also found that trip requests in certain locations increased after lockdown interventions were lifted. Thus, there is certainly a considerable association between mobility data and government restrictions, though they are not identically aligned. Therefore, our analysis of the dynamics of financial indices and mobility data may complement existing research well, showing broadly speaking that financial markets preceded the change in community mobility, which preceded government actions, at least in imposing restrictions in March/April of 2020. Our research may therefore be of use to market analysts, those interested in community activity, and governments. Other strengths of this article include the fact that mobility is analyzed across 19 countries, rather than existing studies that have studied just several cities, and mobility data is analyzed in comparison with financial data. In addition, we have determined not just broad trends between mobility data and financial indices, but determined which time series lagged and by how much for every country under consideration. Drawing such interpretations from Apple mobility data and comparing its dynamics with financial indices carries numerous limitations and avenues of improvement in future research. First, we lack a control group, so can make no claims on the causality of certain time series moving before others. 75 Thus, we can only suggest, but not definitively state, that COVID-19 cases impacted financial markets before community activity. Second, financial markets are a complex system, and may contain dynamics that our analysis may not be privy to. Third, in order to compare different countries, we have had to average mobility indicators. While we have demonstrated these were highly correlated, this may reduce specific insights. For example, walking and driving are likely to be more associated with the retail sector, while the transit indicator is much more representative of the transport sector of the economy. The strength of the hospitality sector may be associated with both the walking and driving indicators (representing the patronage of locals) and the transit indicator (representing the patronage of tourists). Fourth, Apple mobility data includes any lookup of directions, and does not correspond exactly to community movement. These all make the Apple mobility data an imperfect representative of community mobility or the current level of government restrictions. Financial markets are notorious for their complexity, with many variables and interrelationships making it near impossible to extract clear causal relationships. This is often the reason many statistical learning algorithms, when applied to problems in financial markets, exhibit low signal:noise ratios. It is virtually impossible to engineer parametric models with complexity sufficient to model the true data generating process of financial market behaviors, without over-fitting. Our approach allows for reasonable inference on which time series led and lagged in a complex, high dimensional system, where devising sufficiently complex algorithms is a difficult task. Our approach yields key descriptive findings, even though a full description of the dynamics and interplay of mobility and financial time series would be extremely challenging and is an ongoing goal of the field. Future research could address these limitations in various ways. Rather than averaging all available mobility indicators, a closer analysis of individual indicators could provide more insights. For example, public transportation is more directly responsive to shifts in government restrictions, while car transportation may closer represent autonomous community movement. Our analysis of country financial indices could be replaced with a finer analysis on a sector-by-sector basis to determine the sectors with the most responsive market participants. In particular, some financial sectors may be more responsive to or impactful on mobility data, including individual indicators. Alternatively, one could study the behavior of other asset classes and the underlying relationships with mobility data. Asset classes such as fixed income, cryptocurrencies, and commodities such as gold and oil may all exhibit varied relationships with mobility data. Finally, instead of analyzing daily mobility data, one could examine other daily data that represents the current activity of the real economy or level of government restrictions, or even incorporate traditional economic metrics that are less frequently available. Due to the infrequent nature of traditional metrics, market participants are always on the lookout for such indicators. Overall, this manuscripts presents several findings regarding the structure and dynamics of COVID-19 cases, Apple mobility data and financial indices across 19 countries. We have combined existing techniques such as hierarchical clustering with new analytical methods to provide visual inference regarding countries' similarity relative to these attributes, followed by more quantifiable details. Our principal findings are that mobility time series exhibited more homogeneity among countries than case or financial time series, and usually lagged behind financial indices. Our paper complements existing research and offers several avenues for further study. COVID-19 case counts are sourced from Our World in Data, 76 Apple mobility data are sourced from Apple, 1 and financial data are sourced from Bloomberg. we add t 1 to the set of troughs and proceed from there. If we find a time t 1 > t 0 that satisfies (A1) andẑ(t 0 ) ≥ẑ(t 1 ), we ignore this lower peak as redundant; if we find a time t 1 > t 0 that satisfies (A1) andẑ(t 1 ) >ẑ(t 0 ), we remove the peak t 0 , replace it with t 1 and continue from t 1 . A similar process applies from a trough at t 0 . At this point, the time series is assigned an alternating sequence of troughs and peaks. However, some turning points are immaterial and should be removed. Let t 1 < t 3 be two peaks, necessarily separated by a trough. We select a parameter δ = 0.2, and if the peak ratio, defined asẑ (t 3 ) z(t 1 ) < δ , we remove the peak t 3 . If two consecutive troughs t 2 ,t 4 remain, we remove t 2 ifẑ(t 2 ) >ẑ(t 4 ), otherwise remove t 4 . That is, if the second peak has size less than δ of the first peak, we remove it. Finally, we use the same log-gradient function between times t 1 < t 2 , defined as log-grad(t 1 ,t 2 ) = logẑ(t 2 ) − logẑ(t 1 ) The numerator equals log(x (t 2 ) x(t 1 ) ), a "logarithmic rate of change." Unlike the standard rate of change given byẑ (t 2 ) z(t 1 ) − 1, the logarithmic change is symmetrically between (−∞, ∞). Let t 1 ,t 2 be adjacent turning points (one a trough, one a peak). We choose a parameter ε = 0.01; if | log-grad(t 1 ,t 2 )| < ε, that is, the average logarithmic change is less than 1%, we remove t 2 from our sets of peaks and troughs. If t 2 is not the final turning point, we also remove t 1 . We conclude with an alternating sequence of peaks and troughs, beginning with a trough at the initial value. From here, we may extract the parameters that we use in the body of the text. First, consider the minimum-adjusted smoothed truncated time series ν i (t). Let We refer to A i and B i as the naive and novel approaches to count the number of increasing days. The second approach counts periods of more essential increase, whereas A i is more vulnerable to insubstantial day-to-day fluctuations in the data, even after smoothing. Both these counts are recorded in Table II . Finally, consider a (smoothed) new case time seriesx i (t). We simply define Mobility trends reports How coronavirus almost brought down the global financial system Wall Street mines Apple and Google mobility data to spot revival Coronavirus: US and Australia close borders to Chinese arrivals Test, trace, contain: how South Korea flattened its coronavirus curve Italy's virus shutdown came too late. what happens now The UK's public health response to covid-19 Cluster-based dual evolution for multivariate time series: Analyzing COVID-19 California tells six additional counties to close indoor businesses, all bars Georgia business owners are conflicted as the state reopens hair salons, gyms and bowling alleys Association between COVID-19 cases and international equity indices Financial markets under the global pandemic of COVID-19 The impact of COVID-19 on stock markets Infected markets: Novel coronavirus, government interventions, and stock return volatility around the globe How the cryptocurrency market has performed during COVID 19? A multifractal analysis Financial contagion during COVID-19 crisis Is gold a hedge or safe haven asset during COVID-19 crisis? Stock markets and the COVID-19 fractal contagion effects The impact of COVID-19 pandemic upon stability and sequential irregularity of equity and cryptocurrency markets Dynamics, behaviours, and anomaly persistence in cryptocurrencies and equities surrounding COVID-19 Statistical analysis of the exchange rate of Bitcoin Chaos, randomness and multi-fractality in Bitcoin market Changes to the extreme and erratic behaviour of cryptocurrencies during COVID-19 Do the rich get richer? an empirical analysis of the Bitcoin transaction network Some stylized facts of the Bitcoin market Long-range correlations and asymmetry in the Bitcoin market Multifractal behavior of price and volume changes in the cryptocurrency market Exploring disorder and complexity in the cryptocurrency space Demythifying the belief in cryptocurrencies decentralized aspects. A study of cryptocurrencies time cross-correlations with common currencies, commodities and financial indices Towards identifying the world stock market crosscorrelations: DAX versus Dow Jones Bitcoin market route to maturity? Evidence from return fluctuations, temporal correlations and multiscaling effects Signatures of the crypto-currency market decoupling from the forex Competition of noise and collectivity in global cryptocurrency trading: Route to a self-contained market Complexity in economic and social systems: Cryptocurrency market at around COVID-19 Mining Google and Apple mobility data: temporal anatomy for COVID-19 social distancing Using aggregated mobility data to measure the effect of COVID-19 policies on mobility changes in Sydney Evaluating Apple Inc mobility trend data related to the COVID-19 outbreak in Japan: Statistical analysis Real-time forecasting of infectious disease dynamics with a stochastic semi-mechanistic model Dynamical analysis and control strategies in modelling ebola virus disease Mathematical model of Zika virus dynamics with vector control and sensitivity analysis Embedded model discrepancy: A case study of Zika modeling Analytic solution of the SEIR epidemic model via asymptotic approximant New approximations, and policy implications, from a delayed dynamic model of a fast pandemic COVID-19: Development of a robust mathematical model and simulation package with consideration for ageing population and time delay for control action and resusceptibility Predicting the evolution of the COVID-19 epidemic with the a-SIR model: Lombardy, Italy and São Paulo state, Brazil Inversion of a SIR-based model: A critical analysis about the application to COVID-19 epidemic Size and timescale of epidemics in the SIR framework Accurate closed-form solution of the SIR epidemic model Hamiltonian structure of compartmental epidemiological models Optimal control of the SIR model in the presence of transmission and treatment uncertainty Strong correlations between power-law growth of COVID-19 in four continents and the inefficiency of Efficiency of communities and financial markets during the 2020 pandemic soft quarantine strategies Power-law distribution in the number of confirmed COVID-19 cases On the emergence of a power law in the distribution of COVID-19 cases Scrutinizing the heterogeneous spreading of COVID-19 outbreak in large territorial countries Novel semi-metrics for multivariate change point analysis and anomaly detection Growing networks with communities: A distributive link model A social network model of COVID-19 Four-tier response system and spatial propagation of COVID-19 in China by a network model A data-driven network model for the emerging COVID-19 epidemics in Wuhan, Toronto and Italy Modeling the transmission dynamics and the impact of the control interventions for the COVID-19 epidemic outbreak Immunity after COVID-19: Protection or sensitization? Forecasting COVID-19 Modeling COVID-19 pandemic using Bayesian analysis with application to Slovene data Rare and extreme events: the case of COVID-19 pandemic COVID-19 second wave mortality in Europe and the United States Could masks curtail the post-lockdown resurgence of COVID-19 in the US? Interpreting SARS-CoV-2 seroprevalence, deaths, and fatality ratemaking a case for standardized reporting to improve communication Piecewise-constant optimal control strategies for controlling the outbreak of COVID-19 in the Irish population European and US lockdowns and second waves during the COVID-19 pandemic Trends in COVID-19 prevalence and mortality: A year in review GDP (current US$) All 50 U.S. states have taken steps toward reopening in time for Memorial Day weekend COVID-19 in the United States: Trajectories and second surge behavior New Zealand, Australia tighten lockdown to combat coronavirus Our World in Data The incubation period of Coronavirus disease 2019 (COVID-19) from publicly reported confirmed cases: Estimation and application In this section, we provide more details for the identification of turning points of a smoothed time series, which we utilize twice in the body of the paper. In Section III, we apply this procedure to smoothed truncated mobility time series to calculate the parameter B i ; in Section V, we apply it to a new case time series x i (t) to isolate the first non-trivial trough T C i . In both cases, smoothing is necessary due to noise and irregularities in the data sets. We apply a Savitzy-Golay filter, which combines polynomial interpolation and a moving average computation, to perform the smoothing.The initial steps are as follows. Given a mobility time series µ i (t), we identify its global minimum T µ i , which occurs in March/April 2020 for every country. We form the minimumadjusted time seriesμ i (t) and truncate it to the period t = T µ i , ..., T . This series is non-negative everywhere, beginning with a zero value at its initial value t = T µ i . Then, we perform the smoothing to produce a smoothed truncated time series ν i (t) ∈ R ≥0 , beginning with an initial value of zero.Given a new case time series x i (t), we simply apply smoothing immediately to yield a smoothed time seriesx i (t). We proceed by describing our methodology on both time series: letẑ(t) be an arbitrary smoothed time series, beginning with a minimal value of 0 at its initial value, which we label t = 0.Following Ref. 73 , we apply a two-step algorithm toẑ(t). The first step produces an alternating sequence of troughs and peaks, beginning with a trough at t = 0, where the time series exhibits its global minimum. The second step refines this sequence according to chosen conditions and parameters. The most important conditions to initially identify a peak or trough, respectively, are the following:ẑwhere l is a parameter to be chosen. Following Ref. 73 , we select l = 17, originally inspired by the 14-day incubation period of the virus. 77 Defining peaks and troughs according to this definition alone has some flaws, such as the potential for two consecutive peaks.Instead, we implement an inductive procedure to choose an alternating sequence of peaks and troughs. Suppose t 0 is the last determined peak. We search in the period t > t 0 for the first of two cases: if we find a time t 1 > t 0 that satisfies (A2) as well as a non-triviality conditionẑ(t 1 ) <ẑ(t 0 ), Efficiency of communities and financial markets during the 2020 pandemic T C i to be the first trough after t = 0, which exists for every country. This marks the end of the first wave.