Next Article in Journal
Influence of Impulse Disturbances on Oscillations of Nonlinearly Elastic Bodies
Next Article in Special Issue
Monopolistic Dynamics with Endogenous Product Differentiation
Previous Article in Journal
Limit Theory for Stationary Autoregression with Heavy-Tailed Augmented GARCH Innovations
Previous Article in Special Issue
A Full Description of ω-Limit Sets of Cournot Maps Having Non-Empty Interior and Some Economic Applications
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Statistical Tests of Symbolic Dynamics †

by
Fernando López
1,‡,
Mariano Matilla-García
2,*,‡,
Jesús Mur
3,‡ and
Manuel Ruiz Marín
1,‡
1
Departamento de Métodos Cuantitativos, Universidad Politécnica de Cartagena, 30202 Cartagena, Spain
2
Departamento de Economía Aplicada y Estadística, Universidad Nacional de Educación a Distancia (UNED), 28040 Madrid, Spain
3
Departamento de Análisis Económico, Universidad de Zaragoza, 50018 Zaragoza, Spain
*
Author to whom correspondence should be addressed.
This paper is an extended and revised version of our Conference manuscript presented (but not published) in a session at the Econometric Society World Congress 2010 under the title Symbolic Dynamics to Test Basic Null Hypotheses.
These authors contributed equally to this work.
Mathematics 2021, 9(8), 817; https://doi.org/10.3390/math9080817
Submission received: 11 February 2021 / Revised: 25 March 2021 / Accepted: 29 March 2021 / Published: 9 April 2021
(This article belongs to the Special Issue Mathematical Methods on Economic Dynamics)

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 0 , 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 { X i } i I be a stationary real-valued process, where I is a set of indexes.
Let Γ = { η 1 , η 2 , , η n } be a set of n > 1 elements that we label as symbols. Now assume that there exists a map
f : { X i } i I Γ
for some subset of indexes I I . We will say that i I is of η -type if and only if f ( X i ) = η . We will call the map f a symbolization map for { X i } i I .
Notice that it is possible to expand the definition of a symbolization map to the k dimensional case by introducing the concept of decomposable maps: if f j : { X i j } i I Γ j , j = 1 , 2 , , k , are k symbolization maps, then the product
F = j = 1 k f j : j = 1 k { X i j } i I j = 1 k Γ j
is a symbolization map for the k-dimensional variable { ( X i 1 , X i 2 , , X i k ) } i I . We will call F a k-decomposable symbolization map.
Given a symbolization map f : { X i } i I Γ and a symbol η Γ , we denote by p η 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 0 ) 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 { X i } i I is defined as the Shannon’s entropy of the n distinct symbols as follows:
h ( Γ ) = η Γ p η ln ( p η ) ,
with the convention 0 × ln 0 = l ı ´ m x 0 + x ln x = 0 .
Symbolic entropy, h ( Γ ) , can be understood as the information in terms of symbols η Γ of the process { X i } i I . Notice that 0 h ( Γ ) ln ( n ) . 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 i I that we define an indicator random variable Z η i as follows:
Z η i = 1 if f ( X i ) = η 0 otherwise ,
that is, we have that Z η i = 1 if and only if i is of η -type, and Z η i = 0 otherwise.
Then Z η i is a Bernoulli variable with probability of “success” p η , where “success” means that i is of η -type. It is straightforward to see that
η Γ p η = 1
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:
Y η = i I Z η i
The variable Y η can take the values { 0 , 1 , 2 , , R } , where | I | = R .
To complete with notation, we will denote by
n η = { i I | f ( X i ) = η } ,
the cardinality of the subset of symbolized indexes I formed by all the elements of η -type.
Then, under the conditions above, one could easily compute the relative frequency of a symbol η Γ by:
p ^ η : = { i I | i   is   of   η type } R
which is the maximum likelihood estimator of p η .

3. On the Independence of Variables { Z η i } i I

If the subset of symbolized indexes I is chosen such that the Z η i variables are independent for all i I , then Y η is a binomial random variable
Y η B ( R , p η ) .
Moreover, if the subset of indexes I is such that the variables Z η s and Z σ t are independent for all symbol η s , σ t Γ , s t , where s , t { 1 , 2 , , n } , then the joint probability density function of the n variables ( Y η 1 , Y η 2 , , Y η n ) is:
P ( Y η 1 = a 1 , Y η 2 = a 2 , , Y η n = a n ) = ( a 1 + a 2 + + a n ) ! a 1 ! a 2 ! · · a n ! p η 1 a 1 p η 2 a 2 p η n a n
where a 1 + a 2 + + a n = R . Consequently the joint distribution of the n variables ( Y η 1 , Y η 2 , , Y η n ) is a multinomial distribution. In this case we will call the set of symbolized indexes I 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 I is not perfect. Given our previous definition of perfect set, the indexes subset I can be nonperfect in the following cases:
  • Case (a): Z η i and Z η j are not independent for all i j for some η Γ , and hence Y η is not a binomial random variable.
  • Case (b): Z η s and Z σ t are not independent for all s t for some σ t , η s Γ , and hence ( Y η 1 , Y η 2 , , Y η n ) 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 I

In this section we establish a general framework for testing for a null hypothesis H 0 . This is done by focusing on the symbols’ distribution when the subset I 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 0 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 0 , namely, p η ( 0 ) 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, ( Y η 1 , , Y η n ) follows a multinomial distribution and its likelihood function is:
L ( p η 1 , p η 2 , , p η n ) = R ! n η 1 ! n η 2 ! · · n η n ! p η 1 n η 1 p η 2 n η 2 p η n n η n
and the likelihood ratio test statistic is
λ ( Y ) = R ! n η 1 ! n η 2 ! · · n η n ! p η 1 ( 0 ) n η 1 p η 2 ( 0 ) n η 2 p η n ( 0 ) n η n R ! n η 1 ! n η 2 ! · · n η n ! p ^ η 1 n η 1 p ^ η 2 n η 2 p ^ η n n η n ,
where p ^ η i is the maximum likelihood estimator of p η i for all i = 1 , 2 , , n . In this case, as shown in the Appendix A, maximum likelihood estimators are p ^ η i = n η i R .
Moreover, it is possible to show (see Appendix A.2) that
2 [ R L n ( R ) + i = 1 n n η i L n p η i n η i 0 ] χ k 2 ,
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
2 R [ L n ( n ) h ( Γ ) ] χ k 2 ,
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 I the indicator variables Z η i are independent, the random variable Y η R p η R p η ( 1 p η ) has a limiting normal distribution with zero mean and unit variance for all symbol η Γ . Moreover
Y η 1 R p η 1 R p η 1 ( 1 p η 1 ) , Y η 2 R p η 2 R p η 2 ( 1 p η 2 ) , , Y η n R p η n R p η n ( 1 p η n )
asymptotically distributes as a multivariate normal distribution M N ( 0 , I ) . In this case, the asymptotic distribution holds for standard or nonstandard symbolization maps at the cost of estimating p η i that can be consistently estimated by p ^ η i .

5. Constructing Tests with Non Perfect Subsets of I

In this section we establish the equivalent counterpart of the general framework (above presented) when the subset I 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 Z η i and Z η j are not independent for all i j for some η Γ . In this case, Y η is not a binomial random variable. The interesting question is how far is Y η from B ( R , p η ) . We are interested in studying under what assumptions the variable Y η can be approximated to a binomial random variable:
Y η B ( R , p η ) .
In fact, it is possible to compute a bound for this binomial approximation.
Denote by L ( Y η ) the distribution of Y η , and we are interested in the bound of the binomial approximation of the distribution of Y η measured in terms of total variation distance. The total variation distance d T V between two probability measures P and Q is defined by
d T V ( P , Q ) = sup A | P ( A ) Q ( A ) |
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 i , j I let Z η j , Z η i and J η i j be defined in the same probability space where J η j i = ( Z η j | Z η i = 1 ) . Let
W i = j i Z η j V i = j i J η j i
and
C R , p = 1 p R + 1 q R + 1 R + 1 p q .
W i counts the number of indexes that are of η -type and p = p η and q = 1 p η . On the other hand V i = j i ( Z η j | Z η i = 1 ) counts the number of indexes that are of η -type conditioned to location i is of η -type.
Then
d T V ( L ( Y η ) , B ( R , p ) ) C R , p p i = 1 R E ( | W i V i | ) .
Therefore, in order to get a bound for the binomial approximation, we have to get bound
i = 1 R E ( | W i V i | ) .
On the other hand, we have that E ( | W i V i | ) j i E ( | Z η j J η j i | ) and p E ( J η j i ) = E ( Z η i Z η j ) . Now denote by B i η a subset of indexes such that Z η i is independent of { Z η j | j B i } . Therefore, we obtain that
d T V ( L ( Y η ) , B ( R , p ) ) C R , p p i = 1 R E ( | W i V i | ) C R , p p i = 1 R j B i \ { i } E ( | Z η j J η j i | ) C R , p p i = 1 R j B i \ { i } p + E ( J η j i ) C R , p i = 1 R p 2 ( | B i | 1 ) + i = 1 R j B i \ { i } E ( Z η i Z η j )
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 I such that | B i | is small enough.

5.2. Normal Approximation

Additionally, when the indicator variables Z η i are not independent for all i I , the following central limit theorem for dependent indicators ensures the convergence to a normal distribution:
Theorem 1.
(Theorem 7.7.5 (Anderson, 1971)). Let Z 1 , Z 2 , be a stationary stochastic process such that for every integer n and integers t 1 , t 2 , , t n with t 1 < < t n , Z t 1 , , Z t n are distributed independently of Z 1 , , Z t 1 m 1 and Z t n + m + 1 , . If E ( Z t ) = 0 and E ( Z t 2 ) < , then
t = 1 T Z t T
has a limiting normal distribution with mean 0 and variance
E ( Z 1 2 ) + 2 E ( Z 1 Z 2 ) + + 2 E ( Z 1 Z m + 1 ) .
Theorem 1 states that, if the dependencies are weak (for instance, | B i | is small enough for all i I ) we get that Y η R p η V a r ( Y η ) d N ( 0 , 1 ) as R . The variance of the variable Y η can be computed as follows:
V a r ( Y η ) = E ( Y η 2 ) E ( Y η ) 2 = i = 1 R E ( Z η i 2 ) + i = 1 R j i E ( Z η i Z η j ) R 2 p η 2 = R p η R 2 p η 2 + i = 1 R ( R | B i | ) p η 2 + i = 1 R j B i \ { i } E ( Z η i Z η j ) = R p η R 2 p η 2 + R 2 p η 2 p η 2 i = 1 R | B i | + i = 1 R j B i \ { i } E ( Z η i Z η j ) = R p η p η 2 i = 1 R | B i | + i = 1 R j B i \ { i } E ( Z η i Z η j )
We now consider the case where Z η s and Z σ t are not independent for all s t for some σ t , η s Γ , and hence ( Y η 1 , Y η 2 , , Y η n ) is not a multinomial distribution (i.e., previous case (b)). To this end, denote by B i ( η , σ ) the subset of indexes satisfying that Z η i is independent of { Z σ j | j B i ( η , σ ) } and X η = Y η R p η V a r ( Y η ) . It is possible to show that ( X η 1 , X η 2 , , X η n ) is a multivariate normal distribution. In fact, it is equivalent to proving that any linear combination of the X η s is normal. In order to do so, notice that each variable X η 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:
M = α 1 X η 1 + α 2 X η 2 + + α n X η n
Notice that the variable α X η can be written as α X η = i = 1 R I i η where I i η is an indicator variable for all i I . 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 B i B i ( η s , η t ) is small enough for all i I and all symbol η , η s , η t Γ ). Then we get that ( X η 1 , X η 2 , , X η n ) has a limiting multivariate normal distribution and we can compute the variance and covariance matrix for all η s , η t Γ as follows:
C o v ( Y η s , Y η t ) = i = 1 R j = 1 R C o v ( Z η s i , Z η t j ) = i = 1 R j B i ( η s , η t ) C o v ( Z η s i , Z η t j ) = i = 1 R j B i ( η s , η t ) { E ( Z η s i Z η t j ) E ( Z η s i ) E ( Z η t j ) } = p η s i = 1 R j B i ( η s , η t ) p ( Z η t j = 1 | Z η s i = 1 ) p η s p η t i = 1 R | B i ( η s , η t ) | .

6. The Symbolic Main Theorem

Previous partial results can be collected in the following main theorem.
Theorem 2.
Let { X i } i I be a stationary real valued process. Let Γ = { η 1 , η 2 , , η n } be a finite set of symbols. Let f : { X i } i I Γ be a standard symbolization map for a null hypothesis H 0 . Then under the null H 0 we have that:
  • If the set of symbolized indexes I is perfect:
    • Then G ( Γ ) = 2 R [ ln ( n ) h ( Γ ) ] is asymptotically χ k 2 distributed where k is the difference between the number of parameters to be estimated under the alternative hypothesis H 1 and the number of parameters to be estimated under the null H 0 .
    • Then ( Y η 1 R p η 1 R p η 1 ( 1 p η 1 ) , Y η 2 R p η 2 R p η 2 ( 1 p η 2 ) , , Y η n R p η n R p η n ( 1 p η n ) ) is a multivariate normal distribution MN ( 0 , I ) .
  • The set of symbolized indexes I is not perfect:
    • If the sets B i and B i ( η s , η t ) have good properties in the sense that for all symbol η Γ the variables Y η have a good approximation to a binomial distribution and ( Y η 1 , Y η 2 , , Y η n ) has a good approximation to a multinomial distribution, then G ( Γ ) = 2 R [ ln ( n ) h ( Γ ) ] is asymptotically χ k 2 distributed where k is the difference between the number of parameters to be estimated under the alternative hypothesis H 1 and the number of parameters to be estimated under the null H 0 .
    • If I is such that Theorem 1 holds, then ( Y η 1 R p η 1 V a r ( Y η 1 ) , Y η 2 R p η 2 V a r ( Y η 2 ) , , Y η n R p η n V a r ( Y η n ) ) is a multivariate normal distribution MN ( 0 , Σ ) where the variance and covariance matrix can be estimated using (4) and (5).
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 { X t } t I 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 Γ 1 = S m the symmetric group of order m ! , that is, the group formed by all the permutations of length m (for a positive integer m 2 ) . Let π i = ( i 1 , i 2 , , i m ) S m . The positive integer m is usually known as the embedding dimension.
An ordinal pattern for a symbol is defined as π i = ( i 1 , i 2 , , i m ) S m at a given time t I . The time series can be embedded in an m-dimensional space:
X m ( t ) = ( X t + 1 , X t + 2 , , X t + m ) for t I
It is said that t is of π i type if and only if π i = ( i 1 , i 2 , , i m ) is the unique symbol in the group S m satisfying the two following conditions:
( a ) X t + i 1 X t + i 2 X t + i m , and ( b ) i s 1 < i s i f X t + i s 1 = X t + i s
Notice that condition ( b ) guaranties uniqueness of the symbol π i . This is justified if the values of X t 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 f 1 : { X t } t I S m given by
f 1 ( X t ) = ( i 1 , i 2 , , i m )
where ( i 1 , i 2 , , i m ) S m is such that t is of ( i 1 , i 2 , , i m ) -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 f 1 is a standard symbolization map. Additionally, the set of symbolized indexes is I = { 1 , 2 , , T m + 1 } , which is not perfect.
Notice that in order to have a perfect set and therefore ensure the independence of the indicator variables Z π t , it is enough to consider as a set of symbolized indexes
I = { 0 , m 1 , 2 ( m 1 ) , , t ( m 1 ) , } .
Accordingly, using this symbolization map, the next corollary straightforwardly follows from Theorem 2:
Corollary 1.
Let f 1 : { X t } t I Γ 1 be the symbolization map defined in (6) with | I | = R . Denote by h ( Γ 1 ) the permutation entropy defined in (1). If the time series { X t } t I is independent, then
  • If the set I is perfect, then:
    1. 
    The affine transformation of the permutation entropy
    G ( S m ) = 2 R [ L n ( m ! ) h ( S m ) ]
    is asymptotically χ m ! 1 2 distributed.
    2. 
    Then ( Y π 1 R p π 1 R p π 1 ( 1 p π 1 ) , Y π 2 R p π 2 R p π 2 ( 1 p π 2 ) , , Y π m ! R p π m ! R p π m ! ( 1 p π m ! ) ) is a multivariate normal distribution NM ( 0 , I ) .
  • If the set I is not perfect:
    1. 
    Since the sets B i π ’s has cardinality of at most 2 m , we can get a good approximation to the following result via [21]. The affine transformation of the permutation entropy
    G ( S m ) = 2 R [ L n ( m ! ) h ( S m ) ]
    is asymptotically χ m ! 1 2 distributed.
    2. 
    Then ( Y π 1 R p π 1 V a r ( Y π 1 ) , Y π 2 R p π 2 V a r ( Y π 2 ) , , Y π m ! R p π m ! V a r ( Y π m ! ) ) is a multivariate normal distribution MN ( 0 , Σ ) where the variance and covariance matrix can be estimated using (4) and (5).
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 p η i 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 { X s } s S be a real-valued spatial process, where S is a set of coordinates. Given a location s 0 , we will denote by ( ρ i 0 , θ i 0 ) the polar coordinates of location s i taking as origin s 0 .
Let m N with m 2 . Consider now that the spatial process { X s } s S is embedded in a different m-dimensional space as follows:
X m ( s 0 ) = ( X s 0 , X s 1 , , X s m 1 ) for s 0 S
where s 1 , s 2 , , s m 1 are the m 1 nearest neighbors to s 0 , which are ordered from lesser to higher Euclidean distance with respect to location s 0 . Notice that in the case of two or more locations being equidistant to s 0 , we will choose them in an anticlockwise manner. In formal terms, s 1 , s 2 , , s m 1 are the m 1 nearest neighbors to s 0 satisfying the following two conditions:
  • (a) ρ 1 0 ρ 2 0 ρ m 1 0 ;
  • (b) If ρ i 0 = ρ i + 1 0 , then θ i 0 < θ i + 1 0 .
Notice that conditions ( a ) and ( b ) ensure the uniqueness of X m ( s ) for all s S .
The proposed standard symbolization map f is defined as follows: denote by M e the median of the spatial process { X s } s S and let
δ s = 0 if X s M e 1 otherwise
Now, define the indicator function
I s 1 s 2 = 0 if δ s 1 δ s 2 1 otherwise
Then, the standard symbolization map
f 2 : { X s } s I Γ 2
is defined as:
f 2 ( X s ) = ( I s s 1 , I s s 2 , , I s s m 1 ) ,
where Γ 2 stands for the set of symbols defined by f 2 .
Notice that under the null of spatial independence, the distribution of the symbols is uniform and therefore the map f 2 is a standard symbolization map.
Moreover, in this case I = S is not a perfect symbolized set. To construct a perfect symbolized set I , one can proceed as follows. Take a location s 0 S at random. Let N s be the set of nearest neighbors to s. Now select the following element in I by taking s 1 S such that N s 1 N s 0 = . Then construct recursively the set I by taking s k S \ { s 0 , s 1 , , s k 1 } satisfying N s i N s j = for all i j with i , j = 1 , 2 , , k .
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 { X s } s S . Let Γ 3 = { 1 , 2 , , k } × { 1 , 2 , , k } . Again, let N s be the set of nearest neighbors to s and let n s be its cardinality. Denote by X s N = 1 n s s N s X s . Denote by q i and q i N the i-th quantile of the variables X and X N respectively, for i { 1 , 2 , , k 1 } . We will denote by q 0 = min s S X s (resp q 0 N = min s S X s N ) and q k + 1 = max s S X s (resp. q k + 1 N = max s S X s N ). Then we define the symbolization map
f 3 ( X s ) = ( i , j )
if and only if X s [ q i 1 , q i ] and X s N [ q j 1 N , q j N ] .
Again, under the null of independence the distribution of the symbols is uniform and therefore the map f 3 : { X s } s I { 1 , 2 , , k } × { 1 , 2 , , k } is a standard symbolization map.
Again, the same set of recursively constructed symbolized indexes S ensures the independence of the indicator variables Z η s . Accordingly, using this symbolization map, the next corollary straightforwardly follows from Theorem 2:
Corollary 2.
Let f i : { X s } s S Γ i , i = 2 , 3 be the symbolization maps defined in (8) and (10) with | S | = R . Denote by h ( Γ i ) the symbolic entropy defined in (1). If the spatial process { X s } s S is independent, it follows that:
  • If the set S is perfect then:
    1. 
    The affine transformation of the symbolic entropy
    S G ( Γ i ) = 2 R [ L n ( n i ) h ( Γ i ) ]
    is asymptotically χ d i 2 distributed where d 2 = 2 m 1 , d 3 = ( k 1 ) 2 + 2 , n 2 = 2 m 1 and n 3 = k 2 .
    2. 
    Then ( Y σ 1 R p σ 1 R p σ 1 ( 1 p σ 1 ) , Y σ 2 R p σ 2 R p σ 2 ( 1 p σ 2 ) , , Y σ n i R p σ n i R p σ n i ( 1 p n i ) ) is a multivariate normal distribution MN ( 0 , I ) .
  • If the set S is not perfect, then:
    1. 
    Since the sets B i σ have small cardinality, we can get a good approximation to the following result of [17]. The affine transformation of the symbolic entropy
    S G ( Γ i ) = 2 R [ L n ( n i ) h ( Γ i ) ]
    is asymptotically χ d i 2 distributed where d 2 = 2 m 1 , d 3 = ( k 1 ) 2 + 2 , n 2 = 2 m 1 and n 3 = k 2 .
    2. 
    Then ( Y σ 1 R p σ 1 V a r ( Y σ 1 ) , Y σ 2 R p σ 2 V a r ( Y σ 2 ) , , Y σ n i R p σ n i V a r ( Y σ n i ) ) is a multivariate normal distribution MN ( 0 , Σ ) where the variance and covariance matrix can be estimated using (4) and (5).
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 Γ 2 of symbols defined in (9) for a fixed embedding dimension m. Now we will denote by a ¯ the rest of the division of a over m 1 .
Now define the following equivalence relation ∼:
( I s s 1 , I s s 2 , , I s s m 1 ) ( I s s 1 , I s s 2 , , I s s m 1 )
if and only if there exists an integer k such that I s s i = I s s i + k ¯ for all i { 1 , 2 , , m 1 } .
Now we consider as a set of symbols Γ 4 = Γ 2 / the set of classes in Γ 2 modulo, the equivalence relation ∼.
Notice that, in general, in this case not all the symbols in Γ 4 have the same probability of occurring, and therefore the symbolization map f 4 : { X s } s S Γ 4 ˜ 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 { X t s } t I , s S . 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 s 0 S define { X t ( s 0 ) } as the time series { X 1 s 0 , X 2 s 0 , , X p ( s 0 ) , } . Similarly for a fixed period t 0 I we define { X ( t 0 ) s } as the spatial process
{ X t 0 s 1 , X t 0 s 2 , , X t 0 s p , }
Let m t , m s N with m t , m s 2 be the time and space embedding dimensions respectively. Then under this setting we define the following decomposable symbolization maps F 1 i : { X t s } t I , s S § m × Γ i for i = 2 , 3 and 4 defined by:
F 1 i ( X t s ) = ( f 1 ( X t ( s ) ) , f i ( X ( t ) s ) )
where f 1 : { X t ( s ) } S m and f i : { X ( t ) s } Γ i for i = 2 , 3 , 4 are defined as above.
Notice that, when testing for spatiotemporal independence, when i = 2 , 3 the symbolization map F 1 i is standard, while for i = 4 is non-standard.
It is also possible to define an extension of the symbolization map f 2 in a spatiotemporal context. Indeed, consider the following map:
g : { X t s } t I , s S i = 1 m t Γ 2
defined by
g ( X t s ) = ( f ( X ( t ) s ) , f ( X ( t + 1 ) s ) , , f ( X ( t + m t 1 ) s ) )
where f ( X ( t + i ) s ) = ( I t s , ( t + i ) s 1 , I t s , ( t + i ) s 2 , , I t s , ( t + i ) s m t 1 ) ) for all i = 0 , 1 , , m t 1 and the indicator function I t s , ( t + i ) s j is defined as in (7).
Accordingly, using this symbolization map, the next corollary straightforwardly follows from Theorem 2:
Corollary 3.
Let F 1 i : { X t s } t I , s S S m t × Γ i and g : { X t s } t I , s S i = 1 m t Γ 2 be the standard symbolization maps defined in (11) with i = 2 , 3 and in (12) respectively. Denote by h ( S m t × Γ i ) and h ( i = 1 m t Γ 2 ) the symbolic entropy defined in (1). If the spatiotemporal process { X t s } t I , s S is independent, then:
  • If indexes sets are perfect then:
    1. 
    The affine transformations of the symbolic entropy
    S T G ( S m t × Γ i ) = 2 R T [ L n ( n i ) h ( S m t × Γ i ) ]
    S T G ( i = 1 m t Γ 2 ) = 2 R T [ L n ( 2 m t ( m s 1 ) ) h ( i = 1 m t Γ 2 ) ]
    are asymptotically χ q 2 distributed. In (13) for i = 2 q = ( m t 1 ) ! 2 m s 1 and n 2 = m t ! 2 m s 1 , and for i = 3 q = ( m t ! 1 ) ( ( k 1 ) 2 + 2 ) and n 3 = m t ! k 2 . In (14) q = 2 m t ( m s 1 ) .
    2. 
    Then ( Y σ 1 R p σ 1 R p σ 1 ( 1 p σ 1 ) , Y σ 2 R p σ 2 R p σ 2 ( 1 p σ 2 ) , , Y σ 2 m 1 R p σ n R p σ n ( 1 p σ n ) ) is a multivariate normal distribution MN ( 0 , I ) where n is the cardinality of the set of symbols.
  • If indexes sets are not perfect then
    1. 
    If the sets B i ’s have small cardinality for all symbol η, then the affine transformations of the symbolic entropy
    S T G ( S m × Γ i ) = 2 R T [ L n ( n i ) h ( S m × Γ i ) ]
    S T G ( i = 1 m Γ 2 ) = 2 R T [ L n ( 2 m t ( m 1 ) ) h ( i = 1 m t Γ 2 ) ]
    are asymptotically χ q 2 distributed. In (15) for i = 2 q = ( m t 1 ) ! 2 m s 1 and n 2 = m t ! 2 m s 1 , and for i = 3 q = ( m t ! 1 ) ( ( k 1 ) 2 + 2 ) and n 3 = m t ! k 2 . In (16) q = 2 m t ( m s 1 ) .
    2. 
    Then ( Y η 1 R p η 1 V a r ( Y η 1 ) , Y η 2 R p η 2 V a r ( Y η 2 ) , , Y η n R p η n V a r ( Y η n ) ) is a multivariate normal distribution MN ( 0 , Σ ) where the variance and covariance matrix can be estimated using (4) and (5) and n is the cardinality of the set of symbols.

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 I . 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 I 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 m s = 4 and m t = 2 . 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: N s i t j N s r t k = , where N s i t j is the set conformed with s i , the three nearest neighbors of s i in t j and the four spatial locations in the next time period. The power of the test is evaluated with the following DGPs:
D G P 1 : y t = ( I γ W ) 1 ( α y t 1 + λ + ε t ) D G P 2 : y t = ( I γ W ) 1 ( α y t 1 + λ + ε t ) 3
where ε t N ( 0 , 1 ) , 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 ( α = γ = 0.1 ) the test is absolutely powerful. We have to set α = 1 / 40 , γ = 1 / 25 (or below) to lose power. This occurred despite the DGP under consideration.
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 F 1 i , i = 2 where we control the dependence among the indicators by controlling on average the cardinality of the sets B i . Particularly, we will select the set of indexes I such that B ¯ i ( m s + m t 1 ) / 2 ; i.e., the average of the cardinality of the sets B i 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).

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 F ¯ 1 , 2 = ( f 1 , f ¯ 2 ) 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.

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 i = 1 n p η i = 1 it follows that
L ( p η 1 , p η 2 , , p η n ) = R ! n η 1 ! n η 2 ! · · n η n ! p η 1 n η 1 p η 2 n η 2 ( 1 p η 1 p η 2 p η n 1 ) n η n .
Then the logarithm of this likelihood function remains as
L n ( L ( p η 1 , p η 2 , , p η n ) ) = L n ( R ! n η 1 ! n η 2 ! · · n η n ! ) + i = i n 1 n η i L n ( p η i ) + n η n L n ( 1 p η 1 p η 2 p η n 1 ) .
Maximum likelihood estimators p ^ η i = n η i R are obtained by solving the following equation
L n ( L ( p η 1 , p η 2 , , p η n ) ) p η i = 0 .

Appendix A.2. Chi-Squared Distributions for Symbolic Maps

Notice that 2 L n ( λ ( Y ) ) asymptotically follows a Chi-squared distribution with k degrees of freedom, which will depend on the set of symbols. Hence
2 L n ( λ ( Y ) ) = 2 [ R L n ( R ) + i = 1 n n η i L n p η i n η i ] χ k 2
Now, if the symbolization map f is standard, that is, under the null H 0 all the symbols have the same probability to occur, p η i = 1 n for all i = 1 , 2 , , n , then it follows that
2 L n ( λ ( Y ) ) = 2 R [ L n ( R ) + i = 1 n n η i R L n p η i n η i ] = 2 R [ L n ( R ) + i = 1 n n η i R ( L n 1 n L n ( n η i ) ) ] = 2 R [ L n ( R ) + i = 1 n n η i R ( L n 1 n L n n η i R L n ( R ) ) ]
Now taking into account that h ( Γ ) = i = 1 n p η i L n ( p η i ) = i = 1 n n η i R L n n η i R , we have that 2 L n ( λ ( Y ) ) = 2 R [ L n ( n ) h ( Γ ) ] .

Appendix A.3. Non-Standard Symbolization Maps

This appendix gives a procedure to construct a non-standard symbolization maps.
Let A = { A 1 , A 2 , , A d } be a family of nonempty subsets of the set of symbols Γ . Assume that A is a partition of Γ , that is, Γ = i = 1 d A i and A 1 A j = for all i j . Now we define the relation ∼ in Γ by η σ if and only if η , σ A i for some i = 1 , 2 , , d . 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 f : { X i } i I Γ , can be extended to a symbolization map with set of symbols Γ ¯ by considering the following map
f ¯ = π f : { X i } i I Γ ¯
defined by f ¯ ( X i ) = f ( X i ) ¯ .
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 { y t s } t I , s S a spatiotemporal realization of a process. The y t s ’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 h ( x ) = e i u x g ( u ) d u the Fourier transform of g. Given a location s, N s refers to the set of neighbors of coordinate s. Fix a positive integer m and define N t s m = { t s | t = t , t + 1 , , t + m 1 ; s N s } as the set of nearby observations to location s in period t and n t s = N t s m as the number of observations. Let y t s N = 1 n t s r k N t s m y r k stands for the sampling average of the proximate observations to y t s . The S T B P test null hypothesis is
H0. 
y t s and y t s N are independent for all t∈ I and s∈ S.
Define h ( t 1 s 1 , t 2 s 2 ) = h ( y t 1 s 1 y t 2 s 2 ) and h ( t 1 s 1 , t 2 s 2 ) N N = h ( y t 1 s 1 N y t 2 s 2 N ) . Introduce η n 1 , η n 2 and η n 3 defined by
η n 1 = n 2 t s , r k h ( t s , r k ) h ( t s , r k ) N N ; η n 2 = n 3 t s , r k , u v h ( t s , r k ) h ( t s , u v ) N N ; η n 3 = n 4 t s , r k , u v , p q h ( t s , r k ) h ( u v , p q ) N N ,
where n = R T is the number of observations. Let
η n = ( η n 1 η n 2 ) 2 + ( η n 2 η n 3 ) 2
and
ν n = ( γ n μ n 2 ) 2 n 1 t s n t s 1 I ( n t s > 0 ) + r k n r k 1 I ( r k N t s ) I ( t s N r k )
where μ n = n 2 t , s h t s , γ n = n 3 s , t , u h t s h t u and I ( · ) 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:
S T B P = n η n 2 ν n
which is asymptotically χ 1 2 distributed.
The following two sufficient conditions are required by the S T B P 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

  1. Amigo, J.M. Permutation Complexity in Dynamical Systems, 1st ed.; Springer: Berlin, Germany, 2010. [Google Scholar]
  2. Weaver, W.; Shannon, C.E. The Mathematical Theory of Communication; University of Illinois: Urbana, IL, USA, 1949. [Google Scholar]
  3. Morse, M. Recurrent geodesics on a surface of negative curvature. Trans. Am. Math. Soc. 1921, 22, 84. [Google Scholar] [CrossRef]
  4. Collet, P.; Eckmann, J.P. Iterated Maps on the Interval as Dynamical Systems; Brickhauser: Basel, Switzerland, 1980. [Google Scholar]
  5. 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]
  6. 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]
  7. Hao, B.; Zheng, W. Applied Symbolic Dynamics and Chaos; World Scientific: Singapore, 1998. [Google Scholar]
  8. 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] [Green Version]
  9. Robinson, P. Large-Sample Inference on Spatial Dependence. Econom. J. 2009, 12, 68–82. [Google Scholar] [CrossRef]
  10. 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] [Green Version]
  11. 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]
  12. Conaway, M.R. Analysis of repeated categorical measurements with conditional likelihood methods. J. Am. Stat. 1989, 84, 53–62. [Google Scholar] [CrossRef]
  13. Stephenson, D.B. Use of the “Odds Ratio” for Diagnosing Forecast Skill. Weather. Forecast. 2000, 15, 221–232. [Google Scholar] [CrossRef]
  14. Bandt, C.; Shiha, F. Order patterns in time series. J. Time Ser. Anal. 2007, 28, 646–665. [Google Scholar] [CrossRef]
  15. 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]
  16. Matilla-García, M.; Ruiz, M. A non-parametric independence test using permutation entropy. J. Econom. 2008, 144, 139–155. [Google Scholar] [CrossRef] [Green Version]
  17. 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]
  18. 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] [Green Version]
  19. Schnurr, A.; Dehling, H. Testing for Structural Breaks via Ordinal Pattern Dependence. J. Am. Stat. Assoc. 2017. [Google Scholar] [CrossRef] [Green Version]
  20. Caballero-Pintado, M.V.; Matilla-García, M.; Marín, M.R. Symbolic correlation integral. Econom. Rev. 2019, 38, 533–556. [Google Scholar] [CrossRef]
  21. 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]
  22. Hong, Y.; White, H. Asymptotic distribution theory for nonparametric entropy measures of serial dependence. Econometrica 2005, 73, 837–901. [Google Scholar] [CrossRef]
  23. Faura, Ú; Lafuente, M.; Matilla-García, M.; Ruiz, M. Identifying the Most Relevant Lag with Runs. Entropy 2015, 17, 2706–2722. [Google Scholar] [CrossRef] [Green Version]
  24. Cliff, A.D.; Ord, J.K. Spatial Processes: Models and Applications; Pion: London, UK, 1981. [Google Scholar]
  25. Agresi, A. An Introduction to Categorical Data Analysis; John Wiley and Sons: Brisbane, Australia, 1996. [Google Scholar]
  26. Bandt, C.; Keller, G.; Pompe, G. Entropy of interval maps via permutations. Nonlinearity 2002, 12, 1595–1602. [Google Scholar] [CrossRef]
  27. Soon Spario, Y.T. Binomial Approximation for dependent indicators. Stat. Sin. 1996, 6, 703–714. [Google Scholar]
  28. 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]
  29. 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] [Green Version]
  30. Baltagi, B.; Kelejian, H.; Prucha, I. Anal. Spatiallydependent Data. J. Econom. 2007, 140, 1–4. [Google Scholar] [CrossRef]
  31. 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]
  32. 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]
Table 1. Size and power of STG test under a perfect subset of indexes.
Table 1. Size and power of STG test under a perfect subset of indexes.
DGPs1DGPs2
SizePower
α = 0.1 α = 2 / 80 , α = 1 / 80 , α = 0.1 α = 2 / 60 , α = 1 / 60 ,
RT γ = 0.1 γ = 2 / 50 γ = 1 / 50 γ = 0.1 γ = 2 / 30 γ = 1 / 30
641500.0601.0000.0960.0731.0000.1520.077
1002000.0641.0000.1490.0651.0000.2200.086
1008000.0531.0000.4920.1121.0000.8600.196
4002000.0581.0000.4120.1111.0000.7720.160
Table 2. Size and power of STG test under a non-perfect subset of indexes.
Table 2. Size and power of STG test under a non-perfect subset of indexes.
DGPs1DGPs2
SizePower
α = 0.1 α = 2 / 80 , α = 1 / 80 , α = 0.1 α = 2 / 60 , α = 1 / 60 ,
RT γ = 0.1 γ = 2 / 50 γ = 1 / 50 γ = 0.1 γ = 2 / 30 γ = 1 / 30
641500.0771.0000.0940.0701.0000.0820.082
1002000.0701.0000.2110.0981.0000.2860.096
1008000.0771.0000.7940.2011.0000.4100.274
4002000.0601.0000.7580.1961.0000.4670.278
Table 3. Size and power of STG and STBP tests under linearity.
Table 3. Size and power of STG and STBP tests under linearity.
SizePower
STGSTBPSTGSTBPSTGSTBPSTGSTBP
RT ( α = 5 / 80 , γ = 5 / 50 ) ( α = 10 / 80 , γ = 10 / 50 ) ( α = 15 / 80 , γ = 15 / 50 )
36100.0690.0460.0960.1540.3280.6150.7870.989
64100.0570.0540.1450.1930.5040.8150.9620.999
100100.0630.0660.1920.2280.6770.9260.9931.000
100300.0580.0540.4430.3950.9821.0001.0001.000
200100.0630.0670.3460.3270.9350.9971.0001.000
Table 4. Size and power of STG and STBP tests under nonlinearity.
Table 4. Size and power of STG and STBP tests under nonlinearity.
SizePower
STGSTBPSTGSTBPSTGSTBPSTGSTBP
RT ( α = 1 / 10 , γ = 1 / 10 ) ( α = 2 / 10 , γ = 2 / 10 ) ( α = 3 / 10 , γ = 3 / 10 )
36100.0600.0020.0940.0070.2690.0600.5070.473
64100.0550.0000.1110.0020.3760.1190.7840.743
100100.0670.0000.1750.0110.5570.2090.9410.915
100300.0560.0000.3570.0050.9490.6421.0001.000
200100.0620.0010.2810.0070.8560.3811.0000.998
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

López, F.; Matilla-García, M.; Mur, J.; Ruiz Marín, M. Statistical Tests of Symbolic Dynamics. Mathematics 2021, 9, 817. https://doi.org/10.3390/math9080817

AMA Style

López F, Matilla-García M, Mur J, Ruiz Marín M. Statistical Tests of Symbolic Dynamics. Mathematics. 2021; 9(8):817. https://doi.org/10.3390/math9080817

Chicago/Turabian Style

López, Fernando, Mariano Matilla-García, Jesús Mur, and Manuel Ruiz Marín. 2021. "Statistical Tests of Symbolic Dynamics" Mathematics 9, no. 8: 817. https://doi.org/10.3390/math9080817

APA Style

López, F., Matilla-García, M., Mur, J., & Ruiz Marín, M. (2021). Statistical Tests of Symbolic Dynamics. Mathematics, 9(8), 817. https://doi.org/10.3390/math9080817

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop