New study destroys the lockdown narrative

“In ~ 98% of the comparisons using 87 different regions of the world we found no evidence that the number of deaths is reduced by staying at home.”

Read more…

Stay-at-home policy is a case of exception fallacy: an internet-based ecological study:


A recent mathematical model has suggested that staying at home did not play a dominant role in reducing COVID-19 transmission. The second wave of cases in Europe, in regions that were considered as COVID-19 controlled, may raise some concerns. Our objective was to assess the association between staying at home (%) and the reduction/increase in the number of deaths due to COVID-19 in several regions in the world. In this ecological study, data from, and were combined. Countries with > 100 deaths and with a Healthcare Access and Quality Index of ≥ 67 were included. Data were preprocessed and analyzed using the difference between number of deaths/million between 2 regions and the difference between the percentage of staying at home. The analysis was performed using linear regression with special attention to residual analysis. After preprocessing the data, 87 regions around the world were included, yielding 3741 pairwise comparisons for linear regression analysis. Only 63 (1.6%) comparisons were significant. With our results, we were not able to explain if COVID-19 mortality is reduced by staying at home in ~ 98% of the comparisons after epidemiological weeks 9 to 34.


By late January, 2021, approximately 2.1 million people worldwide had died from the new coronavirus (COVID-19)1. Wearing masks, taking personal precautions, testing for COVID-19 and social distancing have been advocated for controlling the pandemic2,3,4. To achieve source control and stop transmission, social distancing has been interpreted by many as staying at home. Such policies across multiple jurisdictions were suggested by some experts5. These measures were supported by the World Health Organization6,7, local authorities8,9,10, and encouraged on social media platforms11,12,13.

Some mathematical models and meta-analyses have shown a marked reduction in COVID-19 cases14,15,16,17,18,19 and deaths20,21 associated with lockdown policies. Brazilian researchers have published mathematical models of spreading patterns22 and suggested implementing social distancing measures and protection policies to control virus transmission23. By May 5th, 2020, an early report, using the number of curfew days in 49 countries, found evidence that lockdown could be used to suppress the spread of COVID-1924. Measures to address the COVID-19 pandemic with Non-Pharmacological Interventions (NPIs) were adopted after Brazil enacted Law No. 1397925, and this was followed by many states such as Rio de Janeiro26, the Federal District of Brasília (Decree No. 40520, dated March 14th, 2020)27, the city of São Paulo (Decree No. 59.283, dated March 16th, 2020)28, and the State of Rio Grande do Sul (Decree No. 55240/2020, dated May 10th, 2020)29. It was expected that, with these actions, the number of deaths by COVID-19 would be reduced. Of note, the country’s most populous state, São Paulo, adopted rigorous quarantine measures and put them into effect on March 24th, 202028. Internationally, Peru adopted the world’s strictest lockdown30.

Recently, Google LLC published datasets indicating changes in mobility (compared to an average baseline before the COVID-19 pandemic). These reports were created with aggregated, anonymized sets of daily and dynamic data at country and sub-regional levels drawn from users who had enabled the Location History setting on their cell phones. These data reflect real-world changes in social behavior and provide information on mobility trends for places like grocery stores, pharmacies, parks, public transit stations, retail and recreation locations, residences, and workplaces, when compared to the baseline period prior to the pandemic31. Mobility in places of residence provides information about the “time spent in residences”, which we will hereafter call “staying at home” and use as a surrogate for measuring adherence to stay-at-home policies.

Studies using Google COVID-19 Community Mobility Reports and the daily number of new COVID-19 cases have shown that over 7 weeks a strong correlation between staying at home and the reduction of COVID-19 cases in 20 counties in the United States32; COVID-19 cases decreased by 49% after 2 weeks of staying at home33; the incidence of new cases/100,000 people was also reduced34; social distancing policies were associated with reduction in COVID-19 spread in the US35; as well as in 49 countries around the world24. A recent report using Brazilian and European data has shown a correlation between NPI stringency and the spread of COVID-1936,37; these analyses are debatable, however, due to their short time span and the type of time series behavior38, or for their use of Pearson’s correlation in the context of non-stationary time series35. The same statistical tools cannot be applied to stationary and non-stationary time series alike39, and the latter is the case with this COVID-19 data. A 2020 Cochrane systematic review of this topic reported that they were not completely certain about this evidence for several reasons. The COVID-19 studies based their models on limited data and made different assumptions about the virus17; the stay-at-home variable was analyzed as a binary indicator40; and the number of new cases could have been substantially undocumented41; all which may have biased the results. A sophisticated mathematical model based on a high-dimensional system of partial differential equations to represent disease spread has been proposed42. According to this model, staying at home did not play a dominant role in disease transmission, but the combination of these, together with the use of face masks, hand washing, early-case detection (PCR test), and the use of hand sanitizers for at least 50 days could have reduced the number of new cases. Finally, after 2 months, the simulations that drove the world to lockdown have been questioned43. These studies applied relatively complex epidemiological models with unrealistic assumptions or parameters that were either user-chosen or not deemed to work properly. Furthermore, the effects in the death rates were directly inferred from the aftermath of a given intervention without a control group. Finally, the temporal delay between the introduction of a certain intervention and the actual measurable variation in death rates was not properly taken into account44,45.

The rationale we are looking for is the association between two variables: deaths/million and the percentage of people who remained in their residences. Comparison, however, is difficult due to the non-stationary nature of the data. To overcome these problems, we proposed a novel approach to assess the association between staying at home values and the reduction/increase in the number of deaths due to COVID-19 in several regions around the world. If the variation in the difference between the number of deaths/million in two countries, say A and B, and the variation in the difference of the staying at home values between A and B present similar patterns, this is due to an association between the two variables. In contrast, if these patterns are very different, this is evidence that staying at home values and the number of deaths/million are not related (unless, of course, other unaccounted for factors are at play). In view of this, the proposed approach avoids altogether the problems enumerated above, allowing a new approach to the problem.

After more than 25 epidemiological weeks of this pandemic, verifying if staying at home had an impact on mortality rates is of particular interest. A PUBMED search with the terms “COVID-19” AND (Mobility) (search made on September 8th, 2020) yielded 246 articles; of these, 35 were relevant to mobility measures and COVID-19, but none compared mobility reduction to mortality rates.


A flowchart of the data manipulation is depicted in Fig. 1. Briefly, Google COVID-19 Community Mobility Report data between February 16th and August 21st, 2020, yielded 138 separate countries and their regions. The website Our World in Data provided data on 212 countries (between December 31st, 2019, and August 26th, 2020), and the Brazilian Health Ministry website provided data on all states (n = 27) and cities (n = 5,570) in Brazil (February 25th to August 26th, 2020).

Figure 1

After data compilation, a total of 87 regions and countries were selected: 51 countries, 27 States in Brazil, six major Brazilian State capitals [Manaus, Amazonas (AM), Fortaleza, Ceará (CE), Belo Horizonte, Minas Gerais (MG), Rio de Janeiro, Rio de Janeiro (RJ), São Paulo, São Paulo (SP) and Porto Alegre, Rio Grande do Sul (RS)], and three major cities throughout the world (Tokyo, Berlin and New York) (Fig. 1).

Characteristics of these 87 regions are presented in Table 1 (further details are in Supplemental Material—Characteristics of Regions).Table 1 Characteristics of the 87 regions and countries used for comparison in the study. HDI = Human Development Index (the higher, the better).Full size table


The restrictive analysis between controlled and not controlled areas yielded 33 appropriate comparisons, as shown in Table 2. Only one comparison out of 33 (3%)—state of Roraima (Brazil) versus state of Rondonia (Brazil)—was significant (p-value = 0.04). After correction for residual analysis, it did not pass the autocorrelation test (Lagrange Multiplier test = 0.04). (Further details are in Supplemental Material—Restrictive Analysis).Table 2 Comparisons using the 4-point criteria. Comparability was considered if at least 3 out of 4 of the following conditions were similar: a) population density, b) percentage of the urban population, c) Human Development Index and d) total area of the region. Similarity was considered adequate when a variation in conditions a), b) and c) was within 30%, while, for condition d), a variation of 50% was considered adequate (Further details are in Auxiliary Supplementary Material—4 point criteria).Full size table

The global comparison yielded 3,741 combinations; from these, 184 (4.9%) had a p-value < 0.05, after correcting for False Discovery Rate (Table S1). After performing the residual analysis, by testing for cointegration between response and covariate, normality of the residuals, presence of residual autocorrelation, homoscedasticity, and functional specification, only 63 (1.6%) of models passed all tests (Table S2). Closer inspection of several cases where the model did not pass all the tests revealed a common factor: the presence of outliers, mostly due to differences in the epidemiological week in which deaths started to be reported. A heat map showing the comparison between the 87 regions is presented in Fig. 2.

Figure 2

Characteristics of these 87 regions are presented in Table 1 (further details are in Auxiliary Supplementary Material—Characteristics of Regions) .


The restrictive analysis between controlled and not controlled areas yielded 33 appropriate comparisons, as shown in Table 2. Only one comparison out of 33 (3%)—State of Roraima (Brazil) versus State of Rondonia (Brazil)—was significant (p-value = 0.04). After correction for residual analysis, it did not pass the autocorrelation test (p-value of the Lagrange Multiplier test = 0.04). (Further details are in Auxiliary Supplementary Material—Restrictive Analysis).

The global comparison yielded 3,741 combinations; from these, 184 (4.9%) had a p-value < 0.05, after correcting for False Discovery Rate (Table S1 suppl). After performing the residual analysis, by testing for cointegration between response and covariate, normality of the residuals, presence of residual autocorrelation, homoscedasticity, and functional specification, only 63 (1.6%) of models passed all tests (Table S2—suppl). Closer inspection of several cases where the model did not pass all the tests revealed a common factor: the presence of outliers, mostly due to differences in the epidemiological week in which deaths started to be reported. A heat map showing the comparison between the 87 regions is presented in Fig. 2.


We were not able to explain the variation of deaths/million in different regions in the world by social isolation, herein analyzed as differences in staying at home, compared to baseline. In the restrictive and global comparisons, only 3% and 1.6% of the comparisons were significantly different, respectively. These findings are in accordance with those found by Klein et al.46 These authors explain why lockdown was the least probable cause for Sweden’s high death rate from COVID-1946. Likewise, Chaudry et al. made a country-level exploratory analysis, using a variety of socioeconomic and health-related characteristics, similar to what we have done here, and reported that full lockdowns and wide-spread testing were not associated with COVID-19 mortality per million people47. Different from Chaudry et al., in our dataset, after 25 epidemiological weeks, (counting from the 9th epidemiological week onwards in 2020) we included regions and countries with a “plateau” and a downslope phase in their epidemiological curves. Our findings are in accordance with the dataset of daily confirmed COVID-19 deaths/million in the UK. Pubs, restaurants, and barbershops were open in Ireland on June 29th and masks were not mandatory48; after more than 2 months, no spike was observed; indeed, death rates kept falling49. Peru has been considered to be the most strict lockdown country in the world30, nevertheless, by September 20th, it had the highest number of deaths/million50. Of note, differences were also observed between regions that were considered to be COVID-19 controlled, e.g., Sweden versus Macedonia. Possible explanations for these significant differences may be related to the magnitude of deaths in these countries. After October 2020, when our study was published in a preprint server for Health Sciences, new articles were published with similar results51,52,53,54.

Our results are different from those published by Flaxman et al. The authors applied a very complex calculation that NPIs would prevent 3.1 million deaths across 11 European countries44. The discrepant results can be explained by different approaches to the data. While Flaxman et al. assumed a constant reproduction number (R t) to calculate the total number of deaths, which eventually did not occur, we calculated the difference between the actual number of deaths between 2 countries/regions. The projections published by Flaxman et al.44 have been disputed by other authors. Kuhbandner and Homburg described the circular logic that this study involved. Flaxman et al. estimated the R t from daily deaths associated with SARS-CoV-2 using an a priori restriction that R t may only change on those dates when interventions become effective. However, in the case of a finite population, the effective reproduction number falls automatically and necessarily over time since the number of infections would otherwise diverge55. A recent preprint report from Chin et al.56 explored the two models proposed by the Imperial College44 by expanding the scope to 14 European countries from the 11 countries studied in the original paper. They added a third model that considered banning public events as the only covariate. The authors concluded that the claimed benefits of lockdown appear grossly exaggerated since inferences drawn from effects of NPIs are non-robust and highly sensitive to model specification56.

The same explanation for the discrepancy can be applied to other publications where mathematical models were created to predict outcomes14,15,16,17,18. Most of these studies dealt with COVID-19 cases 33,34 and not observed deaths. Despite its limitations, reported deaths are likely to be more reliable than new case data. Further explanations for different results in the literature, besides methodological aspects, could be justified by the complexity of the virus dynamic, by its interaction with the environment, or they may be related to a seasonal pattern that was, by coincidence, established at the same time when infection rates started to decrease due to seasonal dynamics57. It is unwise to try to explain a complex and multifactorial condition, with the inherent constant changes, using a single variable. An initial approach would employ a linear regression to verify the influence of one factor over an outcome. Herein we were not able to identify this association. Our study was not designed to explain why the stay-at-home measures do not contain the spread of the virus SARS-CoV-2. However, possible explanations that need further analysis may involve genetic factors58, the increment of viral load, and transmission in households and in close quarters where ventilation is reduced.

This study has a few limitations. Different from the established paradigm of randomized clinical trial, this is an ecological study. An ecological study observes findings at the population level and generates hypotheses59. Population-level studies play an essential part in defining the most important public health problems to be tackled59, which is the case here. Another limitation was the use of Google Community Mobility Reports as a surrogate marker for staying at home. This may underestimate the real value: for instance, if a user´s cell phone is switched off while at home, the observation will be absent from the database. Furthermore, the sample does not represent 100% of the population. This tool, nevertheless, has been used by other authors to demonstrate the efficacy in reducing the number of new cases after NPI60,61. Using different methodologies for measuring mobility may introduce bias and would prevent comparisons between different countries. The number of deaths may be another issue. Death figures may be underestimated, however, reported deaths may be more relevant than new case data. The arbitrary criteria used for including countries and regions, the restrictive comparisons, and our definition of an area as COVID-19 controlled are open for criticism. Nonetheless, these arbitrary criteria were created a priori to the selection of the countries. With these criteria, we expected to obtain representative regions of the world, compare similar regions, and obtain accurate data. By using a HAQI of ≥ 67, we assumed that data from these countries would be accurate, reliable, and health conditions were generally good. Nevertheless, the global analysis of the regions (n=3741n=3741 comparisons) overcame any issue of the restrictive comparison. Indeed, the global comparison confirmed the results found in the restrictive one; only 1.6% of the death rates could be explained by staying at home. Also, our effective sample size in all studies is only 25 epidemiological weeks, which is a very small sample size for a time series regression. The small sample size and the non-stationary nature of COVID-19 data are challenges for statistical models, but our analysis, with 25 epidemiological weeks, is relatively larger than previous publications which used only 7 weeks62. A short interval of observation between the introduction of an NPI and the observed effect on death rates yields no sound conclusion, and is a case where the follow-up period is not long enough to capture the outcome, as seen in previous publications44,45. The effects of small samples in this case are related to possible large type II errors and also affect the consistency of the ordinary least square estimates. Nevertheless, given the importance of social isolation promoted by world authorities63, we expected a higher incidence of significant comparisons, even though it could be an ecological fallacy. The low number of significant associations between regions for mortality rate and the percentage of staying at home may be a case of exception fallacy, which is a generalization of individual characteristics applied at the group-level characteristics64.

There are strengths to highlight. Inclusion criteria and the Healthcare Access and Quality Index were incorporated. We obtained representative regions throughout the world, including major cities from 4 different continents. Special attention was given to compiling and analyzing the dataset. We also devised a tailored approach to deal with challenges presented by the data. To our knowledge, our modeling approach is unique in pooling information from multiple countries all at once using up-to-date data. Some criteria, such as population density, percentage of urban population, HDI, and HAQI, were established to compare similar regions. Finally, we gave special attention to the residual analysis in the linear regression, an absolutely essential aspect of studies using small samples.

In conclusion, using this methodology and current data, in ~ 98% of the comparisons using 87 different regions of the world we found no evidence that the number of deaths/million is reduced by staying at home. Regional differences in treatment methods and the natural course of the virus may also be major factors in this pandemic, and further studies are necessary to better understand it.


Rationale and approach for analyzing the time series data

The proposed approach was tailored to present a way to evaluate the influence of time spent at home and the number of deaths between two countries/regions while avoiding common problems of other models presented in the literature. We focused on detecting the variation of the differences between the number of deaths and how much people followed stay-at-home orders in two regions in each epidemiological week.

For instance, let us consider two similar regions we shall call ‘Stay In county’ and ‘Go Out county’. Both regions started with the same number of cases. After the first 1000 cases were recorded, Stay In county declared that all people should stay at home, while Go Out county allowed people to circulate freely. After a few epidemiological weeks, we examine the data collected on the number of deaths in both counties and how much time people stayed at home by using geolocation software. If the difference between the number of deaths in Stay In county and Go Out county (variable A) is affected by the difference of the percentage of time people stayed at home in these two areas (variable B), then we can consider that the difference in the number of deaths by COVID-19 is influenced by the difference in the percentage of time people stayed at home. Both effects can be detected using linear regression and careful examination of the problem.

Time series on COVID-19 mortality (deaths/millions) display a non-stationary pattern. The daily data present a very distinct seasonal behavior on the weekends, with valleys on Saturdays and Sundays followed by peaks on Mondays (Figure S1). To account for seasonality, one may introduce dummy variables for Saturdays, Sundays, and Mondays, regress the number of deaths in these dummy variables, and then analyze the residuals. However, in most cases, the residuals are still non-stationary, and special treatment would be required in each case. Although this approach may be feasible for a few series, we are interested in analyzing hundreds of time series from different countries and regions. Hence, we need a more efficient way to deal with this amount of data. The covariates present another issue in regressing the daily time series of deaths/staying at home. The covariates are typically correlated with error terms due to public policies adopted by regions/countries. Mechanisms controlling social isolation are intrinsically related to the number of deaths/cases in each location. An increase in the death rate may cause more stringent policies to be adopted, which increases the percentage of people staying at home. This change causes an imbalance between the observed number of deaths and staying at home levels. In a regression model, this discrepancy is accounted for in the error term. Hence, the error term will change in accordance with staying at home levels.

Data aggregation by epidemiological week is a plausible alternative (Figure S2). In this way, artificial seasonality, imposed by work scheduled during weekends and the effect of governmental control over social interaction, in a regression framework, are mitigated. The drawback is that the sample size is significantly reduced from 187 days (Figure S1) to 26 epidemiological weeks (Figure S2).

Aggregation by epidemiological week, however, still yields non-stationary time series in most cases. To overcome this problem, we differentiated each time series. Recall that if ZtZtdenotes the number of deaths in the t-th epidemiological week, we define the first difference of ZtZt asΔZt=Zt−Zt−1ΔZt=Zt−Zt−1

Intuitively, ΔZtΔZt denotes the variation of deaths between weeks tt and t-1, also known as the flux of deaths. The same is valid for the staying at home time series. This simple operation yielded, in most cases, stationary time series, verified with the so-called Phillips-Perron stationarity test65. In the few cases where the resulting time series did not reject the null hypothesis of non-stationarity (technically, the existence of a unitary root, in the time series characteristic polynomial), this was due to the presence of one or two outliers combined with the small sample size. These outliers were usually related to the very low incidence of COVID-19 deaths by the 9th epidemiological week when paired with countries with a significant number of deaths in that same week, thus resulting in an outlier which cannot be accounted for by linear regression.

To investigate pairwise behavior, we propose a method to assess the relationship between deaths and staying at home data between various countries and regions. For two countries/regions, say A and B, let YAtYtA and YBtYtBdenote the number of deaths per million at epidemiological week tt for country A and B respectively, while XAtXtA and XBtXtB denote the staying at home at epidemiological week tt for A and B, respectively. The idea is to regress the difference ΔYAt−ΔYBt=Δ(YAt−YBt)ΔYtA−ΔYtB=Δ(YtA−YtB) on ΔXAt−ΔXBt=Δ(XAt−XBt)ΔXtA−ΔXtB=Δ(XtA−XtB). Formally, we perform the regressionΔ(YAt−YBt)=β0+β1Δ(XAt−XBt)+εt,Δ(YtA−YtB)=β0+β1Δ(XtA−XtB)+εt,

where β0β0 and β1β1 are unknown coefficients and εtεt denotes an error term. Estimation of β0β0 and β1β1 is carried out through ordinary least squares. The interpretation of the model is important. We are regressing the difference in the variation of deaths between locations A and B into the difference in the variation of staying at home values between the same location.

If the number of deaths in locations A and B have a similar functional behavior over time, then YAt−YBtYtA−YtB tends to be near-constant, and Δ(YAt−YBt)Δ(YtA−YtB) tends to oscillate around zero. If the same applies to Δ(XAt−XBt)Δ(XtA−XtB), then we expect β1≠0β1≠0; consequently, we conclude that the behavior, between A and B, is similar and the number of deaths and the percentage of staying at home are associated in these regions. The other non-spurious situation implying β1≠0β1≠0 occurs when the variation in the number of deaths in locations A and B increases/decreases over time following a certain pattern, while the variation in the percentage of “staying at home” values also increases/decreases following the same pattern (apart from the direction). In this situation, we found different epidemiological patterns as in the variation in the number of deaths, and in the staying at home values, in locations A and B were on opposite trends. However, if these patterns were similar (proportional), this would be captured in the difference and, as a consequence, in the regression. This means that the different trends were near proportional and, hence, the variation in staying at home is associated with the variation in deaths.

In the section below “Definition of areas with and without controlled cases of COVID-19”, each country/region was classified into a binary class: either controlled or not controlled areas for COVID-19. The proposed method allows for insights regarding the association of the number of deaths and staying at home levels between countries/regions with similar/different degrees of COVID-19 control. Assumptions related to consistency, efficiency, and asymptotic normality of the ordinary least squares, in the context of time series regression, can be found in66. Since we are comparing many time series, to avoid any problem with spurious regression, we performed a cointegration test between the response and covariates. In this context, this is equivalent to testing the stationarity of εtεt, which was done by performing the Phillips-Perron test. Residual analysis is of utmost importance in linear regression, especially in the context of small samples. The steps and tests performed in the residual analysis are described in the statistical analysis section.

Study design

This is an ecological study using data available on the Internet.

Setting—data collection on mobility

Google COVID-19 Community Mobility Reports31 provided data on mobility from 138 countries67,68 and regions between February 15th and August 21st, 2020. Data regarding the average times spent at home was generated in comparison to the baseline. Baseline was considered to be the median value from between January 3rd and February 6th, 2020. Data obtained between February 15th and August 21th 2020 was divided into epidemiological weeks (epi-weeks) and the mean percentage of time spent staying at home per week was obtained.

Data collection on mortality

Numbers of daily deaths from selected regions were obtained from open databases67,68 on August 27st, 2020.

Inclusion criteria for analysis

Only regions with mobility data and with more than 100 deaths, by August 26th, 2020, were included in this study. This criteria has been chosen since the majority of epidemiological studies start when 100 cases are reached69,70. For data quality, only countries with Healthcare Access and Quality Index (HAQI) of ≥ 6771 were included. The HAQI has been divided into 10 subgroups. The median class is 63.4–69.7. The average in this median class is 66.55 (rounding up to 67). By choosing a HAQI of ≥ 67, we assumed that data from these countries were reliable and healthcare was of high quality. For Brazilian regions, a HAQI was substituted for the Human Development Index (HDI), and those with < 0.549 (low) were excluded.

Three major cities with > 100 deaths and well-established results (Tokyo, Japan; Berlin, Germany, and New York, USA) were selected as controlled areas.

Dataset of COVID-19 cases and associated data to reduce bias

After inclusion of the countries/regions, further data were obtained to reduce comparison bias, including population density (people/km2), percentage of the urban population, HDI, and the total area of the region in square kilometers. All data were obtained from open databases72,73,74.

Definition of areas with and without controlled cases of COVID-19

Regions were classified as controlled for cases of COVID-19 if they present at least 2 out of the 3 following conditions: a) type of transmission classified as “clusters of cases”, b) a downward curve of newly reported deaths in the last 7 days, and c) a flat curve in the cumulative total number of deaths in the last 7 days (variation of 5%) according to the World Health Organization75. An example is shown in Figure S3.

Data from the cities (Tokyo, Berlin, New York, Fortaleza, Belo Horizonte, Manaus, Rio de Janeiro, São Paulo, and Porto Alegre) were obtained from official government sites76,77,78,79. Tokyo, Berlin and New York were chosen for having controlled the COVID-19 dissemination, for representing 3 different continents, and for similarity to major Brazilian cities (Fortaleza, Belo Horizonte, Manaus, Rio de Janeiro, São Paulo, and Porto Alegre).

Merged database

Different databases from the sites mentioned above were merged using Microsoft Excel Power Query (Microsoft Office 2010 for Windows Version 14.0.7232.5000) and manually inspected for consistency.

Processing the data—cleaning

Data collected from multiple regions were processed using Python 3.7.3 in the Jupyter Notebook80 environment through the use of the Python Data Analysis Library in Google Colab Research81. Details of preprocessing are described in Python script (Supplement). Briefly, after taking the sum of deaths/million per epi-week, and the average of the variable “staying at home” per epi-week, non-stationary patterns were mitigated by subtracting weekt by weekt-1.

Time series data setup and variables

Details regarding the pre-processing and methodological details were presented on the Approach for analyzing the time series data section. Our variables were the difference in the variation of deaths between locations A and B (dependent variable—outcome), and the difference in the variation of staying at home values between the same location (independent variable).

Comparison between areas

Direct comparison, between regions with and without controlled COVID-19 cases, was considered in two scenarios: 1) Restrictive if, at least 3 out of 4 of the following conditions were similar: a) population density, b) percentage of the urban population, c) HDI and d) total area of the region. Similarity was considered adequate when a variation in conditions a), b), and c) was within 30%, while, for condition d), a variation of 50% was considered adequate. 2) Global: all regions and countries were compared to each other.

The restrictive comparison used parameters related to how close people may have made physical contact. The major route of transmission for COVID-19 is from person-to-person via respiratory droplets and direct personal and physical contact within a community setting82,83.

Statistical analysis

After data preprocessing, the association between the number of deaths and staying at home was verified using a linear regression approach. Data were analyzed using the Python model statsmodels.api v0.12.0 (statsmodels.regression.linear_model.OLS;, and double-checked using R version 3.6.184. False Discovery Rate proposed by Benjamini-Hochberg (FDR-BH) was used for multiple testing85.

We checked the residuals for heteroskedasticity using White’s test86; for the presence of autocorrelation using the Lagrange Multiplier test87; for normality using the Shapiro–Wilk’s normality test88; and for functional specification using the Ramsey’s RESET test89. All tests were performed with a 5% significance level and the analysis was performed with R version 3.6.184.

Data from 30 restrictive comparisons were manually inspected and checked a third time using Microsoft Excel (Microsoft). A heat map was designed using GraphPad Prism version 8.4.3 for Mac (GraphPad Software, San Diego, California, USA). Graphs plotting the number of deaths/million and staying at home over epidemiological weeks were obtained from Google Sheets90.

Data Availability

The Python and R scripts are available at Auxiliary Supplementary Material data is available at this link. (

Change history

  • 11 March 2021Editor’s Note: Readers are alerted that the conclusions of this article are subject to criticisms that are being considered by the Editors. A further editorial response will follow once all parties have been given an opportunity to respond in full.


  1. 1.COVID-19 Virus Pandemic – Worldometer. Worldometers
  2. 2.Huang, W.-T. & Chen, Y.-Y. The war against the coronavirus disease (COVID-2019): keys to successfully defending Taiwan. Hu Li Za Zhi 67, 75–83 (2020).PubMed Google Scholar 
  3. 3.Wu, E. & Qi, D. Masks and thermometers: paramount measures to stop the rapid spread of SARS-CoV-2 in the United States. Genes Dis (2020).Article PubMed PubMed Central Google Scholar 
  4. 4.Lin, C. et al. Policy decisions and use of information technology to fight COVID-19 Taiwan. Emerg. Infect. Dis. 26, 1506–1512 (2020).CAS Article Google Scholar 
  5. 5.Guest, J. L., Del Rio, C. & Sanchez, T. The three steps needed to end the COVID-19 pandemic: bold public health leadership, rapid innovations, and courageous political will. JMIR Public Health Surveill 6, e19043 (2020).Article Google Scholar 
  6. 6.WHO Director-General’s opening remarks at the media briefing on COVID-19 – 13 April 2020.–13-april-2020.
  7. 7.Coronavirus disease (COVID-19): Herd immunity, lockdowns and COVID-19.
  8. 8.Mucientes, E. & Carrasco, A. Covid-19|Un juez de Lleida avala ahora las medidas de confinamiento en Segrià. ELMUNDO (2020).
  9. 9.Governor Cuomo Signs the ‘New York State on PAUSE’ Executive Order. Governor Andrew M. Cuomo (2020).
  10. 10.Ministry of Housing, Communities & Local Government. Government advice on home moving during the coronavirus (COVID-19) outbreak. (2020).
  11. 11.Criativo, A. #stayathome. #stayathome
  12. 12.A Movement to Stop the COVID-19 Pandemic | #StayTheFuckHome. #StayTheFuckHome
  13. 13.#[stayathome] (Brazilian twitter). Twitter
  14. 14.Ibarra-Vega, D. Lockdown, one, two, none, or smart. Modeling containing covid-19 infection. A conceptual model. Sci. Total Environ. 730, 138917 (2020).
  15. 15.Ambikapathy, B. & Krishnamurthy, K. Mathematical modelling to assess the impact of lockdown on COVID-19 transmission in India: model development and validation. JMIR Public Health Surveill 6, e19368 (2020).Article Google Scholar 
  16. 16.Sjödin, H., Wilder-Smith, A., Osman, S., Farooq, Z. & Rocklöv, J. Only strict quarantine measures can curb the coronavirus disease (COVID-19) outbreak in Italy, 2020. Euro Surveill. 25, (2020).
  17. 17.Nussbaumer-Streit, B. et al. Quarantine alone or in combination with other public health measures to control COVID-19: a rapid review. Cochrane Database Syst. Rev. 4, CD013574 (2020).
  18. 18.Liu, Z. et al. Modeling the trend of coronavirus disease 2019 and restoration of operational capability of metropolitan medical service in China: a machine learning and mathematical model-based analysis. Glob Health Res Policy 5, 20 (2020).Article Google Scholar 
  19. 19.Espinoza, B., Castillo-Chavez, C. & Perrings, C. Mobility restrictions for the control of epidemics: when do they work?. PLoS ONE 15, e0235731 (2020).CAS Article Google Scholar 
  20. 20.Ferguson, N., Nedjati Gilani, G. & Laydon, D. COVID-19 CovidSim microsimulation model. (2020).
  21. 21.Semenova, Y. et al. Epidemiological characteristics and forecast of COVID-19 outbreak in the Republic of Kazakhstan. J. Korean Med. Sci. 35, e227 (2020).Article Google Scholar 
  22. 22.Peixoto, P. S., Marcondes, D., Peixoto, C. & Oliva, S. M. Modeling future spread of infections via mobile geolocation data and population dynamics. An application to COVID-19 in Brazil. PLoS One 15, e0235732 (2020).
  23. 23.Aquino, E. M. L. et al. Social distancing measures to control the COVID-19 pandemic: potential impacts and challenges in Brazil. Cien. Saude Colet. 25, 2423–2446 (2020).Article Google Scholar 
  24. 24.Atalan, A. Is the lockdown important to prevent the COVID-9 pandemic? Effects on psychology, environment and economy-perspective. Ann. Med. Surg. (Lond) 56, 38–42 (2020).Article Google Scholar 
  25. 25.Imprensa Nacional. LEI No 13.979, DE 6 DE FEVEREIRO DE 2020 – LEI No 13.979, DE 6 DE FEVEREIRO DE 2020 – DOU – Imprensa Nacional.
  26. 26.Decreto 46970.
  27. 27.Decreto 40520 de 14/03/2020.
  28. 28.Decreto 59283 2020 de São Paulo SP.
  29. 29.Decreto 55240 de 10 de maio de 2020.
  30. 30.Tegel, S. The country with the world’s strictest lockdown is now the worst for excess deaths. The Telegraph (2020).
  31. 31.Google LLC. Google COVID-19 Community Mobility Reports.
  32. 32.Badr, H. S. et al. Association between mobility patterns and COVID-19 transmission in the USA: a mathematical modelling study. Lancet Infect. Dis. (2020).Article PubMed PubMed Central Google Scholar 
  33. 33.Banerjee, T. & Nayak, A. U. S. U. S. County level analysis to determine If social distancing slowed the spread of COVID-19. Rev. Panam. Salud Publica 44, e90 (2020).Article Google Scholar 
  34. 34.Wang, Y., Liu, Y., Struthers, J. & Lian, M. Spatiotemporal characteristics of COVID-19 epidemic in the United States. Clin. Infect. Dis. (2020).Article PubMed PubMed Central Google Scholar 
  35. 35.Gao, S. et al. Association of mobile phone location data indications of travel and stay-at-home mandates with COVID-19 infection rates in the US. JAMA Netw Open 3, e2020485 (2020).Article Google Scholar 
  36. 36.Candido, D. S. et al. Evolution and epidemic spread of SARS-CoV-2 in Brazil. Science (2020).Article PubMed PubMed Central Google Scholar 
  37. 37.Islam, N. et al. Physical distancing interventions and incidence of coronavirus disease 2019: natural experiment in 149 countries. BMJ 370, (2020).
  38. 38.Bernal, J. L., Cummins, S. & Gasparrini, A. Interrupted time series regression for the evaluation of public health interventions: a tutorial. Int. J. Epidemiol. 46, 348–355 (2017).PubMed Google Scholar 
  39. 39.Nason, G. P. Stationary and non-stationary time series. in Statistics in Volcanology (eds. Mader, H. M., Coles, S. G., Connor, C. B. & Connor, L. J.) 129–142 (The Geological Society of London on behalf of The International Association of Volcanology and Chemistry of the Earth’s Interior, 2006).
  40. 40.Sen, B. P., Padalabalanarayanan, S. & Hanumanthu, V. S. Stay-at-home orders, African American population, poverty and state-level Covid-19 infections: are there associations? Public and Global Health (2020).
  41. 41.Li, R. et al. Substantial undocumented infection facilitates the rapid dissemination of novel coronavirus (COVID-19). medRxiv (2020) doi:
  42. 42.Zamir, M. et al. Non pharmaceutical interventions for optimal control of COVID-19. Comput. Methods Programs Biomed. 196, 105642 (2020).Article Google Scholar 
  43. 43.Boretti, A. After less than 2 months, the simulations that drove the world to strict lockdown appear to be wrong, the same of the policies they generated. Health Serv. Res. Manag. Epidemiol. 7, 2333392820932324 (2020).PubMed PubMed Central Google Scholar 
  44. 44.Flaxman, S. et al. Estimating the effects of non-pharmaceutical interventions on COVID-19 in Europe. Nature 584, 257–261 (2020).ADS CAS Article Google Scholar 
  45. 45.Dehning, J. et al. Inferring change points in the spread of COVID-19 reveals the effectiveness of interventions. Science 369, (2020).
  46. 46.Klein, D. B., Book, J. & Bjørnskov, C. 16 Possible factors for Sweden’s High COVID death rate among the nordics. SSRN Electron. J. doi:
  47. 47.Chaudhry, R., Dranitsaris, G., Mubashir, T., Bartoszko, J. & Riazi, S. A country level analysis measuring the impact of government actions, country preparedness and socioeconomic factors on COVID-19 mortality and related health outcomes. EClinicalMedicine 25, 100464 (2020).Article Google Scholar 
  48. 48.Therese, M. M. Government confirms that it is safe to proceed to Phase 3 of the Roadmap for Reopening Business and Society. (2020).
  49. 49.Daily confirmed COVID-19 deaths per million, rolling 7-day average.
  50. 50.Coronavirus Update (Live): 31,036,957 Cases and 962,339 Deaths from COVID-19 Virus Pandemic – Worldometer.
  51. 51.De Larochelambert, Q., Marc, A., Antero, J., Le Bourg, E. & Toussaint, J.-F. Covid-19 mortality: a matter of vulnerability among nations facing limited margins of adaptation. Front Public Health 8, 604339 (2020).Article Google Scholar 
  52. 52.Leffler, C. T. et al. Association of country-wide coronavirus mortality with demographics, testing, lockdowns, and public wearing of masks. Am. J. Trop. Med. Hyg. 103, 2400–2411 (2020).Article Google Scholar 
  53. 53.Wieland, T. A phenomenological approach to assessing the effectiveness of COVID-19 related nonpharmaceutical interventions in Germany. Saf. Sci. 131, 104924 (2020).Article Google Scholar 
  54. 54.Kepp, K. P. & Bjørnskov, C. Lockdown Effects on Sars-CoV-2 Transmission – The evidence from Northern Jutland. medRxiv 2020.12.28.20248936 (2021).
  55. 55.Kuhbandner, C. & Homburg, S. Commentary: estimating the effects of non-pharmaceutical interventions on COVID-19 in Europe. Front. Med. 7, (2020).
  56. 56.Chin, V., Ioannidis, J. P. A., Tanner, M. A. & Cripps, S. Effects of non-pharmaceutical interventions on COVID-19: a tale of three models. medRxiv 2020.07.22.20160341 (2020).
  57. 57.Park, S., Lee, Y., Michelow, I. C. & Choe, Y. J. Global seasonality of human coronaviruses: a systematic review. Open Forum Infect Dis 7, (2020).
  58. 58.Trougakos, I. P. et al. Insights to SARS-CoV-2 life cycle, pathophysiology, and rationalized treatments that target COVID-19 clinical complications. J. Biomed. Sci. 28, 9 (2021).CAS Article Google Scholar 
  59. 59.Pearce, N. The ecological fallacy strikes back. J. Epidemiol. Community Health 54, 326–327 (2000).CAS Article Google Scholar 
  60. 60.Delen, D., Eryarsoy, E. & Davazdahemami, B. No place like home: cross-national data analysis of the efficacy of social distancing during the COVID-19 pandemic. JMIR Public Health Surveill 6, e19862 (2020).Article Google Scholar 
  61. 61.Vokó, Z. & Pitter, J. G. The effect of social distance measures on COVID-19 epidemics in Europe: an interrupted time series analysis. Geroscience 42, 1075–1082 (2020).Article Google Scholar 
  62. 62.Ghosal, S., Bhattacharyya, R. & Majumder, M. Impact of complete lockdown on total infection and death rates: a hierarchical cluster analysis. Diabetes Metab. Syndr. 14, 707–711 (2020).Article Google Scholar 
  63. 63.COVID-19 advice – Physical distancing.
  64. 64.Miller, R. L. & Brewer, J. D. The A-Z of social research: a dictionary of key social science research concepts. (SAGE, 2003).
  65. 65.Perron, P. Trends and random walks in macroeconomic time series. J. Econ. Dyn. Control 12, 297–332 (1988).Article MATH Google Scholar 
  66. 66.Greene, W. H. Econometric Analysis. (2012).
  67. 67.Coronavírus Brasil.
  68. 68.Coronavirus Source Data. Our World in Data
  69. 69.Lai, C. K. C. et al. Epidemiological characteristics of the first 100 cases of coronavirus disease 2019 (COVID-19) in Hong Kong Special Administrative Region, China, a city with a stringent containment policy. Int. J. Epidemiol. 49, 1096–1105 (2020).Article Google Scholar 
  70. 70.Tsou, T.-P., Chen, W.-C., Huang, A. S.-E., Chang, S.-C. & Taiwan COVID-19 outbreak investigation team. Epidemiology of the first 100 cases of COVID-19 in Taiwan and its implications on outbreak control. J. Formos. Med. Assoc. 119, 1601–1607 (2020).
  71. 71.Barber, R. M. et al. Healthcare access and quality index based on mortality from causes amenable to personal health care in 195 countries and territories, 1990–2015: a novel analysis from the Global Burden of Disease Study 2015. Lancet 390, 231–266 (2017).Article Google Scholar 
  72. 72.2019 Human Development Index Ranking.
  73. 73.[Cities and States Statistics]. Instituto Brasileiro de Geografia e Estatística
  74. 74.Population by Country (2020) – Worldometer.
  75. 75.WHO Coronavirus Disease (COVID-19) Dashboard. World Health Organization
  76. 76.Population of Tokyo – Tokyo Metropolitan Government.,average%201.94%20persons%20per%20household.
  77. 77.Berlin.
  78. 78.COVID-19:Data. nychealth/coronavirus-data
  79. 79.Planning-Population-Census 2010-DCP.
  80. 80.Project Jupyter.
  81. 81.Bisong, E. Google Colaboratory. in Building Machine Learning and Deep Learning Models on Google Cloud Platform (ed. Bisong, E.) 59–64 (Apress, 2019).
  82. 82.Transmission of SARS-CoV-2: implications for infection prevention precautions.,%2C%20talks%20or%20sings.
  83. 83.Severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) and coronavirus disease-2019 (COVID-19): The epidemic and the challenges. Int. J. Antimicrob. Agents 55, 105924 (2020).
  84. 84.The R Foundation for Statistical Computing, Vienna, Austria. The R Project for Statistical Computing. The R Foundation
  85. 85.Benjamini, Y. & Hochberg, Y. On the adaptive control of the false discovery rate in multiple testing with independent statistics. J. Educ. Behav. Stat. 25, 60 (2000).Article Google Scholar 
  86. 86.White, H. A heteroskedasticity-consistent covariance matrix estimator and a direct test for heteroskedasticity. Econometrica 48, 817 (1980).MathSciNet Article MATH Google Scholar 
  87. 87.Evans, G. & Patterson, K. D. The lagrange multiplier test for autocorrelation in the presence of linear restrictions. Econ. Lett. 17, 237–241 (1985).MathSciNet Article MATH Google Scholar 
  88. 88.Shapiro, S. S. & Wilk, M. B. An analysis of variance test for normality (complete samples). Biometrika 52, 591–611 (1965).MathSciNet Article MATH Google Scholar 
  89. 89.Ramsey, J. B. Tests for specification errors in classical linear least-squares regression analysis. J. Roy. Stat. Soc.: Ser. B (Methodol.) 31, 350–371 (1969).MathSciNet MATH Google Scholar 
  90. 90.Google LLC. Google Google LLC . G Suite [Internet]. 2020. Available from:

Download references


We are grateful to Dr. Jair Ferreira, from the Epidemiology Department of the Universidade Federal do Rio Grande do Sul, for his critical feedback.

Author information


  1. School of Medicine, Department of Obstetrics and Gynecology, Universidade Federal do Rio Grande do Sul, Rua Ramiro Barcelos 2400, Porto Alegre, RS, CEP 90035-003, BrazilR. F. Savaris
  2. Mathematics and Statistics Institute and Programa de Pós-Graduação em Estatística, Universidade Federal do Rio Grande do Sul, 9500, Bento Gonçalves Avenue, Porto Alegre, RS, 91509-900, BrazilG. Pumi
  3. Applied Computing Graduate Program, University of Vale do Rio dos Sinos (UNISINOS), Av. Unisinos, 950, São Leopoldo, RS, 93022-750, BrazilJ. Dalzochio & R. Kunst
  4. Serv. Ginecologia e Obstetrícia, Hospital de Clínicas de Porto Alegre, Rua Ramiro Barcelos 2350, Porto Alegre, RS, CEP 90035-903, BrazilR. F. Savaris
  5. Postgraduate of BigData, Data Science and Machine Learning Course, Unisinos, Porto Alegre, RS, BrazilR. F. Savaris


R.F.S. was responsible for the conception of the study, designed the methodology, tested code components in Python and R, verified reproducibility, made formal analysis, data collection, provided other analysis tools, was responsible for data curation, wrote the initial draft, interpreted the data, reviewed the manuscript, created the data presentation, oversight execution, coordinate execution of the project. G.P. conceived the project, designed the methodology, implemented the computer code and algorithm in R, verified the outputs, conceived and formalized the statistical model applied, wrote the original draft and interpreted the data. R.K. participated in the conception of the study, implemented computer code in Python, validated results, provided computer resources, maintained research data for initial use, critically reviewed the initial draft, reviewed final draft, was the external mentor to the core team and coordinated the planning of the project. J.D., programmed the algorithms in Python, provided techniques to reduce data dimensionality, maintained software code in Python, reviewed and approved the final draft.

Corresponding author

Correspondence to R. F. Savaris.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Publisher’s note

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

Supplementary information

Supplementary Table S1

Supplementary Table S2

Supplementary Figures

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Savaris, R.F., Pumi, G., Dalzochio, J. et al. Stay-at-home policy is a case of exception fallacy: an internet-based ecological study. Sci Rep 11, 5313 (2021).

Download citation

Share this article

Anyone you share the following link with will be able to read this content:Get shareable link

Provided by the Springer Nature SharedIt content-sharing initiative



You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply

The maximum upload file size: 28 MB. You can upload: image, audio, video, document, spreadsheet, interactive, other. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded.


Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes