A Wild Bootstrap for Degenerate Kernel Tests
Kacper Chwialkowski, Dino Sejdinovic, Arthur Gretton
Introduction
Statistical tests based on distribution embeddings into reproducing kernel Hilbert spaces have been applied in many contexts, including two sample testing , tests of independence , tests of conditional independence , and tests for higher order (Lancaster) interactions . For these tests, consistency is guaranteed if and only if the observations are independent and identically distributed. Much real-world data fails to satisfy the i.i.d. assumption: audio signals, EEG recordings, text documents, financial time series, and samples obtained when running Markov Chain Monte Carlo, all show significant temporal dependence patterns.
The asymptotic behaviour of kernel test statistics becomes quite different when temporal dependencies exist within the samples. In recent work on independence testing using the Hilbert-Schmidt Independence Criterion (HSIC) , the asymptotic distribution of the statistic under the null hypothesis is obtained for a pair of independent time series, which satisfy an absolute regularity or a -mixing assumption. In this case, the null distribution is shown to be an infinite weighted sum of dependent -variables, as opposed to the sum of independent -variables obtained in the i.i.d. setting . The difference in the asymptotic null distributions has important implications in practice: under the i.i.d. assumption, an empirical estimate of the null distribution can be obtained by repeatedly permuting the time indices of one of the signals. This breaks the temporal dependence within the permuted signal, which causes the test to return an elevated number of false positives, when used for testing time series. To address this problem, an alternative estimate of the null distribution is proposed in , where the null distribution is simulated by repeatedly shifting one signal relative to the other. This preserves the temporal structure within each signal, while breaking the cross-signal dependence.
A serious limitation of the shift procedure in is that it is specific to the problem of independence testing: there is no obvious way to generalise it to other testing contexts. For instance, we might have two time series, with the goal of comparing their marginal distributions - this is a generalization of the two-sample setting to which the shift approach does not apply.
We note, however, that many kernel tests have a test statistic with a particular structure: the Maximum Mean Discrepancy (MMD), HSIC, and the Lancaster interaction statistic, each have empirical estimates which can be cast as normalized -statistics, , where are samples from a random process at the time points . We show that a method of external randomization known as the wild bootstrap may be applied to simulate from the null distribution. In brief, the arguments of the above sum are repeatedly multiplied by random, user-defined time series. For a test of level , the quantile of the empirical distribution obtained using these perturbed statistics serves as the test threshold. This approach has the important advantage over that it may be applied to all kernel-based tests for which -statistics are employed, and not just for independence tests.
The main result of this paper is to show that the wild bootstrap procedure yields consistent tests for time series, i.e., tests based on the wild bootstrap have a Type I error rate (of wrongly rejecting the null hypothesis) approaching the design parameter , and a Type II error (of wrongly accepting the null) approaching zero, as the number of samples increases. We use this result to construct a two-sample test using MMD, and an independence test using HSIC. The latter procedure is applied both to testing for instantaneous independence, and to testing for independence across multiple time lags, for which the earlier shift procedure of cannot be applied.
We begin our presentation in Section 2, with a review of the -mixing assumption required of the time series, as well as of -statistics (of which MMD and HSIC are instances). We also introduce the form taken by the wild bootstrap. In Section 3, we establish a general consistency result for the wild bootstrap procedure on -statistics, which we apply to MMD and to HSIC in Section 4. Finally, in Section 5, we present a number of empirical comparisons: in the two sample case, we test for differences in audio signals with the same underlying pitch, and present a performance diagnostic for the output of a Gibbs sampler (the MCMC M.D.); in the independence case, we test for independence of two time series sharing a common variance (a characteristic of econometric models), and compare against the test of in the case where dependence may occur at multiple, potentially unknown lags. Our tests outperform both the naive approach which neglects the dependence structure within the samples, and the approach of , when testing across multiple lags. Detailed proofs are found in the appendices.
Background
The main results of the paper are based around two concepts: -mixing , which describes the dependence within the time series, and -statistics , which constitute our test statistics. In this section, we review these topics, and introduce the concept of wild bootstrapped -statistics, which will be the key ingredient in our test construction.
and is the set of all one-Lipschitz continuous real-valued functions on the domain of . can be interpreted as the minimal distance between and such that and is independent of . Furthermore, if is rich enough, this can be constructed.
Note that this mixing definition differs from commonly used notion of mixing (or mixing), which was required in the previous work . We describe in more detail how these notions of dependence are related in Appendix B.
V𝑉V-statistics.
The test statistics considered in this paper are always -statistics. Given the observations , a -statistic of a symmetric function taking arguments is given by
where is a Cartesian power of a set . For simplicity, we will often drop the second argument and write simply .
We will refer to the function as to the core of the -statistic . While such functions are usually called kernels in the literature, in this paper we reserve the term kernel for positive-definite functions taking two arguments. A core is said to be -degenerate if for each where are independent copies of . If is -degenerate for all , we will say that it is canonical. For a one-degenerate core , we define an auxiliary function , called the second component of the core, and given by Finally we say that is a normalized -statistic, and that a -statistic with a one-degenerate core is a degenerate -statistic. This degeneracy is common to many kernel statistics when the null hypothesis holds .
Our main results will rely on the fact that governs the asymptotic behaviour of normalized degenerate -statistics. Unfortunately, the limiting distribution of such -statistics is quite complicated - it is an infinite sum of dependent -distributed random variables, with a dependence determined by the temporal dependence structure within the process and by the eigenfunctions of a certain integral operator associated with . Therefore, we propose a bootstrapped version of the -statistics which will allow a consistent approximation of this difficult limiting distribution.
Bootstrapped V𝑉V-statistic.
We will study two versions of the bootstrapped -statistics
As noted in in [19, Remark 2], a simple realization of a process that satisfies this assumption is where and are independent standard normal random variables. For simplicity, we will drop the index and write instead of . A process that fulfils the bootstrap assumption will be called bootstrap process. Further discussion of the wild bootstrap is provided in the Appendix A. The versions of the bootstrapped -statistics in (2) and (3) were previously studied in for the case of canonical cores of degree . We extend their results to higher degree cores (common within the kernel testing framework), which are not necessarily one-degenerate. When stating a fact that applies to both and , we will simply write , and the argument or index will be dropped when there is no ambiguity.
Asymptotics of wild bootstrapped V𝑉V-statistics
In this section, we present main Theorems that describe asymptotic behaviour of -statistics, all the poofs are in the Appendix C. In the next section, these results will be used to construct kernel-based statistical tests applicable to dependent observations. Tests are constructed so that the -statistic is degenerate under the null hypothesis and non-degenerate under the alternative. Theorem 1 guarantees that the bootstrapped -statistic will converge to the same limiting null distribution as the simple -statistic.
Throughout this paper we will make one mild assumption
where . This assumption is almost always automatically satisfied, since most of the kernels used in practice are bounded.
Assume that the stationary process is -dependent with . If the core is a Lipschitz continuous, one-degenerate and its -component is a positive definite kernel, such that , then (2), (3), and (1) converge weakly to the same distribution . Moreover and converge weakly to .
On the other hand, if the -statistic is not degenerate, which is usually true under the alternative, it converges to some non-zero constant.
Assume that the stationary process is -dependent with . If the core is a Lipschitz continuous, and component is positive then converges in mean squared to .
In this setting, Theorem 3 guarantees that the bootstrapped -statistic will converge to zero in probability. This property is necessary in testing, as it implies that the test thresholds computed using the bootstrapped -statistics will also converge to zero, and so will the corresponding Type II error.
Assume that the stationary process is -dependent with a coefficient . If the core is a function of arguments then and converge to zero in mean squared.
Although both and converge to zero, the rate does not seem to be that same. As a consequence, tests that utilize usually give lower Type II error then the ones that use . On the other hand, seems to better approximate -statistic distribution under the null hypothesis. This agrees with our experiments in Section 5 as well as with those in [19, Section 5]). These results a sufficient for adopting kernel tests developed for i.i.d. data to tests that work on random processes. In particular Theorem 1 justifies usage of bootstraped -statistics for estimating quantiles of the null distribution, while Theorems 23 guarantee consistency.
Calculate the test statistic .
Obtain wild bootstrap samples and estimate the empirical quantile of these samples.
If exceeds the quantile, reject.
Applications to Kernel Tests
In this section, we describe how the wild bootstrap for -statistics can be used to construct kernel tests for independence and the two-sample problem, which are applicable to weakly dependent observations. We start by reviewing the main concepts underpinning the kernel testing framework.
In this section, we describe how the wild bootstrap for -statistics can be used to construct kernel tests for independence and the two-sample problem, in presence of weakly dependent observations.
Denote the observations by , and . Our goal is to test the null hypothesis vs. the alternative . In the case where samples have equal sizes, i.e., , application of the wild bootstrap to MMD-based tests on dependent samples is straightforward: the empirical MMD can be written as a -statistic with the core of degree two on pairs given by . It is clear that whenever is Lipschitz continuous and bounded, so is . Moreover, is a valid positive definite kernel, since it can be represented as an RKHS inner product . Under the null hypothesis, is also one-degenerate, i.e., . Therefore, we can use the bootstrapped statistics in (2) and (3) to approximate the null distribution and attain a desired test level.
When , however, it is no longer possible to write the empirical MMD as a one-sample -statistic. We will therefore require the following bootstrapped version of MMD
Let be bounded and Lipschitz continuous, and let and both be -dependent with coefficients , but independent of each other. Further, let and where . Then, under the null hypothesis , in probability as , where is the Prokhorov metric and is the MMD between empirical measures.
2 Wild Bootstrap For HSIC
Using HSIC in the context of random processes is not new in the machine learning literature. For a 1-approximating functional of an absolutely regular process , convergence in probability of the empirical HSIC to its population value was shown in . No asymptotic distributions were obtained, however, nor was a statistical test constructed. The asymptotics of a normalized -statistic were obtained in for absolutely regular and -mixing processes . Due to the intractability of the null distribution for the test statistic, the authors propose a procedure to approximate its null distribution using circular shifts of the observations leading to tests of instantaneous independence, i.e., of X_{t}\rotatebox[origin={c}]{90.0}{\models}Y_{t}, . This was shown to be consistent under the null (i.e., leading to the correct Type I error), however consistency of the shift procedure under the alternative is a challenging open question (see [8, Section A.2] for further discussion). In contrast, the wild bootstrap guarantees test consistency under both hypotheses: null and alternative, which is a major advantage. In addition, the wild bootstrap can be used in constructing a test for the harder problem of determining independence across multiple lags simultaneously, similar to the one in .
Following symmetrisation, it is shown in that the empirical HSIC can be written as a degree four -statistic with core given by
where we denote by the group of permutations over elements. One-degeneracy of the core under the null hypothesis was stated in [15, Theorem 2], [15, Section A.2, following eq. (11)] shows that is a kernel; follows from the fact that HSIC is a distance. Using Theorems 1,3,2 we can construct an independence test using . Drawback of this test, when implemented in the most straightforward way, is its quadruple computational complexity. To achieve quadratic time complexity, that matches time complexity of HSIC test for i.i.d. data, we modify our bootstrapped statistic.
[15, section A.2, following eq. (11)] The second component of is
Squared norm of is equal to .
Next we relate to – we show that the difference between them is asymptotically negligible. We start with a technical lemma.
If is of type of order (see Definition 2), then
Since is of type , by Lemma 4, the expected value is of order . ∎
If , are of type of order , then, under the null, converges to zero in mean square. Under the alternative converges to zero in mean square.
We first show that both under the null and the alternative. Then, using the fact that under the null and under alternative we will conclude the proof. The difference is
We examine differences separately – it is sufficient to show that each difference converges to zero in mean square.
The expected norm of the first difference is
We used and Cauchy-Schwarz inequality. By Lemma 2 the first term is . The second term is equal to
The expected value converges to zero in mean square by Lemma 4 (the assumption is satisfied). Using similar reasoning, the second term
also converges to zero. The final term is
converges in mean square to zero (Lemmas 6, 7). We rewrite the second term
To show that the above expression converges to zero it is sufficient to show that and . Under the null hypothesis, by Lemma 4, expected value of is finite. Since we also have . Therefore we have
it is sufficient to show that and . By Theorem 3, is finite and, using the reasoning similar to the one above, we have that . ∎
This shows that we can use squared norm of as a bootstrapped test statistic. For HSIC we redefine
Finally, notice that both statistics 7 and 8 can be calculated in quadratic time.
Let be a stationary process that is -dependent such that . Under the null hypothesis (7) and (8)converge weakly to the same distribution. Under the alternative hypothesis converges to zero in probability, while converges to a positive constant.
By Lemma 1, . By definition (7), . By Lemma 3, converges to zero in mean square. We check assumptions; since process is -mixing (of order ) and both , are canonical, Lemma 11 guarantees that , are of type of order .
Under the null hypothesis, by Theorem 1, converges to zero. We check assumptions; by Lemma 1, is a symmetric, one-degenerate, bounded kernel, assumptions concerning -mixing are satisfied.
Under the alternative, by Theorem 3 and Lemma 3 respectively, and converge to zero in mean square. By Theorem 3, converges to a positive constant. ∎
We consider two types of tests: instantaneous independence and independence at multiple time lags.
Test of instantaneous independence
Here, the null hypothesis is that and are independent at all times , and the alternative hypothesis is that they are dependent. We use Proposition2 directly to bootstrap an appropriate quantile and compare it with a test statistic.
Lag-HSIC
Proposition 2 allows us to construct a test of time series independence that is similar to one designed by . Here, we will be testing against a broader null hypothesis: and are independent for for an arbitrary large but fixed .
Since the time series is stationary, it suffices to check whether there exists a dependency between and for . Since each lag corresponds to an individual hypothesis, we will require a Bonferroni correction to attain a desired test level . We therefore define . The shifted time series will be denoted . Let denote the value of the normalized HSIC statistic calculated on the shifted process . Let denote the empirical cumulative distribution function obtained by the bootstrap procedure using (7). The test will then reject the null hypothesis if the event occurs. By a simple application of the union bound, it is clear that the asymptotic probability of the Type I error will be . On the other hand, if the alternative holds, there exists some with for which converges to a non-zero constant. In this case
as long as , which follows from the convergence of (7) to zero in probability shown in Proposition 2. Therefore, the Type II error of the multiple lag test is guaranteed to converge to zero as the sample size increases. Our experiments in the next Section demonstrate that while this procedure is defined over a finite range of lags, it results in tests more powerful than the procedure for an infinite number of lags proposed in . We note that a procedure that works for an infinite number of lags, although possible to construct, does not add much practical value under the present assumptions. Indeed, since the -mixing assumption applies to the joint sequence , dependence between and is bound to disappear at a rate of , i.e., the variables both within and across the two series are assumed to become gradually independent at large lags.
Experiments
We employ MMD in order to diagnose how far an MCMC chain is from its stationary distribution [23, Section 5], by comparing the MCMC sample to a benchmark sample. A hypothesis test of whether the sampler has converged based on the standard permutation-based bootstrap leads to too many rejections of the null hypothesis, due to dependence within the chain. Thus, one would require heavily thinned chains, which is wasteful of samples and computationally burdensome. Our experiments indicate that the wild bootstrap approach allows consistent tests directly on the chains, as it attains a desired number of false positives. To assess performance of the wild bootstrap in determining MCMC convergence, we consider the situation where samples and are bivariate, and both have the identical marginal distribution given by an elongated normal P=\mathcal{N}\left(\left[\begin{array}[]{cc}0&0\end{array}\right],\left[\begin{array}[]{cc}15.5&14.5\\ 14.5&15.5\end{array}\right]\right). However, they could have arisen either as independent samples, or as outputs of the Gibbs sampler with stationary distribution . Table 1 shows the rejection rates under the significance level . It is clear that in the case where at least one of the samples is a Gibbs chain, the permutation-based test has a Type I error much larger than . The wild bootstrap using (without artificial degeneration) yields the correct Type I error control in these cases. Consistent with findings in [19, Section 5], mimics the null distribution better than . The bootstrapped statistic in (4) which also relies on the artificially degenerated bootstrap processes, behaves similarly to . In the alternative scenario where was taken from a distribution with the same covariance structure but with the mean set to \mu=\left[\begin{array}[]{cc}2.5&0\end{array}\right], the Type II error for all tests was zero.
Pitch-evoking sounds
Instantaneous independence
To examine instantaneous independence test performance, we compare it with the Shift-HSIC procedure on the ’Extinct Gaussian’ autoregressive process proposed in the [8, Section 4.1]. Using exactly the same setting we compute type I error as a function of the temporal dependence and type II error as a function of extinction rate. Figure 1 shows that all three tests (Shift-HSIC and tests based on and ) perform similarly.
Lag-HSIC
The KCSD is, to our knowledge, the only test procedure to reject the null hypothesis if there exist , such that and are dependent. In the experiments, we compare lag-HSIC with KCSD on two kinds of processes: one inspired by econometrics and one from . In lag-HSIC, the number of lags under examination was equal to , where is the sample size. We used Gaussian kernels with widths estimated by the median heuristic. The cumulative distribution of the -statistics was approximated by samples from . To model the tail of this distribution, we have fitted the generalized Pareto distribution to the bootstrapped samples ( shows that for a large class of underlying distribution functions such an approximation is valid). The first process is a pair of two time series which share a common variance,
The above set of equations is an instance of the VEC dynamics used in econometrics to model market volatility. The left panel of the Figure 2 presents the Type II error rate: for KCSD it remains at 90% while for lag-HSIC it gradually drops to zero. The Type I error, which we calculated by sampling two independent copies and of the process and performing the tests on the pair , was around 5% for both of the tests. Our next experiment is a process sampled according to the dynamics proposed by ,
with parameters , ,, and frequency . We compared performance of the KCSD algorithm, with parameters set to vales recommended in , and the lag-HSIC algorithm. The Type II error of lag-HSIC, presented in the right panel of the Figure 2, is substantially lower than that of KCSD. The Type I error () is equal or lower than 5% for both procedures. Most oddly, KCSD error seems to converge to zero in steps. This may be due to the method relying on a spectral decomposition of the signals across a fixed set of bands. As the number of samples increases, the quality of the spectrogram will improve, and dependence will become apparent in bands where it was undetectable at shorter signal lengths.
References
Appendix A An Introduction to the Wild Bootstrap
Bootstrap methods aim to evaluate the accuracy of the sample estimates - they are particularly useful when dealing with complicated distributions, or when the assumptions of a parametric procedure are in doubt. Bootstrap methods randomize the dataset used for the sample estimate calculation, so that a new dataset with a similar statistical properties is obtained, e.g. one popular method is resampling. In the wild bootstrap method the observations in the dataset are multiplied by appropriate random numbers. To present the idea behind the wild bootstrap we will discuss a toy example similar to that in , and then relate it to the wild bootstrap method used in this article.
Consider a stationary autoregressive-moving-average random process with zero mean. The normalized sample mean of the process has normal distribution
where . The variance is not easy to estimate (the naive approach of approximating different covariances separately and summing them has several drawbacks, e.g. how many empirical covariances should be calculated?). Using the wild bootstrap method we will construct processes that mimic behaviour of the process and then use them to approximate the distribution of the normalized sample mean, . The bootstrap process used to to randomize the sample meets the following criteria:
is a row-wise strictly stationary triangular array independent of all , such that and for some .
The autocovariance of the process is given by for some function , such that .
The sequence is taken such that .
A process that fulfils those criteria, given also in the main article, is
We need to show that the distribution of the normalized sample mean of the process , where , mimics the distribution . It suffices to calculate the expected value and correlations:
The asymptotic auto-covariance structure of the process is the same as the auto-covariance structure of the process . Therefore
This mechanism is used in . Recall that, under some assumptions, a normalized V-statistic can be written as
where are eigenvalues and are eigenfunction of the kernel , respectively. Since (degeneracy condition) one may replace
and conclude, as in the toy example, that the limiting distribution of the single component of the sum remains the same. One of the main contributions of is in showing that the distribution of the whole sum with the components bootstrapped converges in a particular sense (in probability in Prokhorov metric) to the distribution of the normalized V-statistic, .
Appendix B Relation between β𝛽\beta,ϕitalic-ϕ\phi and τ𝜏\tau mixing
Strong mixing is historically the most studied type of temporal dependence – a lot of models, example being Markov Chains, are proved to be strongly mixing, therefore it’s useful to relate weak mixing to strong mixing. For a random variable on a probability space and we define
A process is called -mixing or absolutely regular if
By we have .
[10, Equation 7.6] relates -mixing and -mixing , as follows: if is the generalized inverse of the tail function
While this definition can be hard to interpret, it can be simplified in the case for some , since via Markov’s inequality , and thus implies . Therefore . As a result, we have the following inequality
provides examples of systems that are tau-mixing. In particular, given that certain assumptions are satisfied causal functions of stationary sequences, iterated random functions, Markov chains, expanding maps are all -mixing.
Of particular interest to this work are Markov chains. The assumptions provided by , under which Markov chains are tau-mixing are somehow difficult to check but we can use classical theorems about the -mixing). In particular [7, Corollary 3.6] states that a Harris recurrent (chain returns to a fixed set of the state space an infinite number of times) and aperiodic Markov chain satisfies absolute regularity. [7, Theorem 3.7] states that geometric ergodicity implies geometric decay of the coefficient. Interestingly [7, Theorem 3.3] describes situations in which a non-stationary chain -mixes exponentially.
Using inequality 18 between -mixing coefficient and strong mixing coefficients one can use those classical theorems show that e.g for we have
Appendix C Proofs
In this section we prove the main theorems. As for the notation, denotes number of observations, , if is function then denotes a product of with itself, denotes convergence in mean square
Hoeffding decomposition reduces any -statistic to a sum of canonical -statistics with canonical cores , which are easier to study in context of non-iid data. As an illustration, consider a canonical core of arguments and fix some indexes , for a sake of example we may assume that indexes represent time. If observations are independent of the observation , then the expected value of , by degeneracy, is equal to zero. If it is reasonable to assume that is almost independent of , maybe because it is so distant in time, then it is also reasonable to expect that for a canonical core (which is not too complicated )
which follows from the following approximate calculation
Associate with any set of indexes its nearest neighbor within the set. Suppose is is an index with the most distant nearest neighbor. We will call the most isolated index, and we will refer to its distance to the nearest neighbor as an isolation distance.
Consider a following example, for the set , is the most isolated index and the isolation distance is .
Given a sequence of random variables and a function , if for all sets of indexes , with the isolation distance equal to
for some some function , then we say that the pair is of type .
The next theorem shows a growth rate of a canonical -statistic when a pair is of type .
Let , where is a function of arguments, be a of type , with for some , then
The proof uses a technique similar to [1, Lemma 3]. We will focus on ordered -tuples , and by considering all possible permutations of their indices, we obtain an upper bound
where (strict) inequality stems from the fact that the -tuples with some coinciding entries appear multiple times on the right.
Since is a of type
where is an isolating distance of the index set . We need to estimate order of the sum
Let us upper bound the number of ordered -tuples with . Denote . can take different values, but since , can take at most different values. For , since , we can either let take up to different values and let take up to different values (if ) or let take up to different values and let take up to different values (if ), upper bounding the total number of choices for by . Finally, the last term can always have at most different values. This brings the total number of -tuples with to at most . Thus, the number of -tuples with is and since , we have
which proves the claim. We have used . ∎
The previous theorem states sufficient conditions for a -statistic or a bootstrapped -statistic to converge to zero.
Let be a function of arguments and let be a of type , with . If is a random process, independent of , such that , with notation ,
is uniformly bounded. We get the bound by applying Cauchy-Schwarz iteratively and using assumption .
We check that the second non-central moment converges to zero,
Supremum over is needed since might change with . Lemma 4, by the assumption that is of type , the growth of the inner sum is at most of order
Since , the growth rate is
For we have assumed existence of an extra term , which concludes the proof. ∎
We next prove that the asymptotic distribution of a -statistic depends on number of terms in the Hoeffding decomposition that are equal to zero.
Let be a core with arguments. If , and for all component is of type , with then
Using Hoeffding decomposition we write the core as a sum of the components ,
and . By Lemma 4, for , converges to zero in mean squared. To see that it suffices to put and verify that is of type, which is explicitly assumed. ∎
Before we study the asymptotic distribution of a bootstrapped statistic we need to sate three simple lemmas that will be frequently used.
By the definition of , , where follows from bootstrap assumption. Also, by the Bootstrap assumptions we have . Therefore converges to zero in mean squared. ∎
If is a bootstrap process then
Let be a function and let be a subset of . Then
Each element is repeated exactly times. ∎
We now prove an analogue of the Lemma 5 for bootstrapped statistics .
and for are of type , with then
Using Hoeffding decomposition we write core as a sum of components (the ones with are equal to zero and therefore omitted)
We will show that for almost all fixed the sum 19 converges to zero.
Suppose . The sum 19 can be written
By Lemma 4, for , converges to zero in mean squared. Indeed, it is sufficient to put and and notice that , since . Consequently, since converges to zero in mean square 6, the product, converges to zero in mean square i.e.
Suppose . The sum 19 can be written
The latter expression converges to zero in mean square. The former expression can be further decomposed
We use Lemma 4 for and , to show that they converge to zero. We need to check that
Suppose and . This case is identical to the previous case, up to swapping in the equation 20.
Finally, suppose and and . The sum 19 can be written
We again use Lemma 4 to see that this sum converges to zero in mean squared (we checked the assumptions above). We have proved that
So far we avoided expressing results in terms of -mixing and degeneracy of a core, now we relate formalism to those concepts. We start with a technical lemma.
If is a Lipschitz continuous core then its components are also Lipschitz continuous.
The auxiliary function used in the Hoeffding decomposition
is Lipschitz, since is Lipschitz continuous.
is obviously Lipschitz continuous. If for are Lipschitz continuous then, since is Lipschitz continuous, is also Lipschitz continuous as a sum of Lipschitz continuous functions. ∎
Let be a -dependent stationary process and be a Lipschitz core of arguments, If for all and are of type with the rate then
Let or . is canonical and Lipschitz continuous (if it follows from Lemma 10). Suppose is the isolating index. Further suppose there are indexes smaller than and indexes greater than , namely . In this notation .
Let us partition the vector into three parts:
where is the isolating index. If , is empty and if , is empty but this does not change our arguments below. Using Lemma [9, Lemma 5.3], we will construct and that are independent of and independent of each other and
where is an isolating distance [9, Lemma 5.3] assumes that there exists a random variable independent of the vector . This assumption is important only if CDF of the vector is not continuous, we can assume that our space is endowed with such .. Let The [9, Lemma 5.3] guarantees that there exist independent of , such that
where is the distance on Euclidean space (non-negativity justifies dropping absolute value). By definition of -mixing, . Since has the same distribution as (in particular it has the same dependence structure) we use the lemma again to construct , independent of and , such that
By the triangle inequality we obtain equation 21.
Since is a singleton, independent of both and , by degeneracy of
Note that is just a shorthand, random variables are inserted in the right order. Thus, we have that
In the proof we are going to use [Theorems 2.1, 3.1], which characterise asymptotic properties of and . Both theorems use similar set of assumptions which we verify upfront. Assumption A2.
(i) is one-degenerate and symmetric - this follows from the Hoeffding decomposition;
(ii) is a kernel - is one of the assumptions of this theorem;
(iii) – follows from ;
(iv) is Lipschitz continuous - follows from the Lemma 10.
Assumption B1, A1. Assumption , , is the same as ours, assumption , is implied. Assumption B2. This assumption about the bootstrap process is the same as our Bootstrap assumptions.
Denote by the weak limit of , which exits by the [Theorem 2.1], and let . By [19, Theorem 3.1], since the distribution of is continuous, we have
in probability. We show that converges to weakly, by showing pointwise convergence of CDF
To change the order of limit and expectation we have dominated convergence Theorem, justified since are bounded by 1. The difference is
By Lemma 9 and Lemma 5 respectively, both
converge to zero in mean square. We check assumptions: since is tau mixing and is Lipschitz continuous, by Lemma 11 all self products of components and , for , are type of order , of order at least (since ). Since is one degenerate, first and zero component are equal to zero (and so are ).
This shows that converges weakly to . ∎
C.2 Proof of Theorem 2
Using Hoeffding decomposition we write the core as a sum of the components ,
By the Lemma 4, for , converges to zero in probability. The sum associated with is
By Lemma 11 is type of order . Using Lemma 4 we get the growth rate of , thus converges in mean square to zero. ∎
C.3 Proof of Theorem 3
We show that the second non central moment of converges to . The second non central moment is
The inequality in the third line follows from the fact that correlations of the bootstrap process are positive (Bootstrap assumption) and
and therefore .
We now prove that converges to zero. Using Hoeffding decomposition we write core as a sum of components and
We examine terms of the above sum starting form the one with - it is equal to zero
Term with is zero as well, to see that fix and consider
If the same reasoning holds and if
By Lemma 9, since , in mean square and the only term that remains is
Now we can use the Lemma 4 to show that converges to zero. ∎
C.4 Proof of Proposition 1
Let be bounded and Lipschitz continuous, and let and both be -dependent with coefficients , but independent of each other. Further, let and where . Then, under the null hypothesis , in probability as , where is the Prokhorov metric.
Appendix D Various comments
The original HSIC and MMD tests for i.i.d. data, the computational cost of the wild bootstrap approach scales quadratically in the number of samples, and linearly in the number of bootstrap iterations (in the i.i.d. case, these were permutations of the data). The main alternative approaches are the lagged bootstrap of , which has the same scaling with data and number of bootstraps, and the spectrogram approach of (note, however, that both these alternative approaches apply only to the independence testing case). The cost of is comparable to our approach, however the statistical power of was much weaker on the data we examined.