EconBase
← Back to paper

Asymptotics of Cointegration Tests for High-Dimensional VAR($k$)

Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.

181,243 characters · 17 sections · 87 citation commands

Rendered from LaTeX for readability, not typeset faithfully. Citation keys are highlighted; maths is left as source; figures, tables and equation environments are summarised rather than reproduced; unrecognised commands are greyed out so nothing is silently dropped. Email addresses are removed.

Asymptotics of cointegration tests for high-dimensional VAR($k$)

\address[Anna Bykhovskaya]{Duke University} \email{[email removed]}

\address[Vadim Gorin]{University of California at Berkeley} \email{[email removed]}

abstractThe paper studies nonstationary high-dimensional vector autoregressions of order $k$, VAR($k$). Additional deterministic terms such as trend or seasonality are allowed. The number of time periods, $T$, and the number of coordinates, $N$, are assumed to be large and of the same order. Under this regime the first-order asymptotics of the Johansen likelihood ratio (LR), Pillai--Bartlett, and Hotelling--Lawley tests for cointegration are derived: the test statistics converge to nonrandom integrals. For more refined analysis, the paper proposes and analyzes a modification of the Johansen test. The new test for the absence of cointegration converges to the partial sum of the Airy$_1$ point process. Supporting Monte Carlo simulations indicate that the same behavior persists universally in many situations beyond those considered in our theorems. The paper presents empirical implementations of the approach for the analysis of S$\&$P$100$ stocks and of cryptocurrencies. The latter example has a strong presence of multiple cointegrating relationships, while the results for the former are consistent with the null of no cointegration.

\@startsection{section}{1} \z@{1.0\linespacing\@plus\linespacing}{0.5\linespacing} {\normalfont}{Introduction}

Starting with the pioneering work of sims, vector autoregressions (VARs) became a workhorse model in macroeconomics and other fields. Many key time series in macroeconomics and finance (e.g., consumption and output) are nonstationary, and the properties of VARs can be very different depending on whether one is dealing with a stationary or nonstationary series. Moreover, there is a further subdivision to be accounted for in the case of nonstationary series: it is important to understand whether the data are cointegrated---that is, whether there exists a stationary nontrivial linear combination within the considered series (e.g., the log of consumption minus the log of output is stationary while the series themselves have unit roots).

Classical tools for testing cointegration (see, e.g., johansen_book, maddala, and juselius) fail to achieve the desired finite sample performance when the number of time series, $N$, is large. Thus, they are not commonly used in such settings, and the design of proper tools to handle cointegration under a large $N$ remained an open problem for years (see, e.g., choi15). Recently onatski_ecta, onatski_joe and BG have opened a new avenue based on the “$T/N$ converging to a constant” asymptotic regime. However, the testing procedures of these texts cover only VAR($1$), while, in practice, researchers rarely confine themselves to VARs of order $1$, instead usually considering at least two lags. Indeed, as noted already in pagan, “most applications of Sims’ methodology have put the number of lags between four and ten.” Since pagan the lengths of available time series and computing power have only increased, thus allowing researchers to work with even more complex models. Hence, it is important to generalize and extend the above papers to a VAR($k$) setting, which is the main topic of our text.

Our paper analyses a family of tests for the absence of cointegration for nonstationary VAR($k$), such as the Johansen likelihood ratio (LR) test (johansen1988, johansen1991) and related Hotelling--Lawley and Pillai--Bartlett tests (see, e.g., gonzalo_pitarakis1995 and references therein) as $N$ and $T$ jointly and proportionally go to infinity. The shared feature of these tests is that their statistics are based on the squared sample canonical correlations between certain transformations of current changes and past levels of the data. The main contribution of our paper is in the asymptotic analysis of these canonical correlations. First, we show that for VAR($k$) with general $k$, under the null of no cointegration (and some additional technical conditions) the empirical distribution of the squared sample canonical correlations converges to the Wachter distribution. As a corollary, we deduce the first-order deterministic limits of the above test statistics. Second, we introduce a modification of the testing procedure and prove much more refined results in the modified setting. By computing the exact asymptotic behavior of the probability distributions of individual canonical correlations after proper recentering and rescaling, we are able to compute the critical values for the test of no cointegration with correct asymptotic size as $N$ and $T$ jointly and proportionally go to infinity.

We remark that there is a wide scope of literature devoted to the corrections of Johansen's LR test and its relatives (originally developed based on fixed $N$, large $T$ asymptotics) for large values of $N$ (see, e.g., Reinsel_Ahn, johansen_correction, Swensen, cav_et_all, and onatski_joe). The distinguishing feature of our work is that we are not trying to correct the finite $N$ asymptotic statements, which stop working for large $N$, by introducing various empirical adjustments. Instead, we develop a theoretical framework for working with the large $N$ case directly. One advantage is that our approach explains the general phenomenology and predicts the asymptotic behavior. As a result, the empirical or simulational adjustments for particular values of the parameters of the model are no longer needed.

To achieve the above, in our proofs we use the VAR($1$) results of BG as a cornerstone. The main technical work is devoted to producing recursive arguments, which reduce the VAR($k)$ behavior to that of VAR($k-1$) and eventually to VAR($1$). The central role is played by highly nontrivial projections from the group of orthogonal $T\times T$ matrices to the smaller subgroup of orthogonal $(T-N)\times (T-N)$ matrices. While such projections have previously been used in asymptotic representation theory, to the authors' knowledge, this is their first appearance in the econometrics or statistics context. Thus, many new properties of those projections need to be developed in our framework.

The rest of the paper is organized as follows. Section (ref) describes our setting and provides the first asymptotic results. Section (ref) constructs our modified test and computes its asymptotics, while Section (ref) presents supporting Monte Carlo simulations. Section (ref) illustrates our theoretical findings on S&P100 data and on the prices of cryptocurrencies. Finally, Section (ref) concludes. All proofs are in Sections (ref)--(ref). The accompanying R package is available at the Github \url{https://github.com/eszter-kiss/Largevars}.

\@startsection{section}{1} \z@{1.0\linespacing\@plus\linespacing}{0.5\linespacing} {\normalfont}{First-order asymptotics of sample canonical correlations}

We consider an $N$-dimensional vector autoregressive process of order $k$, VAR($k$), based on a sequence of i.i.d. mean zero Gaussian\footnote{We expect that all our results continue to hold for non-normally distributed errors as long as they have enough moments (cf.\ such distribution-independence results in other high-dimensional models, as in ErdosYau, Tao_Vu, HanPanYang, and FanYang).} errors $\{\varepsilon_t\}$ with nondegenerate covariance matrix $\Lambda$. That is, written in the error correction form,

equation[equation omitted — 141 chars of source]

where $\Delta X_t:=X_t-X_{t-1}$, $D_t$ is a $d_D$-dimensional vector of deterministic terms, such as a constant, a trend or seasonality (extra explanatory variables are also allowed as long as they are observed), and $\Gamma_1,\ldots,\Gamma_{k-1},\,\Pi,\,\Phi$ are unknown parameters. The process is initialized at fixed $X_{1-k},\ldots,X_0$. We do not impose any restrictions on $\Lambda$; thus, we allow for arbitrary correlations across coordinates of $X_t$. In contrast, many previous approaches rely on specific properties of the covariance matrix $\Lambda$; see, e.g., Breitung_Pesarann_2008, Bai_Ng_2008 and ZhangPanGao_2018.

remarkAlternatively, the error correction form can be written as $$\Delta X_t=\Pi X_{t-1}+\sum\limits_{i=1}^{k-1}\tilde{\Gamma}_i\Delta X_{t-i}+\Phi D_t+\varepsilon_t,\qquad t=1,\ldots,T,$$ so that $\tilde{\Gamma}_i=\Gamma_i-\Pi$. Whether we use the former (Eq. (ref)) or the latter form does not affect our results. The testing procedures of our interest are based on the residuals from regressing $X_{t-k}$ on $\Delta X_{t-1},\ldots,\Delta X_{t-k+1}$, which are the same as the residuals from regressing $X_{t-1}=X_{t-k}+\Delta X_{t-1}+\ldots+\Delta X_{t-k+1}$ on $\Delta X_{t-1},\ldots,\Delta X_{t-k+1}$.

We are interested in the behavior of the squared sample canonical correlations between transformed past levels (lags) and changes (first differences) of the data $X_t$. As shown in johansen1988, johansen1991 (see also Anderson), the correlations are related to whether the process is cointegrated. To be more specific, they appear in the likelihood ratio test for the presence and rank of the cointegration. Let us formally define these correlations. Here and below $^*$ denotes matrix transposition.

procedure[johansen1991] Let $Z_{0t}=\Delta X_t$, $Z_{1t}=(\Delta X_{t-1}^{*},\ldots,\Delta X_{t-k+1}^{*},D_t^*)^{*}$, and $Z_{kt}=X_{t-k}$. We regress lags $Z_{kt}$ and changes $Z_{0t}$ on regressors $Z_{1t}$ (lagged changes and deterministic terms) and define the residuals \begin{equation} R_{it}=Z_{it}-\left(\sum\limits_{\tau=1}^{T} Z_{i\tau}Z_{1\tau}^{*}\right)\left(\sum\limits_{\tau=1}^{T} Z_{1\tau}Z_{1\tau}^{*}\right)^{-1}Z_{1t},\quad i=0,k. \end{equation} Define further $N\times N$ matrices $S_{ij}:=\sum\limits_{t=1}^{T} R_{it}R_{jt}^{*},\,i,j=0,k$ and finally set $$ \mathcal{C}=S_{kk}^{-1}S_{k0} S_{00}^{-1} S_{0k}. $$ The $N$ eigenvalues $\lambda_1\ge \lambda_2\ge\dots\ge \lambda_N$ of $\mathcal C$ are squared sample canonical correlations of $R_0$ and $R_k$, where $R_i$ is $N\times T$ matrix composed of columns $R_{it},\,i=0,k$.

Johansen's LR statistic for testing the hypothesis $\mathrm{rank}(\Pi)\le r_1$ (at most $r_1$ cointegrating relationships) versus the alternative $\mathrm{rank}(\Pi)\in (r_1,r_2]$ (between $r_1$ and $r_2$ cointegrating relationships) with $r_2>r_1$ has the form\footnote{We omit a usual scaling factor of $T$ for the statistics (ref), (ref), and (ref).}

equation[equation omitted — 79 chars of source]

the Pillai--Bartlett statistic is

equation[equation omitted — 72 chars of source]

and Hotelling--Lawley statistic is

equation[equation omitted — 92 chars of source]

See gonzalo_pitarakis1995 for a discussion and many references about these statistics.

In Theorem (ref) we show that the empirical measure of eigenvalues of $\mathcal C$ converges (weakly in probability) to the Wachter distribution. The theorem generalizes the results of onatski_ecta from the VAR($1$) to the VAR($k$) setting.\footnote{While onatski_ecta allows the data to be VAR($k$) under restriction (ref), they construct the matrix $\mathcal C$ involved in the statistical testing procedures as if the data were VAR($1$). That is, the formal procedure is based on a misspecified VAR($1$) setting, while we use the true VAR($k$) procedure. As illustrated in Section (ref), using an underspecified VAR can lead to severe size distortions.}

definitionThe Wachter distribution is a probability distribution on $[0,1]$ that depends on two parameters $\mathfrak p>1$ and $\mathfrak q>1$ and has density \begin{equation} \mu_{\mathfrak p,\mathfrak q}(x) = \frac{\mathfrak p+\mathfrak q}{2\pi} \cdot \frac{\sqrt{(x-\lambda_-)(\lambda_+-x)}}{x (1-x)} \mathbf 1_{[\lambda_-,\lambda_+]}\,, \end{equation} where the support $[\lambda_-,\lambda_+]\subset (0,1)$ of the measure is defined via \begin{equation} \lambda_\pm=\frac{1}{(\mathfrak p+\mathfrak q)^2}\left(\sqrt{\mathfrak p(\mathfrak p+\mathfrak q-1)}\pm \sqrt{\mathfrak q} \right)^2. \end{equation}
theoremLet $X_t$ follow Eq.\ (ref). Suppose that $k$ is fixed and, as $N\to\infty$, \begin{equation} \lim_{N\to\infty} \frac{T}{N}=\tau>(k+1) \qquad and \end{equation} \begin{equation} \lim_{N\to\infty} \frac{1}{N} \bigl( \mathrm{rank}(\Pi)+\mathrm{rank}(\Gamma_1)+\mathrm{rank}(\Gamma_2)+\dots+\mathrm{rank}(\Gamma_{k-1})+d_D\bigr)=0. \end{equation} Then, for each continuous function $f(x)$ on $x\in[0,1]$, we have \begin{equation} \lim_{N\to\infty} \frac{1}{N} \sum_{i=1}^N f(\lambda_i)=\int_0^1 f(x) \mu_{2, \tau-k}(x)\, \mathrm d x, \quad in probability. \end{equation} Equivalently, the empirical measure of eigenvalues $\lambda_1\ge\dots\ge\lambda_N$ of $\mathcal C$ converges (weakly in probability) to the Wachter distribution of density $ \mu_{2, \tau-k}$.

Imposing assumption (ref) can be viewed as a dimension reduction (cf. sparsity assumption). Approximating data with low-rank matrices is a widely used and powerful technique in data science, in machine learning applications such as recommender systems (e.g., movie preference recognition), and in computational mathematics. We refer the reader to lowrk_highdim for theoretical explanations of the suitability of low-rank models and many references to situations in which they are very efficient. In our particular context, the number of unknown parameters in the VAR model (ref) is proportional to $N^2$, and we have access to $N T$ observations. Since $N^2$ and $NT$ are of the same order in the asymptotic regime (ref), the model (ref) can overfit the data. We view the rank restriction (ref) as a natural way to avoid overfitting\footnote{An alternative way to introduce a low-rank assumption into the VAR model is, instead of using the error correction form in (ref), to rewrite the evolution as $X_t=\sum\limits_{i=1}^{k} A_i X_{t-i}+\Phi D_t+\varepsilon_t$. Then, in the spirit of factor models, one can impose the low-rank assumption on $A_i,\,i=1,\ldots,k$. Notice that $A_i=\Gamma_i-\Gamma_{i-1}$ for $i=2,\ldots,k-1$, so that low-rank assumptions on higher-order lags in this and our setting are related. This alternative low-rank restriction complements ours via the rank of $\Pi$: in our setting, the number of cointegrating relationships grows sublinearly in $N$, while in the alternative setting, this number is close to $N$. While none of our theorems directly cover the factor setting, numeric simulations in Section (ref) indicate that the tests that we develop remain useful.} (cf. the discussion in JASA_low_rank_VAR and Wang_Tsay_low_rank_VAR). Section (ref) illustrates that the results obtained under this assumption are consistent with the behavior of large-dimensional financial datasets. Another setting in which we can expect (ref) to be satisfied is when there are a few special coordinates in $X_t$, e.g., some macroeconomic indicators, that mostly drive the behavior of the entire vector $X_t$. This would correspond to the case where the columns of $\Gamma_i$ corresponding to those indicators are nonzero while the other columns are zero.

Figure (ref) illustrates Theorem (ref) for independent standard normal errors and $k=2,\,N=150,\,T=1500$. The parameters are $\Phi D_t=1_N$, $\Gamma_1=0.95E_{12}$, $\Pi=-0.1E_{\cdot1}$, where $1_N$ is an $N\times 1$-column matrix of ones, $E_{12}$ is an $N\times N$ matrix with one at the intersection of the 1st row and the 2nd column and zeros everywhere else, and $E_{\cdot1}$ is an $N\times N$ matrix with ones in the first column and zeros everywhere else. Thus, all the matrices have rank one. The parameters of the Wachter distribution are $\mathfrak p=2,\,\mathfrak q=T/N-k=8$. The single separated (rightmost) eigenvalue corresponds to $\mathrm{rank}(\Pi)=1$, i.e., one cointegrating relationship. Generally, we expect that if there are $r$ separated eigenvalues and the value of $k$ in Procedure (ref) is correctly specified, then there are at least $r$ cointegrating relationships.

figure[figure omitted — 376 chars of source]

The proof of Theorem (ref) is based on treating the setting of (ref) as a small-rank perturbation of a more restrictive setting analyzed in Section (ref). The small-rank assumption in (ref) is crucial for the validity of the theorem, and we expect that the asymptotic behavior changes in situations when (ref) fails. This expectation is supported by the Monte Carlo experiment in Section (ref). In contrast, the assumption that $T>(k+1)N$ can potentially be relaxed. When $T<(k+1)N$, the matrix $\mathcal C$ has deterministic eigenvalues equal to $1$, which should be taken into account in $N\to\infty$ asymptotics. This case can be also addressed by our methods, but we do not continue in this direction.

An important corollary of Theorem (ref) is that it provides the asymptotic behavior of various tests constructed from eigenvalues of $\mathcal C$.

corollaryUnder the assumptions of Theorem (ref), suppose that the ranks $r_1=r_1(N)$ and $r_2=r_2(N)$ are such that $$ \lim_{N\to\infty} \frac{r_1}{N}=\rho_1,\quad \lim_{N\to\infty} \frac{r_2}{N}=\rho_2. $$ Let $F(x)=\int_x^1 \mu_{2, \tau-k}(z)\, \mathrm d z$. Then we have convergence in probability for the test statistics: \begin{align*} &\lim_{N\to\infty} \frac{1}{N} \sum_{i=r_1+1}^{r_2} \ln(1-\lambda_i)=\int_{F^{-1}(\rho_2)}^{F^{-1}(\rho_1)} \ln(1-x) \mu_{2, \tau-k}(x)\, \mathrm d x,\ \quad if \,\, \rho_1>0; \\ &\lim_{N\to\infty} \frac{1}{N}\sum_{i=r_1+1}^{r_2} \lambda_i=\int_{F^{-1}(\rho_2)}^{F^{-1}(\rho_1)} x \mu_{2, \tau-k}(x)\, \mathrm d x; \\ &\lim_{N\to\infty} \frac{1}{N}\sum_{i=r_1+1}^{r_2} \frac{\lambda_i}{1-\lambda_i}=\int_{F^{-1}(\rho_2)}^{F^{-1}(\rho_1)} \frac{x}{1-x} \mu_{2, \tau-k}(x)\, \mathrm d x,\ \quad if \,\, \rho_1>0; \end{align*} and asymptotic inequalities: for each $\varepsilon>0$, \begin{align*} &\lim_{N\to\infty}\mathrm{Prob}\left( \frac{1}{N} \sum_{i=r_1+1}^{r_2} \ln(1-\lambda_i)\le \int_{F^{-1}(\rho_2)}^{1} \ln(1-x) \mu_{2, \tau-k}(x)\, \mathrm d x+\varepsilon\right)=1, \quad if \,\, \rho_1=0; \\ &\lim_{N\to\infty}\mathrm{Prob}\left( \frac{1}{N}\sum_{i=r_1+1}^{r_2} \frac{\lambda_i}{1-\lambda_i}\ge \int_{F^{-1}(\rho_2)}^1 \frac{x}{1-x} \mu_{2, \tau-k}(x)\, \mathrm d x-\varepsilon\right)=1,\ \quad if \,\, \rho_1=0. \end{align*}

Note that, when $\rho_1=0$, for the Johansen LR and Hotelling--Lawley (HW) statistics, we obtain inequalities rather than equalities. This is because of the singularity of $\ln(1-\lambda)$ and $\frac{\lambda}{1-\lambda}$ at $\lambda=1$: while Eq. (ref) controls average behavior, it does not control individual eigenvalues. Hence, the largest eigenvalue $\lambda_1$ can be arbitrarily close to $1$, so that the LR and HW statistics reach large negative and positive values, respectively. However, for similar statistics in the modified setting of the next section the inequalities turn into equalities (as can be proven by combining Theorem (ref) and Proposition (ref)).

For commonly used tests, one often takes $r_2=N$ (i.e., $H_1:\mathrm{rank}(\Pi)\leq N$), in which case $F^{-1}(\rho_2)=0$. We also remark that the integrals in Corollary (ref) can be explicitly computed in many situations. For instance, the one appearing in the asymptotic of the Pillai--Bartlett statistic for $\rho_1=0$, $\rho_2=1$ is $$ \int_{0}^{1} x\, \mu_{2, \tau-k}(x)\, \mathrm d x=\frac{2}{\tau+2-k}. $$

There are several applications of Theorem (ref) and Corollary (ref):

itemize• They can be used for validation of the applicability of model (ref) to a given dataset. Namely, if a VAR($k$) model with low-rank matrices $\Gamma_i$ and $\Pi$ agrees with data, then irrespective of the true values of these parameters, we expect to see the Wachter distribution in the histogram of $\lambda_i$, $1\le i \le N$. In Section (ref) we perform such a validation on S$\&$P$100$ and cryptocurrency data sets for VAR($k$) with $1\le k \le 4$ and observe a remarkable match. (VAR($1$) for S$\&$P$100$ is also reported in BG.) • They can be used as a screening device for preliminary conclusions about the rank of $\Pi$: If the rank is finite, then for any $r_1$ and $r_2$ we should be in the $\varepsilon$-neighborhood of the limits in Corollary (ref). • As explained in onatski_ecta, such results can be used to explain overrejection in some of the widely used tests for the rank of $\Pi$.

To draw further economical and statistical conclusions and to develop precise statistical tests and their critical values, one needs to go beyond the first-order asymptotic results of Theorem (ref) and Corollary (ref). In the next section we introduce relevant modifications and develop appropriate second-order asymptotics.

\@startsection{section}{1} \z@{1.0\linespacing\@plus\linespacing}{0.5\linespacing} {\normalfont}{Cointegration test: Second-order asymptotics}

In the regime of $N$ and $T$ growing simultaneously and proportionally, the first-order asymptotics of tests based on the squared sample canonical correlations are given in Corollary (ref). To perform testing and be able to reject at a given significance level, we need to be more precise and find a centered limit, which would be a random variable rather than a constant. To do this, we need to impose additional conditions on $\Gamma_i$, $D_t$, and $\Phi$ in Eq. (ref). Let us first describe the modified procedure and then state the asymptotic results.

Test

We restrict our attention to the case $D_t=1$, i.e.,

equation[equation omitted — 142 chars of source]

The null hypothesis of no cointegration is $H_0:\:{\rm rank}(\Pi)=0$ or $\Pi\equiv0$. The complement to $H_0$ is ${\rm rank}(\Pi)>0$. However, to design our test we use an alternative hypothesis: $$ H(r):\quad {\rm rank}(\Pi)\in[1,r]. $$ As in BG, our test is based on a modification of the Johansen LR test. The Johansen LR test for the original $H_0$ (i.e., $\Pi\equiv0$) versus $H(r)$ is

equation[equation omitted — 82 chars of source]

where $\lambda_1,\lambda_2,\ldots$ are defined in Procedure (ref). Let us describe how our modified test proceeds.

procedureStep 1. De-trend the data and define \begin{equation} \tilde X_t = X_{t-1} - \frac{t-1}{T} (X_T-X_0). \end{equation} Note that we do a time shift in line with the notation in BG. Step 2. Define regressors and dependent variables: For any $a\in\mathbb Z$, set $$ a\mid T= a+ k T,\quad \text{where } k\in\mathbb Z\text{ is such that } a+ k T\in \{1,2,\dots,T\}. $$ Define $$ \tilde{Z}_{0t}=\Delta X_{t\mid T}\equiv\Delta X_{t},\quad\tilde{Z}_{kt}=\tilde X_{t-k+1\mid T},\quad\tilde{Z}_{1t}=(\Delta X_{t-1\mid T}^{*},\ldots,\Delta X_{t-k+1\mid T}^{*},1)^{*}. $$ The main difference between $\tilde{Z}_{it}$ and $Z_{it}$ from Procedure (ref) is the usage of cyclic indices: values at $t=0,-1,\ldots$ are replaced by values at $t=T,T-1,\ldots$. Step 3. Calculate the residuals from regressions $\tilde{Z}_{0t}$ on $\tilde{Z}_{1t}$ and $\tilde{Z}_{kt}$ on $\tilde{Z}_{1t}$: \begin{equation} \tilde{R}_{it}=\tilde{Z}_{it}-\left(\sum\limits_{\tau=1}^{T} \tilde{Z}_{i\tau}\tilde{Z}_{1\tau}^{*}\right)\left(\sum\limits_{\tau=1}^{T} \tilde{Z}_{1\tau}\tilde{Z}_{1\tau}^{*}\right)^{-1}\tilde{Z}_{1t},\quad i=0,k. \end{equation} Step 4. Calculate the squared sample canonical correlations between $\tilde{R}_0$ and $\tilde{R}_k$, where $\tilde{R}_i$ is an $N\times T$ matrix composed of columns $\tilde{R}_{it},\,i=0,k$. That is, define \begin{equation}\begin{split} \tilde{S}_{ij}=\sum\limits_{t=1}^{T} \tilde{R}_{it} \tilde{R}^{\ast}_{jt},\quad i,j=0,k, \qquad and \end{split}\end{equation} \begin{equation} \tilde{\mathcal C}=\tilde{S}_{k0}\tilde{S}^{-1}_{00}\tilde{S}_{0k}\tilde{S}^{-1}_{kk}. \end{equation} Then, calculate $N$ eigenvalues $\tilde{\lambda}_1\geq\ldots\geq\tilde{\lambda}_N$ of the matrix $\tilde{\mathcal C}$. The eigenvalues solve the equation \begin{equation} \det( \tilde S_{k0} \tilde S_{00}^{-1} \tilde S_{0k}-\tilde{\lambda} \tilde S_{kk})=0. \end{equation} Step 5. Form the test statistic \begin{equation} LR_{N,T}(r)=\sum\limits_{i=1}^{r}\ln(1-\tilde{\lambda}_i). \end{equation} The subscript $N,T$ in (ref) indicates that we modify the Johansen LR test to develop the large $N,T$ asymptotics. This statistic after centering and rescaling will be compared with appropriate critical values to decide whether one can reject $H_0$ (see Theorem (ref)). Visually, rejections correspond to the case when the largest eigenvalues are separated from the rest (as in Figure (ref)). One can also consider other functions of largest eigenvalues $\tilde{\lambda}_1,\tilde{\lambda}_2,\ldots$ such as Pillai--Barlett or Hotelling--Lawley statistics. The asymptotic behavior in those cases can be derived in the same way as we treat statistic (ref) in Theorem (ref).

An alternative way to write residuals $\tilde{R}_{i},\,i=0,k$ is via an orthogonal projector: Let $\mathcal W$ be a linear subspace of dimension $N(k-1)+1$ in $T$-dimensional vector space, spanned by vector $(1,1,\dots,1)$ and all rows of matrices $(\Delta X) (L_c^{i})^*$, $1\le i\le (k-1)$, where $L_c$ is a cyclic version of the conventional lag operator and $L_c^{i}$ is its $i$th power, that is, the cyclic lag applied $i$ times. The cyclic lag operator $L_c$ maps a vector $(x_1,x_2,\dots,x_T)$ to $(x_{T},x_1,x_2,\dots,x_{T-1})$. Let $P_{\bot \mathcal W}$ denote the projector on orthogonal complement to $\mathcal W$. Then,

equation[equation omitted — 123 chars of source]

Second-order asymptotics

In this section we show that, under additional restrictions, the eigenvalues $\tilde{\lambda}_i,\,{i=1,\ldots,N}$ are very close (up to $N^{-1+\epsilon}$ for arbitrary $\epsilon>0$) to a known random matrix distribution. From this result we deduce our main theorem (Theorem (ref)), which gives the large $N,T$ limit of the test statistic $LR_{N,T}(r)$ in Eq. (ref). Before we formally state the results, let us define the relevant random matrix distributions.

Definitions

definitionThe (real) Jacobi ensemble $\mathbf J(N;p,q)$ is a distribution on $N\times N$ real symmetric matrices $\mathcal M$ of density proportional to \begin{equation} \det(\mathcal M)^{p-1} \det(I_N-\mathcal M)^{q-1}\, d\mathcal M,\qquad 0<\mathcal M< I_N, \end{equation} with respect to the Lebesgue measure, where $p,q>0$ are two parameters, $I_N$ is the $N\times N$ identity matrix, and $0< \mathcal M < I_N$ means that both $\mathcal M$ and $I_N-\mathcal M$ are positive definite.

The Jacobi ensemble is a generalization of the Beta distribution to the space of square matrices (when $N=1$, we obtain the Beta distribution). It plays a prominent role in statistics; e.g., it appears in canonical correlation analysis for independent data sets and in multivariate analysis of variance (see, e.g., Muirhead_book).

definitionThe Airy$_1$ point process is a random infinite sequence of reals $$ \mathfrak a_1>\mathfrak a_2>\mathfrak a_3>\dots $$ that can be defined through the following proposition. \begin{proposition}[Forrest_spectr,Tracy_Widom] Let $X_N$ be an $N\times N$ matrix of i.i.d. $\mathcal{N}(0,2)$ Gaussian random variables and let $\mu_{1;N}\ge \mu_{2;N}\ge \dots \mu_{N;N}$ be eigenvalues of $\frac{1}{2}\left(X_N+X_N^*\right)$. Then, in the sense of convergence of finite-dimensional distributions, \begin{equation} \lim_{N\to\infty} \left\{N^{1/6}\left(\mu_{i;N}-2\sqrt{N}\right) \right\}_{i=1}^N = \{ \mathfrak a_i\}_{i=1}^\infty. \end{equation} \end{proposition}

The marginals of the Airy$_1$ point process can be calculated via various methods (see, e.g., forrest for more details).

Theorems

The null $H_0$ for (ref) is not a point hypothesis, as it does not specify $\Gamma_i,\,i=1,\ldots,k-1$. A simplifying procedure when we are faced with such a composite space of the maintained hypothesis is to assume some fixed values of the parameters as a proxy for the null hypothesis. Along these lines, for the next theorems we are going to introduce additional restrictions and specify the values of $\Gamma_i,\, i=1,\ldots,k-1$. Thus, our model is going to be fully specified (up to a constant $\mu$, which will disappear in the testing procedure). We proceed to implement this approach in testing the hypothesis of no cointegration and introduce the restricted $\widehat H_0$\footnote{We discuss the consequences of using $\widehat H_0$ for testing the null $H_0$ after Theorem (ref).}:

equation[equation omitted — 108 chars of source]

In other words, under $\widehat H_0$ the data generating process turns into

equation[equation omitted — 80 chars of source]

where $\mu$ is an (unknown) $N$-dimensional vector.

theoremFix $C>0$, and suppose that $T,N\to\infty$ in such a way that $\frac{T}{N}\in[k+1+C^{-1},C]$. For the data generating process (ref) with restrictions $\widehat H_0$ given by (ref), one can couple (i.e., define on the same probability space) the eigenvalues $\tilde{\lambda}_1\ge \tilde{\lambda}_2\ge\ldots\ge \tilde{\lambda}_N$ of the matrix $\tilde S_{k0} \tilde S_{00}^{-1} \tilde S_{0k}\tilde S_{kk}^{-1}$ and eigenvalues $x_1\ge \dots\ge x_N$ of the Jacobi ensemble $\mathbf J(N;\frac{N}{2}, \frac{T-(k+1)N}{2})$ in such a way that, for each $\epsilon>0$, we have\footnote{One can show that the probability in (ref) is exponentially close to $1$: there exists a constant $\delta>0$, which depends on $\epsilon$, $C$, and $k$, such that, for all $N$ and $T$ satisfying $\frac{T}{N}\in[k+1+C^{-1},C]$, the probability under the limit in Eq. (ref) is larger than $1-\delta^{-1}\exp(\delta^{-1} N^\delta)$. Analyzing the proof of Theorem (ref), we can obtain this inequality by combining (ref) with large deviations bounds for the smallest and largest eigenvalues of the Jacobi ensemble (see e.g., anderson2010introduction for the latter).} \begin{equation} \lim_{T,N\to\infty} \mathrm{Prob}\left( \max_{1\le i \le N} |\tilde{\lambda}_i-x_i|< \frac{1}{N^{1-\epsilon}}\right)=1. \end{equation}

The proof of Theorem (ref) relies on two steps. First, we modify our matrix $\tilde{\mathcal C}$ a bit, which leads to a surprising appearance of the Jacobi ensemble, as shown in Section (ref). Second, in Section (ref) we show that the distance between the original model and the modified one becomes small as $N\to\infty$.

Combining Theorem (ref) with known asymptotic results for the Jacobi ensemble, which we recall in Proposition (ref) in Section (ref), we derive the asymptotics of (ref) in the following theorem.

theoremFix $C>0$, and suppose that $T,N\to\infty$ in such a way that $\frac{T}{N}\in[k+1+C^{-1},C]$. For the data generating process (ref) with restrictions $\widehat H_0$ given by (ref), for each finite $r=1,2,\dots$, we have convergence in distribution for the largest eigenvalues defined in Eq. (ref): \begin{equation} \frac{\sum_{i=1}^{r} \ln(1-\tilde{\lambda}_i)- r \cdot c_1(N,T)}{ N^{-2/3} c_2(N,T)} \, \xrightarrow[T,N\to\infty]{d} \sum_{i=1}^r \mathfrak a_i, \end{equation} where \begin{equation} c_1\left(N,T\right)=\ln\left(1-\lambda_+\right), \qquad c_2\left(N,T\right)=-\frac{2^{2/3} \lambda_+^{2/3}}{(1-\lambda_+)^{1/3} (\lambda_+-\lambda_-)^{1/3}} \left(\mathfrak p+\mathfrak q\right)^{-2/3} <0, \end{equation} \begin{equation} \mathfrak p=2, \qquad \mathfrak q=\frac{T}{N}-k,\qquad \lambda_\pm=\frac{1}{(\mathfrak p+\mathfrak q)^2}\left[\sqrt{\mathfrak p(\mathfrak p+\mathfrak q-1)}\pm \sqrt{\mathfrak q} \right]^2. \end{equation}
remarkThe condition $\frac{T}{N}\in[k+1+C^{-1},C]$ is another way to require that $T$ and $N$ grow to infinity proportionally. For example, it is guaranteed by the joint limit (ref). The role of $C$ is only to make sure that $T/N$ does not get too close to $k+1$ (if $T/N$ approaches $k+1$, then $\lambda_+$ approaches $1$ and $c_1$ explodes) or $+\infty$ (if $T/N$ becomes large, then $\lambda_+-\lambda_-$ and $\lambda_+$ tend to $0$ at the same speed and $c_2$ vanishes).

Theorem (ref) gives us the basis of cointegration testing in the large $N,T$ setting. Treating $\widehat H_0$ as a proxy for $H_0$, we can use our asymptotic results to test high-dimensional VARs for the presence of cointegration. Formally, to perform testing, one first needs to calculate the statistic $LR_{N,T}(r)$ following Procedure (ref). We recommend using small\footnote{In Theorem (ref) $r$ is kept fixed as $N$ and $T$ grow. The role of this choice and the motivations for sticking to it are discussed in detail in BG.} values of $r$, such as $r=1,2$, or $3$. Then, one needs to calculate $\frac{LR_{N,T}(r)- r \cdot c_1(N,T)}{ N^{-2/3} c_2(N,T)}$, as in Theorem (ref), and compare the result with quantiles of the sum of Airy$_1$, $\sum_{i=1}^r \mathfrak a_i$. If the rescaled statistic is larger than the $\alpha$ quantile, we reject the null of no cointegration at the $(1-\alpha)$ level. We report the quantiles for $r=1,2,3$ in Table (ref). See also vignette_largevars for more detailed tables for $r=1,\ldots,10$.

table[table omitted — 599 chars of source]

Note that, although the asymptotic result (ref) is shown under the restrictions $\widehat{H}_0$, we believe that it extends well beyond $\widehat H_0$: the same asymptotic results and testing procedures continue to hold in many situations with nonzero $\Gamma_i$ in Eq. (ref). While we do not have a full rigorous proof, we expect the following to be true:

For the data generating process (ref), assume that the ranks of all $\Gamma_i$ are bounded, as are the norms of all the matrices and vectors involved in the specification of the process (see Section (ref) for more details). Then conclusion (ref) of Theorem (ref) should continue to hold.

We collect extensive evidence supporting this statement. In Section (ref) we report results from Monte Carlo simulations consistent with it. Further, in Section (ref) we present a precise mathematical conjecture in this direction and give a heuristic argument for its validity. The intuition is that generic small-rank matrices are negligible relative to the scale of the rest of the process and, thus, their addition does not change the asymptotics. For this intuition to hold, it is important to correctly specify the parameter $k$ in the procedure to be equal to (or greater than) its true value. Otherwise (i.e., if we do not regress on the relevant $\Delta X_{t-i}$ in the procedure), the presence of $\Gamma_i$ can have an effect similar to that of the presence of nonzero $\Pi$: it leads to the appearance of special highly correlated linear combinations of rows of $\tilde R_0$ and $\tilde R_k$, which changes the behavior of the largest canonical correlations $\tilde \lambda_i$; see also the simulations in Section (ref).

Theorem (ref) means that under $\widehat H_0$ the largest eigenvalues $\tilde \lambda_i$ are close to $\lambda_+$, which is the right point of the support of the Wachter distribution in Eq. (ref). The relevance of this theorem for cointegration testing stems from the fact that we expect some of the eigenvalues to be much larger than $\lambda_+$ when cointegrating relationships are present. As an illustration, see Figure (ref), where $\Pi$ of rank $1$ leads to the largest eigenvalue being to the right of $\lambda_+$ and separated from the other eigenvalues. The separation is due to the small rank of $\Pi$. However, even if the rank of $\Pi$ is large, we expect the largest eigenvalue to be significantly larger than $\lambda_+$, and, thus, the test remains relevant (see Section (ref)). Providing rigorous results on the consistency of the test is an important task for future research. We present the first result in this direction in Corollary (ref) in Section (ref), where we produce a lower bound on the power of the test against a particular “one cointegrating relationship” alternative and show that the power tends to $1$ as $T/N$ tends to infinity.

\@startsection{section}{1} \z@{1.0\linespacing\@plus\linespacing}{0.5\linespacing} {\normalfont}{Monte Carlo simulations}

Size

We refer to BG for the finite sample size performance of our test for $k=1$. The results for VAR($k$) are similar, and we do not show them in much detail here. For illustration purposes and to represent the comparative statics, Table (ref) reports the empirical size for $T=522,\,N=92$ (those numbers correspond to our empirical example in Section (ref)) for tests based on VAR($k$), $k=1,2,3,4$ procedures.\footnote{Depending on the assumed order of autoregression, we have different numbers of regressors in Procedure (ref).} We can see that the numbers are close to the desired $5\%$ and, for the same $N$ and $T$, a lower order of VAR leads to slightly better results.

table[table omitted — 540 chars of source]
figure[figure omitted — 653 chars of source]
figure[figure omitted — 465 chars of source]

$\mathbf{H_0}$ vs. $\mathbf{\widehat H_0}$

An important aspect of our analysis for $k>1$ is the introduction of the additional restrictions $\widehat H_0$ maintained under the null. We would like to check whether Theorem (ref) can hold under the less restrictive $H_0$ instead of $\widehat H_0$. Some theoretical results in this direction are provided in Section (ref). Here we complement them with Monte Carlo simulations. For $N=100$, $T=500$ we simulate the data based on i.i.d. $\mathcal{N}(0,1)$ errors $\varepsilon_{it}$, zero $\Pi$, and nonzero $\Gamma_i$ (i.e., this corresponds to $H_0$ but not $\widehat H_0$). We then compare the density of the test based on the largest eigenvalue $\tilde{\lambda}_1$ ($r=1$ case of Theorem (ref) with statistic $\frac{\ln(1-\tilde{\lambda}_1)-c_1(N,T)}{N^{-2/3} c_2(N,T)}$), with the density of the first coordinate of the Airy$_1$ point process, $\mathfrak a_1$. If the densities coincide, then it means that we can still use the asymptotics from Theorem (ref) to test the null of no cointegration.

Let $E_{ij}$ be a matrix with $1$ at the cell $(i,j)$ and $0$s everywhere else and let $E_{\cdot j}$ be a matrix with $1$s filling the entire column $j$ and $0$s everywhere else. In the first two experiments we take $k=2$. We set $\Gamma_1=0.95E_{11}$ in the first one, which guarantees stationarity of $\Delta X_t$ but allows for strong time correlations in the first coordinate via the $0.95$ factor. In this case the rank of $\Gamma_1$ is $1$. In the second experiment we consider an asymmetric matrix $\Gamma_1=0.1E_{\cdot1}+0.95E_{12}$, which has a close to $1$ singular value because of the $0.95$ factor; the rank of $\Gamma_1$ is $2$ in this case. The results are illustrated in Figure (ref). In the third experiment, we take $k=3$, $\Gamma_1=E_{11}$, and $\Gamma_2=-\tfrac2{9}E_{11}$, so that both matrices are of rank $1$. The value $-\tfrac{2}{9}$ guarantees stationarity of $\Delta X_t$, since $1-z+\tfrac{2}{9}z^2=\left(1-\tfrac1{3}z\right)\left(1-\tfrac{2}{3}z\right)$. The result is shown in Figure (ref). We interpret the outcomes of these three experiments as a strong argument toward the validity of an analogue of Theorem (ref) well beyond the $\widehat H_0$ setting.\footnote{The minor mismatches between densities as in Figures (ref) and (ref) should be expected even under $\widehat H_0$. Theorem (ref) (after multiplication of the result by $N^{2/3}$, as in Eq.\ (ref)) predicts errors of at least ${\rm const}\cdot N^{-1/3}$ in the approximations under $\widehat H_0$.}

figure[figure omitted — 437 chars of source]

Order of VAR

figure[figure omitted — 832 chars of source]
figure[figure omitted — 1,336 chars of source]

It is essential for the experiments in the last paragraph that the data generating process is VAR(2) and that the procedure we use also corresponds to VAR(2), i.e., $k=2$ in the notations of Sections (ref) and (ref). As illustrated in Figure (ref), using a larger $k$ would lead to similar results, while incorrectly using a VAR(1) procedure when the data generating process is VAR(2) would imply wrong centering and scaling. Moreover, one can spot in Figure (ref) that underestimation of the order of the VAR can be misinterpreted as a presence of cointegration\footnote{Related simulations for $\Gamma_1=\theta E_{11}$ are also reported in BG: For small $\theta$, such as $\theta=0.5$, the VAR(1) procedure still performs well. However, as $\theta$ grows to $1$, the performance quickly deteriorates ($\theta=0.95$ in Figure (ref)).} (largest eigenvalue separated from the rest leading to the large value of the test statistic). However, as we increase the order, the largest eigenvalue becomes inseparable from the rest, and no sign of false cointegration remains present. Thus, practitioners are encouraged to experiment with the order of the VAR to make sure that they are detecting cointegration and not simply using the wrong model.

Note that one should be careful if using classical information criteria for estimating the order $k$ of a VAR in our situation. They are known to be unreliable in high-dimensional settings and may underestimate $k$ (see, e.g., the simulations in gonzalo_pitarakis2002). A possible approach to choosing $k$ is to look sequentially at histograms of eigenvalues at $k=1,2,\dots$. If the outlier eigenvalues larger than $\lambda_+$ exist for the procedures with all $k$ and perhaps move closer to $\lambda_+$ as $k$ grows (corresponding to a decrease in the power of the test), then this is a strong indication of the presence of cointegration. On the other hand, if there is a sharp transition---i.e., outlier eigenvalues are present when we use the VAR($k'$) procedure for $k'<k$ and abruptly disappear at $k=k'$---then this is an indication that the true model is VAR($k$) without cointegration (see Figure (ref)).

All of the above reinforces the importance of using the VAR($k$) rather than the VAR($1$) procedure.

Small ranks

To illustrate the importance of small ranks (e.g., (ref) in Theorem (ref)), we also redo the same procedure for a matrix $\Gamma_1$ of full rank and set $\Gamma_1$ to be $0.95I_N$, where $I_N$ is an $N\times N$ identity matrix. The result is shown in Figure (ref). While the shape and the scale (corresponding to $N^{2/3}$ rescaling in Theorem (ref)) of the distribution remain similar, the location changes. Thus, the small-rank restriction of Eq.\ (ref) is important not only in the context of Theorem (ref) but also for correct centering in possible generalizations of Theorem (ref).

figure[figure omitted — 397 chars of source]
figure[figure omitted — 376 chars of source]

Power

Finally, we simulate the process based on $\Pi\neq0$ to assess the power of our cointegration testing procedure. We refer the reader to BG for many simulations in the $k=1$ case and do not repeat similar experiments here.

For the first experiment, we use $k=2$, $\Gamma_1=0$, and $\Pi=-0.95E_{11}$. Figure (ref) shows the results of the simulation. Two curves are separated; moreover, the black straight line (test distribution) is flatter than the blue dashed curve ($\mathfrak a_1$). First, the separation of the curves is in line with the usefulness of Theorem (ref) in cointegration hypothesis testing, since the test statistic was designed to distinguish between $\Pi=0$ and $\Pi\neq 0$. Second, the distinct variances are due to the fact that (as we expect from a comparison with results on spiked random matrices in the literature; see, e.g., BBP) under the alternative ($\Pi\neq0$) the test needs to be scaled differently: Instead of $N^{2/3}$ rescaling one should use $N^{1/2}$. This result is in line with the power analysis of our test in Section (ref).

figure[figure omitted — 944 chars of source]

For the second experiment, we use $k=2$, $N=150$, $T=1500$, $\Gamma_1=0.95E_{12}$, and $\Pi=-0.8I_\rho X_{t-2}$, where $I_\rho$ is a matrix with ones on the first $\rho$ diagonal elements and zeros elsewhere. The histograms of eigenvalues $\tilde{\lambda}_1,\ldots,\tilde{\lambda}_N$ for $\rho=5,50, 150$ are shown in Figure (ref). As $\rho$ becomes large, we are no longer in the framework of Theorem (ref), and the result about the convergence to the Wachter distribution does not apply. Nevertheless, we observe that the largest eigenvalues are significantly larger than $\lambda_+$ of Theorem (ref). Recall that our testing procedure is based on comparing the largest eigenvalues\footnote{More precisely, logarithms of 1 minus eigenvalues vs. $\log(1-\lambda_+)$.} with $\lambda_+$. Thus, this leads to the conclusion that our test is useful for all values of $\rho\in [1,N]$: the test rejects $H_0$ of no cointegration (i.e., the $\Pi=0$ hypothesis) at a very high statistical significance level.

\@startsection{section}{1} \z@{1.0\linespacing\@plus\linespacing}{0.5\linespacing} {\normalfont}{Empirical illustrations}

S$\&$P$\mathbf{100}$

figure[figure omitted — 773 chars of source]

We illustrate our asymptotic theorems on the S$\&$P100 data. We use logarithms of weekly prices of assets in the S$\&$P100 over ten years (January 1, 2010, to January 1, 2020), which gives us $522$ observations across time. More detailed description of the variables can be found in BG.

For the S$\&$P100 data set we use Procedure (ref) to calculate $\tilde{\lambda}_1,\ldots,\tilde{\lambda}_N$. We do this for various choices of $k$. The case $k=1$ (VAR(1)) corresponds to BG. The results are shown in Figure (ref).

We see a striking match between the histograms and Wachter densities for all $k=1,2,3,4$, which is an indication that the setting of Theorem (ref) is a proper modeling for the S$\&$P data. We do not see any outliers in the largest eigenvalues, which would appear if there were cointegration. Indeed, our test statistics based on Theorem (ref) are $-0.28,\,-0.71,\,-1.07,\,-3.84$ for $k=1,2,3,4$, respectively, while the $5\%$ and $10\%$ critical values are $0.97$ and $0.44$. Because the former numbers are smaller than the latter numbers, we do not reject the “no cointegration” hypothesis.

Cryptocurrencies

In this subsection we redo the calculations for cryptocurrencies instead of S$\&$P stocks. We use the data from crypto_coint_paper (25 series from the Github repository). Logarithms of daily prices for two years (from October $5$, $2017$, to October $4$, $2019$) are shown in Figure (ref). The results of Procedure (ref) used to calculate $\tilde{\lambda}_1,\ldots,\tilde{\lambda}_N$ are shown in Figure (ref).

Similarly to the S$\&$P example in the previous subsection, we see a match between the eigenvalues and the Wachter distribution.\footnote{The Wachter distribution depends on the order of the VAR, $k$, and on the ratio $T/N$. Thus, the orange curves in Figures (ref) and (ref) have different shapes and supports.} However, there is a major difference between Figures (ref) and (ref): The latter has around 3 eigenvalues to the right of the support of the orange curve (Wachter distribution). This is an indication of the presence of approximately $3$ cointegrating relationships. This is reinforced by our test, which has p-values below $0.01$ for all four choices of the order of VAR($k$) ($k=1,2,3,4$).

figure[figure omitted — 178 chars of source]
figure[figure omitted — 808 chars of source]

The difference in results for traditional stocks and cryptocurrencies can be explained by the fact that the cryptocurrency market is still very inefficient and, thus, has numerous trading possibilities. The presence of cointegration can be one such inefficiency.

\@startsection{section}{1} \z@{1.0\linespacing\@plus\linespacing}{0.5\linespacing} {\normalfont}{Conclusion}

High-dimensional data are becoming increasingly widespread in economics and other sciences. Thus, appropriate machinery for handling such data is needed. We believe that the use of random matrix theory is inevitable for the development of the area: As soon as dimensions are high, random matrices start to contribute. Along these lines, in our paper the central role is played by random matrix objects: the Wachter distribution, Airy$_1$ point process, and Jacobi ensemble.

The present paper focused on nonstationary high-dimensional VARs and presented the asymptotic limit of the Johansen LR test for cointegration and its modifications. Because the limit is nonrandom, the appropriate second-order statistic was derived, and a new test for the presence of cointegration was proposed. The new test builds upon the Johansen LR, while having some extra modifications. This new test is suitable for a vector autoregression of order $k$ with an intercept.

The main focus of the present paper is the null of no cointegration. The next essential step is to be able to test whether the cointegration rank is $r$ for $r>0$, i.e., to find the true rank of cointegration. Heuristics for finding the correct value of $r$ can already be seen in our simulations and data sets (cf.\ Figures (ref), (ref), and (ref)): When there are no cointegrations, all eigenvalues (squared canonical correlations) are to the left of the end-point of the support of the Wachter distribution. In contrast, we expect each cointegrating relationship to lead to an eigenvalue between the right end-point of the support of the Wachter distribution and $1$. Identifying the exact conditions under which this heuristic is correct represents an important problem for future research.

\@startsection{section}{1} \z@{1.0\linespacing\@plus\linespacing}{0.5\linespacing} {\normalfont}{Appendix 1: Proofs}

This appendix contains the proofs of Theorems (ref), (ref), and (ref) from the main text.

First, in Section (ref) we collect known statements about the asymptotics of the Jacobi ensemble of Definition (ref), which will be used in our subsequent proofs.

Second, in Theorem (ref) of Section (ref) we introduce a novel random matrix model for the Jacobi ensemble. Our proof of Theorem (ref) proceeds through certain intricate inductive computations of large-dimensional matrix integrals.

Third, in Section (ref) we connect the matrix model of Section (ref) to the cointegration setting: for that we use the rotational symmetry of the Gaussian law to express the squared sample canonical correlations solving (ref) under the hypothesis $\widehat H_0$ in terms of a certain deterministic orthogonal matrix. Replacing this deterministic matrix by a uniformly random one, we arrive at the Jacobi ensemble of Theorem (ref). We proceed by bounding the error in this replacement, which relies on the rigidity estimate for orthogonal matrices (ref), but needs special care due to various matrix inversions involved in our procedures. Eventually, we arrive at Theorem (ref). This theorem is our main technical result. Combining Theorem (ref) with Proposition (ref) from Section (ref), we finish the proof of Theorem (ref) from the main text.

Finally, in Section (ref) we prove Theorem (ref) by combining Theorem (ref) with Proposition (ref) of Section (ref) and general statements about small rank perturbations.

Asymptotic of Jacobi ensemble

In this section we review the asymptotic results for the Jacobi ensemble $\mathbf J(N; p,q)$ introduced in the Definition (ref) as $N\to\infty$.

We assume that as $N\to\infty$, also $p,q\to\infty$, in such a way that

equation[equation omitted — 178 chars of source]

where $\mathfrak p$ and $\mathfrak q$ are two parameters, which stay bounded away from $1$ and from $\infty$ as $N\to\infty$.\footnote{Johnstone_Jacobi suggests to use $\frac{p-1}{N}$ and $\frac{q-1}{N}$ instead of $\frac{p}{N}$ and $\frac{q}{N}$, respectively, in order to improve the speed of convergence. However, we found in BG that for the tests in VAR($1$) case the usefulness of this correction depends on the exact value of the ratio $T/N$ and we are not going to pursue this direction here.} We further define the equilibrium measure $\mu_{\mathfrak p,\mathfrak q}$ of the Jacobi ensemble through:

equation[equation omitted — 228 chars of source]

where the support $[\lambda_-,\lambda_+]$ of the measure is defined via

equation[equation omitted — 150 chars of source]

One can check that $0<\lambda_-<\lambda_+<1$ for every $\mathfrak p,\mathfrak q>1$. Further, define

equation[equation omitted — 121 chars of source]

and note that $$ \mu_{\mathfrak p,\mathfrak q}(x-\lambda_{\pm})\approx \frac{c_\pm}{\pi} \sqrt{|x-\lambda_{\pm}|}, \text{ as } x\to\lambda_{\pm}\quad \text{ inside }\quad [\lambda_-,\lambda_+], $$ where the normalization $\frac{1}{\pi} \sqrt{|x-\lambda_{\pm}|}$ was chosen to match the behavior of the Wigner semicircle law $\frac{1}{2\pi} \sqrt{4-x^2}$ near edges $\pm 2$.

proposition[See Johnstone_Jacobi, forrest, and HanPanZhang_2016] Suppose that $N,p,q\to\infty$ in such a way that $\mathfrak p\ge 1 $ and $\mathfrak q\ge 1 $ in (ref) stay bounded. For the second conclusions we additionally assume that $\mathfrak q$ is bounded away from $1$ and for the third conclusion we additionally require $\mathfrak p$ to be bounded away from $1$. Let $x_1\ge x_2\ge \dots\ge x_N$ be $N$ random eigenvalues of Jacobi ensemble $\mathbf J(N;p,q)$. Then \begin{enumerate} • $\displaystyle \lim_{N\to\infty} \left|\frac{1}{N} \sum_{i=1}^N \delta_{x_i}- \mu_{\mathfrak p,\mathfrak q} \right|=0,$ weakly in probability. This means that for any continuous function $f(x)$ we have convergence in probability: \begin{equation} \lim_{N\to\infty} \left|\frac{1}{N}\sum_{i=1}^N f(x_i)-\int_{0}^1 f(x)\mu_{\mathfrak p,\mathfrak q}(x)\mathrm d x\right|=0. \end{equation} • For $\{\mathfrak a_i\}_{i=1}^{\infty}$ as in Proposition (ref), we have convergence in finite-dimensional distributions for the largest eigenvalues: \begin{equation} \lim_{N\to\infty} \left\{ N^{2/3} c_+^{2/3} \left(x_i- \lambda_+\right) \right\}_{i=1}^{\infty}\to \{\mathfrak a_i\}_{i=1}^{\infty}. \end{equation} In particular, $N^{2/3} c_+^{2/3} \left(x_1- \lambda_+\right)$ converges to the Tracy-Widom distribution $F_1$. • We also have convergence in distribution for the smallest eigenvalues\footnote{The limiting processes $\{\mathfrak a_i\}_{i=1}^{\infty}$ arising for the largest and smallest eigenvalues are independent.} \begin{equation} \lim_{N\to\infty} \left\{ N^{2/3} c_-^{2/3} \left(\lambda_--x_{N+1-i}\right) \right\}_{i=1}^{\infty}\to \{\mathfrak a_i\}_{i=1}^{\infty}. \end{equation} \end{enumerate}

A new model for the Jacobi ensemble

The Jacobi ensemble appearing in Theorem (ref) originates in the following computation of exact distribution. In addition to real symmetric matrices ($\beta=1$ in the usual random matrix notations) it also covers the case of complex Hermitian matrices ($\beta=2$).

theoremFix $k=1,2,\dots$ and assume $\mathcal T \ge (k+1)N$. Let $\mathcal V$ be an $N$--dimensional subspace in the $\mathcal T$--dimensional space and let $O$ be uniformly random orthogonal $\mathcal T\times \mathcal T$ matrix with determinant $1$ if $\beta=1$ ($O$ is a uniformly random unitary matrix if $\beta=2$). Let $P$ be an orthogonal projector on the space orthogonal to $O\mathcal V$, $O^2\mathcal V$,\dots, $O^{k-1}\mathcal V$. Let $P_1$ be a projector on the subspace $P\mathcal V$ and $P_2$ be a projector on the subspace $PO^{k-1}(I_\mathcal T+O)^{-1}\mathcal V$. Then non-zero eigenvalues of $P_1P_2P_1$ coincide with those of the Jacobi ensemble of $N\times N$ real symmetric if $\beta=1$ (complex Hermitian if $\beta=2$) matrices of density proportional to \begin{equation} \det (\mathcal M)^{\frac{\beta}{2}N+\beta-2} \det(I_N-\mathcal M)^{\frac{\beta}{2}(\mathcal T-(k+1)N+1)-1}\, d \mathcal M,\quad 0\le \mathcal M\le I_N, \qquad \beta=1,2. \end{equation}
remarkWe can replace $P O^{k-1}(I_\mathcal T+O)^{-1}$ in the definition of $P_2$ with $P O^{k}(I_\mathcal T+O)^{-1}$. Indeed, if $k>1$, then $P O^{k}(I_\mathcal T+O)^{-1}\mathcal V+ P O^{k-1}(I_\mathcal T+O)^{-1}\mathcal V= P O^{k-1} \mathcal V=0$. If $k=1$, then $P$ disappears (one can say that it becomes an identical operator) and the random operators $(I_\mathcal T+O)^{-1}$ and $O(I_\mathcal T+O)^{-1}=(I_T+O^{-1})^{-1}$ has the same law, since the uniform measure on the orthogonal group is invariant under the inversion $O\mapsto O^{-1}$. By a similar argument applied inductively we can replace $P O^{k-1}(I_\mathcal T+O)^{-1}$ with $P O(I_\mathcal T+O)^{-1}$. Note, however, that for $k>1$ we can not replace it with $P (I_\mathcal T+O)^{-1}$.

The $k=1$ case of Theorem (ref) is established in BG. The proof of Theorem (ref) uses the following three auxiliary ingredients.

lemma[Block matrix inversion formula] For matrices $\mathbf A$, $\mathbf B$, $\mathbf C$, $\mathbf D$, we have: \begin{equation} \begin{pmatrix} \mathbf{A}& \mathbf{B}\\ \mathbf{C}& \mathbf{D}\end{pmatrix}^{-1} = \begin{pmatrix} \mathbf{Q} & - \mathbf{Q} \mathbf{B}\mathbf{D}^{-1} \\ - \mathbf{D}^{-1}\mathbf{C} \mathbf{Q} & \mathbf{D}^{-1}+ \mathbf{D}^{-1} \mathbf{C} \mathbf{Q} \mathbf{B} \mathbf{D}^{-1} \end{pmatrix} ,\qquad \mathbf{Q} = (\mathbf{A}- \mathbf{B} \mathbf{D}^{-1}\mathbf{C} )^{-1}, \end{equation}
proofDirect computation.
lemma[Cayley transform] Suppose that all eigenvalues of $N\times N$ matrix $O$ are different from $-1$. Then $O$ is an orthogonal matrix with determinant $1$, if and only if the matrix $\mathcal R$ defined through \begin{equation} \mathcal R=(I_N-O)(I_N+O)^{-1}=\frac{I_N-O}{I_N+O},\quad so that \quad O=\frac{I_N-\mathcal R}{I_N+\mathcal R} \end{equation} is skew-symmetric, i.e., it satisfies $\mathcal R^*=-\mathcal R$.
proofThe formulas (ref) imply that $O^*=O^{-1}$ if and only if $\mathcal R^*=-\mathcal R$. On the other hand, for a skew-symmetric $\mathcal R$, we have $\det(I_N+\mathcal R)=\det(I_N+\mathcal R^*)=\det(I_N-\mathcal R)$. Hence, $\det(O)=\det\left(\frac{I_N-\mathcal R}{I_N+\mathcal R}\right)=1$.
lemmaChoose two positive integers $M$, $N$ and set $\mathcal T=M+N$. Let $O$ be a uniformly random $\mathcal T\times \mathcal T$ orthogonal matrix with determinant $1$. Write $O$ in the block form according to $\mathcal T=M+N$ splitting: $$ O=\begin{pmatrix} A& B\\ C& D\end{pmatrix} $$ Then $\tilde O:= A-B(I_N+D)^{-1} C$ is a $M\times M$ orthogonal matrix of determinant $1$ uniformly distributed among all such matrices. In addition, the random matrices $\tilde O$ and $B(I_N+D)^{-1}$ are independent.
remarkThe law of $\widehat W:=B(I_N+D)^{-1}$ is explicit. The computation (ref) below implies that the density of $\widehat W$ is proportional to $$ \det\bigl(I_N+\widehat W^* \widehat W\bigr)^{1/2-M-N/2}\, d \widehat W. $$
remarkThe computation of the law of $\tilde O$ is mentioned in Olshanski_Harmonic and Neretin_Hua with its roots going back to Hua. However, we could not locate the statements concerning also $B(I_N+D)^{-1}$ in the literature.
proof[Proof of Lemma (ref)] First, note that the distribution of eigenvalues of $D$ is absolutely continuous and, hence, $I_N+D$ is almost surely invertible and the matrix $\tilde O$ is well-defined. Our next task is to show that $\tilde O$ is an orthogonal matrix with determinant $1$. We use Cayley transform for that. Combining (ref) with (ref) we have \begin{multline} \mathcal R=\frac{I_\mathcal T-O}{I_\mathcal T+O}=\frac{2}{I_\mathcal T+O}-I_\mathcal T\\ = \begin{pmatrix} 2 Q-I_M && - 2 Q B (I_N+D)^{-1} \\ - 2 (I_N+D)^{-1} C Q && 2(I_N+D)^{-1}+ 2(I_N+D)^{-1} C Q B (I_N+D)^{-1}-I_N \end{pmatrix},\\ Q = (I_M+A- B (I_N+D)^{-1}C )^{-1}. \end{multline} Since $\mathcal R$ is skew-symmetric, so is its top--left $M\times M$ corner $\tilde\mathcal R=2 Q-I_M$. We claim that $\tilde O$ is the Cayley transform of $\tilde \mathcal R$, which would imply that $\tilde O$ is orthogonal of determinant $1$. Indeed, \begin{equation} \frac{I_M-\tilde \mathcal R}{I_M+\tilde \mathcal R}= \frac{2 I_M-2Q}{2Q}= Q^{-1}-I_M=A- B (I_N+D)^{-1}C =\tilde O. \end{equation} It remains to compute the distributions of $\tilde O$ and $B(I_N+D)^{-1}$ and show their independence. In terms of $\mathcal R$ the distribution of $O$ (as a uniformly random orthogonal matrix of determinant $1$) is given by the density proportional to \begin{equation} \det(I_\mathcal T-\mathcal R^2)^{-\frac{1}{2}\mathcal T+\frac{1}{2}}d\mathcal R=\det(I_\mathcal T-\mathcal R)^{1-\mathcal T}d\mathcal R=\det(I_\mathcal T+\mathcal R)^{1-\mathcal T}d\mathcal R, \end{equation} see, e.g., forrest and notice that $\det(I_\mathcal T-\mathcal R)=\det(I_T+\mathcal R)$ for the two equalities. We rewrite the block form (ref) of $\mathcal R$ as $$ \mathcal R=\begin{pmatrix} \tilde \mathcal R & -W \\ W^* & \mathcal R_2\end{pmatrix}, $$ where $\mathcal R_2$ is $N\times N$ skew-symmetric and $W$ is an arbitrary $M\times N$ matrix. We further introduce the notation $\widehat W:= (I_M+\tilde \mathcal R)^{-1} W$. Recalling that $\tilde\mathcal R=2 Q-I_M$, we transform \begin{equation} \widehat W= 2(I_M+\tilde \mathcal R)^{-1} Q B (I_N+D)^{-1}= B (I_N+D)^{-1}. \end{equation} We also define $$ \widehat \mathcal R_2:= \bigl(I_N+ \widehat W^* \widehat W\bigr)^{-1/2} \bigl(-\mathcal R_2+\widehat W^*\tilde \mathcal R \widehat W\bigr) \bigl(I_N+ \widehat W^* \widehat W\bigr)^{-1/2}. $$ Note that $(\tilde R, \widehat W, \widehat R_2)$ is an alternative parameterization of $\mathcal R$, in which $\widehat W$ is an arbitrary $M\times N$ matrix and $\widehat R_2$ is an arbitrary $N\times N$ skew-symmetric matrix. Using the formula for the determinant of a block matrix \begin{equation} \det \begin{pmatrix} \mathbf{A}& \mathbf{B}\\ \mathbf{C}& \mathbf{D}\end{pmatrix}=\det \mathbf{A}\,\cdot\, \det (\mathbf{D} - \mathbf{C} \mathbf{A}^{-1}\mathbf{B}), \end{equation} we rewrite (ref) as \begin{multline} \det(I_\mathcal T-\mathcal R)^{1-\mathcal T}\,d\tilde \mathcal R\, dW\, d \mathcal R_2=\det\begin{pmatrix} I_M-\tilde \mathcal R & W \\ -W^* & I_N-\mathcal R_2\end{pmatrix}^{1-\mathcal T}\,d\tilde \mathcal R\, dW\, d \mathcal R_2 \\ =\det(I_M-\tilde \mathcal R)^{1-\mathcal T} \det(I_N-\mathcal R_2 + W^* (I_M-\tilde \mathcal R)^{-1} W)^{1-\mathcal T} \,d\tilde \mathcal R\, dW\, d \mathcal R_2 \\=\det\bigl(I_M-\tilde \mathcal R\bigr)^{1-\mathcal T} \det\bigl(I_N-\mathcal R_2+\widehat W^* (I_M+\tilde \mathcal R) \widehat W\bigr)^{1-\mathcal T}\,d\tilde \mathcal R\, dW\, d \mathcal R_2 \end{multline} Further, notice that $$ \bigl(I_N+\widehat W^* \widehat W\bigr)^{1/2}\bigl(I_N+ \widehat \mathcal R_2\bigr)\bigl(I_N+\widehat W^* \widehat W\bigr)^{1/2}= I_N-\mathcal R_2+\widehat W^* (I_M+\tilde \mathcal R) \widehat W. $$ Hence, the last line of (ref) is transformed into \begin{multline} \det\bigl(I_M-\tilde \mathcal R\bigr)^{1-\mathcal T} \det\bigl(I_N+\widehat W^* \widehat W\bigr)^{1-\mathcal T} \det\bigl(I_N+ \widehat \mathcal R_2\bigr)^{1-\mathcal T}\,d\tilde \mathcal R\, dW\, d \mathcal R_2 \\ =\det\bigl(I_M+\tilde \mathcal R\bigr)^{1-M} \det\bigl(I_N+\widehat W^* \widehat W\bigr)^{1/2-M-N/2} \det\bigl(I_N+ \widehat \mathcal R_2\bigr)^{1-M-N}\, d\tilde \mathcal R\, d \widehat W\, d \widehat \mathcal R_2, \end{multline} where in the last line we use $\mathcal T=M+N$ and change variables $d W\mapsto d\widehat W$ and $d \mathcal R_2\mapsto d\widehat \mathcal R_2$ using the general Jacobian computations: \begin{itemize} • The map $Z\mapsto Q Z$ on $n\times m$ matrices has the Jacobian \begin{equation} \left| \frac{\partial (Q Z)}{\partial Z}\right| = |\det Q|^{m}, \end{equation} • The map $Z\mapsto Q Z Q^*$ from the space of $n\times n$ skew-symmetric matrices to itself has the Jacobian \begin{equation} \left|\frac{\partial (Q Z Q^*)}{\partial Z}\right|=|\det Q|^{n-1}. \end{equation} \end{itemize} The first identity (ref) follows from the observation that each column of $Z$ is transformed by linear map $Q$ and there are $m$ such columns. The second is similar and we refer to forrest for details. The key important feature of the last line of (ref) is that it has a product form, which implies the joint independence of $\tilde \mathcal R$, $\widehat W$, and $\widehat \mathcal R_2$. Hence, the density of $\tilde \mathcal R$ is proportional to $\det\bigl(1+\tilde \mathcal R\bigr)^{1-M}d \tilde \mathcal R$. Comparing with (ref) and noting that the dimension changed from $\mathcal T$ to $M$, we conclude that $\tilde O$ is a uniformly random $M\times M$ orthogonal matrix of determinant $1$. Next, recalling that $\tilde O$ is a deterministic function of $\tilde \mathcal R$ by (ref), we conclude that $\tilde O$ is independent with $\widehat W$, which is precisely $B (I_N+D)^{-1}$ by (ref).
proof[Proof of Theorem (ref)] We only give a proof for the real case $\beta=1$; the complex case can be proven by the same argument. The proof is induction in $k$ with base case $k=1$ being BG and the induction step being based on Lemma (ref). {\bf Step 1.} We first note that the particular choice of deterministic space $\mathcal V$ in the statement of the theorem is not important: any other deterministic choice of $\mathcal V$ can be achieved by a change of basis of the $\mathcal T$--dimensional space, which keeps the probability distribution of $O$ and, hence, entire construction invariant. In particular, the probability distribution of $P_1 P_2 P_1$ is unchanged. However, we need to be more careful, if we would like to make $\mathcal V$ random, as correlations with $O$ might cause issues. {\bf Step 2.} Take any $r \in\mathbb Z$. We claim that replacement of $\mathcal V$ with $O^r\mathcal V$ everywhere in the statement of Theorem (ref) does not change the eigenvalues of $P_1 P_2 P_1$. Indeed, the only important feature of $O^r$ here is that it is an orthogonal operator commuting with $O$. Hence, the change $\mathcal V\mapsto O^r\mathcal V$ leads to the image of the projector $P$ being multiplied by $O^r$; in more details, the transformation takes the form $P\mapsto O^r P O^{-r}$. Further, $P\mathcal V$ gets transformed to $O^r P\mathcal V$ and $P_1$ undergoes a similar transformation: $P_1\mapsto O^r P_1 O^{-r}$. The same is true for $P_2$: it undergoes the transformation $P_2\mapsto O^r P_2 O^{-r}$. We conclude that the product $P_1 P_2 P_1$ is transformed into $O^{r} P_1 P_2 P_1 O^{-r}$. Since conjugations do not change eigenvalues, we are done. The arguments of Steps 1 and 2 might give a feeling that we can actually replace $\mathcal V$ by any random space. However, this is not the case. Repeating the same arguments, we see that replacement $\mathcal V\mapsto A \mathcal V$ leads to the same eigenvalues of the projector $P_1 P_2 P_1$ as if we replaced $O\mapsto A^* O A$. In both Steps 1 and 2 $O$ had the same distribution as $A^* O A$, hence, the eigenvalues were unchanged. But in general, if $A$ is correlated with $O$ in a non-trivial way, then the distribution might change.\footnote{For instance, if $\mathcal V$ is spanned by eigenvectors of $O$, then the spaces $O\mathcal V$, $O^2 \mathcal V$,\dots,$O^{k-1} \mathcal V$ all coincide, which is a very different behavior from the case of deterministic $\mathcal V$.} {\bf Step 3.} We now transform the statement of Theorem (ref) by replacing $\mathcal V$ with $O^{1-k} \mathcal V$ and further replacing $O$ by $O^{-1}$ everywhere. Since the uniform (Haar) measure on the orthogonal matrices is invariant under inversion, the law of eigenvalues of $P_1 P_2 P_1$ is unchanged and the ingredients of Theorem (ref) are now as follows: \begin{itemize} • $O$ is a uniformly random $\mathcal T\times \mathcal T$ orthogonal matrix with determinant $1$ and $\mathcal V$ is an arbitrary (deterministic) $N$--dimensional subspace of the $\mathcal T$--dimensional space, whose choice is irrelevant for the statement. • $P$ is the projector on the orthogonal complement of $O^{k-2}\mathcal V$, $O^{k-3}\mathcal V$, \dots, $O\mathcal V$, $\mathcal V$. • $P_1$ is the projector on the subspace $P O^{k-1}\mathcal V$ and $P_2$ is the projector on the subspace $P O(I_T+O)^{-1} \mathcal V$. (The latter can be replaced by $P (I_T+ O)^{-1} \mathcal V$ without changing the outcome. Indeed, for that we need start from $PO^{k}(I_T+O)^{-1}$ instead of ${PO^{k-1}(I_T+O)^{-1}}$, which is possible by Remark (ref)). • The claim is that the eigenvalues of $P_1 P_2 P_1$ are distributed as (ref). \end{itemize} We are going to prove this last statement by induction in $k$. For that we choose $\mathcal V$ to be the span of the last $N$ coordinate vectors, split $\mathcal T=M+N$ with $M=\mathcal T-N$ and project everything on the first $M$ coordinate vectors (which are orthogonal complement to $\mathcal V$). We rely on Lemma (ref) and use $A,B,C,D$ and $\tilde O$ notation from that lemma. {\bf Step 4.} We claim that the subspace in $M$--dimensional space spanned by the first $M$ coordinates of $O^{k-2}\mathcal V$, $O^{k-3}\mathcal V$, \dots, $O\mathcal V$ (since $\mathcal V$ has zero projection on the first $M$ coordinates, we do not need it here) is the same as the subspace spanned by $\tilde O^{k-3} \langle B\rangle$, $\tilde O^{k-4}\langle B\rangle$, \dots, $\langle B \rangle$, where $\langle B \rangle$ is $N$--dimensional space spanned by columns of the $M\times N$ matrix $B$. Indeed, the first $M$ coordinates of $O\mathcal V$ are $\langle B \rangle$ by definition of the block structure in Lemma (ref). Further, to go from powers of $O$ to powers of $\tilde O$ we make the following observation: take a vector $w$ in $\mathcal T$--dimensional space and write it as $w={w_2 \choose w_1}$, where $w_1$ is $N$-dimensional vector (one can think of $w_1$ being in $\mathcal V$) and $w_2$ is $M$--dimensional vector (one can think of $w_2$ being in the orthogonal complement of $\mathcal V$) and write $$ O{w_2\choose w_1}={u_2 \choose u_1}. $$ Then the $M$--dimensional vector $u_2$ takes the form $$ u_2=A w_2 + B w_1= \tilde O w_2 + B( (I_N+D)^{-1} C w_2+ w_1). $$ Since we only care about the linear span of columns and $\langle B \rangle$ already belongs to the desired linear span, the last term can be ignored and we arrive at $\tilde O w_2$, which then implies the claim. {\bf Step 5.} Next, consider the projection of $O^{k-1} \mathcal V$ on the orthogonal complement to $O^{k-2}\mathcal V$, $O^{k-3}\mathcal V$, \dots, $O\mathcal V$, $\mathcal V$. This is the same as the the projection of the first $M$ coordinates of $O^{k-1}\mathcal V$ on the orthogonal complement (in $M$--dimensional space) to first $M$ coordinates of $O^{k-2}\mathcal V$, $O^{k-3}\mathcal V$, \dots, $O\mathcal V$. Hence, combining with the argument of Step 4, this is the same as the projection of $\tilde O^{k-2} \langle B\rangle$ on the orthogonal complement of $\tilde O^{k-3} \langle B\rangle$, $\tilde O^{k-4}\langle B\rangle$, \dots, $\langle B \rangle$. It is convenient to note that $\langle B \rangle=\langle B (I_N+ D)^{-1}\rangle$. {\bf Step 6.} Finally, consider the projection of $(I_T+O)^{-1} O \mathcal V$ on the orthogonal complement of $O^{k-2}\mathcal V$, $O^{k-3}\mathcal V$, \dots, $O\mathcal V$, $\mathcal V$. By Steps 4 and 5 this is the same as the projection of the first $M$ coordinates of $(I_T+O)^{-1} O \mathcal V$ on the orthogonal complement of $\tilde O^{k-3} \langle B(I_N+D)^{-1}\rangle$, $\tilde O^{k-4}\langle B(I_N+D)^{-1}\rangle$, \dots, $\langle B (I_N+D)^{-1} \rangle$. Representing $(I_T+O)^{-1} O\mathcal V $ in the block form, the first $M$ coordinates of $(I_T+O)^{-1} O \mathcal V$ are the span of the columns of the sum of the top--left corner of $(I_T+O)^{-1}$ multiplied by $B$ plus the top-right corner of $(I_T+O)^{-1}$ multiplied by $D$. Using Lemma (ref), we get the span of the columns of \begin{multline*} (I_M+A-B(I_N+D)^{-1}C)^{-1} B - (I_M+A-B(I_N+D)^{-1}C)^{-1} B (I_N+D)^{-1} D\\=(I_M+\tilde O)^{-1} B(I_N+D)^{-1}, \end{multline*} which is the same as $(I_M+\tilde O)^{-1} \langle B (I_N+D)^{-1}\rangle$. {\bf Step 7.} Combining the results of Steps 6 and 7 with Lemma (ref), we identify the eigenvalues of $P_1 P_2 P_1$ with the eigenvalues of $\tilde P_1 \tilde P_2 \tilde P_1$ obtained by the following procedure: \begin{itemize} • $\tilde O$ is a uniformly random $M\times M$ orthogonal matrix with determinant $1$, where $M=\mathcal T-N$. • $\tilde P$ is the projector on orthogonal complement of $\tilde O^{k-3}\langle B (I_N+D)^{-1}\rangle $, $\tilde O^{k-4}{\langle B (I_N+D)^{-1}\rangle}$, \dots, $\langle B(I_N+D)^{-1}\rangle$. • $\tilde P_1$ is the projector on the subspace $\tilde P \tilde O^{k-2} \langle B (I_N+D)^{-1}\rangle$ and $\tilde P_2$ is the projector on the subspace ${\tilde P (I_M+\tilde O)^{-1} \langle B (I_N+D)^{-1}\rangle}$. \end{itemize} Since $\langle B(I_N+D)^{-1}\rangle$ is independent from $\tilde O$ by Lemma (ref), this is the same form as the one at the end of Step 3, but with $k$ decreased by $1$, $\mathcal T$ decreased by $N$, and $\mathcal V$ replaced by $\langle B (I_N+D)^{-1}\rangle$. Decreasing $k$ by $1$ and $\mathcal T$ by $N$ leaves the formula (ref) unchanged, hence, we can invoke the induction assumption, thus, finishing the proof.

A perturbation of the Jacobi ensemble.

In this section we use Theorem (ref) to prove Theorem (ref).

Recall the cyclic shift\footnote{Note that in BG we expressed all the operators in terms of $F=L_c^{-1}$ rather than $L_c$.} operator $L_c$ acting in $T$--dimensional space. Let $V$ be the $(T-1)$--dimensional space orthogonal to the vector $(1,1,\dots,1)$, i.e., $V=\{(x_1,\dots,x_T)\mid x_1+\dots+x_T=0\}$. Note that $V$ is an invariant space for $L_c$ and let $L_V$ denote the restriction of $L_c$ on the subspace $V$.

Take a uniformly-random orthogonal (or unitary if $\beta=2$) operator $\tilde O$ acting in $(T-1)$--dimensional space $V$ and define an operator $\tilde L$ acting in $V$: $$ \tilde L=- \tilde O L_V \tilde O^*. $$

propositionAssume $T> (k+1)N$ and let $\tilde L$ be as above. Take an arbitrary $N$--dimensional subspace $\mathcal U$ in $(T-1)$--dimensional space $V$. Let $P$ be the orthogonal projector on the space orthogonal to $\tilde L \mathcal U$, $\tilde L^2 \mathcal U$,\dots, $\tilde L^{k-1} \mathcal U$. Let $P_1$ be the projector on the subspace $P \mathcal U$ and $P_2$ be the projector on the subspace $P \tilde L^{k}(I_{V}+\tilde L)^{-1} \mathcal U$. Then the distributions of non-zero eigenvalues of $P_1P_2P_1$ coincides with that of the squared sample canonical correlations solving (ref) under the hypothesis $\widehat H_0$.

Comparing Proposition (ref) with Theorem (ref) and Remark (ref) one notices that the differences are in restricting on the subspace $V$ (hence, decreasing the dimension by $1$) and in replacement $O\leftrightarrow \tilde L$.

proof[Proof of Proposition (ref)] \quad {\bf Step 1.} We start by transforming the Gaussian noise $\varepsilon_t$. Let $\varepsilon$ be $N\times T$ matrix, whose $t$-th column is $\varepsilon_t$. Take any non-degenerate $N\times N$ matrix $A$ and transform $\varepsilon\mapsto A\varepsilon$. Thus, we leave $X_0$ unchanged and recalculate $X_t$, $1\le t \le T$. We claim that the canonical correlations solving Eq. (ref) are unchanged. Indeed, the linear subspace $\mathcal W$ stays the same and so does the projector $P_{\bot \mathcal W}$. For each $t=1,2,\dots,T$, the vector $\Delta X_t$ is transformed by $\Delta X_t\mapsto A\Delta X_t+(I_N-A)\mu$ and $\tilde X_t$ is transformed by $ \tilde X_t\mapsto A\tilde X_t + (I_N-A) X_0.$ Recall that the space $\mathcal W$ includes vector $(1,\dots,1)$, which leads to the projector $P_{\bot \mathcal W}$ canceling the additional terms $(I_N-A)\mu$ and $(I_N-A)X_0$ in the last two formulas. Hence, the matrices $\tilde R_0$ and $\tilde R_k$ are transformed by $\tilde R_0\mapsto A \tilde R_0$ and $\tilde R_k\mapsto A \tilde R_k$. Therefore, $$ \tilde S_{k0} \tilde S_{00}^{-1} \tilde S_{0k} \mapsto A \tilde S_{k0} \tilde S_{00}^{-1} \tilde S_{0k} A^*, \qquad \tilde S_{kk}\mapsto A \tilde S_{kk} A^*. $$ We conclude that Eq. (ref) is multiplied by $\det(A) \det(A^*)$ and, hence, its roots are preserved. By choosing an $A=\Lambda^{-1/2}$ the covariance matrix $\Lambda$ becomes identical. Hence, for the rest of the proof we assume without loss of generality that $\Lambda$ is identical, which means that the matrix elements of $\varepsilon$ are i.i.d.\ standard Gaussians. {\bf Step 2.} Let us now reduce the canonical correlations solving Eq. (ref) to eigenvalues for a product of projectors. By definition the canonical correlations are eigenvalues of $N\times N$ matrix $$ \tilde S_{k0} \tilde S_{00}^{-1} \tilde S_{0k} \tilde S_{kk}^{-1}= \tilde R_k \tilde R_0^* (\tilde R_0 \tilde R_0^*)^{-1} \tilde R_0 \tilde R_k^* (\tilde R_k \tilde R_k^*)^{-1} $$ Note that for any two rectangular matrices $A$ and $B$ of the same sizes the non-zero eigenvalues of $A B^*$ and of $B^* A$ coincide. Hence, the desired canonical correlations are also eigenvalues of $T\times T$ matrix $$ \bigl[ \tilde R_0^* (\tilde R_0 \tilde R_0^*)^{-1} \tilde R_0 \bigr] \cdot \bigl[\tilde R_k^* (\tilde R_k \tilde R_k^*)^{-1} \tilde R_k \bigr]. $$ The last matrix is a product of two projectors:\footnote{For a closer match to the proposition that we are proving, note also that if $P_1$ and $P_2$ are projectors, then eigenvalues of $P_1P_2$ and $P_1 P_2 P_1$ are the same.} the first one projects on the space spanned by columns of $\tilde R_0^*$ and the second one projects on columns of $\tilde R_k^*$. {\bf Step 3.} The next step is to express via $\varepsilon$ various matrices involved in constructing $\tilde R_0$ and $\tilde R_k$. Let $\mathcal P$ be the orthogonal projector on the subspace $V$. Under $\widehat H_0$ we have $\Delta X_t=\mu+\varepsilon_t$. Also $$ (\Delta X \mathcal P)_t= \mu+\varepsilon_t-\frac{1}{T}\sum_{\tau=1}^T (\mu+\varepsilon_\tau)= \varepsilon_t-\frac{1}{T}\sum_{\tau=1}^T \varepsilon_\tau, \qquad \Delta X \mathcal P=\varepsilon \mathcal P . $$ Further, we define the $T\times T$ summation matrix $\Phi$. It has $1$'s below the diagonal and $0$'s on the diagonal and everywhere above the diagonal: $$ \Phi=\begin{pmatrix} 0&0&0&\dots&0\\ 1& 0 &0&\dots &0\\ 1& 1& 0 &\dots & 0 \\ && \ddots \\ 1&1 &\dots & 1 &0\end{pmatrix}. $$ We set $$ \tilde \Phi =\mathcal P \Phi \mathcal P. $$ By a straightforward linear algebra (see BG for some details) one shows that the linear operator $\tilde \Phi$ preserves the space $V$ (orthogonal to $(1,1,\dots,1)$). In addition, its restriction on the subspace $V$ coincides with $L_V(I_V-L_V)^{-1}$, where $I_V$ is the identical operator acting in $V$. We can write \begin{multline} \tilde X_t= X_{t-1}-\frac{t-1}{T}(X_T-X_0)=X_0 + (t-1)\mu+ \sum_{\tau=1}^{t-1} \varepsilon_\tau - \frac{t-1}{T} \left(T\mu +\sum_{\tau=1}^{T} \varepsilon_\tau\right)\\= X_0 + \sum_{\tau=1}^{t-1} \varepsilon_\tau - \frac{t-1}{T} \sum_{\tau=1}^{T} \varepsilon_\tau. \end{multline} We claim that $\tilde X \mathcal P= \varepsilon \tilde \Phi^*$. Indeed, $ \tilde X \mathcal P$ coincides with $\dbtilde X \mathcal P $, where $$ \dbtilde X_t=\tilde X_t- X_0= \sum_{\tau=1}^{t-1} \varepsilon_\tau - \frac{t-1}{T} \sum_{\tau=1}^{T} \varepsilon_\tau=\sum_{\tau=1}^{t-1} \left( \varepsilon_\tau - \frac{1}{T} \sum_{s=1}^{T} \varepsilon_s\right). $$ Since $\Phi$ is the summation operator, we have $\dbtilde X = ( \Phi ( \varepsilon \mathcal P)^* )^* = \varepsilon \mathcal P \Phi^*$ and the claim is proven because $\tilde \Phi^*=\mathcal P\Phi^*\mathcal P$. {\bf Step 4.} Previous steps yield the following expressions for $\tilde R_0$ and $\tilde R_k$. Take the $N$--dimensional space $\tilde{\mathcal U}$ (belonging to $(T-1)$-dimensional space $V$) spanned by the columns of $\mathcal P \varepsilon^*$. Let $\tilde P$ be the orthogonal projector on the space orthogonal to $L_c \tilde{\mathcal U}$, $L_c^2 \tilde{\mathcal U}$, \dots, $L_c^{k-1} \tilde{\mathcal U}$. (Note that $L_c$ can be replaced by $L_V$ in the last definition without changing $\tilde P$). Then the space spanned by $N$ columns of $\tilde R_0^*$ is $\tilde P \tilde{\mathcal U}$. On the other hand, the space spanned by $N$ columns of $\tilde R_k^*$ is $\tilde P L_c^{k-1} \tilde \Phi \tilde{\mathcal U}=\tilde P L_V^{k} (I_V-L_V)^{-1} \tilde{\mathcal U}$. At this point, we see strong similarities with objects in the statement of Proposition (ref) with main difference being in the assignment of randomness: $L_c$ is deterministic and $\tilde{\mathcal U}$ is random, but $\tilde L$ is random and $\mathcal U$ is deterministic. Thus, it remains to relocate the random part. For that we notice that due to the rotational invariance of the Gaussian law (here it is important that we made the covariance matrix $\Lambda$ identical on the first step), the space $\tilde{\mathcal U}$ spanned by the columns of $\mathcal P \varepsilon^*$ has the same law as $\tilde O^* \mathcal U$. The reason is that both laws give uniformly random $N$--dimensional subspace of $(T-1)$--dimensional space $V$. Since everything was previously expressed through the span of columns of $\mathcal P \varepsilon^*$, denote $\tilde {\mathcal U}$, we now simply replace those by the columns of $\tilde O^* \mathcal U$. Then the space orthogonal to $L_c \tilde{\mathcal U}$, $L_c^2 \tilde{\mathcal U}$, \dots, $L_c^{k-1} \tilde{\mathcal U}$ becomes the space orthogonal to $L_c \tilde O^* \mathcal U $, $L_c^2 \tilde O^* \mathcal U $, \dots, $L_c^{k-1} \tilde O^* \mathcal U $. Equivalently, this is the space orthogonal to $ \tilde O^* \tilde L \mathcal U $, $ \tilde O^* \tilde L^2 \mathcal U $, \dots, $\tilde O^* \tilde L^{k-1} \mathcal U $. $\tilde P$ is the projector on this space. We conclude that the law of canonical correlations (ref) is the same as the law of non-zero eigenvalues of the product of two projectors: the first one projects on the subspace $\tilde P \tilde O^* \mathcal U$ and the second one projects on the subspace $\tilde P L_c^k (I_V-L_c)^{-1} \tilde O^* \mathcal U=\tilde P \tilde O^* \tilde L^k (I_V+\tilde L)^{-1} \mathcal U $. Up to a change of basis (by matrix $\tilde O$), which does not change the eigenvalues, we have arrived precisely at the expression from the statement of the proposition.

The next proposition explains the effect of the replacement $O\leftrightarrow \tilde L$ on the eigenvalues of the product of projectors in Theorem (ref) and Proposition (ref). We need to introduce some additional notations.

Choose positive integers $k$, $N$, and $\mathcal T$, such that $\mathcal T\ge (k+1) N$ and an arbitrary $N$--dimensional subspace $\mathcal V$ in $\mathcal T$--dimensional space. Let $$f^{k,N,\mathcal T;\mathcal V}: SO(\mathcal T)\to \{0\le x_1\le x_2\le\dots \le x_N\le 1 \}$$ be a map from the group $SO(\mathcal T)$ of orthogonal $\mathcal T\times \mathcal T$ matrices of determinant $1$ to $N$--tuples of reals on $[0,1]$ interval, defined by the following procedure: Take $O\in SO(\mathcal T)$. Let $P$ be the orthogonal projector on the space orthogonal to $O \mathcal V$, $O^2 \mathcal V$,\dots, $O^{k-1} \mathcal V$. Let $P_1$ be the projector on the subspace $P \mathcal V$ and $P_2$ be the projector on the subspace $P O^{k}(I_{\mathcal T}+O)^{-1} \mathcal V$. Then $f^{k,N,\mathcal T;\mathcal V}$ maps $O$ to $N$ largest eigenvalues of $P_1P_2P_1$.

We also need three norms:

enumerate$\|v\|_2$ is the $L_2$ norm of a vector $v=(v_1,v_2,\dots,v_N)$, defined as $\|v\|_2=\sqrt{\sum_{i=1}^N v_i^2}$. • $\|v\|_{\infty}$ is the supremum norm of a vector $v=(v_1,\dots,v_N)$, defined as $\|v\|_{\infty}=\max_{i} |v_i|$. • $\|A\|_2$ is the spectral norm of a matrix $A$, defined as the square root of the largest eigenvalue of $A A^*$. Equivalently, $\|A\|_2=\max_{v} \frac{\|Av\|_2}{\|v\|_2}$.
propositionSuppose that $k$ is fixed, while $N$ is growing and $\mathcal T$ depends on $N$ in such a way that $\frac{\mathcal T}{N}\in [k+1 + C_1, C_2]$ for some $C_1,C_2>0$. Let $O_1$ and $O_2$ be two $\mathcal T\times \mathcal T$ random matrices, such that: \begin{itemize} • $O_1$ is a uniformly random $\mathcal T\times \mathcal T$ orthogonal matrix with determinant $1$. • The eigenvalues of $O_2$ are almost surely different from $-1$. • For each $\varepsilon>0$ we have \begin{equation} \lim_{N\to\infty} {\rm Prob} \left( \|O_1-O_2\|_2< \frac{1}{N^{1-\varepsilon}} \right)=1. \end{equation} \end{itemize} Then for each $\varepsilon>0$ we have \begin{equation} \lim_{N\to\infty} {\rm Prob} \left( \|f^{k,N,\mathcal T;\mathcal V}(O_1)-f^{k,N,\mathcal T;\mathcal V}(O_2)\|_\infty< \frac{1}{N^{1-\varepsilon}} \right)=1. \end{equation}

Proposition (ref) claims a continuity of map $f^{k,N,\mathcal T;\mathcal V}$. The proof needs care because of the inversions in the definition of the map $f^{k,N,\mathcal T;\mathcal V}$.

remarkProposition (ref) has a version for complex numbers, in which all orthogonal matrices are replaced by unitary matrices. The proof of the complex version is the same.

The proof of Proposition (ref) relies on three lemmas which we prove later in this section. For these lemmas we write matrices $O_1$ and $O_2$ of Proposition (ref) in the block forms according to the splitting $\mathcal T=(\mathcal T-N)+N$:

equation[equation omitted — 161 chars of source]
lemmaLet $O$ be a $\mathcal T\times T$ orthogonal matrix of determinant $1$ written in the block form $O=\begin{pmatrix} A & B\\ C & D\end{pmatrix}$ according to the splitting $\mathcal T=(\mathcal T-N)+N$. If all eigenvalues of $O$ are different from $-1$, then so are the eigenvalues of $D$ and of $A-B(I_N+D)^{-1}C$.
lemmaUnder the assumptions of Proposition (ref) we have \begin{equation} \lim_{N\to\infty} {\rm Prob} \left( \| (A_1-B_1(I_{N}+D_1)^{-1} C_1)-(A_2-B_2(I_{N}+D_2)^{-1} C_2)\|_2< \frac{1}{N^{1-\varepsilon}} \right)=1. \end{equation}
lemmaUnder the assumptions of Proposition (ref), let $\tilde{\mathcal V}_0$ be the $N$--dimensional subspace of $(\mathcal T-N)$--dimensional space spanned by the last $N$ coordinate vectors. There exists an $(\mathcal T-N)\times (\mathcal T-N)$ orthogonal matrix $U_1$, depending only on $B_1(I_N+D_1)^{-1}$ and an $(\mathcal T-N)\times (\mathcal T-N)$ orthogonal matrix, $U_2$, depending both on $B_1(I_N+D_1)^{-1}$ and on $B_2(I_N+D_2)^{-1}$, such that $U_1\tilde{\mathcal V}_0=\langle B_1\rangle$, $U_2\tilde{\mathcal V}_0=\langle B_2\rangle$ and \begin{equation} \lim_{N\to\infty} {\rm Prob} \left( \|U_1-U_2\|_2< \frac{1}{N^{1-\varepsilon}} \right)=1. \end{equation}
proof[Proof of Proposition (ref)] The proof is induction in $k$ with the base case $k=1$ proven in BG, see the continuity of $M(Z)$ in the proof of Proposition 13 there. For the induction step we recycle the ideas in the proof of Theorem (ref). First, recall a property of function $f$, which we established in Steps 1 and 2 of Theorem (ref): if $U$ is a $\mathcal T\times\mathcal T$ orthogonal matrix, then \begin{equation} f^{k,N,\mathcal T;U \mathcal V}(O)= f^{k,N,\mathcal T;\mathcal V}(U^*OU). \end{equation} Note that conjugations (by the same orthogonal matrix for $O_1$ and $O_2$) leave the three conditions of Proposition (ref) unchanged, hence, the (ref) implies that statement of proposition remains the same for any choice $\mathcal V$. Second, we make the replacements of Steps 2 and 3 of Theorem (ref) individually for $f^{k,N,\mathcal T;\mathcal V}(O_1)$ and $f^{k,N,\mathcal T;\mathcal V}(O_2)$. The replacement $\mathcal V\mapsto O^{k-1} \mathcal V$ does not change the eigenvalues of $P_1 P_2 P_1$, while inversion of $O_1$ and $O_2$ keeps the conditions of Proposition (ref) unchanged. Summing up, we replace the map $O\mapsto f^{k,N,\mathcal T; \mathcal V}(O)$ in Proposition (ref) by a new map $O\mapsto \tilde f^{k,N,\mathcal T; \mathcal V_0}(O)$ defined through: Let $\mathcal V_0$ be the subspace spanned by the last $N$ coordinate vectors in $\mathcal T$--dimensional space. Let $P$ be the orthogonal projector on the space orthogonal to $\mathcal V, O \mathcal V$, $O^2 \mathcal V$,\dots, $O^{k-2} \mathcal V$. Let $P_1$ be the projector on the subspace $P O^{k-1} \mathcal V$ and $P_2$ be the projector on the subspace $P (I_{\mathcal T}+O) \mathcal V$ (or, equivalently, on $P O (I_\mathcal T+O)\mathcal V$). Then $\tilde f^{k,N,\mathcal T;\mathcal V_0}(O)$ is $N$ largest eigenvalues of $P_1P_2P_1$. Using the block notations (ref), steps 4-7 in the proof of Theorem (ref) imply the following almost sure identities: \begin{equation} \tilde f^{k,N,\mathcal T;\mathcal V_0}(O_1)=\tilde f^{k-1,N,\mathcal T-N;\langle B_1\rangle }(A_1-B_1(I_{N}+D_1)^{-1} C_1), \end{equation} \begin{equation} \tilde f^{k,N,\mathcal T;\mathcal V_0}(O_2)=\tilde f^{k-1,N,\mathcal T-N;\langle B_2\rangle }(A_2-B_2(I_{N}+D_2)^{-1} C_2). \end{equation} We would like to check that the right-hand sides of (ref) and (ref) are close by using the induction assumption. Using (ref) and Lemma (ref), we rewrite the right-hand sides of (ref) and (ref) as: \begin{equation} \tilde f^{k-1,N,\mathcal T-N;\tilde{\mathcal V}_0}\bigl( U_1^*(A_1-B_1(I_{N}+D_1)^{-1} C_1) U_1\bigr); \quad \quad \tilde f^{k-1,N,\mathcal T-N;\tilde{\mathcal V}_0}\bigl( U_2^*(A_2-B_2(I_{N}+D_2)^{-1} C_2) U_2\bigr). \end{equation} Let us check that we can apply the induction assumption to deduce that the expressions of (ref) are close to each other: \begin{itemize} • By Lemma (ref), $A_1-B_1(I_{N}+D_1)^{-1} C_1$ is a uniformly random $(\mathcal T-N)\times(\mathcal T-N)$ orthogonal matrix. By Lemma (ref), $U_1$ is a function of $B_1(I_N+D_1)^{-1}$. Hence, using Lemma (ref) again, we conclude that $U_1$ is independent from $A_1-B_1(I_{N}+D_1)^{-1} C_1$. Therefore, $U_1^*(A_1-B_1(I_{N}+D_1)^{-1} C_1) U_1$ is a uniformly random orthogonal matrix, as desired. • By Lemma (ref), $(I_{N}+D_2)^{-1}$ is well-defined and no eigenvalues of $A_2-B_2(I_{N}+D_2)^{-1} C_2$ are equal to $-1$. Hence, the eigenvalues of $U_2^*(A_2-B_2(I_{N}+D_2)^{-1} C_2) U_2$ are almost surely different from $-1$. • Combining Lemmas (ref) and (ref) we conclude that \begin{multline*} \lim_{N\to\infty} {\rm Prob} \left( \| U_1^*(A_1-B_1(I_{N}+D_1)^{-1} C_1)U_1-U_2^*(A_2-B_2(I_{N}+D_2)^{-1} C_2)U_2\|_2< \frac{1}{N^{1-\varepsilon}} \right)\\=1. \end{multline*} \end{itemize} Hence, using the $(k-1)$ statement, the expressions in (ref) are close to each other as $N\to\infty$ and, therefore, (ref) is close to (ref).
proof[Proof of Lemma (ref)] Let us show that $D$ has no eigenvalues $-1$. We argue by contradiction and assume that there exists an $N$--dimensional vector $v$ of length $1$ such that $Dv=-v$. Note that $B^*B+D^*D=I_N$ by orthogonality of $O$. Hence, using the notation $\langle \cdot,\cdot\rangle$ for the scalar product, we have $$ \langle Bv, Bv \rangle= \langle B^*Bv, v \rangle= \langle (I_N-D^* D)v, v \rangle=\langle v,v\rangle -\langle Dv, Dv\rangle=1-1=0. $$ Therefore, $Bv=0$, which readily implies that the $\mathcal T$--dimensional vector ${0\choose v}$ is an eigenvector of $O$ with eigenvalue $-1$. Contradiction. Next, for the matrix $A-B(I_{N}+D)^{-1} C$, let us use its representation as a Cayley transform developed in (ref): $$ A-B(I_{N}+D)^{-1} C=\frac{I_{\mathcal T-N}-\mathcal R}{I_{\mathcal T-N}+\mathcal R}, $$ where $\mathcal R$ is a $(\mathcal T-N)\times(\mathcal T-N)$ skew-symmetric matrix. If $v$ was an eigenvector of $A-B(I_{N}+D)^{-1} C$ with eigenvalue $-1$, then we would have $$ (I_{\mathcal T-N}-\mathcal R)v=-(I_{\mathcal T-N}+\mathcal R)v, $$ which is impossible for non-zero $v$.
proof[Proof of Lemma (ref)] Note that whenever $X$ is a submatrix of $Y$, we have $\|X\|_2\le \|Y\|_2$. Hence, the spectral norms of the differences $A_1-A_2$, $B_1-B_2$, $C_1-C_2$, $D_1-D_2$ are all small with probability tending to $1$ as $N\to\infty$. Addition, multiplication, and inversion of matrices are all Lipschitz operations as long as factors are bounded for the multiplication and singular values are bounded away from $0$ for the inversion. Therefore, it remains to show that the norms of the factors $B_1$, $(I_N+D_1)^{-1}$, and $C_1$ are uniformly bounded (since $B_1$, $(I_N+D_1)^{-1}$, and $C_1$ are close to $B_2$, $(I_N+D_2)^{-1}$, and $C_2$, respectively, the norms of the latter are then going to be bounded as well). For $B_1$ and $C_1$ the bound on the norm is straightforward, as they are submatrices of $O_1$, whose norm is $1$. Hence, $\|B_1\|_2\le 1$ and $\|C_1\|_2\le 1$. In order to deal with $(I_N+D_1)^{-1}$ we rely on the fact that the distribution of the symmetric $N\times N$ matrix $Y=D_1^* D_1$ is explicit. It has density (see, e.g., forrest) proportional to: \begin{equation} \det Y^{-1/2} \det(I_N-Y)^{\frac{\mathcal T}{2}-N-1/2}\, d Y, \qquad 0< Y< I_N. \end{equation} This is a particular case of the Jacobi ensemble of Definition (ref) and we can use the large $N$ asymptotic of the latter recorded in Proposition (ref). Therefore, there exists a constant $0<c<1$, such that all the eigenvalues of $Y$ are smaller than $c$ with probability tending to $1$ as $N\to\infty$. Hence, by the triangular inequality $$ \min_{\|v\|_2=1} \|(I_N+D_1)v\|_2\ge 1-\sqrt{c}, $$ with probability tending to $1$ as $N\to\infty$. We conclude that $$ \lim_{N\to\infty} {\rm Prob}\left( \|(I_N+D_1)^{-1}\|<\frac{1}{1-\sqrt{c}}\right)=1. \qedhere. $$
comment\begin{proof}[Proof of Lemma (ref)] We know that the matrices $B_1$ and $B_2$ are close to each other and our is to show that the orthogonormal bases of $\langle B_1\rangle =\langle B_1 (I_N+D_1)^{-1}\rangle$ and its orthogonal complement, $\langle B_2\rangle =\langle B_2 (I_N+D_2)^{-1}\rangle$ and its orthogonal complement can be chosen to also be close to each other. For that we need to produce some formulas for these bases (with clear uniformly continuous dependence on $\langle B_1 (I_N+D_1)^{-1}\rangle$ or $\langle B_2 (I_N+D_2)^{-1}$), which is what we do in the rest of the proof. Since orthogonal basis of a space is certainly not unique, there might be many ways to achieve our goal; we choose a path based on the block version of the Cholesky decomposition. Set $X_1=B_1 (I_N+D_1)^{-1}$. This is an $(\mathcal T-N)\times N$ matrix and we aim to construct an $N$--dimensional orthonormal basis in the space spanned by its columns and $(\mathcal T-2N)$--dimensional orthonormal basis in the orthogonal complement to columns. For that set $M=\mathcal T-2N$ and write $X_1$ in the block form according to the splitting $\mathcal T-N= N+M$: $$ X_1={Y_1\choose Z_1}. $$ Let $W_1$ denote the $(\mathcal T-N)\times(\mathcal T-N)$ matrix written in the $N+M$ block form as $$ W_1=\begin{pmatrix} Y_1&0 \\ Z_1& I_M\end{pmatrix}. $$ We would like to perform orthogonalization of the columns of $W_1$. For that we first compute \begin{equation} W_1^*W_1=\begin{pmatrix} Y_1^* Y_1+Z_1^*Z_1 & Z_1^*\\ Z_1& I_M \end{pmatrix}. \end{equation} We further would like to represent $W_1^* W_1$ as \begin{equation} W_1^* W_1= \begin{pmatrix} I_N& 0 \\ Q_1 & I_M\end{pmatrix} \begin{pmatrix} G_1 & 0\\ 0 & H_1\end{pmatrix} \begin{pmatrix} I_N& Q_1^* \\ 0 & I_M\end{pmatrix} \end{equation} The right-hand side of (ref) is $$ \begin{pmatrix} G_1& 0 \\ Q_1 G_1& H_1\end{pmatrix} \begin{pmatrix} I_N& Q_1^* \\ 0 & I_M\end{pmatrix}=\begin{pmatrix} G_1& G_1Q_1^*\\ Q_1 G_1 & Q_1 G_1 Q_1^* + H_1\end{pmatrix} $$ Comparing with (ref) we conclude that \begin{equation} G_1= Y_1^* Y_1+Z_1^*Z_1= X_1^* X_1, \quad Q_1= Z_1 (X_1^* X_1)^{-1}, \quad H_1= I_M- Z_1 (X_1^* X_1)^{-1} Z_1^*. \end{equation} Note that $G_1$ and $H_1$ are positive-definite symmetric matrices, hence, they have well-defined square roots. In addition, $$ \begin{pmatrix} I_N& Q_1^* \\ 0 & I_M\end{pmatrix}^{-1}= \begin{pmatrix} I_N& -Q_1^* \\ 0 & I_M\end{pmatrix}. $$ The goal of all these manipulations with matrices is to define \begin{equation} \tilde U_1=W_1 \cdot \begin{pmatrix} I_N& -Q_1^* \\ 0 & I_M\end{pmatrix} \cdot \begin{pmatrix} G_1^{-1/2} & 0\\ 0 & H_1^{-1/2}\end{pmatrix}. \end{equation} The two key properties of $\tilde U_1$ are: \begin{itemize} • The span of the first $N$ columns of $\tilde U_1$ coincides with $\langle X_1\rangle =\langle B_1\rangle$. • $\tilde U_1$ is orthogonal. Indeed, using (ref) we have $$ \tilde U_1 \tilde U_1^*= W_1 \begin{pmatrix} I_N& -Q_1^* \\ 0 & I_M\end{pmatrix} \begin{pmatrix} G_1^{-1} & 0\\ 0 & H_1^{-1}\end{pmatrix} \begin{pmatrix} I_N& 0\\ -Q_1 & I_M\end{pmatrix} W_1^* = W_1 ( W_1^* W_1)^{-1} W_1^*=I_{\mathcal T-N}. $$ \end{itemize} Hence, we can finally set $$ U_1:= \tilde U_1 \cdot \mathfrak S, $$ where $\mathfrak S$ is the (orthogonal matrix) which swaps $i$th and $(\mathcal T-N+1-i)$th basis vectors for $i=1,2,\dots,\mathcal T-N$. Clearly $U_1 \mathcal V_0=\langle B_1\rangle$, as desired. We similarly define $U_2$ by doing exactly the same procedure, but starting from $B_2(1+D_2)^{-1}$ instead of $B_1(1+D_1)^{-1}$, i.e., we simply replace all indices $1$ by $2$ throughout the definitions. It now remains to show that $U_1$ and $U_2$ are close to each other, which is the same statement as continuity of the construction of $U_1$ as a function of the $\mathcal T\times \mathcal T$ orthogonal matrix $O_1$. For that we examine each factor in (ref). Our aim is to show that they smoothly depend on $O_1$ and are uniformly bounded (in spectral norm). First, the matrix $W_1$ itself is $X_1=B_1(1+D_1)^{-1}$ extended to $(\mathcal T-N)\times (\mathcal T-N)$ matrix in a simple deterministic way. $B_1$ is a submatrix of the orthogonal matrix $O_1$. Hence, its spectral norm is at most $1$ and it depends on $O_1$ in a continuous way. The fact that $(1+D_1)^{-1}$ has a bounded spectral norm and continuously depends on $O_1$ was established in the proof of Lemma (ref). Second, let us look at the $N\times N$ (symmetric) matrix $G_1=X_1^* X_1= (1+D_1^*)^{-1} B_1^* B_1(1+D_1)^{-1}$. The previous paragraph implies that $G_1$ continuously depends on $O_1$ and that its spectral norm is bounded. We would like to show that eigenvalues of $G_1$ are bounded away from $0$, i.e.\ that there exists a constant $c>0$, such that with probability tending to $1$ as $N\to\infty$ all eigenvalue of $G_1$ are larger than $c$. Since the spectral norm of $D_1$ is at most $1$ (because $D_1$ is a submatrix of an orthogonal matrix), it suffices to show that the eigenvalues of $B_1^* B_1$ are bounded away from $0$. Since $B_1$ is a $(\mathcal T-N)\times N$ submatrix of uniformly random $\mathcal T\times \mathcal T$ matrix, the law of $\Lambda=B_1^* B_1$ is explicit. It has density (see, e.g., forrest): \begin{equation} \det \Lambda^{\frac{\mathcal T}{2}-N-1/2} \det(I_N-\Lambda)^{-1/2}\, d \Lambda, \qquad 0< \Lambda< I_N. \end{equation} This is a particular case of the Jacobi ensemble of Definition (ref) and we can use the large $N$ asymptotic of the latter recorded in Theorem (ref), which implies that the eigenvalues of $\Lambda$ are bounded away from $0$ as $N\to\infty$. Note that we need $G_1^{-1/2}$ for (ref). Since the eigenvalues of $G_1$ are bounded away from $0$ and $\infty$ and $G_1$ continuously depends on $O_1$, the same holds for $G_1^{-1}$. Clearly, $G_1^{-1/2}$ is then also bounded. As for the continuous dependence on $O_1$, we can rescale $G_1^{-1}$, so that its spectrum belongs to $[c_0,1]$ interval for some $c_0>0$ not depending on $N$, and then use Taylor series expansion of the square root: $$ \sqrt{x}=\sqrt{1+ (x-1)}= 1 + \frac{x-1}{2}- \frac{1}{4} (x-1)^2+\dots $$ to deduce the continuity. Next, the matrix $Q_1$ is obtained by multiplying $G_1^{-1}$ by $Z_1$. Since $Z_1$ is bounded and continuously depends on $O_1$ (as a submatrix of $X_1$, for which this is already proven) and we already proved the same for $G_1^{-1}$, we conclude that $Q_1$ is bounded and uniformly depends on $O_1$. Finally, we deal with $H_1$. Due to its formula recorded in (ref) and the results of the previous three paragraphs, $H_1$ continuously depends on $O_1$. It remains to show that the spectrum of $H_1$ belongs to a segment of the form $[c_1,1]$, $c_1>0$ with probability tending to $1$ as $N\to\infty$, since this would imply that $H_1^{-1/2}$ is bounded and continuously depends on $O_1$. Let us instead deal with $I_M-H_1=Z_1 (X_1^* X_1)^{-1} Z_1^*$. We claim that the distribution of this matrix is yet again given by an instance of the Jacobi ensemble. In order to see that we recall that the law of $X_1$ was computed in Remark (ref). The exact form of the answer is not important, but it is crucial to notice that the density of $X_1$ depends only on $N\times N$ positive definite matrix $X_1^* X_1$. In other words, conditional on the value of $X_1^* X_1$ the distribution of $X_1$ is uniform (on the set of fixed $X_1^* X_1$). Hence, also the distribution of $X_1 (X_1^* X_1)^{-1/2}$ is uniform. The latter can be represented as an arbitrary $(\mathcal T-N)\times N$ matrix $F$ satisfying $F^* F=I_N$. The latter set of matrices does not depend on the choice of $X_1^* X_1$ and we conclude that $F=X_1 (X_1^* X_1)^{-1/2}$ is a uniformly random matrix chosen from the set of matrices satisfying $F^* F=I_N$. This is the same as the first $N$ columns of uniformly random $(\mathcal T-N)\times(\mathcal T-N)$ matrix. Further, $Z_1 (X_1^* X_1)^{-1/2}$ is $(\mathcal T-2N)\times N$ submatrix of $X_1(X_1^* X_1)^{-1/2}$ and we conclude that the distribution of $Z_1 (X_1^* X_1)^{-1/2}$ coincides with that of $(\mathcal T-2N)\times N$ submatrix of a uniformly random $(\mathcal T-N)\times(\mathcal T-N)$ matrix. Note that under our assumptions $\mathcal T-2N\ge N$. Hence the distribution of $N\times N$ matrix $\Theta=\bigl(Z_1 (X_1^* X_1)^{-1/2}\bigr)^*\bigl(Z_1 (X_1^* X_1)^{-1/2}\bigr) $ is explicitly given by (see, e.g., forrest): \end{proof}
proof[Proof of Lemma (ref)] We will be proving a slightly different statement, in which $\tilde {\mathcal V}_0$ is the span of the first (rather than last) coordinate vectors. The desired statement of the theorem is then obtained by replacing $ U_1\mapsto U_1 \cdot \mathfrak S$, and $U_2\mapsto U_2 \cdot \mathfrak S$, where $\mathfrak S$ is the (orthogonal matrix) which swaps $i$th and $(\mathcal T-N+1-i)$th basis vectors for $i=1,2,\dots,\mathcal T-N$. We know that the matrices $B_1$ and $B_2$ are close to each other and our aim is to show that the orthonormal bases of $\langle B_1\rangle =\langle B_1 (I_N+D_1)^{-1}\rangle$ and its orthogonal complement, and $\langle B_2\rangle =\langle B_2 (I_N+D_2)^{-1}\rangle$ and its orthogonal complement can be chosen to also be close to each other. For that we need to produce some formulas for these bases, which is what we do in the rest of the proof. The delicacy of this argument stems from the fact that given a space, in general, there might be no continuous way to produce an orthogonal matrix, such that the space is spanned by its first columns. (For instance, by the hairy ball theorem one can not continuously complement a unit vector in $3$--dimensional space to an orthonormal basis.) Hence, we need to be more careful. We start by replacing $B_1$ with $$X_1:= B_1 (I_N+D_1)^{-1} \bigl((I_N+D_1^*)^{-1} B_1^* B_1 (I_N+D_1)^{-1}\bigr)^{-1/2}$$ and replacing $B_2$ with $$ X_2:= B_2 (I_N+D_2)^{-1} \bigl((I_N+D_2^*)^{-1} B_2^* B_2 (I_N+D_1)^{-1}\bigr)^{-1/2}. $$ Clearly, $\langle B_1\rangle=\langle X_1\rangle$ and $\langle B_2\rangle=\langle X_2\rangle$. The advantage of $X_1$ and $X_2$ is that their columns are orthonormal. Indeed, \begin{multline*} X_1^* X_1=\bigl((I_N+D_1^*)^{-1} B_1^* B_1 (I_N+D_1)^{-1}\bigr)^{-1/2}(I_N+D_1^*)^{-1} B_1^* B_1 (I_N+D_1)^{-1}\\ \times \bigl((I_N+D_1^*)^{-1} B_1^* B_1 (I_N+D_1)^{-1}\bigr)^{-1/2}=I_N \end{multline*} and similarly for $X_2$. {\bf Claim.} $X_1$ and $X_2$ are asymptotically close to each other: \begin{equation} \lim_{N\to\infty} {\rm Prob} \left( \|X_1-X_2\|_2< \frac{1}{N^{1-\varepsilon}} \right)=1. \end{equation} Note that $X_1$ and $X_2$ are built out of $O_1$ and $O_2$ with operations of addition, multiplication, inversion, and square root. The first one is Lipschitz in spectral norm, the second one is Lipschitz as long as the factors are uniformly bounded, and for the last two we additionally need the singular values of the factors to be uniformly bounded away from $0$ uniformly\footnote{For the square root operation on positive-definite matrices $x\mapsto \sqrt{x}$ we can first rescale $x$ so that its spectrum belongs to $[c_0,1]$ segment for some $c_0>0$ and then use Taylor series expansion of the square root: $ \sqrt{x}=\sqrt{1+ (x-1)}= 1 + \frac{x-1}{2}- \frac{1}{4} (x-1)^2+\dots $ to deduce the Lipschitz property. }. We already explained in the proof of Lemma (ref) that $B_1$ has spectral norm at most $1$ and that $(I_N+D_1)$ (and hence also its inverse and its transpose) has singular values bounded away from $0$ and $\infty$. Hence, it remains only to deal with $B_1^* B_1$ in the definition of $X_1$. Since $B_1$ is a $(\mathcal T-N)\times N$ submatrix of uniformly random $\mathcal T\times \mathcal T$ matrix, the law of $\Lambda=B_1^* B_1$ is explicit. It has density (see, e.g., forrest) proportional to: \begin{equation} \det \Lambda^{\frac{\mathcal T}{2}-N-1/2} \det(I_N-\Lambda)^{-1/2}\, d \Lambda, \qquad 0< \Lambda< I_N. \end{equation} This is a particular case of the Jacobi ensemble of Definition (ref) and we can use the large $N$ asymptotic of the latter recorded in Proposition (ref), which implies that the eigenvalues of $\Lambda$ are bounded away from $0$ as $N\to\infty$. The claim is proven. Next, we produce the desired orthogonal matrix $U_1$ by the Gramm-Schmidt orthogonalization procedure: letting $e_k$ be the $k$--th coordinate vector in $(\mathcal T-N)$--dimensional space, and $X_1^k$ be the $k$--th column of $X_1$, we start from $(\mathcal T-N)$ vectors $$X_1^1,X_1^2,\dots, X_1^N,\, e_{N+1},e_{N+2},\dots, e_{\mathcal T-N}$$ and orthogonalize them. This is a valid procedure, since the Gramm matrix of the above vectors is almost surely non-degenerate (this is equivalent to the non-degeneracy of the top $N\times N$ corner of $X_1$, which is true due to absolute continuity of the distribution of this corner with respect to the Lebesgue measure on $N\times N$ matrices that can be deduced from Remark (ref)). We set the columns of $U_1$ to be the vectors from the orthogonalization procedure. Since the vectors are orthonormal, $U_1$ is orthogonal. Note that since the columns of $X_1$ are orthonormal, the first $N$ steps of the orthogonalization procedure are trivial and the first $N$ columns of $U_1$ are $X_1^1,X_1^2,\dots, X_1^N$. In particular, these $N$ columns span $\langle B_1\rangle$, as desired. We proceed to the construction of $U_2$. It is tempting to do exactly the same procedure (with all indices $1$ replaced by indices $2$), but that is not going to work: the problem is that while the top $N\times N$ corner of $X_1$ was almost surely non-degenerate, but it can have singular values arbitrary close to $0$. Eventually, this leads to unstability of the orthogonalization procedure and, hence, there is no way to guarantee that the results of orthogonalization for $X_1$ and $X_2$ are close to each other. Therefore, we proceed in a different way. Set $F:= U_1^{-1} X_2$. Because the first $N$ columns of $U_1$ are $X_1$, we have $$ U_1^{-1} X_1={I_{N}\choose 0_{(\mathcal T-2N)\times N}}, $$ where $0_{(\mathcal T-2N)\times N}$ stays for the $(\mathcal T-2N)\times N$ filled with $0$ matrix elements. Hence, since $X_1$ and $X_2$ were close, we have \begin{equation} \lim_{N\to\infty} {\rm Prob} \left( \left\|F-{ I_{N}\choose 0_{(\mathcal T-2N)\times N}}\right\|_2< \frac{1}{N^{1-\varepsilon}} \right)=1. \end{equation} Let $F^k$, $k=1,\dots,N$, denote the columns of $F$ and consider $\mathcal T-N$ vectors $$ F^1,F^2,\dots,F^N,\, e_{N+1},e_{N+2},\dots,e_{\mathcal T-N}. $$ We are going to orthogonalize these vectors. The advantage over the procedure we used for $X_1$ is that now the top $N\times N$ submatrix of $F$ is close to identity, which is going to make the orthogonalization procedure well-behaved. In order to make the orthogonalization procedure explicit, we are going to use a block version of the Cholesky decomposition. For that set $M=\mathcal T-2N$ and write $F$ in the block form according to the splitting $\mathcal T-N= N+M$: $$ F={Y_2\choose Z_2}. $$ Let $W_2$ denote the $(\mathcal T-N)\times(\mathcal T-N)$ matrix written in the $N+M$ block form as $$ W_2=\begin{pmatrix} Y_2&0 \\ Z_2& I_M\end{pmatrix}. $$ We would like to perform orthogonalization of the columns of $W_2$. For that we first compute \begin{equation} W_2^*W_2=\begin{pmatrix} Y_2^* Y_2+Z_2^*Z_2 & Z_2^*\\ Z_2& I_M \end{pmatrix}. \end{equation} We further would like to represent $W_2^* W_2$ as \begin{equation} W_2^* W_2= \begin{pmatrix} I_N& 0 \\ Q_2 & I_M\end{pmatrix} \begin{pmatrix} G_2 & 0\\ 0 & H_2\end{pmatrix} \begin{pmatrix} I_N& Q_2^* \\ 0 & I_M\end{pmatrix}=\begin{pmatrix} G_2& G_2Q_2^*\\ Q_2 G_2 & Q_2 G_2 Q_2^* + H_2\end{pmatrix}. \end{equation} Comparing with (ref) we conclude that \begin{equation} G_2= Y_2^* Y_2+Z_2^*Z_2=F^* F, \quad Q_2= Z_2 (F^* F)^{-1}, \quad H_2= I_M- Z_2 (F^* F)^{-1} Z_2^*. \end{equation} Since the spectral norm of a submartix is at most the spectral norm of the matrix, (ref) implies that \begin{equation} \lim_{N\to\infty} {\rm Prob} \left( \left\|Y_2-I_{N}\right\|_2< \frac{1}{N^{1-\varepsilon}} \right)=1, \qquad \lim_{N\to\infty} {\rm Prob} \left( \left\|Z_2-0_{M\times N}\right\|_2< \frac{1}{N^{1-\varepsilon}} \right)=1. \end{equation} Therefore, $W_2$ is close to $I_{M+N}$, $G_2$ is close to $I_N$, $Q_2$ is close to $0_{N\times M}$, $H_2$ is close to $I_{M}$. Note that $G_2$ and $H_2$ are positive-definite symmetric matrices, hence, they have well-defined square roots. In addition, $$ \begin{pmatrix} I_N& Q_2^* \\ 0 & I_M\end{pmatrix}^{-1}= \begin{pmatrix} I_N& -Q_2^* \\ 0 & I_M\end{pmatrix}. $$ The goal of all these manipulations with matrices is to define \begin{equation} \tilde U_2=W_2 \cdot \begin{pmatrix} I_N& -Q_2^* \\ 0 & I_M\end{pmatrix} \cdot \begin{pmatrix} G_2^{-1/2} & 0\\ 0 & H_2^{-1/2}\end{pmatrix}. \end{equation} The two key properties of $\tilde U_2$ are: \begin{itemize} • The span of the first $N$ columns of $\tilde U_2$ coincides with $\langle F\rangle$. • $\tilde U_2$ is orthogonal. Indeed, using (ref) we have $$ \tilde U_2 \tilde U_2^*= W_2 \begin{pmatrix} I_N& -Q_2^* \\ 0 & I_M\end{pmatrix} \begin{pmatrix} G_2^{-1} & 0\\ 0 & H_2^{-1}\end{pmatrix} \begin{pmatrix} I_N& 0\\ -Q_2 & I_M\end{pmatrix} W_2^* = W_2 ( W_2^* W_2)^{-1} W_2^*=I_{\mathcal T-N}. $$ \end{itemize} Hence, we can finally set $$ U_2:= U_1 \cdot \tilde U_2, $$ We have $$ U_2 \tilde {\mathcal V}_0=\langle U_1 F \rangle=\langle X_2\rangle=\langle B_2\rangle ,$$ as desired. It remains to show that the matrix $\tilde U_2$ is very close to identity, as this would imply that $U_2$ is close to $U_1$. For that we consider each factor in (ref) and see that they are close to identical matrices by (ref). Hence, $$ \lim_{N\to\infty} {\rm Prob} \left( \left\|\tilde U_2-I_{N+M}\right\|_2< \frac{1}{N^{1-\varepsilon}} \right)=1, $$ as desired.
proof[Proof of Theorem (ref)] We start by explicitly constructing the desired coupling. For the Jacobi ensemble we use the realization of Theorem (ref) and for the matrix of the Johansen test we use the realization of Proposition (ref). We set $\mathcal T=T-1$ to match the notations and it remains to couple $O$ of Theorem (ref) with $\tilde L=-\tilde O L_V\tilde O^*$ of Proposition (ref). The eigenvalues of $L_V$ are all roots of unity of order $T$ different from $1$. In the complex case $\beta=2$ we can diagonalize $L_V$ to turn it into $\mathcal T\times \mathcal T = (T-1)\times (T-1)$ diagonal matrix with the roots of unity on the diagonal. In the real case $\beta=1$, the matrix $L_V$ should be block-diagonalized (with blocks of size $2$ and one additional block of size $1$ corresponding to eigenvalue $-1$ if $\mathcal T$ is even): the pair of complex conjugate roots of unity $\omega $ and $\bar \omega$ gives rise to the $2\times 2$ matrix of rotation by the angle $|\arg(\omega)|$. Let us denote by $D$ the resulting (block) diagonal matrix multiplied by $-1$. In order to avoid ambiguity about the order of eigenvalues, we assume that the blocks correspond to the increasing order of $|\arg(-\omega)|$, i.e., the top-left $2\times 2$ corner of $D$ corresponds to the pair of the closest to $1$ eigenvalues of $D$. The eigenvalues of $O$ also lie on the unit circle and if $\beta=1$, then they come in complex-conjugate pairs. Hence, $O$ can be similarly block-diagonalized (we do not need to multiply by $-1$ this time) and we denote through $D^{\text{rand}}$ the result. The distinction with $L_V$ is that the eigenvalues are random and so is $D^{\text{rand}}$. The law of the eigenvalues of $O$ is explicitly known in the random-matrix literature. Both for $\beta=1$ and $\beta=2$ they form a determinantal point process on the unit circle with explicit kernel. The repulsion between the eigenvalues leads to them being very close to evenly spaced as $T\to\infty$. We summarize this property in the following statement (which is a manifestation of a more general rigidity of eigenvalues, see, e.g., ErdosYau), whose proof can be found in MeckesMeckes. {\bf Claim.} There exist constants $c_1(\beta),c_2(\beta)>0$, such that for $\beta=1,2$, every $\delta>0$, there exists $\mathcal T_0(\delta)$ and for every $\mathcal T>\mathcal T_0(\delta)$ we have \footnote{All the constants can be made explicit, following MeckesMeckes.} \begin{equation} \mathrm{Prob}\left(\max_{1\le i,j<\mathcal T} \bigl| D-D^{rand}\bigr|_{ij} > \frac{1}{\mathcal T^{1-\delta}}\right) < c_1(\beta) \cdot \mathcal T \cdot \exp\left( - c_2(\beta) \frac{\mathcal T^{2\delta}}{\log \mathcal T} \right). \end{equation} We remark that since $D$ and $D^{\text{rand}}$ are block-diagonal, the bound on the maximum matrix element of their difference is equivalent to a similar bound for any other norm, e.g., for the spectral norm, which we used in Proposition (ref). We now choose another $\mathcal T\times \mathcal T$ uniformly-random orthogonal (or unitary if $\beta=2$) matrix $O_2$ (independent from the rest), replace $-\tilde O L_V \tilde O^*$ with $O_2 D O_2^*$ and replace $O$ with $O_2 D^{\text{rand}} O_2^*$. The invariance of the uniform measure on the orthogonal group $SO(N)$ (or on the unitary group $U(N)$ if $\beta=2$) with respect to right/left multiplications, implies the distributional identities: $$ -\tilde O L_V \tilde O^* \stackrel{d}{=} O_2 D O_2^*,\qquad O\stackrel{d}{=} O_2 D^{\text{rand}} O_2^*. $$ The right-hand sides of the identities provide the desired coupling and (ref) implies that these two random matrices are close to each other as $\mathcal T\to\infty$. It now remains to apply Proposition (ref) (see also Remark (ref)) with the first matrix being $O_2 D^{\text{rand}} O_2^*$ and the second matrix being $O_2 D O_2^*$.

Small rank perturbations

In this section we prove Theorem (ref) by combining Theorem (ref) with Proposition (ref) and general statements about small rank perturbations. The key step of the proof is the following observation:

theoremLet $R_i$, $i=0,k$ be as in Section (ref) for $X_t$ solving Eq. (ref) and let $\tilde R_{i}$, $i=0,k$ be as in Section (ref) under $\widehat H_0$ for $X_t$ solving Eq. (ref). Suppose that $X_0$ and the noises $\varepsilon_t$ used in the constructions of $R_{i}$ and $\tilde R_{i}$ are the same. Introduce $T\times T$ projection matrices: \begin{equation} P_0= R_0^* (R_0 R_0^*)^{-1} R_0, \quad P_k= R_k^* (R_k R_k^*)^{-1} R_k, \quad \tilde P_0=\tilde R_0^* (\tilde R_0 \tilde R_0^*)^{-1} \tilde R_0, \quad \tilde P_k= \tilde R_k^* (\tilde R_k \tilde R_k^*)^{-1} \tilde R_k. \end{equation} Then under the assumptions (ref), (ref) of Theorem (ref) we have \begin{equation} \lim_{N\to\infty} \frac{1}{N} \mathrm{rank}\left( P_0 P_k P_0-\tilde P_0 \tilde P_k \tilde P_0 \right)=0. \end{equation}
proofThroughout the proof we assume that the matrices $R_i R_i^*$ and $\tilde R_i \tilde R_i^*$ are invertible. In principle, invertibility might fail for some $N$: in such situation we can still use Moore–Penrose inverse in order for the statements to make sense, and we are not going to detail this. In the following argument we use various properties of ranks: \begin{itemize} • If a matrix $A$ differs from a matrix $B$ only in $\mathfrak r$ columns, then $\mathrm{rank}(A-B)\le \mathfrak r$; • $\mathrm{rank}(C A - CB)\le \mathrm{rank}(A-B)$; • $\mathrm{rank}(A+B)\le \mathrm{rank}(A) + \mathrm{rank}(B)$; • If matrices $A$ and $B$ are invertible, then $\mathrm{rank}(A^{-1}-B^{-1})=\mathrm{rank} (A-B)$. \end{itemize} We refer to the time series defined by (ref) as $X_t$ and to the time series defined by (ref) as $\mathcal X_t$. We form two $N\times T$ matrix $X$ and $\mathcal X$ with columns $X_t$ and $\mathcal X_t$, $t=1,\dots,T$, respectively. Our first task is to show that $\tfrac{1}{N}\mathrm{rank} (X-\mathcal X)\to 0$ as $N\to\infty$. For that we subtract (ref) from (ref) to get: \begin{equation} \Delta X_t - \Delta \mathcal X_t = \Pi X_{t-k}+\sum\limits_{i=1}^{k-1}\Gamma_i\Delta X_{t-i}+\Phi D_t-\mu, \quad t=1,2,\dots,T. \end{equation} In the matrix form, (ref) represents the $N\times T$ matrix $\Delta(X-\mathcal X)$ with columns $\Delta X_t - \Delta \mathcal X_t$ as a sum of $k+2$ low rank matrices, with the total rank (coming from the right-hand side of (ref)) at most \begin{equation} \mathrm{rank}(\Pi)+\sum_{i=1}^{k-1} \mathrm{rank}(\Gamma_i)+d_D+1. \end{equation} The matrix $X-\mathcal X$ is obtained from $\Delta(X-\mathcal X)$ by multiplication by the summation matrix $$ \Phi=\begin{pmatrix} 1&0&0&\dots&0\\ 1& 1 &0&\dots &0\\ 1& 1& 1 &\dots & 0 \\ && \ddots \\ 1&1 &\dots & 1 &1.\end{pmatrix} $$ Hence, the rank of $X-\mathcal X$ is at most (ref) and $\tfrac{1}{N}\mathrm{rank} (X-\mathcal X)\to 0$ by assumption (ref) of Theorem (ref). Next, we should take into account that the procedures for constructing $R_0$, $R_k$ from $X$ and $\tilde R_0$, $\tilde R_k$ from $\mathcal X$ are slightly different. Namely, the latter involves cyclic shifts of indices, rather than usual shifts, involves regressing over only constants, rather than $d_D$ deterministic terms $D_t$, and finally involves detrending (ref). However, cyclic shifts only affect the first $k-1$ indices $t$ and, hence, lead to bounded difference in ranks, and similarly for detrending. Regressing on $d_D$ terms leads to another $O(d_D)$ difference in ranks, which is negligible after division by $N$ in the limit $N\to\infty$ by (ref). The conclusion is that $R_0$, $R_k$ from one side and $\tilde R_0$, $\tilde R_k$ on the the other side are constructed from two finite sets of matrices, which differ by small rank perturbations, by finitely many of operations of addition, multiplication, and inversion. Each of these operations preserves the smallness of the rank of perturbations and, hence, \begin{equation} \lim_{N\to\infty} \frac{1}{N} \mathrm{rank}(R_0-\tilde R_0)=0,\quad \lim_{N\to\infty} \frac{1}{N} \mathrm{rank}(R_k-\tilde R_k)=0. \end{equation} Since $P_0 P_k P_0$ and $\tilde P_0 \tilde P_k \tilde P_0$ are obtained from $R_0$, $R_k$ and $\tilde R_0$, $\tilde R_k$, respectively, by the same algebraic operations, (ref) follows from (ref).
proof[Proof of Theorem (ref)] Let $\lambda_1\ge \lambda_2\ge \dots\ge \lambda_N$ denote the eigenvalues of $\mathcal C =S_{kk}^{-1} S_{k0} S_{00}^{-1} S_{0k}$ and let $\tilde \lambda_1\ge \tilde \lambda_2\ge \dots\ge \tilde \lambda_N$ denote the eigenvalues of $\tilde{\mathcal C}=\tilde S_{kk}^{-1} \tilde S_{k0} \tilde S_{00}^{-1} \tilde S_{0k}$. Combining Theorem (ref) with Proposition (ref) we conclude that the empirical measure of $\tilde \lambda_i$ converges: \begin{equation} \lim_{N\to\infty} \frac{1}{N}\sum_{i=1}^N \delta_{\tilde \lambda_i} = \mu_{2,\tau-k}. \end{equation} We would like to show that $\tilde \lambda_i$ can be replaced by $\lambda_i$ in (ref). Note that although the spectra of matrices $\mathcal C$ and $\tilde{\mathcal C}$ are real, but these matrices are not symmetric. Similarly to (ref), $\frac{1}{N}\mathrm{rank}(\mathcal C-\tilde{\mathcal C})\to 0$, however, in general, for non-symmetric matrices even rank $1$ perturbations can lead to significant changes in the spectrum. Hence, we need to be more careful and symmetrize $\mathcal C$ and $\tilde {\mathcal C}$ by using projectors as in (ref). Note that for any two $K\times M$ matrices $A$ and $B$, the non-zero eigenvalues of $A B^*$ and of $B^* A$ coincide. Recalling that $S_{ij}=R_i R_j^*$ and using the notations (ref), we conclude that the eigenvalues of $\mathcal C$ are the same as $N$ largest eigenvalues of $P_k P_0$. Since $P_0^2=P_0$, they are also the same as $N$ largest eigenvalues of $P_k P_0 P_0$ and the same as those of $P_0 P_k P_0$. Similarly, the eigenvalues of $\tilde{\mathcal C}$ are the same as $N$ largest eigenvalues of $\tilde P_0 \tilde P_k \tilde P_0$. Denote $\mathfrak r=\mathrm{rank}(P_0 P_k P_0-\tilde P_0 \tilde P_k \tilde P_0)$. All the involved matrices are symmetric and we can use classical inequalities between eigenvalues of a Hermitian matrix $A$ and Hermitian matrix $A+B$, where $B$ has rank $\mathfrak r$, see, e.g., Horn_Johnson. In our situation the inequalities read \begin{equation} \lambda_{m-\mathfrak r}\ge \tilde \lambda_m\ge \lambda_{m+\mathfrak r}, \quad 1\le m-\mathfrak r\le m+\mathfrak r\le N. \end{equation} Therefore, for any points $0<a<b<1$, $$ \left|\#\{1\le i \le N \mid \lambda_i\in [a,b]\}-\#\{1\le i \le N \mid \tilde \lambda_i\in [a,b]\}\right|\le 2\mathfrak r. $$ Hence, (ref) implies \begin{equation} \lim_{N\to\infty} \frac{1}{N}\sum_{i=1}^N \delta_{\lambda_i}= \mu_{2,\tau-k}.\qedhere \end{equation}

\@startsection{section}{1} \z@{1.0\linespacing\@plus\linespacing}{0.5\linespacing} {\normalfont}{Appendix 2. Discussion of asymptotics under $H_0$ and $H_1$}

The goal of this section is to discuss the asymptotics of the test statistic $LR_{N,T}(r)$ of (ref) under various data generating processes (ref) generalizing $\widehat H_0$ of (ref) and Theorem (ref).

Beyond $\widehat H_0$

We start by working under a slightly more restrictive assumption than (ref) of Theorem (ref). Let $\|A\|_2$ be the spectral norm of a matrix $A$.

conjectureFix some $k\in\mathbb{N},\,C>0$. Suppose that the data generating process is \begin{equation} \Delta X_t=\mu+\sum\limits_{i=1}^{k-1}\Gamma_i\Delta X_{t-i}+\varepsilon_t,\qquad t=1,\ldots,T,\qquad\qquad where \end{equation} \begin{enumerate} • $\varepsilon_t\thicksim\text{i.i.d.}~\mathcal{N}(0,\Lambda)$ and the covariance matrix $\Lambda$ satisfies $\|\Lambda\|_2<C$ and $\|\Lambda^{-1}\|_2<C$; • $\|\Gamma_i\|_2<C$ and $\mathrm{rank}(\Gamma_i)<C$ for all $1\le i \le k-1$; • All roots of the following characteristic equation (ref) satisfy\footnote{This guarantees that $\Delta X_t$ is $I(0)$ process, which is a standard assumption in the cointegration literature.} $|z|>1+C^{-1}$: \begin{equation} \det\left(I_N-\sum_{i=1}^{k-1} \Gamma_i z^i\right)=0; \end{equation} • $\|\Gamma_j \Delta X_{1-i}\|_2\le C$ and $\|\Gamma_j \mu\|\le C$ for all $1\le i,j \le k-1$. \end{enumerate} Then as $T,N\to\infty$ in such a way that $\frac{T}{N}\in[k+1+C^{-1},C]$, the conclusion of Theorem (ref) continues to hold with the same $c_1(N,T)$ and $c_2(N,T)$: \begin{equation} \frac{\sum_{i=1}^{r} \ln(1-\tilde{\lambda}_i)- r \cdot c_1(N,T)}{ N^{-2/3} c_2(N,T)} \, \xrightarrow[T,N\to\infty]{d} \sum_{i=1}^r \mathfrak a_i. \end{equation}

We do not expect the conditions in Conjecture (ref) to be optimal. For instance, the Gaussianity assumption can likely be relaxed, as the simulations of BG indicate, and it is plausible that $\mathrm{rank}(\Gamma_i)<C$ condition can be replaced with slow growth of $\mathrm{rank}(\Gamma_i)$, as in Theorem (ref). Nevertheless, we wanted to record Conjecture (ref) in the present form, as a precise statement to be addressed in the future work. We are not giving a proof of Conjecture (ref) here: the required mathematical apparatus does not exist so far. Instead, we are going to provide a heuristic argument for its validity based on our recent results in BG_CCA in a related, yet different setting.

BG_CCA studied the following general setting: let $\mathbf U$ and $\mathbf V$ be two random linear subspaces in $S$--dimensional space with $\dim(\mathbf U)=K$, $\dim(\mathbf V)=M$ and all three numbers $K,M,S$ assumed to be growing to infinity. In addition, suppose that there are $\mathbbm q$ special vectors $\mathbf u_1,\dots,\mathbf u_{\mathbbm q}$ inside $\mathbf U$ and other $\mathbbm q$ special vectors $\mathbf v_1,\dots,\mathbf v_{\mathbbm q}$ inside $\mathbf V$, where $\mathbbm q$ is assumed to stay finite as other parameters grow. We directly observe $\mathbf U$ and $\mathbf V$, but not $\mathbf u_1,\dots,\mathbf u_{\mathbbm q}$ or $\mathbf v_1,\dots,\mathbf v_{\mathbbm q}$. Can we reconstruct $\mathbf u_1,\dots,\mathbf u_{\mathbbm q}$, $\mathbf v_1,\dots,\mathbf v_{\mathbbm q}$, or at least identify their presence by looking at the squared sample canonical correlations between $\mathbf U$ and $\mathbf V$ and corresponding vectors?

The connection to our cointegration tests comes from taking as $\mathbf U$ the space spanned by the $N$ rows of $\tilde{R}_0$, as defined after (ref), and as $\mathbf V$ the space spanned by the rows of $\tilde R_k$. The value ${\mathbbm q}$ corresponds to the cointegration rank and $\mathbf v_1,\dots,\mathbf v_{\mathbbm q}$ correspond to the cointegrating relationships.

While any finite $\mathbbm q$ can be analyzed in a similar fashion, let us stick to $\mathbbm q=1$ case for simplicity, so that we have a single vector $\mathbf u\in\mathbf U$ and another vector $\mathbf v\in\mathbf V$. The most important quantity is the sample squared correlation coefficient $r^2$ between vectors $\mathbf u$ and $\mathbf v$. It turns out that if $r^2$ is large (i.e., close to $1$, because $0\le r^2 \le 1$), then the largest canonical correlation between $\mathbf U$ and $\mathbf V$ is clearly separated from the rest (reminiscent of Figure (ref)) and the corresponding eigenvectors can be used to extract information on $\mathbf u$ and $\mathbf v$. On the other hand, if $r^2$ is small, then the histogram of the canonical correlations does not have such a spiked eigenvalue and all the information about $\mathbf u$ and $\mathbf v$ is washed out. BG_CCA proved the existence of $r^2_{\rm{critical}}\in(0,1)$ separating the above two regimes for a variety of settings for the data generating process for $\mathbf U$, $\mathbf V$, $\mathbf u$, and $\mathbf v$, see also bao2019canonical,yang2022limiting. However, the results of BG_CCA do not address the setting relevant to cointegration and further new ideas would be necessary to find the value of $r^2_{\rm{critical}}$ for cointegration or rigorously prove its existence. Nevertheless, because the cointegration testing is also based on canonical correlations, one expects that the same phenomenology is true for it and, therefore, there should be the following dichotomy:

enumerate• If the linear subspace (in $T$--dimensional space) spanned by the $N$ rows of $\tilde{R}_0$ (as defined after (ref)) has a special vector $\mathbf u$ and the linear subspace spanned by rows of $\tilde{R}_k$ has a special vector $\mathbf v$, such that the sample squared correlation coefficient between $\mathbf u$ and $\mathbf v$ is atypically large compared to correlation coefficients of other vectors (e.g., if it is close to $1$), then the histogram of all squared canonical correlations would have a spike as in Figure (ref) and we should be able to reject the null of no cointegration. • Otherwise, there would be no spikes (e.g., as in Figure (ref)) and we expect validity of asymptotics as in (ref) and (ref) consistent with the hypothesis of no cointegration.

We now present heuristics in favor of Conjecture (ref) based on this dichotomy. Some of the technical details are omitted as we try to express the key ideas instead.

proof[Heuristics for Conjecture (ref)] For simplicity of the presentation we stick to the case $k=2$, take the covariance matrix $\Lambda$ to be identical, set $\mu=0$, and let $\Gamma_1$ to be a matrix, which has $\theta$ in the upper-left corner and $0$ everywhere else. Clearly, $\mathrm{rank}(\Gamma_1)=1$ and the only root of (ref) is $1/\theta$, hence, the third condition in the statement of Conjecture (ref) turns into $|\theta|<1$. Note that if we look only at the last $(N-1)$ out of $N$ coordinates of $X_t$, then we are in the setting of Theorem (ref) and asymptotics (ref) holds. In particular, the largest canonical correlation is not separated from the rest. Hence, we only need to investigate how the addition of the special first row changes the situation. We will rely on the above dichotomy for our assessment. There are two ways how the addition of the first coordinate changes the setting compared to the situation when it did not exist (and $N$ was smaller by $1$): \begin{enumerate} • The matrices $\tilde{R}_0$ and $\tilde R_k$ have a new first row each. Hence, we should check how large is the correlation between these first rows, if they are viewed as the special vectors $\mathbf u$ and $\mathbf v$. • We projected the data orthogonally to $\tilde{Z}_{1t}$ in Step 3 of the procedure, see (ref). The $\tilde{Z}_{1t}$ matrix also has a new first row, hence, we are now decreasing the dimension by $1$ via projecting orthogonally to an additional vector. \end{enumerate} Let $y_t$, $t=1,2,\dots,T$ denote the first coordinate of $X_t$. It solves the scalar recurrence \begin{equation} \Delta y_t = \theta \Delta y_{t-1} + \xi_t, \end{equation} where $\xi_t$ is the first coordinate of $\varepsilon_t$, and therefore a Gaussian $\mathcal N(0,1)$ random variable, i.i.d.\ in time $t$. Iterating (ref), we get \begin{equation} \Delta y_t= \theta^{t}(y_0-y_{-1})+\sum_{\tau=1}^t \theta^{t-\tau} \xi_\tau , \qquad y_t=y_0 + \frac{\theta-\theta^{t+1}}{1-\theta}(y_0-y_{-1})+\sum_{\tau=1}^t \frac{1-\theta^{t+1-\tau}}{1-\theta}\xi_\tau. \end{equation} Next, we make the detrending of Step 1 in Procedure (ref) of Section (ref). As in (ref), we define \begin{multline} \tilde y_t = y_{t-1} - \frac{t-1}{T} (y_T-y_0)\\= y_0 + \frac{\theta-\theta^{t}}{1-\theta}(y_0-y_{-1})+\sum_{\tau=1}^{t-1} \frac{1-\theta^{t-\tau}}{1-\theta}\xi_\tau- \frac{t-1}{T} \left(\frac{\theta-\theta^{T+1}}{1-\theta}(y_0-y_{-1})+\sum_{\tau=1}^T \frac{1-\theta^{T+1-\tau}}{1-\theta}\xi_\tau\right). \end{multline} Recalling cyclic shifts of Step 2 in Procedure (ref), we set $$ \tilde z_{t}=\tilde y_{t-1},\quad 2\le t \le T, \qquad \tilde z_{1}=\tilde y_T. $$ The vector $\tilde z_{t}$, $1\le t\le T$, is the first row of $\tilde Z_{2t}$, $1\le t\le T$, viewed as an $N\times T$ matrix. Simultaneously, the vector $\Delta y_t$, $1\le t\le T$, is the first row of $\tilde Z_{0t}$. Recalling Step 3 in Procedure (ref) and its restatement in terms of projectors at the end of Section (ref), we analyze the sample correlation coefficients between the vectors $\tilde z_t$ and $\Delta y_t$ projected orthogonally to the constant vector and $\tilde Z_{1t}$. The first row of $\tilde Z_{1t}$ is $\Delta y_{t-1}$ (with cyclic shift of index, so that the $t=1$ coordinate is actually $\Delta y_T$). Hence, we are allowed to subtract multiples of the constant vector and multiples of $\Delta y_{t-1}$ from either of $\tilde z_t$ or $\Delta y_t$ without changing the desired sample correlation coefficient. Therefore, subtracting multiples of constants, we replace $\tilde z_t$ with a vector whose $t$-th coordinate for $2\le t \le T$ is \begin{equation} \frac{-\theta^{t-1}-\frac{t-T/2}{T}(1-\theta^{T+1})}{1-\theta}(y_0-y_{-1})+\sum_{\tau=1}^{t-2} \frac{1-\theta^{t-\tau-1}}{1-\theta}\xi_\tau- \frac{t-2}{T} \left(\sum_{\tau=1}^T \frac{1-\theta^{T+1-\tau}}{1-\theta}\xi_\tau\right), \end{equation} and the first coordinate is given by a similar expression, which we omit. By subtracting $\theta \Delta y_{t-1}$, we replace $\Delta y_t$ with a vector whose $t$-th coordinate for $2\le t \le T$ is simply $\xi_t$ {\bf Claim.} The squared sample correlation coefficient between the vectors (ref) and $\xi_t$ tends to $0$ as $T\to\infty$. The claim follows from three computations: \begin{enumerate} • The scalar product between these two vectors grows as $O(T)$. • The scalar product of (ref) with itself is of order $T^2$. • The scalar product of the vector $\xi_t$, $1\le t\le T$, with itself is of order $T$. \end{enumerate} Each computation is a straightforward application of the Law of Large Numbers and Central Limit Theorem for i.i.d.\ random variables and we leave the details to the reader. We only note that the condition $|\theta|<1$ and boundness of $y_0-y_{-1}$ are both used here. Together, these computations imply that the sample correlation coefficient is of order $O(T^{-1})$, thus proving the claim. In order to further pass from the two vectors in the claim to the first rows of the two matrices $\tilde{R}_0$ and $\tilde R_k$, we need to project orthogonally to the constant vector, to the vector $\Delta y_{t-1}$ (which is the first row of $\tilde Z_{1t}$), and to the remaining $(N-1)$ rows of $N\times T$ matrix $\tilde Z_{1t}$, $1\le t \le T$. One can check that projecting orthogonally to the first two vectors does not change the conclusion of the claim --- this is simply because these two vectors are very close to being orthogonal to the vectors of the claim. Showing that projecting orthogonally to the last $N-1$ rows of $\tilde Z_{1t}$ preserves the conclusion of the claim is a more challenging computation, which we record in the following abstract lemma, which is proven later. \begin{lemma} Suppose that as $T\to\infty$ we are given a $T$--dimensional space and the following random data inside it: two vectors $\mathbf a$ and $\mathbf b$, such that the angle\footnote{Note that the cosine of the angle between $\mathbf a$ and $\mathbf b$ matches the sample correlation coefficient $\frac{\langle \mathbf a,\mathbf b\rangle}{\sqrt{\langle \mathbf a,\mathbf a\rangle \langle \mathbf b,\mathbf b\rangle}}$.} between them tends to $\pi/2$ as $T\to\infty$, and a linear subspace $\mathcal V$ of dimension $M$. We assume that the ratio $M/T$ tends to a number $\alpha$ such that $0<\alpha<1$ and that $\mathcal V$ is uniformly distributed among all subspaces of dimension $M$ and is independent of $\mathbf a$ and $\mathbf b$. Then the angle between orthogonal projections of $\mathbf a$ and $\mathbf b$ onto $\mathcal V$ tends to $\pi/2$ as $T\to\infty$. \end{lemma} The lemma is applicable in our situation, because the last $N-1$ rows of $\tilde Z_{1t}$, $1\le t \le T$, are formed by $(N-1)T$ i.i.d. $\mathcal N(0,1)$ random variables, independent from $y_t$. Because of the invariance of the Gaussian law with identical covariance matrix under orthogonal transformations, the distribution of the space spanned by these $N-1$ rows is invariant under orthogonal transformations, which is the same as being uniformly distributed. The overall conclusion from the discussion is that the sample correlation coefficient between the new first rows of the matrices $\tilde{R}_0$ and $\tilde R_k$ tends to $0$ as $N,T\to\infty$. Hence, by the dichotomy, these rows can not be special vectors which cause the appearance of a spike in the histogram of eigenvalues. Therefore, we expect that (ref) holds.
remarkOne additional effect which we have not examined in the above heuristics is that the last $N-1$ rows of $\tilde Z_{0}$ and $\tilde Z_2$ matrices should also be projected orthogonally to $\Delta y_{t-1}$ (in addition to projecting orthogonally to $\tilde Z_1$ covered by the setting of Theorem (ref)). Because $\Delta y_{t-1}$ is independent from the rest and is close to being orthogonal to every other vector entering into the procedure, we do not expect this effect to significantly change the asymptotics of the canonical correlations.

We now come back to Lemma (ref).

proof[Proof of Lemma (ref)] Let $\mathcal W$ denote the two-dimensional space spanned by the vectors $\mathbf a$ and $\mathbf b$. Let us introduce canonical bases of spaces $\mathcal W$ and $\mathcal V$, see anderson1958introduction or Muirhead_book for the general introduction to canonical correlations and corresponding variables. Thus, we choose an orthonormal basis of $\mathcal W$, $\mathbf w_1,\mathbf w_2\in\mathcal W$ and an orthonormal basis of $\mathcal V$, $\mathbf v_1,\dots,\mathbf v_M\in \mathcal V$, such that $\langle \mathbf w_1, \mathbf v_1\rangle=c_1$, $\langle \mathbf w_2, \mathbf v_2 \rangle=c_2$ and all other scalar products $\langle \mathbf w_i,\mathbf v_j\rangle$ are zeros. We can assume without loss of generality that $1\ge c_1\ge c_2\ge 0$. These numbers are canonical correlations between spaces $\mathcal W$ and $\mathcal V$. Because the space $\mathcal W$ is uniformly distributed along all $M$--dimensional subspaces, the distribution of the squared correlations $(c_1^2,c_2^2)$ is explicit, it equals the distribution of eigenvalues of the Jacobi ensemble $\mathbf J(2; \frac{M-1}{2},\frac{T-M-1}{2})$, see Muirhead_book, Johnstone_Jacobi, and references therein. This means that the joint density of $(c_1^2,c_2^2)$ denoted $\rho(x,y)$ is proportional to: \begin{equation} \rho(x,y)\sim (x-y)\, x^{ \frac{M-3}{2}}\, (1-x)^{\frac{T-M-3}{2}}\, y^{ \frac{M-3}{2}}\, (1-y)^{\frac{T-M-3}{2}}. \end{equation} As $T,M\to\infty$, the density $\rho(x,y)$ is sharply concentrated around its maximum. Hence, directly computing the asymptotics of $\rho(x,y)$ we find that \begin{equation} \lim_{T\to\infty} (c_1^2, c_2^2)= \lim_{T\to\infty} \left(\frac{M}{T}, \frac{M}{T} \right)=(\alpha,\alpha). \end{equation} Let us expand $\mathbf a$ and $\mathbf b$ in $(\mathbf w_1,\mathbf w_2)$ basis: $$ \mathbf a= a_1 \mathbf w_1 + a_2 \mathbf w_2, \qquad \mathbf b=b_1\mathbf w_1+ b_2 \mathbf w_2. $$ The squared cosine of the angle between $\mathbf a$ and $\mathbf b$ is then computed as \begin{equation} \frac{ (a_1 b_1 + a_2 b_2)^2}{( a_1^2+a_2^2)(b_1^2+b_2^2)}. \end{equation} The orthogonal projections of $\mathbf a$ and $\mathbf b$ onto $\mathcal V$ are $$ \mathrm{proj}(\mathbf a)= c_1 a_1 \mathbf v_1 + c_2 a_2 \mathbf v_2, \qquad \mathrm{proj}(\mathbf b)= c_1 b_1 \mathbf v_1 + c_2 b_2 \mathbf v_2. $$ Hence, the squared cosine of the angle between two projections is \begin{equation} \frac{ (c_1^2 a_1 b_1 + c_2^2 a_2 b_2)^2}{( c_1^2 a_1^2+ c_2^2 a_2^2)(c_1^2 b_1^2+ c_2^2 b_2^2)}. \end{equation} Using (ref), it becomes clear that (ref) tends to $0$ as $T\to\infty$ whenever (ref) does.

Power

We proceed to our next computation, supplementing Conjecture (ref). This time we would like to explain what changes in the asymptotics, if the data generating process satisfies the alternative $H_1$, rather than the null-hypothesis $H_0$. For the clarity of the exposition, we only concentrate on one particular instance of $k=1$ case here and deal with the $N$-dimensional data generating process

equation[equation omitted — 124 chars of source]

$\varepsilon_t \thicksim\text{i.i.d.}~\mathcal{N}(0,\Lambda)$, $E_{11}$ is the matrix with $1$ in top-left corner and $0$s everywhere else. $\theta$ is a real parameter, we set $\beta=1+\theta$, which implies that the first coordinate of $X_t$ is a scalar process $y_t$ solving

equation[equation omitted — 121 chars of source]

Note that $\xi_t$ are i.i.d.\ $\mathcal N(0,\sigma^2)$ random variables for some constant $\sigma^2$. Because in the notations of (ref) the matrix $\Pi$ now has rank $1$, one hopes that our test statistic of Section (ref) under (ref) behaves significantly differently than under $H_0$ of Conjecture (ref). This would imply that the no-cointegration test based on Theorem (ref) has high power against the rank one alternative (ref). Let us prove that this is indeed true for large values of the ratio $T/N$.

propositionIn the notations of (ref)--(ref) assume that $|\beta|<1$ and let $\sigma^2$ be the variance of $\xi_t$. Let $\tilde \lambda_1\ge \dots \ge \tilde \lambda_N$ be eigenvalues of the matrix $\tilde{\mathcal C}$ from Section (ref) constructed using the $k=1$ procedure. For each $\epsilon>0$, we have \begin{equation} \lim_{T\to\infty} \mathrm{Prob}\left(\tilde \lambda_1 > \frac{1}{\frac{2}{1-\beta}+\frac{1+\beta}{6\sigma^2}\left(y_T-y_0\right)^2}-\epsilon \right) =1, \end{equation} where $N$ can depend on $T$ in (ref) in an arbitrary way.

As a corollary, we deduce that our cointegration test has a significant power against rank one stationary alternative, and this power tends to $1$ as $T/N\to\infty$. Here is a precise statement:

corollarySuppose that $T,N\to\infty$ in such a way that $\lim_{T,N\to\infty} \frac{T}{N}=\tau$. Fix a confidence level $0<\alpha<1$, $y_0$, $\sigma^2$, and $\beta=1+\theta$ such that $|\beta|<1$. Let $H_1$ be the data generating process (ref)--(ref). Then the $k=1$ cointegration test based on Theorem (ref) has asymptotic power against $H_1$ at least $p(\alpha,\tau)$ as $T,N\to\infty$. Here $p(\alpha,\tau)$ is a non-negative function, such that for each $\alpha$ we have $\lim_{\tau\to\infty} p(\alpha,\tau)=1$.

Our approach to the proof of Corollary (ref) gives a lower bound on $p(\alpha,\tau)$. Finding exact formulas for the power under $H_1$ of this corollary and under other alternatives remains an important open problem for the future research.

proof[Proof of Proposition (ref)] By definition, $\hat \lambda_1$ is the largest sample canonical correlations between matrices $\tilde{R}_0$ and $\tilde{R}_k$. The variational interpretation for $\hat \lambda_1$ (see, e.g., anderson1958introduction) as the maximal sample correlation coefficient between vectors in linear spans of $\tilde R_0$ and $\tilde R_1$, implies that $\hat \lambda_1$ is larger or equal than the correlation coefficient between the first rows of $\tilde R_0$ and $\tilde R_k$. In the rest of the proof we estimate this correlation coefficient and show it is satisfies the asymptotic inequality (ref). Let us compute these first rows by following the procedure of Section (ref). From Eq. (ref) we obtain $$ y_t=\beta^t y_0+\sum\limits_{i=1}^{t}\beta^{t-i}\xi_i,\qquad \Delta y_t=(\beta-1)\beta^{t-1} y_0 +(\beta-1)\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i +\xi_t. $$ Then $$ \tilde{y}_t=y_{t-1}-\frac{t-1}{T}(y_T-y_0)=\beta^{t-1} y_0+\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i-\frac{t-1}{T}(y_T-y_0). $$ After regressing on a constant we get residuals (here $\tilde R_{0t,1}$ is the first element of the column $\tilde R_{0t}$ and similarly for $\tilde R_{kt,1}$) \begin{align} \tilde R_{0t,1}&=\Delta y_t-\frac1{T}\sum\limits_{\tau=1}^T \Delta y_{\tau} \\ \notag &=y_0\left((\beta-1)\beta^{t-1}+\frac{1-\beta^T}{T}\right) +\xi_t-\frac1{T}\sum\limits_{i=1}^{T}\xi_i +(\beta-1)\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i +\frac1{T}\sum\limits_{i=1}^{T}(1-\beta^{T-i})\xi_i, \end{align} \begin{align} \tilde R_{kt,1}&=\tilde{y}_t-\frac1{T}\sum\limits_{\tau=1}^T \tilde{y}_{\tau} =y_0\left(\beta^{t-1}-\frac{1-\beta^T}{T(1-\beta)}\right) +\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i-\frac1{T}\sum\limits_{i=1}^{T}\frac{1-\beta^{T-i}}{1-\beta}\xi_i \& -\left(\frac{2t-1}{2T}-\frac1{2}\right)(y_T-y_0). \notag \end{align} In order to compute the sample correlation coefficient, we analyze three sums representing sample variances and covariance: $\frac1{T}\sum\limits_{t=1}^{T}\tilde R_{0t,1}^2,\,\frac1{T}\sum\limits_{t=1}^{T}\tilde R_{kt,1}^2,\,\frac1{T}\sum\limits_{t=1}^{T}\tilde R_{0t,1}\tilde R_{kt,1}$. Let us analyze the sums sequentially. Summing the geometric series and using the law of large numbers, we get \begin{equation}\begin{split} &\frac{y_0^2}{T}\sum\limits_{t=1}^{T}\left((\beta-1)\beta^{t-1}+\frac{1-\beta^T}{T}\right)^2\xrightarrow[T\to\infty]0, \qquad \frac1{T}\sum\limits_{t=1}^{T}\xi_t^2\xrightarrow[T\to\infty]{P}\sigma^2, \qquad \left(\frac1{T}\sum\limits_{i=1}^{T}\xi_i\right)^2\xrightarrow[T\to\infty]{P}0,\\ &\frac1{T}\sum\limits_{t=1}^{T}\left(\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i \right)^2 =\frac1{T}\sum\limits_{i=1}^{T-1}\xi_i^2\frac{1-\beta^{2(T-i)}}{1-\beta^2}+\frac2{T}\sum\limits_{t=1}^{T}\sum\limits_{i=1}^{t-2}\sum\limits_{j=i+1}^{t-1}\beta^{2(t-1)-i-j}\xi_i \xi_j \xrightarrow[T\to\infty]{P}\frac{\sigma^2}{1-\beta^2},\\ &\left(\frac1{T}\sum\limits_{i=1}^{T}(1-\beta^{T-i})\xi_i\right)^2 =\frac1{T^2}\sum\limits_{i=1}^{T}(1-\beta^{T-i})^2\xi_i^2+\frac1{T^2}\sum\limits_{i\neq j}(1-\beta^{T-i})(1-\beta^{T-j})\xi_i \xi_j\xrightarrow[T\to\infty]{P}0. \end{split}\end{equation} We also have \begin{equation} \mathbb E \left[\frac1{T}\sum\limits_{t=1}^{T}\xi_t \left(\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i\right)\right]^2=\frac1{T^2}\sum\limits_{t=1}^{T}\sigma^2\sum\limits_{i=1}^{t-1}\beta^{2(t-1-i)}\sigma^2\xrightarrow[T\to\infty]0, \end{equation} which implies that the expression under expectation tends to $0$. Using formulas (ref),(ref) and Cauchy-Schwarz inequality to show that the remaining averages of cross-products of terms in Eq. (ref) converge to $0$, we get \begin{equation} \frac1{T}\sum\limits_{t=1}^{T}\tilde R_{0t,1}^2 \xrightarrow[T\to\infty]{P}\sigma^2+(\beta-1)^2\frac{\sigma^2}{1-\beta^2}= \frac{2\sigma^2}{1+\beta}. \end{equation} To analyze $\frac1{T}\sum\limits_{t=1}^{T}\tilde R_{kt,1}^2$, we again sum geometric series and use the law of large numbers: \begin{equation} \frac{y_0^2}{T}\sum\limits_{t=1}^{T}\left(\beta^{t-1}-\frac{1-\beta^T}{T(1-\beta)}\right)^2 \xrightarrow[T\to\infty]0,\qquad \frac{(y_T-y_0)^2}{T}\sum\limits_{t=1}^{T}\left(\frac{2t-1}{2T}-\frac1{2}\right)^2 \approx_{T\to\infty} \frac{(y_T-y_0)^2}{12}, \end{equation} where the $\approx_{T\to\infty}$ sign means that the ratio of the left-hand side and the right-hand side tends to $1$ in probability. It is also straightforward to show that \begin{equation} \frac{y_T-y_0}{T}\sum\limits_{t=1}^{T}\left[\left(\frac{2t-1}{2T}-\frac1{2}\right)\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i \right] \xrightarrow[T\to\infty]{P}0. \end{equation} Using formulas (ref), (ref), second and third lines of formulas (ref), and Cauchy-Schwarz inequality to show that the remaining averages of cross-products of terms in Eq. (ref) converge to $0$, we get \begin{equation} \frac1{T}\sum\limits_{t=1}^{T}\tilde R_{kt,1}^2 \approx_{T\to\infty} \frac{\sigma^2}{1-\beta^2}+\frac1{12}\left(y_T-y_0\right)^2. \end{equation} We are left with the analysis of the covariance $\frac1{T}\sum\limits_{t=1}^{T}\tilde R_{0t,1}\tilde R_{kt,1}$, which relies on similar computations as for the two variances. The only asymptotically non-vanishing term is given by the computation of the second line in (ref): we multiply $(\beta-1)\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i$ from (ref) by $\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i$ and sum over $t$. Thus, \begin{equation} \frac1{T}\sum\limits_{t=1}^{T}\tilde R_{0t,1} \tilde R_{kt,1} \xrightarrow[T\to\infty] (\beta-1)\frac{\sigma^2}{1-\beta^2}=-\frac{\sigma^2}{1+\beta}. \end{equation} Combining (ref), (ref), (ref) together we get \begin{align} \bigl(\widehat{corr}(\tilde R_{0,1}, \tilde R_{k,1})\bigr)^2=\frac{\left(\frac1{T}\sum\limits_{t=1}^{T}\tilde R_{0t,1}\tilde R_{kt,1}\right)^2}{\left(\frac1{T}\sum\limits_{t=1}^{T}\tilde R_{0t,1}^2\right)\left(\frac1{T}\sum\limits_{t=1}^{T}R_{kt,1}^2\right)} &\approx_{T\to\infty}\frac{\frac{\sigma^4}{(1+\beta)^2}}{\frac{2\sigma^2}{1+\beta}\left[\frac{\sigma^2}{1-\beta^2}+\frac1{12}\left(y_T-y_0\right)^2\right]} \&=\frac{1}{\frac{2}{1-\beta}+\frac{1+\beta}{6\sigma^2}\left(y_T-y_0\right)^2}.\qedhere \end{align}
proof[Proof of Corollary (ref)] Cointegration test based on Theorem (ref) has the form: reject $H_0$, if \begin{equation} \frac{\sum_{i=1}^{r} \ln(1-\tilde{\lambda}_i)- r \cdot c_1(N,T)}{ N^{-2/3} c_2(N,T)} \ge \kappa, \end{equation} where $\kappa$ is a constant depending on $r$ and the confidence level $\alpha$ ($\kappa$ is found from the equation $\mathrm{Prob}(\sum_{i=1}^r \mathfrak a_i\le\kappa)=\alpha$). In order to prove Corollary (ref), we need to find the probability of the event (ref) under $H_1$ given by (ref)--(ref), and show that this probability tends to $1$ in the double limit in which we first send $T,N\to\infty$ with $\lim \frac{T}{N}=\tau$ and then send $\tau$ to infinity. Recall that $c_2(N,T)$ is negative, as given in (ref). Hence, using deterministic inequalities $\ln(1-\tilde{\lambda}_i)\le 0$ and $\ln(1-\tilde{\lambda}_1)\le-\tilde{\lambda}_1$, we conclude that the probability of the event (ref) is larger than the probability of a simpler event \begin{equation} \tilde{\lambda}_1\ge - r \cdot c_1(N,T)- \kappa N^{-2/3} c_2(N,T). \end{equation} Note that both terms in the right-hand side of (ref) are positive and the second one vanishes as $N,T\to\infty$. As for the first one, using (ref), we see that it converges to a positive constant as $N,T\to\infty$ with $\lim \frac{T}{N}= \tau$, and this constant further tends to $0$ as $\tau\to\infty$. The conclusion is that the right-hand side of (ref) tends to $0$ in our double limit. On the other hand, under $H_1$ by Proposition (ref), for any $\epsilon>0$, with probability tending to $1$ as $T\to\infty$, we have \begin{equation} \tilde \lambda_1 > \frac{1}{\frac{2}{1-\beta}+\frac{1+\beta}{6\sigma^2}\left(y_T-y_0\right)^2}-\epsilon. \end{equation} Note that $y_0$ is assumed to be bounded. Simultenously, we assumed $|\beta|<1$, and therefore, $y_T$, which due to (ref) can be expressed as $$ y_T=\beta^T y_0 + \sum_{t=1}^T \beta^{T-t} \xi_t, $$ has uniformly bounded second moment. Therefore, the denominator in (ref) does not explode. Hence, (ref) implies that (ref) holds with probability tending to $1$ in the double limit.
commentLet $\beta=1+\theta\in(-1,1)$ so that from Eq. (ref) we obtain $$ y_t=\beta^t y_0+\sum\limits_{i=1}^{t}\beta^{t-i}\xi_i,\qquad \Delta y_t=(\beta-1)\beta^{t-1} y_0 +(\beta-1)\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i +\xi_t. $$ Then $$ \tilde{y}_t=y_{t-1}-\frac{t-1}{T}(y_T-y_0)=y_0\left(\beta^{t-1}-\frac{t-1}{T}\left(\beta^T-1\right)\right)+\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i- \frac{t-1}{T}\sum\limits_{i=1}^{T}\beta^{T-i}\xi_i. $$ After regressing on a constant we get residuals \begin{equation} \begin{split} R_{0t}&=\Delta y_t-\frac1{T}\sum\limits_{\tau=1}^T \Delta y_{\tau}\\ &=y_0\left((\beta-1)\beta^{t-1}+\frac{1-\beta^T}{T}\right) +\xi_t-\frac1{T}\sum\limits_{i=1}^{T}\xi_i +(\beta-1)\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i +\frac1{T}\sum\limits_{i=1}^{T}(1-\beta^{T-i})\xi_i, \end{split}\end{equation} \begin{equation} \begin{split} R_{kt}&=\tilde{y}_t-\frac1{T}\sum\limits_{\tau=1}^T \tilde{y}_{\tau} =y_0\left(\beta^{t-1}-\frac{1-\beta^T}{T(1-\beta)}-\left(\frac{2t-1}{2T}-\frac1{2}\right)\left(\beta^T-1\right)\right)\\ &+\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i-\frac1{T(1-\beta)}\sum\limits_{i=1}^{T}(1-\beta^{T-i})\xi_i -\left(\frac{2t-1}{2T}-\frac1{2}\right)\sum\limits_{i=1}^{T}\beta^{T-i}\xi_i. \end{split}\end{equation} We need to analyze three sums: $\frac1{T}\sum\limits_{t=1}^{T}R_{0t}^2,\,\frac1{T}\sum\limits_{t=1}^{T}R_{kt}^2,\,\frac1{T}\sum\limits_{t=1}^{T}R_{0t}R_{kt}$. Let us analyze the sums sequentially. Using the formula for the sum of geometric sequence and the law of large numbers we get \begin{equation}\begin{split} &\frac1{T}\sum\limits_{t=1}^{T}\left((\beta-1)\beta^{t-1}+\frac{1-\beta^T}{T}\right)^2\xrightarrow[T\to\infty]0, \qquad \frac1{T}\sum\limits_{i=1}^{T}\xi_i^2\xrightarrow[T\to\infty]\sigma^2, \qquad \left(\frac1{T}\sum\limits_{i=1}^{T}\xi_i\right)^2\xrightarrow[T\to\infty]0,\\ &\frac1{T}\sum\limits_{t=1}^{T}\left(\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i \right)^2 =\frac1{T}\sum\limits_{i=1}^{T-1}\xi_i^2\frac{1-\beta^{2(T-i)}}{1-\beta^2}+\frac2{T}\sum\limits_{t=1}^{T}\sum\limits_{i=1}^{t-2}\sum\limits_{j=i+1}^{t-1}\beta^{2(t-1)-i-j}\xi_i \xi_j \xrightarrow[T\to\infty]\frac{\sigma^2}{1-\beta^2},\\ &\left(\frac1{T}\sum\limits_{i=1}^{T}(1-\beta^{T-i})\xi_i\right)^2 =\frac1{T^2}\sum\limits_{i=1}^{T}(1-\beta^{T-i})^2\xi_i^2+\frac1{T^2}\sum\limits_{i\neq j}(1-\beta^{T-i})(1-\beta^{T-j})\xi_i \xi_j\xrightarrow[T\to\infty]0,\\ &\mathbf{V}\left\{\frac1{T}\sum\limits_{t=1}^{T}\xi_t \left(\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i\right)\right\}=\frac1{T^2}\sum\limits_{t=1}^{T}\sigma^2\sum\limits_{i=1}^{t-1}\beta^{2(t-1-i)}\sigma^2\xrightarrow[T\to\infty]0. \end{split}\end{equation} Using formulas (ref) and Cauchy-Schwarz inequality to show that the average of cross-products of terms in Eq. (ref) converge to $0$, we get \begin{equation} \frac1{T}\sum\limits_{t=1}^{T}R_{0t}^2 \xrightarrow[T\to\infty]\sigma^2+(\beta-1)^2\frac{\sigma^2}{1-\beta^2}= \frac{2\sigma^2}{1+\beta}. \end{equation} To analyze $\frac1{T}\sum\limits_{t=1}^{T}R_{kt}^2$, we again use the law of large numbers, martingale law of large numbers, the formula for the sum of geometric sequence, and the formulas $\sum_{i=1}^{S}i=S(S+1)/2,\,\sum_{i=1}^{S}i^2=S(S+1)(2S+1)/6$. \begin{equation}\begin{split} &\frac1{T}\sum\limits_{t=1}^{T}\left(\beta^{t-1}-\frac{1-\beta^T}{T(1-\beta)}-\left(\frac{2t-1}{2T}-\frac1{2}\right)\left(\beta^T-1\right) \right)^2\\ &=\frac{(\beta^T-1)^2}{T}\sum\limits_{t=1}^{T}\left(\frac{t}{T}-\frac{T+1}{2T}\right)^2+o(1)\\ &=(\beta^T-1)^2\left[\frac{(T+1)(2T+1)}{6T^2}-\frac{(T+1)^2}{2T^2}-\frac{(T+1)^2}{4T^2}\right]+o(1)\xrightarrow[T\to\infty]\frac1{12},\\ &\frac1{T}\sum\limits_{t=1}^{T}\left( \left(\frac{2t-1}{2T}-\frac1{2}\right)\sum\limits_{i=1}^{T}\beta^{T-i}\xi_i\right)^2 =\frac1{T}\left(\sum\limits_{i=1}^{T}\beta^{T-i}\xi_i\right)^2\sum\limits_{t=1}^{T}\left( \frac{t}{T}-\frac{T+1}{2T}\right)^2\\ &=\left[\frac{(T+1)(2T+1)}{6T^2}-\frac{(T+1)^2}{2T^2}-\frac{(T+1)^2}{4T^2}\right]\left(\sum\limits_{i=1}^{T}\beta^{T-i}\xi_i\right)^2\xrightarrow[T\to\infty]\frac1{12}\left(\mathcal{N}\left(0,\frac{\sigma^2}{1-\beta^2}\right)\right)^2,\\ &\frac1{T}\sum\limits_{t=1}^{T}\left( \frac{2t-1}{2T}-\frac{1}{2}\right)^2 y_0(\beta^T-1)\sum\limits_{i=1}^{T}\beta^{T-i}\xi_i \xrightarrow[T\to\infty]-\frac{y_0\mathcal{N}\left(0,\frac{\sigma^2}{1-\beta^2}\right)}{12},\\ &\frac1{T}\sum\limits_{t=1}^{T}\left( \frac{2t-1}{2T}-\frac{1}{2}\right)\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i =\frac1{T}\sum\limits_{i=1}^{T-1}\xi_i\sum\limits_{t=1}^{T}\beta^{t-1-i}\left( \frac{t}{T}-\frac{T+1}{2T}\right)\xrightarrow[T\to\infty]0,\\ &\mathbf{V}\left\{\frac1{T}\sum\limits_{t=1}^{T}\left(\frac{2t-1}{2T}-\frac1{2}\right)\sum\limits_{i=1}^{t-1}\beta^{t-1-i}\xi_i\right\} =\frac{\sigma^2}{T^2}\sum\limits_{i=1}^{T-1}\sum\limits_{t=i+1}^{T}\beta^{t-1-i}\left(\frac{t}{T}-\frac{T+1}{2T}\right)\xrightarrow[T\to\infty]0. \end{split}\end{equation} Using formulas (ref), second and third lines of formulas (ref) and Cauchy-Schwarz inequality to show that the average of cross-products of terms in Eq. (ref) converge to $0$, we get \begin{equation}\begin{split} \frac1{T}\sum\limits_{t=1}^{T}R_{kt}^2 &\xrightarrow[T\to\infty] \frac{y_0^2}{12}+\frac{\sigma^2}{1-\beta^2}+\frac{\sigma^2(\mathcal{N}(0,1))^2}{12(1-\beta^2)}-2\frac{y_0\sigma\mathcal{N}(0,1)}{12\sqrt{1-\beta^2}}\\ &=\frac{\sigma^2}{1-\beta^2}+\frac1{12}\left(\mathcal{N}\left(0,\frac{\sigma^2}{1-\beta^2}\right)-y_0\right)^2. \end{split}\end{equation} We are left with the analysis of $\frac1{T}\sum\limits_{t=1}^{T}R_{0t}R_{kt}$, which relies on the same methods as two previous terms. The second line of (ref) gives the term $(\beta-1)\frac{\sigma^2}{1-\beta^2}$ in the limit, while the last line of (ref) and the last and second last lines of (ref) as well as Cauchy-Schwarz inequality gives the zero limit for all terms except the ones with $\xi_t\left(\frac{2t-1}{2T}-\frac1{2}\right)$. The latter also converges to zero, since $$ \mathbf{V}\left\{\frac1{T}\sum\limits_{t=1}^{T}\xi_t\left(\frac{2t-1}{2T}-\frac1{2}\right)\right\}=\frac{\sigma^2}{T^4}\sum\limits_{t=1}^T(t^2-t(T+1)+\tfrac{1}{4}(T+1)^2)\xrightarrow[T\to\infty]{}0. $$ Thus, \begin{equation} \frac1{T}\sum\limits_{t=1}^{T}R_{0t} R_{kt} \xrightarrow[T\to\infty] (\beta-1)\frac{\sigma^2}{1-\beta^2}=\frac{-\sigma^2}{1+\beta}. \end{equation} Combining (ref), (ref), (ref) together we get \begin{equation}\begin{split} \left(\widehat{corr}(R_{0t}, R_{kt})\right)^2&=\frac{\left(\frac1{T}\sum\limits_{t=1}^{T}R_{0t}R_{kt}\right)^2}{\left(\frac1{T}\sum\limits_{t=1}^{T}R_{0t}^2\right)\left(\frac1{T}\sum\limits_{t=1}^{T}R_{kt}^2\right)} \xrightarrow[T\to\infty]\frac{\frac{\sigma^4}{(1+\beta)^2}}{\frac{2\sigma^2}{1+\beta}\left[\frac{\sigma^2}{1-\beta^2}+\frac1{12}\left(\mathcal{N}\left(0,\frac{\sigma^2}{1-\beta^2}\right)-y_0\right)^2\right]}\\ &=\frac{1-\beta}{2+\tfrac1{6}\left(\mathcal{N}\left(0,1\right)-\frac{y_0}{\sigma}\sqrt{\frac{1-\beta}{1+\beta}}\right)^2}. \end{split}\end{equation} For fixed realization of $\mathcal{N}(0,1)$ the limit (ref) has an inverse U-shape as a function of $\beta\in(-1,1)$ given $y_0\neq0$ and is strictly decreasing given $y_0=0$. Thus, we can choose $B_1<B_2\in(-1,1)$ such that for any $\beta\in(B_1,B_2)$ or ($\theta\in(B_1-1,B_2-1)$) with $95\%$ probability $|\mathcal{N}\left(0,1\right)|<1.96$ and $\left(\widehat{corr}(R_{0t}, R_{kt})\right)^2$ is larger than some pre-specified threshold. This observation guarantees non-trivial power of the cointegration test.