Abstract
A novel general method for constructing nonparametric hypotheses tests based on the field of symbolic analysis is introduced in this paper. Several existing tests based on symbolic entropy that have been used for testing central hypotheses in several branches of science (particularly in economics and statistics) are particular cases of this general approach. This family of symbolic tests uses few assumptions, which increases the general applicability of any symbolic-based test. Additionally, as a theoretical application of this method, we construct and put forward four new statistics to test for the null hypothesis of spatiotemporal independence. There are very few tests in the specialized literature in this regard. The new tests were evaluated with the mean of several Monte Carlo experiments. The results highlight the outstanding performance of the proposed test.
1. Introduction
The construction and design of powerful statistical tests are crucial elements for both theoretical and applied scientists. The utility of a test generally depends on its degree of applicability, which is usually related to the assumptions contained in the design of the test, and the restrictions of the scientific field in which the test will be used. Nowadays, the utility of statistical tests also depends on efficiency: reducing the need for computational resources and speed, which are vital for real-time monitoring and control applications. Taking applicability and efficiency into account, in this paper we propose a new general, flexible statistical methodology to design and test central hypotheses, and we establish an asymptotic distribution theory for a wide range of tests by using the new proposed approach.
The new framework is based on symbolic analysis, which is a field of increasing interest for several scientific disciplines (see [1]) Symbolic analysis studies dynamical systems on the basis of the sequences of symbols which are obtained for a suitable (and generally selected by the user) partition of the state space. In other words, the idea behind the symbolic approach is to split the phase space into a finite number of regions, and then each region is labeled with a symbol. From this point of view, the symbolic approach is a coarse-grained description of dynamics. As coarse-grained methods, which are usually used to provide some description of the data generating process, symbolic analysis focuses on some essential features of the generating dynamics which are frequently of interest to the researcher, for example, (in)dependence, cycles and nonlinear structure. In general terms, it can be said that symbolic analysis allows for designing tests that only focus on the relevant information required for the problem at hand.
This approach is not new in science. In the particular case of time series analysis, the symbolic approach implies transforming raw time series into a sequence of symbols. Although seeminglycounter-intuitive, symbolic analysis is rooted in information theory and also in dynamics theory. For example, properties of symbols or codes are central to the theory of communication [2]. Not in vein, there is a well-established mathematical discipline, namely, symbolic dynamics, that studies the behavior of dynamical systems. The name of “symbolic dynamics” was firstly coined by [3], although the discipline started in 1898 with the pioneering work by Hadamard, who developed a symbolic description of sequences of geodesic flows. Interestingly, ref. [4] highlighted the power of the symbolic approach by showing that a complete description of the behavior of a dynamical system can be captured in terms of symbols. Notice that this property is crucial for the understanding of this paper as long as important characteristics of a random variable can also be captured by studying the symbols derived from it.
The symbolic approach has been useful in many areas of scientific research. In the experimentalist realm, relevant contributions have been made in several fields: astrophysics; biology and medicine; chemistry, mechanical systems and fluid flow; artificial intelligence, control and communication; and data mining, classification and rule discovery ([5,6,7], for an overview). In the non-experimentalist realm, symbolic analysis has been interestingly used. In economics and finance, data are transformed and analyzed in terms of particular symbols [8]. Two examples are recession indicators utilized to study and to determine the business cycle, and the indicators used to characterize the stock market bull and bear market periods. In geography, works like that of [9] show how qualitative variables (symbolic analysis) can be used to map descriptions. In spatial econometrics, economic spatial dependence has recently been studied by transforming data into symbols [10,11]. Other interesting applications are [12,13].
Despite all these interesting applications and the scientifically founded roots of the symbolic approach, there is no systematic body of statistical tools for conducting inference based on symbolic sequences. There are some notable exceptions: [14,15,16,17,18,19,20,21]. A common factor to all of these statistical approaches is that they are centered on ordinal patterns, which is one type of symbol. In this paper we present a novel, systematic and general framework for any potential symbol in order to test for wide range of potential null hypotheses that include, as particular cases, most of the previously indicated multidisciplinary situations, namely, ordinal patterns. We also provide a general asymptotic distribution theory for symbolic analysis. Particularly, this paper shows how, by means of symbols, it is possible to design nonparametric tests for a wide class of null hypotheses with special attention to limitations (restrictions) that typically appear in economics and finance. Therefore, this paper aims also to provide the theoretical basis for hypothesis testing by means of symbols.
An appealing advantage to symbolic analysis is that it requires very few assumptions about the data generating process in order to conduct statistical inference. This advantage is promising as the tools based on this method will share the model-free property, which avoids making unnecessary assumptions and provides more general results. Most of the econometric and statistical tests typically used in some of the mentioned disciplines cannot deal with potential nonlinear forms of dependence. By construction, nonlinear structures are not a limitation for symbolic analysis.
The capability of this approach is clearly illustrated by the scope of what we label “the symbolic main theorem” (SMT). Given a null hypothesis H, for example, the null of serial independence, the SMT will give us four nonparametric asymptotic tests for that null, which are distribution free. The transformation of data into symbols is done by means of a symbolization map. Some of its properties are also studied in this paper. These symbolic-based tests have to deal with ordinary statistical problems that usually appear in economics and finance, such as data scarcity and suboptimal empirical power of the test. Given the flexibility of the symbols, we provide theoretical results and strategies to overcome such difficulties.
A clear example of the power of the new tool is illustrated by the spatio-temporal data modeling issues occupying a prominent role in spatial econometrics, geography and regional science, about which we can find a vast amount of literature ([3], and references therein). We constructed several symbolic-based tests by using the SMT. These tests also constitute an added-value of the paper, because there are currently very few available tests designed to deal with spatiotemporal dependence. The problem becomes more difficult if potential nonlinear dependence is considered. A notable exception is [9] who has treated nonlinearity in a spatial framework.
Finally, the results of this paper might be of interest to fields of research where information theory plays a relevant role. Particularly, nonparametric entropy measures and tests for serial dependence have drawn the attention of econometricians (see [22] and references therein). The clearest link between our results and information theory is through the concept of symbolic entropy. In the context of time series analysis, permutation entropy, which is a type of symbolic entropy, uses the probabilities of length-m ordinal patterns in the definition of Shannon entropy. An ordinal pattern is a particular type of symbolization map. Given the characteristics of this map, the SMT allows us to obtain an asymptotic distribution theory for a permutation entropy-based test. Providing the statistical foundation for permutation entropy is specially relevant because: (a) there are very few asymptotic distribution theories available for entropy, in general; and (b) permutation entropy is currently used in computer science due to its relation to “incompressibility”, and is also useful in the study of dynamical systems because of its connection to complexity.
From another point of view, some well-established nonparametric tests can be understood as particular types of symbolic analysis. For example, the nonparametric runs test for randomness by Wald-Wolfowitz (see [23]); joint-counting procedures for spatial association [24]; and in general, categorical data techniques [25] are simple examples that use the very general procedures of translating information into symbols. In this regard, symbolic analysis can be understood as a method related to this literature.
The paper is organized as follows: In Section 2, we provide the main notation and relevant concepts that will be used in the paper. Among them we highlight: symbolization maps, standard or non-standard maps and decomposable maps. Due to the generality of the method, we require the potential tests to be adaptable to different contexts that are to be able to deal with a wide range of null hypotheses. To this end we introduce the notion of perfect and non-perfect set on subindexes in Section 3. This allows us to give general theoretical results to tackle practical situations that might otherwise be intractable because of the problem and/or of the type of hypothesis. Therefore we distinguish between two main classes of theoretical situations that lead us to different statistical solutions. In Section 4 we show how to construct symbolic-based tests via likelihood ratio statistics and via asymptotic normality. Section 5 considers the theoretical case that the null hypothesis cannot be treated under perfect situations, and hence other results are applicable. Section 6 puts forward the main theorem of this paper. Under the general conditions of this theorem, we introduce four tests for serial independence, four tests for spatial independence and four new tests for spatiotemporal independence, in Section 7. These tests are based on different symbolization maps, according to those given in Section 2 and Section 3. Finally, in Section 8, we outline a Monte Carlo simulation experiment to show the capabilities of the spatiotemporal test for independence under linear and nonlinear settings. The paper ends with some conclusions.
2. Notation and Definitions
As indicated in the previous section, we give some definitions and introduce the basic notation that will be used throughout the rest of the paper.
Let be a stationary real-valued process, where I is a set of indexes.
Let be a set of elements that we label as symbols. Now assume that there exists a map
for some subset of indexes . We will say that is of -type if and only if . We will call the map f a symbolization map for .
Notice that it is possible to expand the definition of a symbolization map to the dimensional case by introducing the concept of decomposable maps: if , , are k symbolization maps, then the product
is a symbolization map for the k-dimensional variable . We will call F a k-decomposable symbolization map.
Given a symbolization map and a symbol , we denote by the probability of occurrence of symbol . Symbolization maps can be classified according to their behavior under the null hypothesis. If the symbolization map f is such that under a given null hypothesis (H) all the symbols have the same probability to occur, we will say that f is a standard symbolization map. On the contrary, we will refer to f as a non-standard symbolization map.
The symbolic entropy of a process is defined as the Shannon’s entropy of the n distinct symbols as follows:
with the convention
Symbolic entropy, , can be understood as the information in terms of symbols of the process . Notice that . Notice also that the lower bound is attained when only one symbol occurs, and the upper bound when all n possible symbols appear with the same probability.
Consider the following index that we define an indicator random variable as follows:
that is, we have that if and only if i is of -type, and otherwise.
Then is a Bernoulli variable with probability of “success” , where “success” means that i is of -type. It is straightforward to see that
Our interest is in knowing how many is are of -type for all symbol . In order to answer the question, we construct the following counting variable:
The variable can take the values where .
To complete with notation, we will denote by
the cardinality of the subset of symbolized indexes formed by all the elements of -type.
Then, under the conditions above, one could easily compute the relative frequency of a symbol by:
which is the maximum likelihood estimator of
3. On the Independence of Variables
If the subset of symbolized indexes is chosen such that the variables are independent for all , then is a binomial random variable
Moreover, if the subset of indexes is such that the variables and are independent for all symbol where then the joint probability density function of the n variables is:
where . Consequently the joint distribution of the n variables is a multinomial distribution. In this case we will call the set of symbolized indexes a perfect subset.
It is possible to develop theoretical results that contemplate situations for which the researcher will benefit of constructing symbolization maps for which the set is not perfect. Given our previous definition of perfect set, the indexes subset can be nonperfect in the following cases:
- Case (a): and are not independent for all for some , and hence is not a binomial random variable.
- Case (b): and are not independent for all for some , and hence is not a multinomial distribution.
Theoretical results for perfect and non-perfect subsets are the topics of the following two sections.
4. Constructing Tests with Perfect Subsets of
In this section we establish a general framework for testing for a null hypothesis H. This is done by focusing on the symbols’ distribution when the subset of symbolized symbols is perfect. Under this condition, we now show how to construct tests of hypothesis via likelihood ratio statistics and via asymptotic normality.
Procedure
In general, our procedure consists of proceeding systematically as follows:
- (step 1) Fix the null hypothesis H to be tested.
- (step 2) Define the set of symbols and the symbolization map f.
- (step 3) Compute the distribution of the symbols under H, namely, for all .
- (step 4) Finally design and compute a desired test statistic.
Steps 1 to 2 will be developed later in the paper. To accomplish the aim with steps 3 and 4, we first show how to construct a likelihood ratio test.
Recall that when the set is perfect, follows a multinomial distribution and its likelihood function is:
and the likelihood ratio test statistic is
where is the maximum likelihood estimator of for all . In this case, as shown in the Appendix A, maximum likelihood estimators are
Moreover, it is possible to show (see Appendix A.2) that
where the k degrees of freedom will depend on the set of symbols.
It is also proved that, if standard symbolization maps are considered, then
which is an affine transformation of the symbolic entropy (1).
As we have emphasized in the Introduction that nonparametric results of entropy based measures are relevant for econometrics and for other fields of research. Given that the distribution of the affine transformation in (3) holds for standard symbolization maps under broad conditions, this result will be of general applicability. In particular, as we will show in other sections, permutation entropy, as introduced in [26], is a particular type of symbolic entropy that has drew the attention of several scholars for theoretical interests basically because stationary and ergodic processes coincide with Shannon entropy, and for an applied interest in nonlinear and complex systems or processes (see [1]). In this regard, (2) and (3) can be viewed as an initial step towards statistical inference of ordinal pattern distributions.
An alternative to likelihood ratio tests for symbolic maps can be considered by modifying step 4. Given that under a perfect subset the indicator variables are independent, the random variable has a limiting normal distribution with zero mean and unit variance for all symbol . Moreover
asymptotically distributes as a multivariate normal distribution M. In this case, the asymptotic distribution holds for standard or nonstandard symbolization maps at the cost of estimating that can be consistently estimated by .
5. Constructing Tests with Non Perfect Subsets of
In this section we establish the equivalent counterpart of the general framework (above presented) when the subset of symbolized symbols is non-perfect. Accordingly, we now show to what extent and under which situations the previous likelihood and asymptotically normal tests (elaborated under perfect situations) can be adapted to deal with them.
Non perfect sets of indexes I might be very useful for test design, especially for situations or scientific domains characterized by relatively scarce sample size as compared with the number of symbols. In macroeconomics, although not necessarily in finance, data scarcity can be the usual restriction. Ideally, one can be able to design perfect sets of indexes to carry out symbolic-based hypothesis testing. This section then tries to provide symbolic-based methods for constructing hypothesis tests for situations for which an ideal design is not possible because of the nature of the problem, because of the computational capabilities or because of any other potential reason.
5.1. Binomial Approximation
Let us consider that variables and are not independent for all for some . In this case, is not a binomial random variable. The interesting question is how far is from We are interested in studying under what assumptions the variable can be approximated to a binomial random variable:
In fact, it is possible to compute a bound for this binomial approximation.
Denote by the distribution of , and we are interested in the bound of the binomial approximation of the distribution of measured in terms of total variation distance. The total variation distance between two probability measures P and Q is defined by
where the supremum is taken over all measurable sets of the real line.
Following Theorem 1.1 in [27] and after a few calculations, a bound can be given as follows:
For each let and be defined in the same probability space where . Let
and
counts the number of indexes that are of -type and and . On the other hand counts the number of indexes that are of -type conditioned to location i is of -type.
Then
Therefore, in order to get a bound for the binomial approximation, we have to get bound
On the other hand, we have that and . Now denote by a subset of indexes such that is independent of . Therefore, we obtain that
Therefore, we have shown that the sum of dependent indicators can be approximated to a binomial random variable when the following two conditions are satisfied: (1) dependencies among the indicators are weak and (2) the probabilities of the indicators occurring under the null hypothesis are small. Notice that point (1) can be guaranteed by selecting the subset of symbolized indexes such that is small enough.
5.2. Normal Approximation
Additionally, when the indicator variables are not independent for all , the following central limit theorem for dependent indicators ensures the convergence to a normal distribution:
Theorem 1.
(Theorem 7.7.5 (Anderson, 1971)). Let be a stationary stochastic process such that for every integer n and integers with are distributed independently of and . If and , then
has a limiting normal distribution with mean 0 and variance
Theorem 1 states that, if the dependencies are weak (for instance, is small enough for all ) we get that as . The variance of the variable can be computed as follows:
We now consider the case where and are not independent for all for some , and hence is not a multinomial distribution (i.e., previous case (b)). To this end, denote by the subset of indexes satisfying that is independent of and . It is possible to show that is a multivariate normal distribution. In fact, it is equivalent to proving that any linear combination of the s is normal. In order to do so, notice that each variable is a sum of indicator variables, and therefore, any linear combination of these variables is again a sum of indicator variables. Consider an arbitrary linear combination as follows:
Notice that the variable can be written as where is an indicator variable for all . Therefore, it follows that the variable M is a sum of dependent indicator variables. Again, by Theorem 1 we get that M follows a normal distribution whenever the dependencies among the indicator variables are weak (for instance, when the cardinality of the set is small enough for all and all symbol ). Then we get that has a limiting multivariate normal distribution and we can compute the variance and covariance matrix for all as follows:
6. The Symbolic Main Theorem
Previous partial results can be collected in the following main theorem.
Theorem 2.
Let be a stationary real valued process. Let be a finite set of symbols. Let be a standard symbolization map for a null hypothesis H. Then under the null H we have that:
- If the set of symbolized indexes is perfect:
- Then is asymptotically distributed where k is the difference between the number of parameters to be estimated under the alternative hypothesis and the number of parameters to be estimated under the null H.
- Then is a multivariate normal distribution MN.
- The set of symbolized indexes is not perfect:
- If the sets and have good properties in the sense that for all symbol the variables have a good approximation to a binomial distribution and has a good approximation to a multinomial distribution, then is asymptotically distributed where k is the difference between the number of parameters to be estimated under the alternative hypothesis and the number of parameters to be estimated under the null H.
Notice that in the case of nonstandard symbolization maps, an analogous theorem to Theorem 2 will hold. More concretely, for point 1 of the SMT, a likelihood ratio test is also available, although not in the closed form as presented here (see for example [28]). Point 2 of the SMT hold independently of whether the symbolization map is standard.
The usefulness of the theorem will become evident in the next section, where it will be applied to specific null hypotheses. Naturally, it is possible to consider an alternatively bootstrap-based test for symbolization maps, instead of asymptotic ones, although we do not follow this way in this paper, it being a subfield for further research of interest since it partially might avoid taking care of nonperfect indexes sets.
7. Different Symbolizations for Different Nulls Related with Independence
According to the general symbolic theorem, in this section we show how it is possible to test interesting null hypotheses by using symbolic analysis. To concrete, we focus on testing for different nulls of independence as it is a well-known field of research and because recently published articles can be generally understood and extended under this new theoretical framework. Given that each null hypothesis (step 1) will require a particular symbolization map, in this section we present different symbolization procedures (step 2) to test for serial dependence, spatial dependence, and spatiotemporal dependence, respectively. Then we present the results of step 3 and step 4 depending on the statistic technique the researcher wants to use according to Theorem 2, i.e., either likelihood ratio statistics or/and asymptotically normal statistics. Given a null hypothesis, the behavior of the tests obtained from this approach will strongly depend on the expertise of the researcher in constructing the symbolization map. We emphasize that both power analysis of the class of tests, and power competition among alternative nonparametric tests were already given in previous work [10,16]; therefore, we are not going to replicate them here.
As we have indicated, the crucial component of the symbolic procedure is to choose a symbolic mapping which ensures that the distribution of the symbols can detect deviations from the null. The null hypotheses considered in this section are related to the important topic of “statistical independence”. This is a very well-studied topic in time series analysis and therefore there is a generous number of available tests. On the contrary, spatial independence is not so well-known and is non-trivial how to test for it. As we will show, it is needed to use another different symbolization map for detecting spatial patterns. Similar comments can be made for spatio-temporal independence. Needless to say, there are other hypotheses of interest in econometrics, and the researcher will have to design suitable symbolic maps for testing them. For example, in [29], the authors dealt with the opposite problem: how to test for a pure deterministic chaotic process. In these and other cases, the power of the tests will centrally depend on the ability of the research to design the symbolization map for the desired null hypothesis.
7.1. Serial Independence Tests
In the case of time series, refs. [15,16] used the following symbolization procedure to test for serial dependence: Let be a real-valued time series (in this case the subindex t refers to time) for which we are interested in testing the null of serial independence (step 1). In order to complete step 2, we denote by the symmetric group of order , that is, the group formed by all the permutations of length m (for a positive integer . Let . The positive integer m is usually known as the embedding dimension.
An ordinal pattern for a symbol is defined as at a given time . The time series can be embedded in an m-dimensional space:
It is said that t is of type if and only if is the unique symbol in the group satisfying the two following conditions:
Notice that condition guaranties uniqueness of the symbol . This is justified if the values of have a continuous distribution so that equal values are very uncommon, with a theoretical probability of occurrence of 0.
In this case, the symbolization map is defined as given by
where is such that t is of -type. Now the design of the symbolization map (step 2) is completed.
Moreover, under the null of independence the distribution of the symbols is uniform and therefore the map is a standard symbolization map. Additionally, the set of symbolized indexes is which is not perfect.
Notice that in order to have a perfect set and therefore ensure the independence of the indicator variables , it is enough to consider as a set of symbolized indexes
Accordingly, using this symbolization map, the next corollary straightforwardly follows from Theorem 2:
Corollary 1.
Let be the symbolization map defined in (6) with . Denote by the permutation entropy defined in (1). If the time series is independent, then
- If the set is perfect, then:
- 1.
- The affine transformation of the permutation entropyis asymptotically distributed.
- 2.
- Then is a multivariate normal distribution NM.
- If the set is not perfect:
- 1.
- Since the sets ’s has cardinality of at most , we can get a good approximation to the following result via [21]. The affine transformation of the permutation entropyis asymptotically distributed.
- 2.
These results for permutation entropy are in relation to a relatively recent line of research based on order patterns for analyzing time series. Ordinal patterns can be, per se, used for descriptive purposes, like autocorrelation, with the added advantage that the require no assumptions such as Gaussianity or linearity. On the contrary, only mild stationary conditions can exist in the underlying process. The above corollary is a further step for the development of statistical inference for ordinal time series. Naturally, it is possible to obtain other kinds of statistical results by adding more assumptions to the generating process. In fact, notorious results can be found in [4]) if Gaussianity and ergodicity are assumed. In this regard, our asymptotic results for order patterns keep assumptions at a minimum. Additionally, by maintaining general applicability at minimum cost (in terms of assumptions) for serial independence tests, some bootstrap-based statistics for ordinal patterns have been put forward in [29].
An interesting property of the symbolization procedure presented in this section is that it can be also used for discrete distributions. To do so it necessary to consider a non-standard version of the map. Under such circumstances, the likelihood ratio (2) can be directly used once the behavior of is known under the null of serial independence.
7.2. Spatial Independence Tests
In the case of spatial processes, ref. [10] gave a symbolization procedure to test for spatial independence as follows: Let be a real-valued spatial process, where S is a set of coordinates. Given a location , we will denote by the polar coordinates of location taking as origin .
Let with . Consider now that the spatial process is embedded in a different m-dimensional space as follows:
where are the nearest neighbors to , which are ordered from lesser to higher Euclidean distance with respect to location . Notice that in the case of two or more locations being equidistant to , we will choose them in an anticlockwise manner. In formal terms, are the nearest neighbors to satisfying the following two conditions:
- (a) ;
- (b) If , then .
Notice that conditions and ensure the uniqueness of for all .
The proposed standard symbolization map f is defined as follows: denote by the median of the spatial process and let
Now, define the indicator function
Then, the standard symbolization map
is defined as:
where stands for the set of symbols defined by
Notice that under the null of spatial independence, the distribution of the symbols is uniform and therefore the map is a standard symbolization map.
Moreover, in this case is not a perfect symbolized set. To construct a perfect symbolized set , one can proceed as follows. Take a location at random. Let be the set of nearest neighbors to s. Now select the following element in by taking such that . Then construct recursively the set by taking satisfying for all with .
As it is evident, the method is flexible enough to allow the researcher to select his own set and map of symbols for a given null. For example, if under the previous symbolization procedure, the power (or size) of the test is not satisfactory, one can always consider other possible symbolization procedures for the same null and for the same spatial process . Let . Again, let be the set of nearest neighbors to s and let be its cardinality. Denote by . Denote by and the i-th quantile of the variables X and respectively, for . We will denote by (resp ) and (resp. ). Then we define the symbolization map
if and only if and .
Again, under the null of independence the distribution of the symbols is uniform and therefore the map is a standard symbolization map.
Again, the same set of recursively constructed symbolized indexes ensures the independence of the indicator variables . Accordingly, using this symbolization map, the next corollary straightforwardly follows from Theorem 2:
Corollary 2.
Let , be the symbolization maps defined in (8) and (10) with . Denote by the symbolic entropy defined in (1). If the spatial process is independent, it follows that:
- If the set is perfect then:
- 1.
- The affine transformation of the symbolic entropyis asymptotically distributed where , , and .
- 2.
- Then is a multivariate normal distribution MN.
- If the set is not perfect, then:
- 1.
- Since the sets have small cardinality, we can get a good approximation to the following result of [17]. The affine transformation of the symbolic entropyis asymptotically distributed where , , and .
- 2.
In Section 2 we indicate that there is a class of symbolization maps that are non-standard. Consider a situation in which a reduction in the number of possible symbols under study will benefit the behavior and properties of the test. In this, and other potential situations, non-standard maps might be useful. As an example, we now construct a non-standard symbolization map to test for independence in the spatial context. The following symbolization is an example of the most general procedure that we give in Appendix A.3.
Consider again the set of symbols defined in (9) for a fixed embedding dimension m. Now we will denote by the rest of the division of a over .
Now define the following equivalence relation ∼:
if and only if there exists an integer k such that for all .
Now we consider as a set of symbols the set of classes in modulo, the equivalence relation ∼.
Notice that, in general, in this case not all the symbols in have the same probability of occurring, and therefore the symbolization map is non-standard.
7.3. Spatiotemporal Independence Tests
The issues related to spatiotemporal data modeling occupy a prominent role in current econometrics, where we can find recent literature devoted to this topic (see [9,30]). Spatiotemporal dependence introduces considerable difficulties with respect to modeling, computation and statistical theory. If independence can be taken for granted, and likewise the common assumption of cross-sectional independence, then computations and the application of inference rules simplifies significantly. It seems reasonable therefore to test first for spatiotemporal independence, and if the evidence for independence is strong, then proceed with the well-known methods. Unfortunately, tests for spatiotemporal independence are scarce. The aim of this section is twofold: to contribute to this rather scarce literature, and to highlight the usefulness of the novel general method presented in this paper. To this end we consider the relevant null of spatiotemporal dependence. Of particular interest for our tests is that dependence is not taken as a synonymous with correlation, and therefore nonlinearities are not restrictions for our test.
Consider the process . As in the previous cases, one can define several standard and non-standard symbolization maps. For simplicity, we adapt the previous symbolizations to the spatiotemporal case as follows:
For a fixed location define as the time series . Similarly for a fixed period we define as the spatial process
Let with be the time and space embedding dimensions respectively. Then under this setting we define the following decomposable symbolization maps for and 4 defined by:
where and for are defined as above.
Notice that, when testing for spatiotemporal independence, when the symbolization map is standard, while for is non-standard.
It is also possible to define an extension of the symbolization map in a spatiotemporal context. Indeed, consider the following map:
defined by
where for all and the indicator function is defined as in (7).
Accordingly, using this symbolization map, the next corollary straightforwardly follows from Theorem 2:
Corollary 3.
Let and be the standard symbolization maps defined in (11) with and in (12) respectively. Denote by and the symbolic entropy defined in (1). If the spatiotemporal process is independent, then:
- If indexes sets are perfect then:
- 1.
- The affine transformations of the symbolic entropyare asymptotically distributed. In (13) for and , and for and . In (14) .
- 2.
- Then is a multivariate normal distribution MN where n is the cardinality of the set of symbols.
- If indexes sets are not perfect then
- 1.
- If the sets ’s have small cardinality for all symbol η, then the affine transformations of the symbolic entropyare asymptotically distributed. In (15) for and , and for and . In (16) .
- 2.
8. Empirical Behavior of the Tests for Spatiotemporal Independence
In this section we evaluate the empirical behavior of the STG test with different configurations for the subset The first aim of this section is to show the flexibility of Corollary 3 to cope with different scenarios. The second goal is to evaluate the empirical behavior of the new test. An the third intention of this simulation is to evaluate the incidence of the selection of on the empirical size of the test and on the power.
To those ends we designed a Monte Carlo experiment as follows: Firstly we consider the problem of testing for independence on regular lattices of several orders—R = 64 (8 × 8) and T = 150; R = 100 (10 × 10)—for which we consider two possible temporal scenarios, depending on data availability, T = 200 and T = 800. We also simulated richer regular lattices of order R = 400 (20 × 20), although on this occasion we only considered T = 200. The symbolization map follows from (12) with and . The test under study was generated from Corollary 3 under Expression (13). Therefore, we used a perfect indexes subset. This subset was constructed recursively, as indicated in Section 7: , where is the set conformed with the three nearest neighbors of in and the four spatial locations in the next time period. The power of the test is evaluated with the following DGPs:
where , which was also used for evaluating the empirical size of the test. Parameters intensified temporal and spatial dependencies, respectively, and was fixed at five in all simulations. The weighting matrix W has been specified as a binary type using a contiguity criterion and rook-type movements.
Table 1 collects the empirical size and power of STG statistical test for 1000 repetitions. It is straightforward to observe that the size is controlled, and the test is powerful. For low intensity level of parameter ( the test is absolutely powerful. We have to set (or below) to lose power. This occurred despite the DGP under consideration.
Table 1.
Size and power of STG test under a perfect subset of indexes.
Regular spatiotemporal configurations are interesting because (1) time series posit a natural order for observations, (2) lattice data provide the simplest extension of time series and (3) some scientific methods are compatible with this spatiotemporal configuration. However, irregular patterns are of frequent occurrence with spatial data. In geographical settings, data are liable to be recorded across heterogeneously-sized administrative regions, while economic distances do not correspond to regular spacing. Therefore, it is also useful to adapt the STG symbolic test to irregular spatiotemporal settings. In terms of our general methodology (see Corollary 3) this problem in tractable by considering the symbolization map where we control the dependence among the indicators by controlling on average the cardinality of the sets . Particularly, we will select the set of indexes such that i.e., the average of the cardinality of the sets is less than half of the number of spationtemporal neighbors.
Therefore, to complete the experiment (in the case of nonperfect lattices) we evaluate the STG-version for irregular lattices where coordinates of each spatial location are drawn from a N(0,1). We have considered the three nearest neighbors for irregular lattices. Afterwards, the resulting matrix was row-standardised in the usual way.
Table 2 collects the size and power for models constructed from DGP1 and DGP2. The introduction of irregular lattices has led us to introduce non-perfect indexes, and accordingly the size of the test slightly increased, although the levels seem acceptable, particularly for generous sample data. Power is as interesting as for the case of perfect indexes, and therefore the same comments applies (similar results are obtained in the case of using the multivariate normal approximation).
Table 2.
Size and power of STG test under a non-perfect subset of indexes.
Comparison with Other Spatiotemporal Test for Independence
We now face our test with an unfavorable scenario characterized by small amount of available data on irregular lattices, also in linear and nonlinear setups. To this end we consider pairs of the following sample sizes: (36 × 10), (64 × 10), (100 × 10), (100 × 30) and (200 × 10). According to our theoretical discussion, given data scarcity and irregular spatial configuration, we use the non-perfect subset of indexes. Additionally, we consider the symbolization map based on equivalence relations as depicted in Appendix A.3 for nonstandard maps.
To complete the empirical study, we compare our test with another nonparametric spatiotemporal test [31] which is described in Appendix A.4 and we refer to it as STBP. Notice, however, that the STBP test requires one to correctly specify the weighting matrix, W; this is not a requirement for the symbolic test.
In terms of empirical size, both tests behave similarly well for linear processes (Table 3). On the contrary, for the nonlinear processes (Table 4), the size of the STBP test is poor, while the symbolic-based test performs as expected. In terms of empirical power, the STBP test outperforms the STG test, especially for low intensity levels of dependence in the case of the linear process. However, under a nonlinear spatiotemporal configuration, the STG clearly presents a better balance between size and power and outperforms the STBP in all cases.
Table 3.
Size and power of STG and STBP tests under linearity.
Table 4.
Size and power of STG and STBP tests under nonlinearity.
9. Conclusions
Central null hypotheses in experimental and non-experimental branches of science can be easily tested by means of symbolized information. This paper provides with the analytical tools to construct nonparametric hypothesis tests based on symbols. These tools are able to cope with different null hypotheses and with distinct scenarios in which some realistic limitations might be imposed to test designs.
A shared characteristic of all these symbolic test families is that few assumptions are needed to obtain asymptotic results. Therefore, general applicability of this method is guaranteed. In particular, in this paper we have shown that two well-known symbolic-based tests are particular cases of the main symbolic theorem (Theorem 2), which is stated in this paper for the first time. Furthermore, a set of new symbolic-based tests for spatiotemporal independence is put forward by using the main results of this paper collected under the main symbolic theorem (Theorem 2). Monte Carlo simulations provide evidence of the extraordinary power of the contrasted test. Currently, there are circumstances where robustness to speed, noise or computational cost are paramount, so fruitful applications of symbolic analysis are favored.
Further lines of research are worthy. We now indicate some of them on which we and other scholars are currently working: (i) One of the appealing properties of symbolic-based testing is that it requires few assumptions. In this paper we have assumed stationarity; however, it would be interesting to study whether it is possible to be less restrictive. (ii) In the context of time series analysis, most available techniques require the existence of second moments; however, by using certain symbolizations, it might be possible to waive this requirement. This will allow time series researchers to consider a wider variety of model classes. (iii) One of the main contributions of the paper is that it suggests that researchers can design a symbolization procedure (map) to test null hypotheses. It would be interesting to study what types of null hypotheses are more suitable to analysis using symbolic maps.
Author Contributions
Conceptualization, F.L., M.M.-G., J.M. and M.R.M.; Methodology, F.L., M.M.-G., J.M. and M.R.M.; Writing, original draft, F.L., M.M.-G., J.M. and M.R.M. All authors have read and agreed to the published version of the manuscript.
Funding
This was partially funded by Ministerio de Ciencia e Innovación under grant PID2019-107192GB-I00 and under grant PID2019-107800GB-I00/AEI/10.13039/501100011033. This study is part of the collaborative activities carried out under the program Groups of Excellence of the region of Murcia, the Fundacion Seneca, Science, and Technology Agency of the region of Murcia project 19884/GERM/15.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Acknowledgments
We are deeply saddened by the loss of our dear friend and coauthor of this paper: Jesús Mur. We have worked together for a long time, enjoying a wonderful friendship. Jesús transmitted to us his passion for spatial econometrics and economic analysis, and was always persistent in pushing the frontier of knowledge. We dedicate this paper to his memory.
Conflicts of Interest
The authors declare no conflict of interest.
Appendix A
Appendix A.1. Maximum Likelihood Estimators
Since it follows that
Then the logarithm of this likelihood function remains as
Maximum likelihood estimators are obtained by solving the following equation
Appendix A.2. Chi-Squared Distributions for Symbolic Maps
Notice that asymptotically follows a Chi-squared distribution with k degrees of freedom, which will depend on the set of symbols. Hence
Now, if the symbolization map f is standard, that is, under the null H all the symbols have the same probability to occur, for all , then it follows that
Now taking into account that we have that
Appendix A.3. Non-Standard Symbolization Maps
This appendix gives a procedure to construct a non-standard symbolization maps.
Let be a family of nonempty subsets of the set of symbols . Assume that is a partition of , that is, and for all . Now we define the relation ∼ in by if and only if for some . Obviously the relation ∼ is an equivalence relation and therefore we can consider the quotient set formed by all the classes of equivalence as a new set of symbols. Denote by the class o equivalence of symbol . Therefore, there exists a natural projection defined by . Moreover, any symbolization map with set of symbols , namely , can be extended to a symbolization map with set of symbols by considering the following map
defined by
Notice that the cardinality of the set is d which is always smaller or equal than the cardinality of the former set .
Appendix A.4. A Generalization to Spatiotemporal Data of the Brett and Pinkse Test
The test of [32] is a nonparametric test of spatial dependence based on that two variables are independent if the joint characteristic function factorizes into the product of the marginal characteristic functions. We adapt this test to its use for studying spatiotemporal data.
Let a spatiotemporal realization of a process. The ’s can have continuous, discrete or mixed distributions, and the distribution functions are generally unknown. Under the null hypothesis, the spatiotemporal process is stationary and independent in space and time.
The design of the test is as follows. Let g be any practitioner-chosen density function with infinite support, and denote by the Fourier transform of g. Given a location s, refers to the set of neighbors of coordinate s. Fix a positive integer m and define as the set of nearby observations to location s in period t and as the number of observations. Let stands for the sampling average of the proximate observations to . The test null hypothesis is
H0.
y and y are independent for all t∈ I and s∈ S.
Define and . Introduce and defined by
where is the number of observations. Let
and
where , and is an indicator function.
Under the null of the test, the extension of the Brett and Pinkse statistic for a spatiotemporal context is the following:
which is asymptotically distributed.
The following two sufficient conditions are required by the test to be consistent: (1) spatiotemporal dependence of a fixed order, (2) the sequence has to be strongly mixing. Strong mixing is a weak dependence condition, while fixed ordered dependence is a restriction regarding these relationships must be produced between proximate observations. In this case, then the null hypothesis will be asymptotically rejected; however the behavior of the test will be undetermined, when the dependence involves observations that are not geographically or temporally proximate. Using spatial data, this means that an specification of the so-called spatial weighting matrix is needed and that this specification must be correct (Lopez et al, 2011, for more details).
References
- Amigo, J.M. Permutation Complexity in Dynamical Systems, 1st ed.; Springer: Berlin, Germany, 2010. [Google Scholar]
- Weaver, W.; Shannon, C.E. The Mathematical Theory of Communication; University of Illinois: Urbana, IL, USA, 1949. [Google Scholar]
- Morse, M. Recurrent geodesics on a surface of negative curvature. Trans. Am. Math. Soc. 1921, 22, 84. [Google Scholar] [CrossRef]
- Collet, P.; Eckmann, J.P. Iterated Maps on the Interval as Dynamical Systems; Brickhauser: Basel, Switzerland, 1980. [Google Scholar]
- Ruiz, M.; Matilla-García, M.; García, J.A.; Susillo, J.L.; Romo, A.; Gonzalez, A.; Ruiz, A.; Gayan, J. An Entropy Test for Single-Locus Genetic Association Analysis. BMC Genet. 2010, 11, 1–15. [Google Scholar]
- Daw, C.S.; Finney, C.E.A.; Tracy, E.R. A review of symbolic analysis of experimental data. Rev. Sci. Instrum. 2003, 74, 915–930. [Google Scholar] [CrossRef]
- Hao, B.; Zheng, W. Applied Symbolic Dynamics and Chaos; World Scientific: Singapore, 1998. [Google Scholar]
- Lunde, A.; Timmermann, A.G. Duration Dependence in Stock Prices:An Analysis of Bull and Bear Markets. J. Bus. Econ. Stat. 2004, 22, 253–273. [Google Scholar] [CrossRef]
- Robinson, P. Large-Sample Inference on Spatial Dependence. Econom. J. 2009, 12, 68–82. [Google Scholar] [CrossRef]
- López, F.; Matilla-García, M.; Mur, J.; Ruiz, M. Non-Parametric Spatial Independence Test Using Symbolic Entropy. Reg. Sci. Urban Econ. 2010, 40, 106–115. [Google Scholar] [CrossRef]
- García-Córdoba, J.A.; Matilla-García, M.; Ruiz Marin, M. A test for deterministic dynamics in spatial processes. Spat. Econ. Anal. 2019, 14, 361–377. [Google Scholar] [CrossRef]
- Conaway, M.R. Analysis of repeated categorical measurements with conditional likelihood methods. J. Am. Stat. 1989, 84, 53–62. [Google Scholar] [CrossRef]
- Stephenson, D.B. Use of the “Odds Ratio” for Diagnosing Forecast Skill. Weather. Forecast. 2000, 15, 221–232. [Google Scholar] [CrossRef]
- Bandt, C.; Shiha, F. Order patterns in time series. J. Time Ser. Anal. 2007, 28, 646–665. [Google Scholar] [CrossRef]
- Matilla-García, M. A non-parametric test for independence based on symbolic dynamics. J. Econ. Dyn. Control. 2007, 31, 3889–3903. [Google Scholar] [CrossRef]
- Matilla-García, M.; Ruiz, M. A non-parametric independence test using permutation entropy. J. Econom. 2008, 144, 139–155. [Google Scholar] [CrossRef]
- Sinn, M.; Keller, K. Estimation of ordinal pattern probabilities in Gaussian processes with stationary increments. Comput. Stat. Data Anal. 2011, 55, 1781–1790. [Google Scholar] [CrossRef]
- Schnurr, A. An Ordinal Pattern Approach to Detect and to Model Leverage Effects and Dependence Structures Between Financial Time Series. Stat. Pap. 2014, 55, 919–931. [Google Scholar] [CrossRef]
- Schnurr, A.; Dehling, H. Testing for Structural Breaks via Ordinal Pattern Dependence. J. Am. Stat. Assoc. 2017. [Google Scholar] [CrossRef]
- Caballero-Pintado, M.V.; Matilla-García, M.; Marín, M.R. Symbolic correlation integral. Econom. Rev. 2019, 38, 533–556. [Google Scholar] [CrossRef]
- Caballero-Pintado, M.V.; Matilla-García, M.; Ruiz Marín, M. Symbolic recurrence plots to analyze dynamical systems. Chaos Interdiscip. J. Nonlinear Sci. 2018, 28, 063112. [Google Scholar] [CrossRef]
- Hong, Y.; White, H. Asymptotic distribution theory for nonparametric entropy measures of serial dependence. Econometrica 2005, 73, 837–901. [Google Scholar] [CrossRef]
- Faura, Ú; Lafuente, M.; Matilla-García, M.; Ruiz, M. Identifying the Most Relevant Lag with Runs. Entropy 2015, 17, 2706–2722. [Google Scholar] [CrossRef]
- Cliff, A.D.; Ord, J.K. Spatial Processes: Models and Applications; Pion: London, UK, 1981. [Google Scholar]
- Agresi, A. An Introduction to Categorical Data Analysis; John Wiley and Sons: Brisbane, Australia, 1996. [Google Scholar]
- Bandt, C.; Keller, G.; Pompe, G. Entropy of interval maps via permutations. Nonlinearity 2002, 12, 1595–1602. [Google Scholar] [CrossRef]
- Soon Spario, Y.T. Binomial Approximation for dependent indicators. Stat. Sin. 1996, 6, 703–714. [Google Scholar]
- Ruiz, M.; López, F.; Páez, A. Testing for spatial association of qualitative data using symbolic dynamics. J. Geogr. 2009, 12, 281–308. [Google Scholar] [CrossRef]
- Matilla-García, M.; Marín, M.R. A new test for chaos and determinism based on symbolic dynamics. J. Econ. Behav. Organ. 2010, 76, 600–614. [Google Scholar] [CrossRef]
- Baltagi, B.; Kelejian, H.; Prucha, I. Anal. Spatiallydependent Data. J. Econom. 2007, 140, 1–4. [Google Scholar] [CrossRef]
- López, F.A.; Matilla-García, M.; Mur, J.; Marín, M.R. Four tests of independence in spatiotemporal data. Pap. Reg. 2011. [Google Scholar] [CrossRef]
- Brett, C.; Pinkse, J. Those Taxes are all over the Map A Test for Spatial Independence of Municipal Tax Rates in British Columbia. Int. Reg. Sci. Rev. 1997, 20, 131–151. [Google Scholar] [CrossRef]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).