Bootstrap inference under cross-sectional dependence
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Conley, Timothy G.; Gonçalves, Sílvia; Kim, Min Seong; Perron, Benoit Article Bootstrap inference under cross-sectional dependence Quantitative Economics Provided in Cooperation with: The Econometric Society Suggested Citation: Conley, Timothy G.; Gonçalves, Sílvia; Kim, Min Seong; Perron, Benoit (2023) : Bootstrap inference under cross-sectional dependence, Quantitative Economics, ISSN 1759-7331, The Econometric Society, New Haven, CT, Vol. 14, Iss. 2, pp. 511-569, https://doi.org/10.3982/QE1626 This Version is available at: https://hdl.handle.net/10419/296329 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by-nc/4.0/
Quantitative Economics 14 (2023), 511–569 1759-7331/20230511 Bootstrap inference under cross-sectional dependence Timothy G. Conley Department of Economics, Western University Sílvia Gonçalves Department of Economics, McGill University, CIREQ, and CIRANO Min Seong Kim Department of Economics, University of Connecticut Benoit Perron Département de sciences économiques, Université of Montréal, CIREQ, and CIRANO In this paper, we introduce a method of generating bootstrap samples with unknown patterns of crosssectional/spatial dependence, which we call the spatial dependent wild bootstrap. This method is a spatial counterpart to the wild dependent bootstrap of Shao (2010) and generates data by multiplying a vector of independently and identically distributed external variables by the eigendecomposition of a bootstrap kernel. We prove the validity of our method for studentized and unstudentized statistics under a linear array representation of the data. Simulation experiments document the potential for improved inference with our approach. We illustrate our method in a firm-level regression application investigating the relationship between firms’ sales growth and the import activity in their local markets using unique firm-level and imports data for Canada. Keywords. Bootstrap, cross-sectional dependence, spatial HAC, eigendecomposition, economic distance. JEL classification. C12, C32, C38, C52. Timothy G. Conley: [email protected] Sílvia Gonçalves: [email protected] Min Seong Kim: [email protected] Benoit Perron: [email protected] We are grateful for comments from two anonymous referees as well as from Donald Andrews, Xiaohong Chen, Jungbin Hwang, Yuichi Kitamura, Matt Webb, and Giuseppe Cavaliere, as well as seminar and conference participants at Queen’s, Yale, York (UK), CUHK in Shenzhen, and Michigan State, and MEG, CESG, LAMES, CIREQ, and the SCSE. We also thank Aldo Sandoval Hernandez for excellent research assistance. We are grateful to Danny Leung for his help in accessing Statistics Canada data. The views expressed in this paper do not necessarily reflect those of Statistics Canada. All empirical results have been reviewed to ensure that no confidential information is disclosed. Finally, we acknowledge funding from SSHRC and FRQSC. A replication file is posted (Conley, Gonçalves, Kim, and Perron (2023)). ©2023 The Authors. Licensed under the Creative Commons Attribution-NonCommercial License 4.0. Available at http://qeconomics.org.https://doi.org/10.3982/QE1626
512 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) 1. Introduction Economic data is often characterized by dependence and heterogeneity and accounting for these features is important when performing statistical inference. This paper presents a bootstrap method that is robust to spatial (cross-sectional) dependence and heterogeneity of unknown forms in the context of a linear regression model. Spatially dependent observations often need to be indexed in more than one dimension and are not naturally ordered nor regularly spaced. This makes the application of the bootstrap potentially challenging. For instance, the spatial block bootstrap (see, e.g., Lahiri and Zhu (2006), and Nordman, Lahiri, and Fridley (2007)) requires a careful partition of the data into blocks, which may not be feasible in many applications. Our approach in this paper is based on a variation of the wild bootstrap and does not require resampling blocks of observations. We propose a residual-based wild bootstrap using a regression model, where the external random variables used to perturb the residuals are cross-sectionally dependent. Covariances between pairs of external random variables are equal to a kernel weight that depends on a distance measure. Shao (2010) proposed this method for the time-series case with distances equal to time gaps, calling it a “dependent wild bootstrap.” The theory for the spatial context is not trivial; however, it is as easy to apply as in the time-series case, requiring only (potentially imperfect) measures of distances between all pairs of observations. The economics involved in applications with spatial data often suggests “economic distance” measures which can be used to model spatial dependence, which decays with distance. We exploit the availability of such distance measures to generate bootstrap observations with cross-sectional dependence. Distance measures can vary depending on the application and multiple metrics are also easily allowed in our setup. This allows our method to apply to panel data settings. For instance, our example application in Section 7illustrates using our method with firm-level data where correlations across firms arise from both overlap in their local markets and similarity in their technologies. We prove the first-order asymptotic validity of our “spatial dependent wild bootstrap” under a set of regularity assumptions that are similar to those used in the spatial HAC literature (Conley (1999), Kelejian and Prucha (2007), Kim and Sun (2011)). In particular, we assume that the score vector for each observation iis a linear transformation of a possibly infinite number of common i.i.d. random innovations. Modeling spatial dependence as a linear process is quite common in the spatial econometrics literature (see, e.g., Kelejian and Prucha (2007), Kim and Sun (2011,2013), and Robinson (2011)). It avoids having to index observations in a Euclidean space, as required with mixing conditions, and a special case of this model is the popular spatial autoregressive (SAR) process. Compared to Shao (2010), who assumes a stationary mixing time series, our assumptions allow for heterogenous spatial dependence in dimensions higher than one, but we rule out nonlinear forms of dependence. We generate spatially dependent external random variables using the eigendecomposition of the bootstrap kernel matrix. This matrix contains weights given by a kernel function evaluated at the distance measure and is equal to the bootstrap covariance matrix of the n×1 vector of external random variables. Hence, it must be positive semidefinite, and a sufficient condition is that we choose a bootstrap kernel function whose
Quantitative Economics 14 (2023) Bootstrap inference 513 Fourier transform is weakly positive. A similar assumption is imposed by Shao (2010)in the one-dimensional time series context. We discuss a class of kernels that satisfy this condition when spatial dependence is of dimension higher than one and the distance is Euclidean. We also propose a modification for cases where the bootstrap kernel matrix is not positive semidefinite. Our bootstrap method contains several existing methods as special cases. One is the regular wild bootstrap. The other is the cluster wild bootstrap, popularized by Cameron, Gelbach, and Miller (2008) and studied by Djogbenou, MacK- innon, and Nielsen (2019). We provide a theoretical justification for bootstrap hypothesis tests based on studentized statistics requiring the use of a spatial HAC estimator for the original and the bootstrap test statistics. We allow for kernels used to construct test statistics to be different than those used for generating the bootstrap data. This is important since the bootstrap kernel function needs to be positive semidefinite, but one may want to use other kernels to construct test statistics. We also allow for the use of restricted residuals when computing bootstrap critical values for hypothesis tests. The use of restricted rather than unrestricted residuals often results in better size control. The structure of the paper is as follows. In Section 2,wedescribethesetupandreview the spatial HAC literature. In Section 3, we introduce the spatial dependent wild bootstrap and prove the consistency of the bootstrap distribution under a set of regularity assumptions that rely on a linear array representation for the score vector. The results of this section can be used to justify the construction of bootstrap percentile intervals, which do not require studentization. In Section 4, we discuss hypothesis testing based on studentized test statistics. Section 5discusses an extension of our method to nonlinear models. Section 6illustrates the finite sample performance of the method in comparison to alternative asymptotic-based methods. In Section 7, we illustrate our method in a firm-level regression investigating the relationship between a firm’s sales growth and the import activity in its local market, where two metrics characterize residuals’ dependence. An Appendix contains mathematical derivations. 2. Linear regression with spatial or space-time dependence We consider the following linear regression model: yi=x iβ+ui,i=1, ,n, where the (p×1)vector of regressors, xi, and error term ui, might be spatially or spacetime dependent. The OLS estimator of βis ˆ β=n i=1 xix i−1n i=1 xiyi. Under some regularity conditions, we know that Q−1JnQ−1−1/2√n(ˆ β−β)d −→ N(0, Ip),(1)
514 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) where Q=plimn→∞ n−1n i=1xix iis a positive definite matrix and Jn=Varn−1/2 n i=1 xiui≡1 n n i,j=1 EViV j,whereVi≡xiui. We assume throughout that Jnis nonsingular uniformly in n. According to (1), the asymptotic covariance matrix of ˆ βis Cn=Q−1JnQ−1, which we need to estimate for inference on β. A consistent estimator of Qis ˆ Qn=1 n n i=1 xix i. Estimating Jnin the presence of spatial (cross-sectional) or space-time correlation is more challenging as all pairs of observations could potentially be correlated. The literature on spatial HAC inference confronts this problem by using auxiliary data on distances to model covariances between observations and to construct a nonparametric estimator for Jn;seeConley (1999). The basic idea is that measurements of a distance between observations can serve to characterize covariance structures in a manner analogous to time lags in a time-series setting. Observations that are deemed close are modeled as potentially highly dependent, but those far enough away are approximately independent. The spatial HAC literature has considered estimators of the form: ˆ Jn=1 n n i=1 n j=1 Kdij dnˆ Viˆ V j,(2) where ˆ Vi=xiˆ uiand K(·)is a real-valued kernel function with K(0)=1. The distance between iand jis denoted dij and dnis a scale parameter (bandwidth). We require dij ≥0, dii =0, dij =dji, but not the triangular inequality dij ≤dik +dkj . This approach can be viewed as an extension of smoothed periodogram spectral density estimators that have long been used in the time-series literature, for example, Bartlett (1955)wheredistances are analogous to time lags. It can be viewed as a generalization of what are commonly called cluster or group dependence estimators (see, e.g., Liang and Zeger (1986)and Moulton (1986)), where observations are taken to be correlated within a known set of groups or clusters but independent across groups/clusters. These cluster estimators are a special case of spatial HAC with a discrete distance metric reflecting group membership and a uniform kernel K. Distances need not be based upon physical locations; they can be much more general measures of “economic distance” as in Conley (1999). For example, Conley and Ligon (2002) use an economic distance measure based on the transportation cost between countries in the context of a cross-country growth regression. Other examples include economic distances based on the similarity of input and output structures as considered by Chen and Conley (2001)andConley and Dupor (2003). In many applications, distances can be based on attributes, for example, input shares for firms. In these
Quantitative Economics 14 (2023) Bootstrap inference 515 cases, observations’ locations can be indexed by a vector of attributes si∈Rτ,andthe distance between two units, iand j, may correspond to the Euclidean distance between siand sj. Our method will be applicable with non-Euclidean metrics as well, possibly with a modification (see Section 3.3). The existing spatial HAC literature also allows for the presence of measurement error in dij (see, e.g., Conley (1999), Conley and Molinari (2007), Kelejian and Prucha (2007), and Kim and Sun (2011)), that is, ˆ Jnis based on ˜ dij rather than on the “true” measures dij ,where ˜ dij is such that ˜ dij =dij +ξij , where ξij is a measurement error. We will follow this literature and also allow for measurement errors in ˜ dij when applying the dependent wild bootstrap. Regularity conditions on ξij will be discussed in Section 3.2. Our method is readily applicable to a panel data setting where distances between observations are in part a function of the observations lead/lag in time. When distances between pairs of observations are derived from locations, for example, siand sj,time can be viewed as just another element of these location vectors with Kdefined to be a product kernel with one time series and one spatial component as in Conley (1999) (see also Kim and Sun (2013)). In general, distance can depend on any fixed number of metrics; see, for example, Kelejian and Prucha (2007) who suggest a HAC estimator with Mmetrics based on K(min1≤m≤M{dij ,m/dn}),wheredij ,mdenotes the mth distance measure between iand j. For ease of exposition, we present our theory using a single distance measure. 3. Bootstrap inference 3.1 The bootstrap method The bootstrap data generating process is described as follows. Let y∗ i=x iˆ β+u∗ i,i=1, ,n,(3) and generate u∗ i=ˆ ui·ηi,(4) where ˆ ui=yi−x iˆ βand ηiis an external random variable chosen by the researcher. In this section, we rely on the unrestricted estimator ˆ βto generate the bootstrap observations on the dependent variable and discuss bootstrap consistency results that do not impose any constraint on β. We will discuss hypothesis testing in the next section, where ˆ βcan be a restricted OLS estimator, which imposes the null hypothesis under consideration. This is a key advantage of our method since the bootstrap literature has shown that imposing the null on the bootstrap DGP can result in large size improvements; see, for example, Davidson and MacKinnon (1999)andDjogbenou, MacKinnon, and Nielsen (2019). Thechoiceofηiis crucial. The regular wild bootstrap generates ηiin an i.i.d. fashion such that E∗(ηi)=0andVar∗(ηi)=1foralli. This implies that the bootstrap errors u∗ i
516 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) are independently distributed, conditional on the data, with mean zero and variance ˆ u2 i. Hence, the wild bootstrap preserves heteroskedasticity but destroys cross-sectional (or space-time) dependence. Our goal in this paper is to generalize the regular wild bootstrap method so as to preserve cross-sectional or space-time dependence and heterogeneity with a general form. As usual, we require that E∗(ηi)=0andVar∗(ηi)=1foralli. However, we do not generate ηiindependently across i. Instead, given a potentially mismeasured distance ˜ dij between observations, we generate {ηi:i=1, ,n}such that their covariance structure is given by Cov∗(ηi,ηj)=K∗˜ dij d∗ nfor all (i,j),(5) where K∗(·)denotes a real valued kernel function and d∗ nis a bandwidth parameter. The choice of K∗and d∗ nis discussed below, where formal assumptions on these quantities will be introduced. We will also provide an algorithm on how to generate ηisuch as to verify (5). Before we do so, let us provide some intuition for why this bootstrap method can be robust to cross-sectional dependence. Let ˆ β∗=n i=1 xix i−1n i=1 xiy∗ i denote the bootstrap OLS estimator. Using the bootstrap data generating process above, we can easily show that the bootstrap covariance matrix of √n(ˆ β∗−ˆ β)is Var∗√nˆ β∗−ˆ β=ˆ Q−1 nˆ Jboot,nˆ Q−1 n, where ˆ Jboot,n=Var∗1 √n n i=1 xiu∗ i=1 n n i,j=1 xiCov∗u∗ i,u∗ jx j =1 n n i,j=1 xiˆ uix jˆ ujCov∗(ηi,ηj)=1 n n i,j=1 K∗˜ dij d∗ nˆ Viˆ V j, given that Cov∗(ηi,ηj)=K∗(˜ dij d∗ n)by (5). This shows that the spatial dependent wild bootstrap algorithm induces a bootstrap covariance matrix ˆ Jboot,n, which is just an example of a spatial HAC covariance estimator, where the kernel function is K∗and the bandwidth parameter is d∗ n. Given the link to the spatial HAC covariance matrix estimator, we can expect this bootstrap method to be valid under conditions similar to those used in the spatial HAC literature. Next, we describe our requirements on the bootstrap spatial kernel function K∗.To do so, we introduce the notion of “pseudo-neighbors.”Given the bandwidth parameter d∗ n,anobservationjis defined as a pseudo-neighbor of iif its measured distance to iis
Quantitative Economics 14 (2023) Bootstrap inference 517 less than d∗ n.Morespecifically,let B∗ i,n=j:˜ dij ≤d∗ n,∗ i,n= n j=1 1j∈B∗ i,nand ∗ n=1 n n i=1 ∗ i,n.(6) Then B∗ i,nis the set of pseudo neighbors that unit ihas based on d∗ n,∗ i,nis the size of B∗ i,nand ∗ nis its average. Note that B∗ i,nis a random set due to measurement error in ˜ dij , implying that both ∗ i,nand ∗ nare random sequences. The following condition specifies the requirements on the spatial kernel K∗. Assumption 1. (i) The kernel function K∗:R→[−1, 1]satisfies K∗(0)=1, and K∗(z)= K∗(−z)for all z∈R; (ii) 1 E∗ nsupiE(j/∈B∗ i,n|K∗(˜ dij d∗ n)|)=O(1)and 1 E∗ nsupij/∈B∗ i,n|K∗(˜ dij d∗ n)|=OP(1); (iii) The matrix K∗ n=[K∗(˜ dij /d∗ n)]n i,j=1is symmetric and positive semidefinite for all n, almost surely. Part (i) is a standard assumption in the HAC literature, which is satisfied by standard kernels such as the rectangular, Bartlett, Parzen, and Quadratic Spectral (QS) kernels. Parts (ii) and (iii) are new to our context. Assumption 1(ii) is automatically satisfied by truncated kernels for which K∗(z)=0for|z|≥1, regardless of the distance used. It allows for kernels that do not truncate provided the tails of K∗decay sufficiently fast. Providing more primitive conditions for general distances is difficult, but we can do so for the Euclidean distance. For instance, with locations indexed on the line (such as a time series) and assuming away the presence of measurement error in distances, this condition is satisfied if ∞ −∞|K∗(u)|du < ∞. Standard kernels used in time-series analysis satisfy this condition, including the QS kernel and the exponential (Gaussian) kernel. Shao (2010) excludes these kernels by assuming a truncated kernel. Similarly, if we map locations into a two-dimensional lattice, a sufficient condition for part (ii) is that ∞ −∞∞ −∞|K∗(x2+y2)|dxdy < ∞or equivalently 1 0r|K∗(r)|dr < ∞, a condition that is satisfied by the Gaussian kernel. Part (iii) is a high level condition that requires the matrix of weights K∗ n=[K∗(˜ dij / d∗ n)]n i,j=1to be symmetric and positive semidefinite. The reason why we impose this condition is that K∗ nis the bootstrap variance matrix of η=(η1,,ηn)and, therefore, needs to satisfy these conditions. When distances correspond to Euclidean distances between points in Rτ, a sufficient condition is that the kernel K∗be positive definite. Bochner’s theorem provides a necessary and sufficient condition for a kernel K∗to be positive definite in Rτ: the Fourier transform of the kernel function K∗is weakly positive. For example, with locations indexed on the line, ∞ −∞K∗(u)e−iur du ≥0forallr∈R. This well-known condition is met by a number of kernel functions such as the Bartlett kernel or the Parzen kernel. Shao (2010) imposes this condition (see his equation (2)) when studying the properties of the dependent wild bootstrap for the one-dimensional
518 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) dependent context. In higher dimensions, an analogous condition applies; K∗(x)is positive definite if it is of the form: K∗(x)=τ 2∞ 02 rx(τ−2)/2 J(τ−2)/2(rx)dF(r),x≥0, (7) where Fis a probability distribution function on [0, ∞)and J(τ−2)/2(·)is a Bessel function of order (τ−2)/2. This characterization follows from simplifying the integrals in the Fourier transform via polar coordinates to exploit the radial symmetry of K∗(x).Discussions of positive definite kernels can be found in, for example, Conley (1999), Chen and Conley (2001), Gneiting (2002), or Kelejian and Prucha (2007); see Yaglom (1987)fora textbook characterization of this class of functions. The set of positive definite kernels depends on the dimension τand it shrinks as τ grows, implying that a kernel which is positive definite in τdimensions will be positive definite in any smaller number of dimensions. An example of this class of kernel functions from Kelejian and Prucha (2007)is K∗ v(x)=(1−x)v,0≤x≤1, 0, x>1, (8) where v≥(τ+1)/2. This is similar to the sharp (or steep) origin kernel in Phillips, Sun, and Jin (2007). The set of kernels that are positive definite in any dimensional Euclidean space (τ= ∞) can be represented as K∗(x)=∞ 0 exp−x2r2dF(r),x≥0. (9) An example kernel in this class is K∗(x)=exp−x2, (10) which is a Gaussian kernel (see, e.g., Stein (1999, p. 44)). Choosing a kernel that is positive definite in any dimensional Euclidean space avoids the need to know the dimension τ. When distances are non-Euclidean, we do not know if there is a class of kernels guaranteed to be positive definite; we discuss one strategy to overcome this issue in Section 3.3. A recent paper by Kojevnikov (2021) also considers a modification of the dependent wild bootstrap kernel function that satisfies Assumption 1(iii) in the context of a network dependent model. His weighting function depends on the topology of the network and requires a structure of locations, which we do not require. Under Assumption 1,K∗ nis symmetric and positive semidefinite, which implies that there exists nsuch that K∗ n=nn n,
Quantitative Economics 14 (2023) Bootstrap inference 525 Note that this matrix has rank equal to the rank of ˆ V,whichisp.Thenexttheorem implies the validity of percentile confidence intervals constructed using the previous algorithm by defining Ln=n1/2 n,wherenis a diagonal matrix with the eigenvalues of M∗ non the diagonal and nis the matrix of associated eigenvectors. In addition, in this case, the external variables must be generated from the standard normal distribution. Theorem 3.2. Suppose the assumptions of Theorem 3.1 hold but K∗ nis not necessarily positive semidefinite.Suppose ˆ VK∗ nˆ Vis positive definite and define M∗ n= K∗ nˆ V(ˆ VK∗ nˆ V)−1ˆ VK∗ n.If v∼N(0, In), sup x∈RpP∗√nˆ β∗−ˆ β≤x−P√n(ˆ β−β)≤x=op(1) as n→∞and d∗ n→∞such that E∗ n/n →0. This result proves the consistency of the bootstrap distribution of √n(ˆ β∗−ˆ β),thus justifying the construction of bootstrap percentile intervals for βeven when K∗ nis not positive semidefinite. Remark 1. Assuming that ˆ VK∗ nˆ Vis positive definite is weaker than assuming that K∗ n is positive definite. In practice, it is possible to ensure that ˆ VK∗ nˆ Vis a positive definite matrix by replacing its negative eigenvalues by >0, a small positive constant, as suggested by Politis (2011)(seealsoMcMurry and Politis (2010)). Since under our remaining assumptions, n−1ˆ VK∗ nˆ Vconverges in probability to Jn,andJnis assumed to be positive definite uniformly in n, this regularization is asymptotically negligible. The Gaussianity assumption on vis crucial for proving Theorem 3.2,asweexplain here. For simplicity, assume that p=1, that is, that ˆ Vi=xiˆ uiis a scalar. Then n−1ˆ VK∗ nˆ V is a scalar and K∗ nˆ Vis n×1, which implies that the rank of M∗ nis 1. This implies that η=Lnv=λ1φ1v1, where λ1is the only nonzero eigenvalue of M∗ nand φ1is its corresponding eigenvector. It follows that ηi=√λ1φi1v1,foralli=1, ,n. Since u∗ i=ˆ uiηi,wehavethat u∗ i=ˆ uiηi=(λ1φi1ˆ ui)v1, implying that the bootstrap scores V∗ i≡xiu∗ i=(ˆ Vi√λ1φi1)v1are all proportional to v1. The implication is that n−1/2n i=1V∗ idoes not satisfy a bootstrap central limit theorem. To obtain a Gaussian distribution, we need to generate v1as N(0, 1). Under this condition, conditionally on the original sample, n−1/2 n i=1 V∗ i=n−1/2ˆ Vλ1φ1v1∼N0, n−1ˆ VM∗ nˆ V, where by construction, n−1ˆ VM∗ nˆ V=n−1ˆ VK∗ nˆ V≡ˆ Jboot,n.
526 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) Thus, conditionally on the data, √nˆ β∗−ˆ β=ˆ Q−1 n 1 √n n i=1 V∗ i∼N0, ˆ Q−1 nˆ Jboot,nˆ Q−1 n. Theorem 3.2 follows because ˆ Q−1 nˆ Jboot,nˆ Q−1 n−Cn=op(1),whereCn=Q−1JnQ−1(apply Lemma A.2, noting that it does not require the positive definiteness assumption on K∗ n). When p>1, the same argument applies except that the rank of M∗ nis now p>1, implying that we can write n−1/2 n i=1 V∗ i= p k=1n−1/2ˆ Vλkφkvk, in which case the joint Gaussianity of (v1,,vp)determines the Gaussianity of the scaled average of the bootstrap scores. 4. Hypothesis testing The previous results justify the construction of bootstrap percentile confidence intervals. These are based on the bootstrap quantiles of the unstudentized statistic √n(ˆ β∗− ˆ β). In this section, we consider bootstrap tests based on studentized statistics. Specifically, we consider testing H0:Rβ =r0vs H1:Rβ =r0, (13) where Ris a r×pmatrix with r≤pand r0is a r×1vector. For testing (13), we employ the Wald statistic given by Wn=√n(Rˆ β−r0)Rˆ Q−1 nˆ Jnˆ Q−1 nR−1√n(Rˆ β−r0), (14) a special case of which is the squared t-statistic when r=1. The Wald test statistic requires the use of a spatial HAC estimator given by ˆ Jn. Our assumption is that this estimator is of the usual form ˆ Jn=1 n n i=1 n j=1 K˜ dij dnˆ Viˆ V j, where K(·)and dncorrespond to a spatial kernel function and a bandwidth parameter that are possibly different from the bootstrap kernel function K∗(·)and the bootstrap bandwidth parameter d∗ n. For bootstrap testing, using restricted residuals is often preferable as this reduces the size distortions. In this case, the bootstrap data generating process can be described as follows. Let ˜ βdenote the restricted OLS estimator of βobtained under H0. We generate bootstrap data as y∗ i=x i˜ β+u∗ i,whereu∗ i=˜ uiηi,with ˜ ui=yi−x i˜ βand ηigenerated as before. In what follows, we denote by ¨ βeither ˜ βor ˆ β, depending on whether we use the restricted or the unrestricted residuals.
Quantitative Economics 14 (2023) Bootstrap inference 527 The bootstrap Wald statistic is then defined as W∗ n=√nRˆ β∗−R¨ βRˆ Q−1 nˆ J∗ nˆ Q−1 nR−1√nRˆ β∗−R¨ β, where ˆ J∗ n=1 n n i=1 n j=1 K˜ dij dnˆ V∗ iˆ V∗ j, with ˆ V∗ i=xiˆ u∗ i,ˆ u∗ i=y∗ i−x iˆ β∗,and ˆ β∗the unrestricted OLS estimator from regressing y∗ i on xi. Similar to the Wald test statistic, the bootstrap Wald statistic also requires the choice of a spatial kernel and a bandwidth parameter. Our approach in this paper is to use the same kernel and bandwidth for studentizing the two Wald test statistics. Hence, our approach is similar to the naive bootstrap approach considered by Gonçalves and Vogelsang (2011). To establish the asymptotic validity of the bootstrap Wald test, we need to impose conditions on Kand dn. In order to do so, we define another set of pseudo neighbors of iusing the bandwidth dn: Bi,n={j:˜ dij ≤dn},i,n= n j=1 1{j∈Bi,n}and n=1 n n i=1 i,n, and make the following assumption. Assumption 7. (i) K:R→[−1, 1]satisfies K(0)=1, and K(z)=K(−z)for all z∈R; (ii) 1 EnsupiE(j/∈Bi,nK(˜ dij dn)) =O(1),1 Ensupij/∈Bi,nK(˜ dij dn)=OP(1); (iii) There exists a constant Cq0<∞such that 1 nn i=1n j=1E(ViV j)dq0 ij <C q0,for all n,where q0denotes the Parzen characteristic exponent of K(z); (iv) For all i,i,n≤cEn,a.s., for some constant c>0. Assumption 7imposes conditions on Kand dn, which are similar to those imposed on K∗and d∗ nby Assumption 1(i) and (ii), and Assumptions 3and 5. The main difference is that we do not require the kernel function Kto be positive definite. If necessary, we can ensure that Rˆ Q−1 nˆ Jnˆ Q−1 nR(and its bootstrap analogue) is positive definite by replacing its negative eigenvalues by >0, a small positive constant, as discussed in Remark 1. Theorem 4.1. Suppose Assumptions 1–7hold.If E∗|vi|4<M and dn,En→∞and d∗ n,E∗ n→∞as n→∞such that En/n =o(1)and E∗ n/n1/2=o(1),then under H0, as n→∞, sup x∈RP∗W∗ n≤x−P(Wn≤x)=oP(1).
528 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) Assumption 7(along with our remaining assumptions) is used to show the consistency of ˆ J∗ nfor ˆ Jboot,n=Var∗(n−1/2n i=1xiu∗ i); see Lemma A.4. Since ˆ Jboot,nconverges to Jn, this implies that ˆ J∗ nis consistent for Jn, which together with Theorem 3.1 imply the result. Theorem 4.1 shows that the bootstrap Wald test W∗ nmimics the null distribution of Wnwhen the null is true, irrespective of whether we use the restricted or unrestricted approach. This is sufficient to claim the first order asymptotic validity of the bootstrap critical values under the null hypothesis. When the null is not true, the bootstrap distribution of the bootstrap Wald test based on the unrestricted residuals still converges to the null limiting distribution of Wn. This result follows because (i) the bootstrap distribution of √n(ˆ β∗−ˆ β)converges to a normal distribution with mean zero and variancecovariance equal to Cn=Q−1JnQ−1, and (ii) ˆ J∗ nis consistent for Jn, independently of the true value of βunderlying the DGP. For the restricted approach, we can show that the same is true when the true value of βis equal to β0+δ/√n. Hence, the restricted bootstrap Wald test mimics the null limiting distribution of Wnunder a set of local alternatives. This ensures that the bootstrap Wald test achieves the same local power as the test based on asymptotic critical values. Next, we provide a description of the steps involved in testing H0:Rβ =r0using our bootstrap method. Algorithm (Spatial Dependent Wild Bootstrap for Testing H0:Rβ =r0). (i) Compute ˆ β=n i=1 xix i−1n i=1 xiyi,ˆ ui=yi−x iˆ β,andˆ Vi=xiˆ ui,i=1, ,n. (ii) Compute Wn=√n(Rˆ β−r0)[Rˆ Q−1 nˆ Jnˆ Q−1 nR]−1√n(Rˆ β−r0),where ˆ Qn=1 n n i=1 xix iand ˆ Jn=1 n n i=1 n j=1 K˜ dij dnˆ Viˆ V j, for a given kernel K, a bandwidth dn, and a set of distances {˜ dij }.Section6pro- vides a method for choosing dn. (iii) Compute the matrix K∗ n=[K∗(˜ dij /d∗ n)]n i,j=1and its eigendecomposition K∗ n= nn n,wherenis a diagonal matrix with the nonnegative eigenvalues of K∗ n and the columns of nare the associated orthonormal eigenvectors. Let Ln= n1/2 n. (iv) Generate an n×1vectorv∼(0, In). We recommend using a sequence of standard normal random variables, but another distribution could be used. Then generate a sequence of random variables {ηi:i=1, ,n}by multiplying this vector ν by Ln: η=Lnv.
Quantitative Economics 14 (2023) Bootstrap inference 529 (v) Compute the restricted OLS estimator ˜ β=ˆ β−n i=1 xix i−1 RRn i=1 xix iR −1 (Rˆ β−r0) and the restricted residuals ˜ ui=yi−x i˜ β,i=1, ,n.Let y∗ i=x i˜ β+u∗ i,whereu∗ i=˜ uiηi. (vi) Compute W∗ n=√n(Rˆ β∗−r0)[Rˆ Q−1 nˆ J∗ nˆ Q−1 nR]−1√n(Rˆ β∗−r0)using ˆ β∗=n i=1 xix i−1n i=1 xiy∗ i, bootstrap scores ˆ V∗ i=xiˆ u∗ i,and ˆ J∗ n=1 n n i=1 n j=1 K˜ dij dnˆ V∗ iˆ V∗ j. (vii) Repeat steps (iv)–(vi) Btimes and compute the bootstrap p-value as ˆ pn=1 B B b=1 1W∗(b) n>Wn, where W∗(b) nis the bootstrap Wald statistic in replication band 1(·)is the indicator function. Reject the null hypothesis if ˆ pnis less than the chosen significance level of the test. Finally, we note that the spatial dependent wild bootstrap based on the modified nonnegative kernel M∗ ndiscussed in Section 3.3 is not asymptotically valid when applied to studentized test statistics. In particular, suppose we consider testing H0:β=β0in a simple location model yi=β+uiby relying on a t-test tn=√n(ˆ β−β0) se(ˆ β), where ˆ β=¯ y=n−1n i=1yiand se(ˆ β)is the square root of ˆ Jn=1 n n i,j=1 K˜ dij dn(yi−¯ y)(yi−¯ y)≡1 n n i,j=1 K˜ dij dnˆ Viˆ Vj, with ˆ Vi=ˆ ui≡yi−ˆ β. Now, consider the spatial dependent bootstrap based on the modified kernel M∗ n. Specifically, let y∗ i=ˆ β+u∗ i,withu∗ i=ˆ uiηi,andη=Lnv,where v∼N(0, In)and Ln=nn, as described in Section 3.3. The bootstrap analog of tnis t∗ n=√nˆ β∗−ˆ β seˆ β∗,
530 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) where se(ˆ β∗)is the square root of ˆ J∗ n=1 n n i,j=1 K˜ dij dny∗ i−¯ y∗y∗ i−¯ y∗≡1 n n i,j=1 K˜ dij dnˆ V∗ iˆ V∗ j, with ˆ V∗ i=ˆ u∗ i≡y∗ i−ˆ β∗. We can show that ˆ V∗ i=u∗ i−¯ u∗=v1(zi−¯ z), where we let zi≡ ˆ ui√λ1φi1. With this notation, we can write t∗ n≡√nˆ β∗−ˆ β !ˆ J∗ n =v1 !v2 1 Zn=a1Zn, where a1=v1 !v2 1 is a discrete (Rademacher) random variable given by a1=1withprob.1/2, −1withprob.1/2, depending on the sign of v1,and Zn= 1 √n n i=1 zi " # # $1 n n i,j=1 K˜ dij dn(zi−¯ z)(zj−¯ z) is a function of the original sample. Thus, conditionally on the data, t∗ nhas a discrete distribution function given by ˆ Fn(x)≡P∗t∗ n≤x=P∗(a1Zn≤x)=1 21(Zn≤x)+1 21(−Zn≤x). Since ˆ Fn(x)isdiscrete,wecannotexpectittoconvergeto(x), the limiting distribution function of tn. Although the consistency of the bootstrap distribution is not necessary for the validity of a bootstrap p-value (as recently emphasized by Cavaliere and Georgiev (2020)), we can also show that the bootstrap p-value induced by this modified procedure has a discrete distribution, and hence it cannot be uniformly distributed, as n→∞. 5. Extension to nonlinear models In this section, we describe an extension of the score wild bootstrap of Kline and Santos (2012a) to the spatial context. This method is a fast resampling method, which can be used for inference in nonlinear models estimated by asymptotically linear estimators such as the QMLE or the GMM estimator. The main idea of the score wild bootstrap is to perturb the score vector evaluated at the estimated parameter of interest by an external random variable ηiwith mean zero and variance one. Kline and Santos (2012a)
Quantitative Economics 14 (2023) Bootstrap inference 531 assume that ηiis i.i.d., as in the regular wild bootstrap. Instead, here we allow for spatial dependence of unknown form in the score contributions and generate ηisuch that Cov∗(ηi,ηj)=K∗(˜ dij d∗ n). For brevity, we only provide a description of the method, omitting the proof of asymptotic validity.3 Let {Zi:i=1, ,n}denote a sample of observations on a random vector Z∈RdZ and let θ∈⊆Rp. For the linear model considered previously, Zi=(yi,x i),butthis decomposition does not need to hold in general. The parameter of interest is denoted by θ0and we assume that its estimator ˆ θadmits the following asymptotic linear expansion: √n(ˆ θ−θ0)=An(θ0)1 √n n i=1 Vi(θ0)+oP(1), where An(θ)is a p×matrix and Vi(θ)≡V(Zi,θ)is an ×1 vector, where ≥p.If An(θ0)P −→ A0and 1 √n n i=1 Vi(θ0)d −→ N(0, J0), it follows that √n(ˆ θ−θ0)d −→ N(0, C0), where C0≡A0J0A 0. Two examples of ˆ θthat fit into this framework are the QMLE and the GMM estimator. For QMLE, ˆ θ=argmin θ∈ 1 n n i=1 q(Zi,θ), where q(·,θ)is a quasi-log-likelihood real valued function. Assuming that qis twice differentiable in θ,wecanwrite √n(ˆ θ−θ0)=−H−1 n(θ0)1 √n n i=1 Vi(θ0)+op(1), where Hn(θ)=1 n n i=1 ∂2q(Zi,θ) ∂θ∂θ, is the p×pHessian matrix and Vi(θ0)=∂q(Zi,θ0) ∂θ is the p×1 score vector for observation i. Thus, we have that An(θ0)=−H−1 n(θ0)and Vi(θ0)=∂q(Zi,θ0) ∂θ . 3This could be established under conditions similar to those used by Kim and Sun (2011)(whostudied the spatial GMM estimator) by applying the bootstrap uniform law of large numbers and the bootstrap central limit theorems derived in Gonçalves and White (2004). Providing primitive conditions on the data such that a linear array representation holds for the score vector is difficult and case-specific.
532 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) A special case is the OLS estimator considered previously, where Vi(θ0)=−2xiuiand Hn(θ)=2n−1n i=1xix i. For GMM estimators, assume that Eg(Zi,θ0)=0, where g:Z×−→ Rcontains the moment conditions with ≥p.TheGMMestimator of θ0is defined as ˆ θ=argmin θ∈1 n n i=1 g(Zi,θ) Wn1 n n i=1 g(Zi,θ), where Wnis a random positive definite symmetric matrix, which converges in probability to W>0. Assuming gis differentiable in θ, we define the Jacobian matrix of the moment conditions as Gn(θ)=1 n n i=1 ∂g(Zi,θ) ∂θ. Under standard regularity conditions that allow for spatially dependent observations (see, e.g., Kim and Sun (2011)), √n(ˆ θ−θ0)=−Gn(θ0)WnGn(θ0)−1Gn(θ0)Wn 1 √n n i=1 gi(θ0)+op(1), implying that An(θ0)=−Gn(θ0)WnGn(θ0)−1Gn(θ0)Wn,andVi(θ0)=gi(θ0). Following Kline and Santos (2012a), we can approximate the distribution of √n(ˆ θ− θ0)by relying on the bootstrap distribution of ν∗ n=An(ˆ θ)1 √n n i=1 V∗ i, where V∗ i=Vi(ˆ θ)ηiand ηiare such that Cov∗(ηi,ηj)=K∗(˜ dij d∗ n). This method contains the spatial dependent wild bootstrap for linear regressions as a special case. In particular, note that for the linear model, An(ˆ θ)=n−1 n i=1 xix i−1 =ˆ Q−1 n,andV∗ i=Vi(ˆ θ)ηi=xiˆ uiηi≡xiu∗ i, where u∗ i=ˆ uiηi. Since y∗ i=x iˆ β+u∗ i, this implies that ν∗ n=ˆ Q−1 n 1 √n n i=1 xiu∗ i=ˆ Q−1 n 1 √n n i=1 xiy∗ i−x iˆ β=√nˆ β∗−ˆ β, which shows that ν∗ nis equal to √n(ˆ β∗−ˆ β), as we considered before.
Quantitative Economics 14 (2023) Bootstrap inference 533 For GMM, the spatial score bootstrap simulates the critical values of ν∗ n=−Gn(ˆ θ)WnGn(ˆ θ)−1Gn(ˆ θ)Wn 1 √n n i=1 gi(ˆ θ)ηi, in order to approximate the distribution of √n(ˆ θ−θ0). Since ν∗ ndoes not depend on any bootstrap GMM estimator ˆ θ∗, this is a fast resampling method that does not require any optimization in the bootstrap world. 6. Monte Carlo simulations In this section, we consider a simulation experiment to document the properties of our proposed approach. Our design follows Lee and Robinson (2016)andSun and Kim (2015). The data is generated as yi=α+βxi+ui, where α=0andβ=1. The observations lie within a square of dimension √n×√n where nis the sample size. The locations si=(si1,si2)are drawn uniformly within that square once and for all for each design, that is, we let si1∼U[0, √n]independently of si2∼U[0, √n]. The distance between observations at locations siand sjis Euclidean: dij =!(si1−sj1)2+(si2−sj2)2. Regressor and errors have the same dependence structure. Each of zi=(xi,ui)and zjare drawn from a standard normal N(0, I2)distribution but with correlation θdij between them. The parameter θcontrols the degree of dependence among observations with a higher value of θleading to observations that are more highly correlated. In our experiments, we consider values of θbetween 0 and .9 in increments of .1. We report results for three sample sizes: n=25, 100, and 400 as a function of θwith 10,000 replications. We consider rejection rates of the null hypothesis of β=1 against a two-sided alternative at the 5% level using the tstatistic: tn=√n(ˆ β−1) se(ˆ β), where se(ˆ β)is the square root of the (2, 2)element of ˆ Q−1 nˆ Jnˆ Q−1 nwith ˆ Jn=1 n n i=1 n j=1 K˜ dij dnˆ Viˆ V j, using the Gaussian kernel, the data-based choice of dndiscussed below, and ˜ dij =dij is the Euclidean distance between the locations siand sj. We will later consider the presence of measurement error in locations and the misspecification of the distance measure.
534 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) The choice of bandwidth is clearly important. Our suggested approach is to compute an estimate of C(d(k) 0), the spatial analog of the autocovariance function of the residuals for a set of potential bandwidths {d(k) 0,k=1, ,M}, arranged in increasing order of magnitude. We estimate C(d(k) 0)nonparametrically using a local average estimator ˆ C(d(k) 0), following Conley and Dupor (2003)andConley and Topa (2002). We view ˆ C(d(k) 0)as a test statistic for the null hypothesis of spatial independence at distance d(k) 0, and construct an acceptance region via a bootstrap simulation imposing this null, based on bootstrap data sets with i.i.d. draws from the empirical distribution of residuals. The bootstrap analog of ˆ C(d(k) 0)is then constructed for each spatially independent bootstrap sample, with their distribution providing a reference distribution for the null of spatial independence. We identify the first distance in the ordered set {d(k) 0,k=1, ,M}for which the bootstrap test does not reject independence and select the bandwidth as the previous value of that distance. The next algorithm details the steps involved. Algorithm (Bandwidth Selection). (i) Compute ˆ β=n i=1 xix i−1n i=1 xiyi,ˆ ui=yi−x iˆ β,andˆ Vi=xiˆ ui,i=1, ,n. (ii) Choose a set of potential bandwidths d0=(d(1) 0,,d(M) 0), ordered in increasing magnitude, and tolerance level . For each k=1, ,M,compute ˆ C(d(k) 0),thecovariance between residuals at distance d(k) 0, via a uniform kernel regression with tolerance of : ˆ Cd(k) 0=1 i,j 1|˜ dij −d(k) 0|< i,j 1|˜ dij −d(k) 0|< ˆ uiˆ u j. (iii) Generate data using an i.i.d. bootstrap from the empirical distribution of residuals ˆ uifor each location si. For each k=1, ,M, compute the bootstrap analog of ˆ C(d(k) 0), ˆ C∗d(k) 0=1 i,j 1|˜ dij −d(k) 0|< i,j 1|˜ dij −d(k) 0|< ˆ u∗ iˆ u∗ j. (iv) Repeat step (iii) Btimes and obtain a bootstrap acceptance region for the null of spatial independence using the 2.5% and 97.5% quantiles of ˆ C∗(d(k) 0). (v) We search for the first element of d0for which ˆ C(d(k) 0)is within these bands and set the bandwidth as the previous element of d0. We implement this algorithm as follows. We set d(k) 0=ck×n1/6,forckbetween 0.5 and 4 in increments of 0.5, which gives M=8. From Kim and Sun (2011), the chosen rate
Quantitative Economics 14 (2023) Bootstrap inference 541 The i.i.d. bootstrap is obviously more robust since it relies less on the existence of a distance measure (it still relies on it in the construction of the statistic). Nonetheless, our SDWB performs better for larger sample size and stronger dependence. Finally, Figure 5considers the case where the wrong distance measure is used, This experiment generates data as before by drawing locations uniformly in a square of dimension √n×√n, but the distance between observations is the maximum distance: dij =max|si1−sj1|,|si2−sj2|. We suppose that the researcher believes that he is in the same context as for Figure 1 and uses the Euclidean distance between observations. This is a different type of misspecification than what was considered in Figures 2–4. Here, the locations are correctly observed, but the wrong metric between them is used. Because the Euclidean distance and Gaussian kernel are used in the sample, the resulting K∗ nmatrix is still positive semidefinite. When comparing Figures 1and 5, we see that the misspecification worsens results for all methods, but the effect is quite small, much less than a N(0, 2)measurement error in locations. For example, with θ=0.5, our bootstrap has a rejection rate of 11.8% for n=25, 8.4% with n=100, and 6.6% for n=400 compared to 10.9%, 8.0%, and 6.5% with no measurement error, and 20.0%, 18.7%, and 7.9% with N(0, 2)measurement error in locations. We conclude from these experiments that the spatial dependent wild bootstrap removes a large fraction of the size distortions associated with the use of the normal asymptotic critical values. Its superiority is especially pronounced with stronger spatial dependence (larger values of θ). Moreover, it outperforms the i.i.d. bootstrap except for cases with large misspecification combined with either small sample size or weak dependence. 7. Empirical example In this section, we present an example application to illustrate our method. This application’s goal is to understand how firms are affected by import behavior in their local markets. An extensive empirical literature has examined the role of import competition in the reallocation of manufacturing within and across industries, for example, Bernard, Jensen, and Schott (2006), Autor, Dorn, Hanson, and Song (2014), and Acemoglu, Autor, Dorn, Hanson, Price (2016). Recent work in this literature, such as Utar (2017)andSandoval (2020), has been concerned with the distinct effects of imports depending on their location in the supply chain. This motivates an empirical investigation of the impact of different types of imports upon firm outcomes. We examine a regression that provides stylized facts about the correlations between firms’ growth and the level of importing activity in their local markets, distinguishing between three types of imports. These three categories are: final goods imports which may reflect competition facing domestic producers in the local market, intermediate goods imports which could reflect, for example the scale of operation by competitors or the supply of inputs in the market, and capital goods imports, which may reflect varying access to technology and/or competitors’ scale of operation.
542 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) We use Canadian firm-level data from the National Accounts Longitudinal Microdata File (NALMF), constructed by Statistics Canada, for the years 2003 and 2007. The NALMF contains all incorporated firms in Canada, and is mainly used to track GDP and employment of firms, and their locations. We use data from 2003 and 2007 and link wholesaler import data from Statistics Canada to the NALMF.4This provides data on firm-level imports that include their value, country of origin, and product at the level of a ten-digit harmonized system code. These import-linked data allow us to study how the import activity of Canadian wholesalers in intermediate, final, and capital good markets affect manufacturing firms’ outcomes.5 Specifically, we examine the relationship between manufacturing firms’ sales growth and the level of exposure to import activity in their local markets. We estimate that relation using a cross-section of firms and the following specification: Sales Growthi=α+θXFinal i+γXIntermediate i+δXCapital i+Z iψ+εi, (15) where icorresponds to a manufacturing firm. The dependent variable, Sales Growthi, corresponds to the growth rate of real sales between 2003 and 2007. The local market of firm iis taken to be its Economic Region (ECR) among the 72 ECRs defined by Statistics Canada.6Importing activity variables Xare defined at the ECR level and reflect 2003 activity. We define the parameter vector as β=(α,θ,γ,δ,ψ). XFinal iis computed as a ratio. Its numerator is the value of all imports by wholesalers of final goods within firm isECR. Its denominator is the total value of all imports and domestic sales of manufacturing firms in firm isECR. The import measures XIntermediate i and XCapital iare defined analogously. See Sandoval (2020) for an extensive discussion of the merits of these particular measures of import activity. Our conditioning information in Ziincludes 2003 data on firm age, the logarithm of real sales, and measures of capital and skill intensity. Following Bernard, Jensen, and Schott (2006), we measure capital intensity as the natural log of a capital/labor ratio using the book value of tangible assets divided by firm’s total payroll, and measure skill intensity as the ratio of the total payroll to the payments to production workers. We focus on a cross-section of manufacturing firms with more than 20 workers in 2003, yielding a sample of 6120 firms. Approximately 88% of Canadian manufacturing workers in 2003 worked in these sample firms. We anticipate that spatial dependence will be present in this cross-section of firms due to two main factors. Firms that are close in terms of travel time will have relevant local markets that overlap. When firms’ local markets overlap, they will tend to face correlated shocks, for example, labor supply shocks. We use physical distance between firms as our measure of the overlap between firms’ local markets. Correlated unobservables could also easily arise due to similarities in firms’ technology making them vulnerable 4See Sandoval (2020) for a detailed description of these linked data. 5We classify imports according to their end-use as intermediate, final, or capital goods using the correspondence tables between the HS and Broad Economic Categories (BEC) classification. 6Approximately 96% of the firms in our sample have single locations; for the remaining firms, we take a firm’s location as the location of its designated headquarters.
Quantitative Economics 14 (2023) Bootstrap inference 543 to a common set of shocks or changes to their technology. We represent firms’ technology via two characteristics that we use to generate a “technology distance”: their capital to labor ratio and the fraction of total payroll going to production workers. We combine our two distance measures to implement the spatial dependent wild bootstrap. For physical distance, we use the coordinates of the centroids of the ECR in which firms are located as firm coordinates and use straight line distance as our measure of firms’ physical distance.7Each firm’s technology is summarized by a two-dimensional vector containing its capital/labor ratio and ratio of total payroll to production worker payroll, both in 2003. Technology distance is calculated as the Euclidean distance between firms’ two-dimensional technology characteristics vectors. We add both distance measures after scaling them so neither dominates. The combined distance for firms iand j,˜ dij , is constructed by adding a scaled multiple of their technology distance to their physical distance: ˜ dij =physical distance +scale ×(technology distance). The technology scale factor is constructed so that the median of the scaled technology distance is equal to the median physical distance (560 km). Thus, for two firms with identical measured technology, our combined distance ˜ dij is equal to physical distance, providing at least some sense of units. We use the same kernel and bandwidth for the spatial dependent wild bootstrap procedure and spatial HAC: K∗(˜ dij /dn)=K(˜ dij /dn)=exp−(˜ dij /dn)2,wheredn=d∗ n. We present results in Table 1using a methodology for choosing dnsimilar to that described in Section 6. Specifically, we obtain ˆ C(d(k) 0)for a range of values for d(k) 0. Figure 6 gives these estimates for an assortment of distances, along with upper and lower ends of a 90% acceptance region for spatial independence. ˆ C(d(k) 0)is normalized in Figure 6by dividing by the sample variance of residuals. Although spatial covariances can be small relative to the variance of residuals, it is important to note that there can be a very large number of firms at the smaller distances from each other so their covariances’ sum can still be substantial relative to their variance. Pointwise hypothesis tests for spatial independence can be done by simply comparing the covariance estimates (circles) to the acceptance region (between dashes).8Estimated autocovariances are generally decreasing and independence is rejected until about 500–700 units and then “borderline rejected” until about 1100 units. This motivated our choice of a bandwidth of 560 for our reported estimates; the implied weight Kis greater than 0.14 for only 25% of the pairs of firms. 7Centroids are calculated from Statistics Canada maps of 2016 ECR boundaries. 8It is important to remember that these acceptance regions are for the null hypothesis of independence rather than zero correlation. Rejections can occur due to differences in the sampling distribution under dependence versus independence, even if the covariance at the given distance were zero. We anticipate that with spatial dependence rejections at smaller distances will occur largely due to nonzero autocovariances. At larger distances, we anticipate some (correct) rejections even though true covariance is zero at that distance due to the sampling variability being larger under dependence than independence.
544 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) Table 1. Inference for regression (15) predicting the growth of sales between 2003 and 2007. Half width of 95% confidence intervals ˆ βOLS White Cluster ECR Clustered Wild Bootstrap ECR Cluster Industry Clustered Wild Bootstrap Industry Spatial HAC Spatial Wild Bootstrap Import Pen. Intermediate 4.342 1.666 1.799 1.833 2.048 1.696 1.746 1.838 2.074 Import Pen. Final −3.033 1.584 1.454 2.164 1.465 1.344 2.063 1.557 1.695 Import Pen. Capital −0.130 1.307 1.027 1.271 1.119 1.199 1.061 1.013 1.021 Log real sales 0.013 0.017 0.016 0.014 0.010 0.031 0.019 0.021 0.023 Age −0.003 0.004 0.004 0.003 0.003 0.004 0.004 0.004 0.005 Capital intensity 0.028 0.021 0.030 0.032 0.034 0.037 0.028 0.028 0.031 Skill intensity 0.004 0.051 0.023 0.023 0.012 0.025 0.011 0.023 0.013 Constant −0.265 0.191 0.197 0.192 0.200 0.455 0.266 0.280 0.311 Note: The import penetration variables are computed at the ECR-level and for the year 2003. The reminder of the regressors refer to firm-level data for the year 2003. For the Wild bootstrap, we compute a symmetric t-percentile confidence interval using 2000 Bootstrap repetitions. Skill intensity is measured in 100s. We obtained qualitatively very similar results with bandwidth choices up to 1120; at this bandwidth, Kis greater than 0.14 for 53% of firm pairs and Kis greater than 0.61 for 25% of pairs. Figure 6. Circles are local average estimates of spatial covariances and dashed lines represent edges of a 90% acceptance region for the null hypothesis of spatial independence. Uniform kernel with tolerance δ=57 for smallest distance and δ=113 for all others. Covariances are normalized by dividing by sample variance of residuals.
Quantitative Economics 14 (2023) Bootstrap inference 545 We also include in Table 1confidence intervals using different methods for computing standard errors and critical values. Specifically, we compute asymptotic theorybased intervals that rely on different standard errors: classical OLS, heteroskedasticity consistent (labeled White), clustered at the ECR-level, clustered at the 3-digit industrylevel, and spatial HAC. We also include three bootstrap-based intervals: cluster wild bootstrap at the ECR level, cluster wild bootstrap at the industry level and our spatial dependent wild bootstrap using the same kernel and bandwidth as in the spatial HAC.9 The results presented in Table 1have several key features. The relative sizes of confidence intervals across methods differ across elements of β. For example, for the first element of β, the coefficient on intermediate goods imports, our spatial wild bootstrap CIs are the widest but for the coefficient for final goods imports, Cls using clustering on ECR are largest. There is evidence of substantial dependence as a function of physical distance, but its impact on inference again varies across elements of β. This can be seen by comparing, for example, White CIs with ECR cluster for the capital imports coefficient where the length of CIs differ by 24%, but for the intermediate goods coefficient, these CIs are nearly the same length. There is also some evidence of correlations due to similar technology, which are partly reflected in CIs under Clustered by Industry. CIs using Industry clusters are sometimes larger and sometimes smaller than White CIs across the three coefficients of interest. Both the spatial HAC and spatial dependent wild bootstrap attempt to allow for both types of correlation. Finally, there is evidence that using the spatial dependent wild bootstrap matters relative to a spatial HAC estimator using the same kernel. Across all parameters, the difference in length of the CIs is typically about 10% to 20%, possibly reflecting the greater robustness of the bootstrap intervals to finite sample deviations from the normal distribution. 8. Conclusion This paper has proposed a method for generating bootstrap data under spatial and space-time dependence of unknown form. It is implemented by multiplying a vector of external variables by the eigendecomposition of a bootstrap kernel. The wild bootstrap and wild cluster bootstrap are special cases of this approach and do not require the decomposition of a full n×nmatrix, but our method can also be used to generate data with dependence patterns for which no alternative method exists. Simulation experiments suggest that there are gains from generating bootstrap samples that replicate the spatial patterns in the data. Results by Zhang and Shao (2013) show that the Gaussian dependent bootstrap is second-order correct for the Gaussian location model under fixed-b asymptotics. Extending these results to the regression model with non-Gaussian errors and spatial dependence is an open but challenging topic for future research (see Kline and Santos (2012b) for results for the standard wild bootstrap in the i.i.d. context). 9We do not compare to blocking/clustering methods allowing for general dependence structures as in Bester, Conley, and Hansen (2011)orIbragimov and Müller (2010) due to the difficulties in defining appropriate blocks/clusters when dependence is characterized by multiple metrics.
546 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) Another interesting extension of our results would be to investigate the properties of the spatial dependent wild bootstrap when locations are randomly selected from a given population rather then being fixed, as we have assumed here. This setup has been recently considered by Müller and Watson (2022), who propose a new estimator of the spatial long run variance using a fixed number of principal components obtained from a “worst-case” benchmark parametric model for the covariance structure of the error term in a location model. A critical value is then constructed using this benchmark model under the additional assumption of Gaussianity so as to ensure that the size of the resulting test is asymptotically correct. Contrary to our setup, Müller and Watson (2022) assume locations to be randomly selected from a density gand show that allowing for a nonuniform density has implications for the conventional fixed-b limiting distributions. The choice of sampling design may also impact bootstrap validity (see, e.g., Lahiri and Zhu (2006) for results on the spatial block bootstrap). Interestingly, Shao (2010)shows that the wild dependent bootstrap is asymptotically valid when the sampling design is stochastic with a potentially nonuniform spatial density g. It would be interesting to extend these results to our context, where spatial dependence is not restricted to be indexed on the line. Appendix As usual in the bootstrap literature, we use P∗to denote the bootstrap probability measure, conditional on the original sample (defined on a given probability space (,F,P)). For any bootstrap statistic T∗ n,wewriteT∗ n=oP∗(1),inprob-P,orT∗ n→P∗0, in prob-P, when for any δ>0, P∗(|T∗ n|>δ )=oP(1).WewriteT∗ n=OP∗(1),inprob-P,whenforall δ>0thereexistsMδ<∞such that limn→∞P[P∗(|T∗ n|>M δ)>δ ]=0. By Markov’s inequality, this follows if E∗|T∗ n|q=OP(1)for some q>0. Finally, we write T∗ n→d∗D,in probability, if conditional on a sample with probability that converges to one, T∗ nweakly converges to the distribution Dunder P∗,thatis,E∗(f(T∗ n)) →PE(f(D))for all bounded and uniformly continuous functions f. A.1 Auxiliary lemmas Define Jboot,n=Var∗1 √n n i=1 Viηi and note that Jboot,ndiffers from ˆ Jboot,n=Var∗(1 √nn i=1ˆ Viηi)by replacing ˆ Viwith Vi. Recall that ˜ dij =dij +ξij ,wheredij is deterministic, and ξij is a measurement error which is independent of {el}and {xi}.Letn={ξij ,i,j=1, ,n}. Lemma A.1. Under Assumptions 1(i) and (ii), we have 1 n2 n i=1 n j=1 EK∗˜ dij d∗ n=OE∗ n n as E∗ n,d∗ n→∞such that E∗ n/n →0.
Quantitative Economics 14 (2023) Bootstrap inference 547 Proof of Lemma A.1.Notethat 1 n2 n i=1 n j=1K∗˜ dij d∗ n=1 n2 n i=1 n j∈B∗ i,nK∗˜ dij d∗ n+1 n2 n i=1 n j/∈B∗ i,nK∗˜ dij d∗ n, where B∗ i,nis a random set containing the neighbors of iusing ˜ dij . Thus, we have that 1 n2 n i=1 E n j=1K∗˜ dij d∗ n=1 n2 n i=1 En j∈B∗ i,nK∗˜ dij d∗ n+1 n2 n i=1 En j/∈B∗ i,nK∗˜ dij d∗ n. If K∗truncates, the second term is automatically zero, whereas the first term can be bounded by n−2En i=1n j∈B∗ i,n1=n−1E(n−1n i=1∗ i,n)=n−1E∗ n.WhenK∗does not truncate, then we use Assumption 1(ii) to bound the second term. Specifically, we obtain that 1 n2 n i=1 E n j/∈B∗ i,nK∗˜ dij d∗ n≤E∗ n n1 E∗ n sup i E n j/∈B∗ i,nK∗˜ dij d∗ n=OE∗ n n. The following lemma establishes the consistency of Jboot,nand ˆ Jboot,ntoward Jn. This is a key result for proving the asymptotic validity of the bootstrap distribution of √n(ˆ β∗−ˆ β)and the corresponding Wald test W∗ n. Lemma A.2. Suppose that the conditions of Theorem 3.1 hold.Then (i) Jboot,n−Jn→P0 and (ii) ˆ Jboot,n−Jn→P0. Our next result is an auxiliary result used to prove Theorem 3.1. Lemma A.3. Suppose Assumptions 1and 2hold.Then,for any pair (i,j),conditionally on n={ξij }, n i=1 n j=1EViV j|nφikφjk≤M, uniformly in k=1, ,n,where φik is the ith element of φk=(φ1k,,φnk ),the kth eigenvector of K∗ n=(K∗(˜ dij d∗ n))i,j=1,,n,and where the constant Mis independent of n. Proof of Lemma A.2. Part (i) Since Jboot,n−Jn→P0 if and only if αJboot,nα−αJnα→P 0foranyp×1vectorα, we consider the case that Jboot,nand Jnare scalars without loss of generality. Write Jboot,n−Jn=1 n n i=1 n j=1 K∗˜ dij d∗ nViVj−E(ViVj)+1 n n i=1 n j=1K∗˜ dij d∗ n−1E(ViVj) ≡b1+b2.
548 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) For b1, note that by the law of iterated expectations and the independence between {Vi} and n≡{ξij }, E(b1)=1 n n i=1 n j=1 E%K∗˜ dij d∗ nEViVj−E(ViVj)|n& =1 n n i=1 n j=1 E%K∗˜ dij d∗ nE(ViVj|n)−E(ViVj)&=0, where E(ViVj|n)=E(ViVj)given Assumption 4(i). Hence, it suffices to prove that Var(b1)=o(1).Wehave Var(b1)=Var1 n n i=1 n j=1 K∗˜ dij d∗ nViVj−E(ViVj) =1 n2 n i1=1 n j1=1 n i2=1 n j2=1 E%K∗˜ di1j1 d∗ nK∗˜ di2j2 d∗ n& ×E(Vi1Vj1Vi2Vj2)−E(Vi1Vj1)E(Vi2Vj2), (16) using again the law of iterated expectations and the independence assumption between {Vi}and n. Adding and subtracting appropriately in (16), we can bound Var(b1)by Var(b1)≤b11 +b12 +b13, where b11 =1 n2 n i1=1 n j1=1 n i2=1 n j2=1E(Vi1Vj1Vi2Vj2)−E(Vi1Vj1)E(Vi2Vj2) −E(Vi1Vi2)E(Vj1Vj2)−E(Vi1Vj2)E(Vj1Vi2) and b12 =1 n2 n i1=1 n j1=1 n i2=1 n j2=1 E%K∗˜ di1j1 d∗ nK∗˜ di2j2 d∗ n&E(Vi1Vi2)E(Vj1Vj2), b13 =1 n2 n i1=1 n j1=1 n i2=1 n j2=1 E%K∗˜ di1j1 d∗ nK∗˜ di2j2 d∗ n&E(Vi1Vj2)E(Vj1Vi2). We can show that b12 and b13 are both of order O(E∗ n n), whereas b11 =O(1 n).Thus, Var(b1)=o(1)under our assumptions provided E∗ n n=o(1). Next, we focus on the term b12 (the argument for b13 is the same and the proof that b11 =O(1 n)follows by an argument similar to the one used to show that C1=O(1)in the proof of Theorem 3.1,sowe
Quantitative Economics 14 (2023) Bootstrap inference 549 omit the details here). We can write b12 ≤1 n2 n i1=1 n j1=1 EK∗˜ di1j1 d∗ n n i2=1E(Vi1Vi2) n j2=1E(Vj1Vj2) ≤1 n2 n i1=1 n j1=1 EK∗˜ di1j1 d∗ nsup c n i2=1E(VcVi2) '() * ≤ sup c n j2=1E(VcVj2) '() * ≤ ≤21 n2 n i1=1 n j1=1 EK∗˜ di1j1 d∗ n=OE∗ n n=o(1), if E∗ n n→0 by Lemma A.1.Notethatwehaveusedthefactthatsupin j=1|E(ViVj)|≤ under Assumption 2. For b2,notethat |b2|≤ 1 d∗ nq∗ 0 1 n n i=1 n j=1+ +E(ViVj)+ +˜ dq∗ 0 ij K∗ q∗ 0+o(1)=OP1 d∗ nq∗ 0as d∗ n→∞, because P1 n n i=1 n j=1+ +E(ViVj)+ +˜ dq∗ 0 ij > ≤1 1 n n i=1 n j=1+ +E(ViVj)+ +E˜ dq∗ 0 ij →0as→∞ given Assumption 4.Hence,b2=oP(1), completing the proof of part (i). For part (ii), given (i) it suffices to show that ˆ Jboot,n−Jboot,n=oP(1). Since xiˆ ui= xi[ui+xi(β−ˆ β)],wecanwrite ˆ Jboot,n−Jboot,n=1 n n i=1 n j=1 K∗˜ dij d∗ nxixj(ˆ uiˆ uj−uiuj) =1 n n i=1 n j=1 K∗˜ dij d∗ nxixjxixj(β−ˆ β)2+2xjui(β−ˆ β)≡c1+c2. Because ˆ β−β=OP(n−1/2), c1=OP(1)1 n2 n i=1 n j=1 K∗˜ dij d∗ nx2 ix2 j=OPE∗ n n,
550 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) because by Markov’s inequality P 1 n2 n i=1 n j=1 K∗˜ dij d∗ nx2 ix2 j > ≤1 n2 n i=1 n j=1 EK∗˜ dij d∗ nEx2 ix2 j '() * ≤M ≤M 1 n2 n i=1 n j=1 EK∗˜ dij d∗ n=OE∗ n n under Lemma A.1.Forc2, c2=2 n n i=1 n j=1 K∗˜ dij d∗ nxiuix2 j(β−ˆ β)=OP(1)1 n√n n j=1 x2 j n i=1 K∗˜ dij d∗ nxiui. We have |c2|≤OP(1)1 n n j=1 x2 j 1 √n n i=1 K∗˜ dij d∗ nxiui ≤OP(1)1 n n j=1 x4 j1/21 n n j=1 1 √n n i=1 K∗˜ dij d∗ nxiui 21/2 =OP,E∗ n n, because P1 n n j=1 1 √n n i=1 K∗˜ dij d∗ nxiui 2 > ≤1 1 n2 n j=1 n i1=1 n i2=1 EK∗˜ di1j d∗ nK∗˜ di2j d∗ nE[Vi1Vi2] ≤1 1 n2 n j=1 n i1=1 EK∗˜ di1j d∗ nsup c n i2=1E[VcVi2] '() * ≤M =OE∗ n n, by Lemma A.1. Therefore, ˆ Jboot,n−Jboot,n=oP(1)under the rate condition on E∗ n, which concludes the proof. Proof of Lemma A.3. The proof uses the weak dependence of Viand the fact that n i=1φ2 ik =1 for any realization of K∗ n. Let us rearrange the sequence of {φik,i=1, ,n} as {φ(a) k,a=1, ,n}for each kin a way that |φ(a) k|is the ath largest component among {|φik|,i=1, ,n}.Thatis,|φ(1) k|≥|φ(2) k|≥···≥|φ(n) k|. Using this, conditionally on n,
Quantitative Economics 14 (2023) Bootstrap inference 557 Similarly, d3≡∞ l1=1˜ ri1l1,k˜ ri3l1,k ∞ l2=1,l2=l1 ˜ ri2l2,k˜ ri4l2,k =E(˜ Vi1k˜ Vi3k|n)E(˜ Vi2k˜ Vi4k|n)−∞ l1=1˜ ri1l1,k˜ ri2l1,k˜ ri3l1,k˜ ri4l1,k and d4≡∞ l1=1˜ ri1l1,k˜ ri2l1,k ∞ l2=1,l2=l1 ˜ ri3l2,k˜ ri4l2,k =E(˜ Vi1k˜ Vi4k|n)E(˜ Vi2k˜ Vi3k|n)−∞ l1=1˜ ri1l1,k˜ ri2l1,k˜ ri3l1,k˜ ri4l1,k. Putting everything together yields E(˜ Vi1k˜ Vi2k˜ Vi3k˜ Vi4k|n)−E(˜ Vi1k˜ Vi2k|n)E(˜ Vi3k˜ Vi4k|n) −E(˜ Vi1k˜ Vi3k|n)E(˜ Vi2k˜ Vi4k|n)−E(˜ Vi1k˜ Vi4k|n)E(˜ Vi2k˜ Vi3k|n) =∞ l=1˜ ri1l,k˜ ri2l,k˜ ri3l,k˜ ri4l,kEe4 l−3∞ l=1˜ ri1l,k˜ ri2l,k˜ ri3l,k˜ ri4l,k =∞ l=1˜ ri1l,k˜ ri2l,k˜ ri3l,k˜ ri4l,kEe4 l−3 '() * =κ4 , which then implies that C1=κ4 1 n n k=1 n i1=1 n i2=1 n i3=1 n i4=1 ∞ l=1˜ ri1l,k˜ ri2l,k˜ ri3l,k˜ ri4l,k. To bound this term, note that κ4<under our assumptions and, therefore, C1≤1 n n k=1 n i1=1 n i2=1 n i3=1 n i4=1 ∞ l=1|˜ ri1l,k˜ ri2l,k˜ ri3l,k˜ ri4l,k| =1 n n i1=1 n i2=1 n i3=1 n i4=1 ∞ l=1|ri1lri2lri3lri4l| n k=1|φi1kφi2kφi3kφi4k| ≤1 n n i1=1 n i2=1 n i3=1 n i4=1 ∞ l=1|ri1lri2lri3lri4l|n k=1 (φi1kφi2k)21/2n k=1 (φi3kφi4k)21/2 ≤1 n n i1=1 n i2=1 n i3=1 n i4=1 ∞ l=1|ri1lri2lri3lri4l|n k=1 φ4 i1k1/4n k=1 φ4 i2k1/4
558 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) ×n k=1 φ4 i3k1/4n k=1 φ4 i4k1/4 ≤1 n n i1=1 n i2=1 n i3=1 n i4=1 ∞ l=1|ri1lri2lri3lri4l|sup in k=1 φ4 ik . We know that nis such that nn=n n=In, which implies that for each i, n k=1φ2 ik =1. Write n k=1 φ4 ik = n k=1 φ2 ikφ2 ik. Because n k=1φ2 ik =1 for each i,itmustbethecasethatsup1≤k≤n|φ2 ik|≤1. Thus, n k=1 φ4 ik = n k=1 φ2 ikφ2 ik ≤ n k=1φ2 iksup kφ2 ik≤ n k=1φ2 ik=1, implying that C1≤1 n n i1=1 n i2=1 n i3=1 n i4=1 ∞ l=1|ri1lri2lri3lri4l| =1 n n i1=1 ∞ l=1|ri1l|n i2=1|ri2l| n i3=1|ri3l| n i4=1|ri4l| ≤1 n n i1=1 ∞ l=1|ri1l|∞ i2=1|ri2l| '() * ≤Mby Assumption 2 ∞ i3=1|ri3l|∞ i4=1|ri4l| ≤M31 n n i1=1 ∞ l=1|ri1l| '() * ≤M ≤Const. To show that C2,C3,C4are also bounded by some constant that does not depend on n, we apply Lemma A.3. To prove Theorem 4.1, we rely on the following lemma. Lemma A.4. Suppose Assumptions 1–7hold.If E∗|vi|4<M and dn,En→∞and d∗ n,E∗ n→∞as n→∞such that En/n =o(1),and E∗ n/n1/2=o(1),then (i) ˆ J∗ n− ˆ Jboot,n→P∗0, in prob-Pwhen unrestricted residuals are used,and (ii) ˆ J∗ n−ˆ Jboot,n→P∗0, in prob-P,when restricted residuals are used,and H0is true. Proof of Lemma A.4. We focus on the proof of (i) since (ii) follows by similar arguments because ˜ β−βis √n-convergent under H0. Without loss of generality, we take
Quantitative Economics 14 (2023) Bootstrap inference 559 p=1. Let ˆ u∗ i=y∗ i−x iˆ β∗=y∗ i−x iˆ β+x iˆ β−ˆ β∗=u∗ i+x iˆ β−ˆ β∗, where u∗ i=ˆ uiηi. It follows that ˆ J∗ n−ˆ Jboot,n=ˆ J∗ n−ˆ Jn+(ˆ Jn−ˆ Jboot,n) =1 n n i=1 n j=1 K˜ dij dnxixjˆ u∗ iˆ u∗ j−ˆ uiˆ uj+(ˆ Jn−ˆ Jboot,n) ≡A1+A2+A3+A4, where A1=1 n n i=1 n j=1 K˜ dij dnxixju∗ iu∗ j−ˆ uiˆ uj and A2=21 n n i=1 n j=1 K˜ dij dnxix2 ju∗ iˆ β−ˆ β∗, A3=1 n n i=1 n j=1 K˜ dij dnx2 ix2 jˆ β−ˆ β∗2,andA4=ˆ Jn−J∗ n. First, note that A4=oP(1)by Lemma A.2. Next, we show that A2and A3are oP∗(1),in probability. For these terms, we can use the fact that √n(ˆ β−ˆ β∗)=OP∗(1). Starting with A3,wecanwrite A3=1 n2 n i=1 n j=1 K˜ dij dnx2 ix2 j '() * =A31=oP(1) √nˆ β−ˆ β∗2 '() * =OP∗(1) =oP∗(1), in probability, since we can show that A31 =oP(1). Indeed, E|A31|≤ 1 n2 n i=1 n j=1 EK˜ dij dnEx2 ix2 j '() * ≤M ≤M1 n2 n i=1 n j=1 EK˜ dij dn=OEn n, by Lemma A.1. Thus, by Markov’s inequality, A31 =OP(En n)=oP(1).ForA2, A2=1 √n 1 n n i=1 n j=1 K˜ dij dnxix2 ju∗ i '() * A21=oP∗(1) ×√nˆ β−ˆ β∗ '() * =OP∗(1) ,
560 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) since we can show that the term in square brackets is oP∗(1).Toseethis,notethat A21 =1 √n 1 n n i=1 n j=1 K˜ dij dnxi(ˆ ui−ui)ηix2 j+1 √n 1 n n i=1 n j=1 K˜ dij dnxiuiηix2 j ≡A(1) 21 +A(2) 21 . Starting with A(1) 21 ,notethat A(1) 21 = 1 √n 1 n n i=1 n j=1 K˜ dij dnx2 i(β−ˆ β)ηix2 j≤OP(1)1 n n j=1 x2 j 1 n n i=1 K˜ dij dnx2 iηi ≤OP(1)1 n n j=1 x4 j '() * =OP(1) 1/21 n n j=11 n n i=1 K˜ dij dnx2 iηi2 '() * =e1=OP∗(En/n)in prob. 1/2 , where e1=OP∗(En/n)in probability. For this result, it suffices to show that E(E∗(|e1|2)) =O(En/n).But E∗|e1|2=1 n n j=1 1 n2 n i1=1 n i2=1 K˜ di1j dnK˜ di2j dnx2 i1x2 i2E∗(ηi1ηi2) =1 n n j=1 1 n2 n i1=1 n i2=1˜ di1j dnK˜ di2j dnx2 i1x2 i2K∗˜ di1i2 d∗ n ≤1 n n j=1 1 n2 n i1=1 n i2=1K˜ di1j dnK˜ di2j dnx2 i1x2 i2, implying that EE∗e2 1≤1 n n j=1 1 n2 n i1=1 n i2=1 EK˜ di1j dnK˜ di2j dn '() * ≤1 Ex2 i1x2 i2 '() * ≤M ≤M n2 n j=1 n i1=1 EK˜ di1j dn=OEn n asshowninLemmaA.1. Therefore, A(1) 21 =OP∗(En/n)=oP∗(1), in probability. A similar argument implies that A(2) 21 =OP∗(!En n)=oP∗(1), in probability. Thus, to end the proof,
Quantitative Economics 14 (2023) Bootstrap inference 561 we show that A1=oP∗(1)in probability. We can write A1=1 n n i=1 n j=1 Kdij dnxixjxixj(β−ˆ β)2+2xiuj(β−ˆ β)ηiηj −1 n n i=1 n j=1 Kdij dnxixjxixj(β−ˆ β)2+2xiuj(β−ˆ β) +1 n n i=1 n j=1 Kdij dnxixjuiuj(ηiηj−1)≡A11 +A12 +A13, where A12 =−(J∗ n−J∗ 0n)=oP(1), as shown in the proof of Lemma A.2.Thus,itsuffices to show that A11 and A13 are oP∗(1), in probability. We can decompose A11 as A11 =A(1) 11 +A(2) 11 ,where A(1) 11 ≤1 n n i=1 n j=1Kdij dnx2 ix2 jηiηj(β−ˆ β)2 =OP(1)1 n n i=1x2 iηi1 n n j=1K˜ dij dnx2 jηj ≤OP(1)1 n n i=1x2 iηi2 '() * =OP∗(1) 1/21 n n i=11 n n j=1K˜ dij dnx2 jηj2 '() * =e1=oP∗(1)in prob. 1/2 , where E(E∗(e1)) =o(1), as shown before. Thus, A(1) 11 =OP∗(En n)in prob-P. Using arguments similar to those used before, we can show that A(2) 11 =oP∗(1), in probability, concluding the proof that A11 =oP∗(1),inprob-P. Finally, we show that A13 =oP∗(1). We have A13 =1 n n i=1 n j=1 K˜ dij dnViVj(ηiηj−1) =1 n n i=1 n j=1 K˜ dij dnViVjηiηj−K∗˜ dij d∗ n +1 n n i=1 n j=1 K˜ dij dnViVjK∗˜ dij d∗ n−1 =A(1) 13 +A(2) 13 . (26)
562 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) For A(1) 13 ,weprovethatVar∗(A(1) 13 )=oP(1)since E∗(A(1) 13 )=0. By Markov’s inequality, it suffices to show that E(Va r ∗(A(1) 13 )) =o(1).Wehavethat EVar∗A(1) 13 =EE∗1 n n i=1 n j=1 K˜ dij dnViVjηiηj−K∗˜ dij d∗ n28 =1 n2 n i1=1 n j1=1 n i2=1 n j2=1 E(Vi1Vj1Vi2Vj2) ×E%K˜ di1j1 dnK˜ di2j2 dnE∗(ηi1ηj1ηi2ηj2)−K∗˜ di1j1 d∗ nK∗˜ di2j2 d∗ n&. Let Lik denote the (i,k)-th element of Lnsuch that K∗ n=LnL n. In particular, letting Ln=n1/2 nimplies that ηi= n k=1 Likvk= n k=1 (λkφik) '() * =Lik vk, where vkis i.i.d. (0, 1). This decomposition implies that for any pair (i,j), E∗(ηiηj)=K∗˜ dij d∗ n= n k1=1 n k2=1 Lik1Ljk2E∗(vk1vk2)= n k=1 LikLjk. Similarly, it follows that E∗(ηi1ηj1ηi2ηj2)= n k1=1 n k2=1 n k3=1 n k4=1 Li1k1Lj1k2Li2k3Lj2k4E∗(vk1vk2vk3vk4) = n k=1 Li1kLj1kLi2kLj2kE∗v4 k−3 + n k1=1 Li1k1Lj1k1 n k3=1 Li2k3Lj2k3+ n k1=1 Li1k1Li2k1 n k2=1 Lj1k2Lj2k2 + n k1=1 Li1k1Lj2k1 n k2=1 Lj1k2Li2k2 = n k=1 Li1kLj1kLi2kLj2kE∗v4 k−3 +K∗˜ di1j1 d∗ nK∗˜ di2j2 d∗ n+K∗˜ di1i2 d∗ nK∗˜ dj1j2 d∗ n +K∗˜ di1j2 d∗ nK∗˜ dj1i2 d∗ n.
Quantitative Economics 14 (2023) Bootstrap inference 563 Thus, E∗(ηi1ηj1ηi2ηj2)−K∗˜ di1j1 d∗ nK∗˜ di2j2 d∗ n = n k=1 Li1kLj1kLi2kLj2kE∗v4 k−3+K∗˜ di1i2 d∗ nK∗˜ dj1j2 d∗ n+K∗˜ di1j2 d∗ nK∗˜ dj1i2 d∗ n. Given this decomposition, it follows that EVar∗A(1) 13 =B11 +B12 +B13, where B11 =1 n2 n i1=1 n j1=1 n i2=1 n j2=1 E(Vi1Vj1Vi2Vj2) ×EK˜ di1j1 dnK˜ di2j2 dnn k=1 Li1kLj1kLi2kLj2kE∗v4 k−3 , B12 =1 n2 n i1=1 n j1=1 n i2=1 n j2=1 E%K˜ di1j1 dnK˜ di2j2 dnK∗˜ di1i2 d∗ nK∗˜ dj1j2 d∗ n&E(Vi1Vj1Vi2Vj2), B13 =1 n2 n i1=1 n j1=1 n i2=1 n j2=1 E%K˜ di1j1 dnK˜ di2j2 dnK∗˜ di1j2 d∗ nK∗˜ dj1i2 d∗ n&E(Vi1Vj1Vi2Vj2). Since (E∗(v4 k)−3)≤Mby assumption, by adding and subtracting appropriately, we can bound B11 by B11 ≤M1 n2 n i1=1 n j1=1 n i2=1 n j2=1E(Vi1Vj1Vi2Vj2)E n k=1 Li1kLj1kLi2kLj2k ≤M1 n2 n i1=1 n j1=1 n i2=1 n j2=1E(Vi1Vj1Vi2Vj2)−E(Vi1Vj1)E(Vi2Vj2) −E(Vi1Vi2)E(Vj1Vj2)−E(Vi1Vj2)E(Vj1Vi2) ×E n k=1 Li1kLj1kLi2kLj2k +E(Vi1Vj1)E(Vi2Vj2)+E(Vi1Vi2)E(Vj1Vj2)+E(Vi1Vj2)E(Vj1Vi2) ×E n k=1 Li1kLj1kLi2kLj2k =B(1) 11 +B(2) 11 +B(3) 11 +B(4) 11 .
564 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) To bound B(1) 11 , we rely on Assumption 2to write E(Vi1Vj1Vi2Vj2)−E(Vi1Vj1)E(Vi2Vj2)−E(Vi1Vi2)E(Vj1Vj2)−E(Vi1Vj2)E(Vj1Vi2) =∞ l=1 ri1lrj1lri2lrj2lEe4 l−3, by using an argument similar to the one used to study the term C1in the proof of Theorem 3.1. Also, recall that Lik =√λkφik.Then n k=1 Li1kLj1kLi2kLj2k= n k=1 λ2 kφi1kφj1kφi2kφj2k . This implies that B(1) 11 ≤M1 n2 n i1=1 n j1=1 n i2=1 n j2=1 ∞ l=1 ri1lrj1lri2lrj2lEe4 l−3 E n k=1λ2 kφi1kφj1kφi2kφj2k ≤M21 n2 n k=1 Eλ2 k n i1=1 n j1=1 n i2=1 n j2=1 ∞ l=1|ri1lrj1lri2lrj2lφi1kφj1kφi2kφj2k| ≤M21 n√n n k=1 Eλ2 k 1 √n n i1=1|φi1k|∞ l=1|ri1l| n j1=1|rj1lφj1k| n i2=1|ri2lφi2k| n j2=1|rj2lφj2k| . Note that 1 √n n i1=1|φi1k|∞ l=1|ri1l| n j1=1|rj1l||φj1k| n i2=1|ri2l||φi2k| n j2=1|rj2l||φj2k| '()* ≤1 ≤1 √nn i1=1 121/2 '() * =1 n i1=1 φ2 i1k1/2 '() * =1 ∞ l=1|ri1l| '() * ≤M n j1=1|rj1l| n i2=1|ri2l| n j2=1|rj2l|≤M4, which implies B(1) 11 ≤M61 n√nEn k=1 λ2 k. (27) Since {λk}are eigenvalues of K∗ n,wehave n k=1 λ2 k=trK∗ nK∗ n= n i=1 n j=1K∗˜ dij d∗ n2 . (28) Plugging (28) into (27)yields B(1) 11 ≤M6E1 n√n n i=1 n j=1K∗˜ dij d∗ n2≤O(√n)1 n2 n i=1 n j=1 EK∗˜ dij d∗ n=OE∗ n √n.
Quantitative Economics 14 (2023) Bootstrap inference 565 For B(2) 11 ,wehave B(2) 11 =M1 n2 n i1=1 n j1=1 n i2=1 n j2=1E(Vi1Vj1)E(Vi2Vj2)E n k=1 Li1kLj1kLi2kLj2k =M1 n2 n i1=1 n j1=1 n i2=1 n j2=1E(Vi1Vj1)E(Vi2Vj2)E n k=1 λ2 kφi1kφj1kφi2kφj2k ≤M1 n2E n k=1 λ2 kn i1=1 n j1=1E(Vi1Vj1)φi1kφj1k '() * ≤Mby Lemma A.3 n i2=1 n j2=1 E(Vi2Vj2)φi2kφj2k ≤M31 n2En k=1 λ2 k=M31 n2En i=1 n j=1K∗˜ dij d∗ n2 ≤M31 n2 n i=1 n j=1 EK∗˜ dij d∗ n=OPE∗ n n. Using the same procedure, we can show that B(3) 11 =B(4) 11 =O(E∗ n/n).Hence,B11 = O(E∗ n/√n)=o(1)given that E∗ n/√n=o(1). Since we can also show that the terms B12 and B13 are o(1)by a similar argument, this concludes the proof that A(1) 13 =oP∗(1)in prob-P. For A(2) 13 , the second term in (26), note that EA(2) 13 ≤1 n n i=1 n j=1E(ViVj)1−K∗˜ dij d∗ n=o(1), as d∗ ngrows, as proved in the proof of Lemma A.2 (see term b2in particular). Hence, it is sufficienttoshowVar (A(2) 13 )=o(1).Wehave VarA(2) 13 =Var1 n n i=1 n j=1 K˜ dij dnViVjK∗˜ dij d∗ n−1 =1 n2 n i1=1 n j1=1 n i2=1 n j2=1 E%K˜ di1j1 dnK˜ di2j2 dnK∗˜ di1j1 d∗ n−1K∗˜ di2j2 d∗ n−1& ×E(Vi1Vj1Vi2Vj2)−E(Vi1Vj1)E(Vi2Vj2) ≤1 n2 n i1=1 n j1=1 n i2=1 n j2=1 EK˜ di1j1 dnK˜ di2j2 dnE(Vi1Vj1Vi2Vj2)−E(Vi1Vj1)E(Vi2Vj2) =o(1), as shown above. Therefore, A(2) 13 =oP(1), completing the proof.
566 Conley, Gonçalves, Kim, and Perron Quantitative Economics 14 (2023) Proof of Theorem 3.2. The proof is in the text. Proof of Theorem 4.1. It follows from Theorem 3.1 and Lemma A.4. References Acemoglu, Daron, David Autor, David Dorn, Gordon Hanson, and Brendan Price (2016), “Import competition and the great US employment sag of the 2000s.” Journal of Labor Economics, 34, 141–198. [541] Andrews, Donald (1991), “Heteroskedasticity and autocorrelation consistent covariance matrix estimation.” Econometrica, 59, 817–858. [521] Autor, David, David Dorn, Gordon Hanson, and Jae Song (2014), “Trade adjustment: Work-level evidence.” The Quarterly Journal of Economics, 129 (4), 1799–1860. [541] Bartlett, Maurice (1955), An Introduction to Stochastic Processes. Cambridge University Press, Cambridge. [514] Bernard, Andrew, Bradford Jensen, and Peter Schott (2006), “Survival of the best fit: Exposure to low-wage countries and the (uneven) growth of US manufacturing plants.” Journal of International Economics, 68 (1), 219–237. [541,542] Bester, Allan, Timothy Conley, and Christian Hansen (2011), “Inference with dependent data using cluster covariance estimators.” Journal of Econometrics, 165 (2), 137–151. [545] Bester, Allan, Timothy Conley, Christian Hansen, and Timothy Vogelsang (2016), “Fixedb asymptotics for spatially dependent robust nonparametric covariance matrix estimators.” Econometric Theory, 32, 154–186. [535] Cameron, Colin, Jonah Gelbach, and Douglas Miller (2008), “Bootstrap-based improvements for inference with clustered errors.” Review of Economics and Statistics, 90, 414– 427. [513,519] Cavaliere, Giuseppe and Iliyan Georgiev (2020), “Inference under random limit bootstrap measures.” Econometrica, 88, 2547–2574. [530] Chen, Xiaohong and Timothy Conley (2001), “A new semiparametric spatial model for panel time series.” Journal of Econometrics, 105, 59–83. [514,518] Conley, Timothy (1999), “GMM estimation with cross-sectional dependence.” Journal of Econometrics, 92, 1–45. [512,514,515,518,520,521] Conley, Timothy and Bill Dupor (2003), “A spatial analysis of sectoral complementarity.” Journal of Political Economy, 111, 311–352. [514,534] Conley, Timothy and Ethan Ligon (2002), “Economic distance and cross-country spillovers.” Journal of Economic Growth, 7 (2), 157–188. [514] Conley, Timothy and Francesca Molinari (2007), “Spatial correlation robust inference with errors in location or distance.” Journal of Econometrics, 140, 76–96. [515]