Next Article in Journal
Material Removal Rate Enhancement Induced by Electrochemical Discharge Machining for Refractory High-Entropy Alloys Compared with EDM
Previous Article in Journal
Enhanced Key Node Identification in Complex Networks Based on Fractal Dimension and Entropy-Driven Spring Model
Previous Article in Special Issue
Including the Magnitude Variability of a Signal in the Ordinal Pattern Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Permutation-Based Distances for Groups and Group-Valued Time Series

Centro de Investigación Operativa, Universidad Miguel Hernández, 03202 Elche, Spain
*
Author to whom correspondence should be addressed.
Entropy 2025, 27(9), 913; https://doi.org/10.3390/e27090913
Submission received: 27 July 2025 / Revised: 25 August 2025 / Accepted: 27 August 2025 / Published: 28 August 2025
(This article belongs to the Special Issue Ordinal Patterns-Based Tools and Their Applications)

Abstract

Permutations on a set, endowed with function composition, build a group called a symmetric group. In addition to their algebraic structure, symmetric groups have two metrics that are of particular interest to us here: the Cayley distance and the Kendall tau distance. In fact, the aim of this paper is to introduce the concept of distance in a general finite group based on them. The main tool that we use to this end is Cayley’s theorem, which states that any finite group is isomorphic to a subgroup of a certain symmetric group. We also discuss the advantages and disadvantage of these permutation-based distances compared to the conventional generator-based distances in finite groups. The reason why we are interested in distances on groups is that finite groups appear in symbolic representations of time series, most notably in the so-called ordinal representations, whose symbols are precisely permutations, usually called ordinal patterns in that context. The natural extension from groups to group-valued time series is also discussed, as well as how such metric tools can be applied in time series analysis. Both theory and applications are illustrated with examples and numerical simulations.

1. Introduction

Symbolic representation of real-valued times series is a usual and useful tool in data analysis, where numbers are replaced by discrete “symbols”, in order to gain more tools and insights [1]. So to speak, symbolic representations coarse-grain the data in such a way that the information retained is sufficient for the purposes of the analysis. From a mathematical point of view, this technique consists of partitioning the state space, both in statistics and nonlinear methods. Traditional examples include binning and thresholding. More recently, Bandt and Pompe [2] proposed to use ordinal patterns, which are the rank vectors of sliding windows along a time series, the size of the windows being the length of the ordinal patterns. Since then, ordinal representations, i.e., symbolic representations with ordinal patterns, have become a popular technique among data analysts. Common applications of ordinal patterns include classification using ordinal pattern-based indices [3,4,5], discrimination of chaotic signals from white noise [6,7], characterization of dynamics and couplings [2,8,9] and nonparametric tests of serial dependence [10,11], to mention a few. For general overviews, see [12,13,14].
More importantly for the topic of this paper, ordinal patterns of any given length L 2 can be interpreted as permutations (i.e., bijections) on any set of L elements, say, { 1 , 2 , , L } . In fact, the Shannon entropy of a probability distribution of ordinal patterns is called permutation entropy [2], and the same happens with any other entropic functional based on ordinal pattern probability distributions, e.g., divergence, mutual information, or statistical complexity. A potential advantage of viewing ordinal patterns of length L as permutations is that the latter build a group, namely, the symmetric group of degree L, denoted by Sym ( L ) , where the binary operation is function composition. In fact, the algebraic structure of Sym ( L ) provides additional leverage to ordinal representations that can be harnessed in time series analysis. An example of this is the concept of transcript introduced in [8].
More generally, symbolic representations whose symbols are elements of a group are called algebraic representations, an ordinal representation being an algebraic representation with alphabet Sym ( L ) . Actually, most results for ordinal representations can be readily generalized to algebraic representations whose alphabets are any other finite group G . This is not surprising if no particular property of Sym ( L ) is used in a given proof or application. There may be another, more theoretical reason for this. According to Cayley’s theorem [15], any finite group G is isomorphic to a subgroup of a symmetric group. This means that permutations are a sort of universal symbol for discretizing time series by means of group elements; a different question is whether such a “canonical” embedding is always the best option in practice.
This being the case, in this paper, we extend two distances in Sym ( L ) , namely, the Cayley distance and the Kendall tau distance (henceforth called Kendall distance), to arbitrary finite groups via Cayley’s theorem. A possible advantage of the here-proposed distances compared to others (e.g., the conventional generator-based distances) is their expediency and acceptable computation time for groups of moderate cardinality, as happens in practice. By extension, we discuss also distances for group-valued time series, which include algebraic representations of time series. This issue raises naturally when comparing two time series to measure their “similarity” (think of classification or clustering) or studying coupled systems (think of different types of synchronization). The result is a suite of permutation-based (or ordinal pattern-based) distances for groups and group-valued time series.
In sum, this is a follow-up paper on the quest to exploit the algebraic structure of group-valued time series—a possibility rarely used in the literature. Remarkably, the Cayley and Kendall distances and, hence, their extensions to general groups, are actually norms of transcripts, which shows the potential of our algebraic approach. Since our interest in distances between group elements was motivated by the study of ordinal representations and transcripts, we will speak of both permutations and ordinal patterns.
To address the aforementioned topics, we begin in Section 2 by establishing the mathematical framework, which includes group actions and group representations. In particular, we will prove Cayley’s theorem and implement it in three different ways—one of them using transcripts. There and throughout this paper, our approach is formal, the theoretical concepts being illustrated with simple examples. Section 3 is dedicated to the symmetric group and its two standard metrics: the Cayley and Kendall distances. In Section 4, we transition from the symmetric group to general groups and propose a distance based on Cayley’s Theorem (Section 4.1). This distance is compared to the conventional string metric for finitely generated groups (Section 4.2) in Section 4.3. Possible extensions to distances between group-valued times series are discussed in Section 5 and illustrated with mathematical simulations in Section 6. This paper ends with the conclusions in Section 7.

2. Groups, Group Actions and Cayley’s Theorem

In this section, we set the mathematical framework of this paper—group actions and group representations [15,16,17].
Definition 1.
A group ( G , ) is a nonempty set G endowed with a binary operation “*", sometimes called composition law or product, satisfying the following properties.
(G1) 
Associativity: For all a , b , c G , it is true that ( a b ) c = a ( b c ) .
(G2) 
Identity element: There exists an element e G , called the identity (or neutral) element, such that a e = e a = a for all a G .
(G3) 
Inverse element: For every a G , there exists an element a 1 G , called the inverse element of a, such that a a 1 = a 1 a = e .
It can be proved that the identity of a group and the inverse of each element are unique. Groups whose product is commutative (i.e., a b = b a for all a , b G ) are called commutative or abelian. Examples of abelian groups are the real numbers endowed with addition and the nonzero real numbers endowed with multiplication. Invertible square matrices are examples of nonabelian groups under multiplication. If the binary operation is clear from the context, then ( G , ) is shortened to G .
Definition 2.
If ( G , ) is a group and S a nonempty set, then a left group action of G on S is a mapping F : G × S S such that it satisfies the following two axioms:
(L1a) 
Identity:  F ( e , s ) = s for all s S , where e is the identity element of G .
(L2a) 
Compatibility:  F ( a , F ( b , s ) ) = F ( a b , s ) for all a , b G and s S .
If F is a left action of G on S, we can define the function F a : = F ( a , · ) : S S , i.e.,
F a ( s ) = F ( a , s )
for each a G , for F a , the axioms L1a and L2a read as follows:
(L1b) 
Identity: F e is the identity mapping s s for all s S .
(L2b) 
Compatibility: F a F b = F a b for all a , b G .
Lemma 1.
(i)  F a : S S is a bijection for each a G .
(ii) 
The set { F a : S S : a G } endowed with function composition is a group.
Proof. 
(i) Since F a is defined from S into itself, it suffices to prove that every s S has an inverse. Indeed, F a 1 ( s ) = F a 1 ( s ) S because F a ( F a 1 ( s ) ) = F a a 1 ( s ) = F e ( s ) = s by axioms L2b and L1b.
(ii)
According to Definition 1, we have to prove three properties: (G1) associativity is a general property of the composition of functions; (G2) F e is the identity because of axiom L1b; (G3) for all mappings F a , ( F a ) 1 = F a 1 as in (i).
Bijections from a finite set S onto itself are called permutations. So, according to Lemma 1(i), the mappings F a are permutations. The permutations on S, endowed with function composition, build a group called the symmetric group  Sym ( S ) . In this paper, we consider only finite groups G and finite sets S, so, if S is the cardinality of S, then Sym ( S ) = S ! . Since the properties of the permutations on S do not depend on S but only on S , we choose S = { 1 , 2 , , S } , unless otherwise stated, and also refer to Sym ( S ) as the symmetric group of degree S , Sym ( S ) . As a historical note, the symmetric group goes back to Évariste Galois (1811–1832) and his work on the resolution of algebraic equations by means of radicals.
Furthermore, Lemma 1(ii) states that the set of permutations { F a : S S : a G } is a subgroup (of cardinality G ) of Sym ( S ) . This result together with axiom L2b, which spells out that the mapping Φ : a F a preserves the algebraic structure of G , are merged in the following theorem.
Theorem 1.
Any (left) group action F : G × S S of a group G on a finite set S defines a group homomorphism Φ : a F a from G into Sym ( S ) . Therefore, Φ is a representation of the group G by means of permutations F a : = F ( a , · ) : S S .
In other words, every group G is isomorphic to a subgroup H of Sym ( S ) , namely H = Φ ( G ) , hence, H = G . In this formulation, Theorem 1 is known as Cayley’s theorem. Therefore, we will call Φ : G Sym ( S ) Cayley’s homomorphism and, abusing notation, Φ : G H Cayley’s isomorphism. Below, we will discuss three different implementations of Cayley’s isomorphism.
To apply Theorem 1, label the elements of G with the conventional set { 1 , 2 , , G } . For every a G , let
F a = 1 k G F a ( 1 ) F a ( k ) F a ( G ) = 1 k G n 1 n k n G
be the matrix (or two-line) form of the permutation F a , where ( n 1 , , n k , , n G ) is a shuffle of ( 1 , 2 , , G ) . Therefore, every element a G can be identified with the one-line form ( n 1 , n 2 , , n G ) of F a . In the numerical examples below, we will juxtapose the components of ( n 1 , n 2 , , n G ) and drop the parentheses for a compact notation.
Remark 1.
In addition to left actions of a group ( G , ) on a finite set S, there are also right actions F ˜ : S × G S , defined by (R1a) F ˜ ( s , e ) = s for all s S , and (R2a) F ˜ ( F ˜ ( s , a ) , b ) = F ˜ ( s , a b ) , as well as the corresponding group homomorphism a F ˜ a : = F ˜ ( · , a ) from G to Sym ( S ) , such that (R1b) F ˜ e is the identity map s s for all s S , and (R2b) F ˜ a F ˜ b = F ˜ a b for all a , b G . The difference between left and right actions is that in the function composition F a F b = F a b (L2b), F b acts first on s S and F a second (as in the standard convention), whereas in F ˜ a F ˜ b = F ˜ a b (R2b), F ˜ a acts first on s S and F ˜ b second. Henceforth, we only consider left actions because the binary operation of the symmetric group, the main character of this paper, is precisely function composition and so we can use the standard convention.
There is a particular case of Theorem 1 that is of special interest here, namely, S = G , i.e., when the group G acts on itself. In this particular case, we are going to highlight three implementations of Cayley’s isomorphism Φ : G a F a Sym ( G ) via left actions.
(A) 
Left translations: The mapping ( a , b ) Λ ( a , b ) = a b is a left action of G on itself, so
Λ a ( b ) = a b
is a permutation on G for every a G , called a left translation by a.
(B) 
Right translations: The mapping ( a , b ) R ( a , b ) = b a 1 is a left action of G on itself, so
R a ( b ) = b a 1
is a permutation on G for every a G , called a right translation by a. Let us mention that the operation R ( a , b ) is also called the transcription from the (source) symbol a to the (target) symbol b in [8]. Note that Λ a ( b ) = R b 1 ( a ) and R a ( b ) = Λ b ( a 1 ) .
(C) 
Adjoint actions: The mapping ( a , b ) Ad ( a , b ) = a b a 1 is a left action of G on itself, so
Ad a ( b ) = a b a 1
is a permutation on G for every a G , called the adjoint action of a.
Comparing Equations (3)–(5), we conclude that the implementation (3) of Cayley’s isomorphism Φ : a F a is the most convenient in practice, since the (one-line form of the) permutations Λ a : b a b can be read immediately row by row in the multiplication table of G . Indeed, if { a 1 , a 2 , . , a G } is an enumeration of the elements of G , then Λ a i is the i-th row of the multiplication table ( a i a j ) 1 i , j G , i.e.,
Λ a i = ( a i a 1 , , a i a j , , a i a G ) = a 1 a j a G a i a 1 a i a j a i a G .
Example 1.
Let G = Sym ( 3 ) . By Equation (3), the isomorphic copies Λ r Sym ( G ) = Sym ( Sym ( 3 ) ) = Sym ( 6 ) of r { 123 , 132 , 213 , 231 , 312 , 321 } are given by the rows of the “multiplication" table of Sym ( 3 ) ,
Entropy 27 00913 i001
where r s stands for the composition of the permutation r that labels a row with the permutation s that labels a column. Therefore,
Entropy 27 00913 i002
For example,
Λ 231 : 123 231 , 132 213 , 213 321 , 231 312 , 312 123 , 321 132 ,
or, in one-line form, Λ 231 = ( 231 , 213 , 321 , 312 , 123 , 132 ) . From
123 1 = 123 , 132 1 = 132 , 213 1 = 213 , 231 1 = 312 , 312 1 = 231 , 321 1 = 321 ,
table (7) and Equation (4), we obtain similarly that the copies R r Sym ( Sym ( 3 ) ) of r Sym ( 3 ) via right translations are given by
Entropy 27 00913 i003
Example 2.
Let G = { θ 0 , θ 1 , θ 2 , θ 3 } endowed with the product θ i θ j = θ j θ i = θ i + j where, in this example, the exponents are taken modulo 4. Hence, θ 0 is the identity and ( θ i ) 1 = θ 4 i . By definition, G is a cyclic group generated by the element θ 1 . Alternatively, G can be identified with the additive group { 0 , 1 , 2 , 3 } , where the sum is taken modulo 4.
(i) The four permutations Λ θ i : θ j θ i θ j = θ i + j , corresponding to Equation (3) under the isomorphism Φ : θ i Λ θ i Sym ( G ) , are given in the following table:
Entropy 27 00913 i004
So, for instance, the second row of this table spells out
Λ θ 1 : θ 0 θ 1 , θ 1 θ 2 , θ 2 θ 3 , θ 3 θ 0 ,
or Λ θ 1 = ( θ 1 , θ 2 , θ 3 , θ 0 ) .
(ii) The four permutations R θ i : θ j θ j ( θ i ) 1 = θ j i , corresponding to Equation (4), under the isomorphism Φ : θ i R θ i Sym ( G ) , are given in the following table:
Entropy 27 00913 i005
So, if in table (10), Λ θ i + 1 is obtained from Λ θ i by a clockwise (negative) circular shift, in table (11), the circular shift to obtain R θ i + 1 from R θ i is counterclockwise (positive).

3. Ordinal Patterns and Distances

In the previous, section we have focused on group actions and the embedding of a group in a symmetric group. What is still missing is metric tools that can further boost applications in the realm of group-valued time series. Since the motivation and objective of this paper are the applications of such tools to symbolic representations of time series via group elements, we begin this section by briefly explaining how such symbolic representations arise in time series analysis. The choice of ordinal patterns (or permutations) responds to the popularity of these symbols among time series analysts. Then, we introduce the concept of distance in the symmetric group and, in the next section, we do the same for general groups.

3.1. Ordinal Patterns

Symmetric groups are very popular for symbolic representations since the concept of ordinal pattern was introduced in [2]. Given a real-valued time series x = ( x t ) t 0 , an ordinal representation of x is a symbolic time series ( r t ) t 0 whose alphabet is Sym ( L ) , the symmetric group of degree L 2 . How are the permutations r t obtained from x? Let x t L : = x t , x t + 1 , , x t + L 1 be a window (segment, sequence, block, …) of size L. Then, r t = ( r 1 , r 2 , , r L ) is the rank vector of x t L , that is, ( r 1 , r 2 , , r L ) is the permutation of { 1 , 2 , , L } such that
x t + r 1 1 < x t + r 2 1 < < x t + r L 1 .
In other words, the rank vector r t is viewed as the one-line form of the permutation 1 r 1 , 2 r 2 , …, L r L , i.e., r t ( k ) = r k for 1 k L . As a matter of fact, any total ranking can be viewed as a permutation. In case of a tie x i = x j , one can apply the convention that x i < x j if i < j . Another possibility, more recommended in case of many ties, is to add a small-amplitude noise to x i and x j to undo the tie. As way of illustration, if L = 4 and x t L = 2.1 , 0.3 , 1.5 , 2.4 , then r t = ( 2 , 3 , 1 , 4 ) , or r t = 2314 for short.
In [2], the permutations r t were called order (or ordinal) patterns of length L, which is the usual name of the symbols r t in time series analysis. In addition to the length L of the patterns, ordinal representations depend also on a second parameter: a possible time delay in Equation (12). In this paper, the time delay is set equal to 1 throughout.
As a side note, the concept of ordinal pattern has been generalized in several directions. Thus, it has been extended to multivariate time series in [18,19]. Spatial ordinal patterns were introduced in [20] to analyze two-dimensional images and applied in [21,22] to distinguish textures.

3.2. Distances for Ordinal Patterns

In this section, we introduce the Cayley and Kendall distances for the symmetric group Sym ( L ) ; see [23] for a survey about distances on permutations. We remind first about the concept of distance.
Definition 3.
Given a nonempty set S, a distance is a function d : S × S R that satisfies the following three axioms for all points x , y , z S .
(D1) 
Positivity:  d ( x , y > 0 and d ( x , y ) = 0 if and only if x = y .
(D2) 
Symmetry:  d ( x , y ) = d ( y , x ) .
(D3) 
Triangular inequality:  d ( x , z ) d ( x , y ) + d ( y , z ) .
Following the notation in Section 3.1 for ordinal patterns, the permutations of Sym ( L ) will be written in the one-line form r = ( r 1 , r 2 , , r L ) (possibly shortened to r 1 , r 2 , , r L in numerical examples), where r ( i ) = r i . If, furthermore, s = ( s 1 , s 2 , , s L ) Sym ( L ) , then r s is the usual function composition ( r s ) ( i ) = r ( s ( i ) ) , i.e.,
r s = ( r 1 , , r k , , r L ) ( s 1 , , s k , , s L ) = ( r s 1 , , r s k , , r s L ) ,
as exemplified in Equation (7) for L = 3 . Due to the positivity and symmetry properties of a distance, the L ! × L !  distance matrix  ( d ( r , s ) : r , s Sym ( L ) ) is symmetric, with 0’s along the diagonal.
If { i 1 , i 2 , , i m } { 1 , 2 , , L } , then ( i 1 , i 2 , , i m ) denotes the permutation
i 1 i 2 , i 2 i 3 , , i m 1 i m , i m i 1 ,
called a cycle of length m, 1 m L , or simply an m-cycle. The notation calls for a warning at this point: do not confuse the permutation i 1 , i 2 , i m = ( i 1 , i 2 , , i m ) with the cycle ( i 1 , i 2 , , i m ) . Every permutation can be written as a product of disjoint cycles, which is unique except for the order of the factors. For example, the cycle factorization of the permutation 426135 is ( 14 ) ( 2 ) ( 356 ) or ( 14 ) ( 356 ) if 1-cycles (“fixed elements”) are omitted.
Cycles of length 2 are called transpositions. That is, a transposition is a permutation t i j Sym ( L ) such that t i j ( i ) = j , t i j ( j ) = i , and t i j ( k ) = k for all k i , j . If r = ( r 1 , , r L ) , then
r t i j = ( r 1 , , r i 1 , r j , r i + 1 , , r j 1 , r i , r j + 1 , , r L ) .
If i j = 1 , then t i j is called an adjacent transposition. Unlike the factorization of permutations into disjoint cycles, the factorization of permutations into adjacent transpositions (and, hence, into transpositions) is not unique, although the minimal number of factors is. For example, 321 = ( 12 ) ( 23 ) ( 12 ) = ( 23 ) ( 12 ) ( 23 ) .
Definition 4
([24,25]). Let r , s Sym ( L ) . (a) The Cayley distance between the two permutations r and s , denoted by d C ( r , s ) , is defined as the minimum number of transpositions needed to transform r into s . (b) The Kendall distance (also known as the bubble-sort distance) between r and s , denoted by d K ( r , s ) , is defined as the minimum number of adjacent transpositions needed to transform r into s .
The Cayley and Kendall distances are examples of edit distances between two strings of symbols, which measure the minimum cost sequence of allowed edit operations to transform one string into the other. The use of edit distances to measure distance between permutations was proposed in [26]. By definition,
d C ( r , s ) d K ( r , s )
for all r , s Sym ( L ) .
The proofs of the positivity and symmetry (properties (D1) and (D2) in Definition 3) for d C ( r , s ) and d K ( r , s ) are straightforward. The triangular inequality can be easily proved by graph-based methods since the permutations of Sym ( L ) build a connected undirected graph where the nodes (or vertices) correspond to permutations and the links (or edges) to transpositions. For example, in the case of d K ( r , s ) : (i) every node r is connected to exactly L 1 nearest neighbors, namely, those permutations that differ from r due to transpositions of the adjacent symbols r i , r i + 1 for 1 i L 1 , and, hence, (ii) for any two nearest nodes u and v , d K ( u , v ) = d K ( v , u ) = 1 . Therefore, d K ( r , s ) counts the number of links of the shortest path connecting the nodes r and s . In other words, each node has degree L 1 and all its nearest neighbors (one link apart) are at distance 1. The diameter of the graph, i.e., the farthest distance between any two nodes, corresponds to r = ( r 1 , r 2 , , r L ) and the order reversing permutation s = ( r L , r L 1 , , r 1 ) , hence
d K , max ( L ) = ( L 1 ) + ( L 2 ) + + 1 = L ( L 1 ) 2 .
Such graphs are called adjacency graphs or networks.
Figure 1 and Figure 2 show the adjacency graphs of the groups Sym ( 3 ) (a cycle in this case) and Sym ( 4 ) , respectively. Unlike the adjacency graphs for the Kendall distance, the adjacency graphs for the Cayley distance are in general nonplanar, i.e., they have edge crossings (even for Sym ( 3 ) ), so we will not use them.
In the following, whenever convenient for economy of notation, we denote by d C , K both the Cayley and Kendall distances.
Proposition 1
(Invariance of d C , K under left translations). Given r , s Sym ( L ) , then
d C , K ( r , s ) = d C , K ( u r , u s )
for all u Sym ( L ) .
Proof. 
Suppose d C , K ( r , s ) = k , i.e., k is the mimimum number of transpositions or adjacent transpositions t i 1 j 1 , t i 2 j 2 , , t i k j k Sym ( L ) such that
r = ( ( ( s t i 1 j 1 ) t i 2 j 2 ) t i k 1 j k 1 ) t i k j k ,
see Equation (15). Then,
u r = ( ( ( u s t i 1 j 1 ) t i 2 j 2 ) t i k 1 j k 1 ) t i k j k ,
which proves that d C , K ( u r , u s ) = k .
Since d C , K ( r , s ) = d C , K ( s , r ) , then d C , K ( u r , u s ) = d C , K ( u s , u r ) . Choose u = r 1 or u = s 1 in Equation (18) to prove:
Corollary 1.
For every r , s Sym ( L ) ,
d C , K ( r , s ) = d C , K ( e , r 1 s ) = d C , K ( e , s 1 r ) ,
where e is the identity permutation.
Remark 2.
Owing to Equation (19), all possible values of d C , K ( r , s ) appear on the row ( d C , K ( e , u ) : u Sym ( L ) ) of the distance matrix.
Equation (19) allows to define in Sym ( L ) an analogue to the concept of norm in a vector space.
Definition 5.
The norm · C , K of r Sym ( L ) is defined as
r C , K = d C , K ( e , r ) .
Then, by Equation (19),
d C , K ( r , s ) = r 1 s C , K = s 1 r C , K .
Remark 3.
The right translation of b G by a G , or the transcript from (the source) a to (the target) b, was defined in Equation (4) as R ( a , b ) = b a 1 . In view of Equation (21), we conclude that the distance d C , K ( r , s ) is the norm · C , K of the right translations or transcripts R ( s 1 , r 1 ) = r 1 s and R ( r 1 , s 1 ) = s 1 r = R ( s 1 , r 1 ) 1 .
Corollary 1 is instrumental for the computation of the Cayley and Kendall distances [24].
Proposition 2.
(a) Let u = ( u 1 , , u L ) Sym ( L ) and C ( u ) the number of cycles (including 1-cycles) in the cycle factorization of the permutation u . Then,
d C ( r , s ) = L C ( r 1 s ) = L C ( s 1 r )
for all r , s Sym ( L )
(b) Let I ( u ) be the number of inversions in the permutation u , i.e., the number of ordered pairs ( u i , u j ) , 1 i < j L , such that u i > u j . Then,
d K ( r , s ) = I ( r 1 s ) = I ( s 1 r )
for all r , s Sym ( L ) .
From Equation (22), it follows
d C ( r , s ) { 0 , 1 , , d C , max ( L ) } , where d C , max ( L ) = L 1 ,
and, according to Equation (17),
d K ( r , s ) 0 , 1 , , d K , max ( L ) , where d K , max ( L ) = L ( L 1 ) 2 .
Example 3.
We illustrate Proposition 2 with L = 6 , r = 462531 and s = 236514 . Then,
s 1 = 1 2 3 4 5 6 2 3 6 5 1 4 1 = 1 2 3 4 5 6 5 1 2 6 4 3 ,
so that
s 1 r = 512643 462531 = 631425 ,
whose cycle factorization is
s 1 r = ( 16523 ) ( 4 ) .
According to Equation (22),
d C ( r , s ) = L C ( s 1 r ) = 6 2 = 4 .
As for Equation (23), the inversions of s 1 r are
( 6 , 3 ) , ( 6 , 1 ) , ( 6 , 4 ) , ( 6 , 2 ) , ( 6 , 5 ) , ( 3 , 1 ) , ( 3 , 2 ) , ( 4 , 2 ) ,
so that,
d K ( r , s ) = I ( s 1 r ) = 8 .
Let us check the results (26) and (27). First, the transpositions needed to transform r into s are the following:
r = 4 6 2 531 ( 13 ) 2 6 45 3 1 ( 25 ) 23 4 5 6 1 ( 35 ) 2365 41 ( 56 ) 236514 = s
where the elements being swapped in each transposition have been boldfaced. Therefore, d C ( r , s ) = 4 . To check Equation (27), call δ 1 the number of adjacent transpositions needed to move in r the symbol 2 (the first or leftmost symbol of the target s ) to the first position; call r ( 1 ) the result. Similarly, call δ 2 the number of adjacent transpositions needed to move in r ( 1 ) the symbol 3 (the second symbol of the target s ) to the second position. Proceed analogously until r ( k ) = s . The adjacent transpositions needed to transform r into s in this example are the following:
r = 46 2 531 δ 1 = 2 r ( 1 ) = 2465 3 1 δ 2 = 3 r ( 2 ) = 234 6 51 δ 3 = 1 r ( 3 ) = 2364 5 1 δ 4 = 1 r ( 4 ) = 23654 1 δ 5 = 1 r ( 5 ) = 236514 = s
where the element of r ( i ) ( r ( 0 ) : = r ) being moved to the ( i + 1 ) -position has been boldfaced. This shows that d K ( r , s ) = δ 1 + + δ 5 = 8 .
Example 4.
According to [27], G = Sym ( 3 ) is the most common ordinal representation in data analysis. The Cayley and Kendall distance matrices for the group Sym ( 3 ) , Equation (7), are shown in the tables
Entropy 27 00913 i006
and
Entropy 27 00913 i007
As shown in Equations (16), (24) and (25), d C ( r , s ) d K ( r , s ) for all r , s Sym ( 3 ) , d C ( r , s ) { 0 , 1 , 2 } and d K ( r , s ) { 0 , 1 , 2 , 3 } .
Owing to their large size, the Cayley and Kendall distance matrices for G = Sym ( 4 ) have been moved to Appendix A. In this case, d C ( r , s ) { 0 , 1 , 2 , 3 } , and d K ( r , s ) { 0 , 1 , 2 , 3 , 4 , 5 , 6 } . Needless to say, the distances d K ( r , s ) in table (29) and Table A2 can be easily checked in the corresponding adjacency graphs, Figure 1 and Figure 2, where each link stands for distance 1.

4. Distances for General Groups

In the first part of this section, we harness Cayley’s theorem to transport the Cayley and Kendall distances in Sym ( L ) (or, for that matter, any distance defined in Sym ( L ) ) to any finite group ( G , ) with G = L . In the second part, we briefly introduce the distance with respect to a generating system. We also discuss the advantages of the first approach as compared to the second.

4.1. Permutation-Based Distance for Groups

Let Φ : G H be Cayley’s isomorphism, where H is a subgroup of Sym ( G ) (namely, H = Φ ( G ) ) with H = G ). This means:
(i) 
Φ ( e ) = ( 1 , 2 , , G ) , where e is the identity of G .
(ii) 
Φ ( a b ) = Φ ( a ) Φ ( b ) for all a , b G . Hence, Φ ( a 1 ) = Φ ( a ) 1 .
To endow G with a distance, we transport the distance d C , K ( r , s ) from the group Φ ( G ) Sym ( G ) to G and promote Φ to an isometry.
Definition 6.
Let Φ be the Cayley isomorphism for a finite group G . Then, D C , K ( Φ ) is the distance in G defined as
D C , K ( Φ ) ( a , b ) = d C , K ( Φ ( a ) , Φ ( b ) ) .
Therefore, D C , K ( Φ ) has the same properties as d C , K . In particular:
  • Left invariance: By Equation (18),
    D C , K ( Φ ) ( a , b ) = D C , K ( Φ ) ( c a , c b )
    for all a , b , c G , hence,
    D C , K ( Φ ) ( a , b ) = D C , K ( Φ ) ( e , a 1 b ) = D C , K ( Φ ) ( e , b 1 a ) ,
    where e is the identity of G .
  • Norm-based definition: By Equation (21),
    D C , K ( Φ ) ( a , b ) = Φ ( a ) 1 Φ ( b ) C , K = Φ ( b ) 1 Φ ( a ) C , K ,
    where · C , K is the Cayley/Kendall norm in Sym ( G ) , i.e.,
    r C , K = d C , K ( e , r )
    for all r Sym ( G ) , e being the identity of Sym ( G ) .
From Equations (16) and (30), it follows
D C ( Φ ) ( a , b ) D K ( Φ ) ( a , b )
for all a , b G , since Φ ( a ) , Φ ( b ) Sym ( G ) . Furthermore, by Equation (24),
D C ( Φ ) ( a , b ) { 0 , 1 , , D C , max ( Φ ) ( G ) } , where D C , max ( Φ ) ( G ) = G 1 ,
and, by Equation (25),
D K ( Φ ) ( a , b ) 0 , 1 , , D K , max ( Φ ) ( G ) , where D K , max ( Φ ) ( G ) = G ( G 1 ) 2 .
Remark 4.
In the case G = Sym ( L ) of Section 3.2, the distances d C , k ( r , s ) take on all integer values ranging from 0 to their respective maxima d C , max = L 1 (Equation (24)), and d K , max = L ( L 1 ) / 2 (Equation (25)); think of the corresponding adjacency graphs. However, this does not happen with D C , K ( Φ ) ( a , b ) because Φ ( G ) is a subgroup of cardinality G of the group Sym ( G ) , whose cardinality is G ! , so not all possible distances can be realized (unless G = 2 ). We call “forbidden distances for D C , K ( Φ ) " the values in { 0 , 1 , , D C , K , max ( Φ ) } that are missing in the adjacency subgraph of Φ ( G ) ; otherwise, they are called allowed or admissible distances. By Equation (32) (or Remark 2), the admissible distances for D C , K ( Φ ) can be read in the row ( D C , K ( Φ ) ( e , c ) : c G ) ) of the distance matrix.
In general, the definition (30) depends on the implementation of Cayley’s isomorphism Φ , e.g., whether Φ ( a ) is (i) a left translation Λ a (Equation (3)), (ii) a right translation R a (Equation (4)), or (iii) an adjoint action (Equation (5)). For simplicity, we mainly use the implementation (i), so that Λ a ( b ) can be read row-wise in the multiplicaction table of G (see Equation (6)), in which case we write D C , K ( Λ ) for D C , K ( Φ ) . In case (ii), we will write D C , K ( R ) .
Example 5.
The only non-cyclic group of order 4 is the Klein four-group K , defined by the multiplication table
Entropy 27 00913 i008
so that
Entropy 27 00913 i009
According to Equations (36) and (37), D C ( Λ ) ( r , s ) { 0 , 1 , 2 , 3 } and D K ( Λ ) ( r , s ) { 0 , 1 , , 6 } . From (39) it follows
Entropy 27 00913 i010
so the forbidden values of D C ( Λ ) ( r , s ) are { 1 , 3 } and the forbidden values of D K ( Λ ) ( r , s ) are { 1 , 3 , 5 } . Note that K is abelian (as any group whose cardinality is the square of a prime number) since the multiplication table in Equation (38) is symmetric and every element other than the identity has order 2, i.e., every element is its own inverse. Therefore,
R r ( s ) = s r 1 = s r = r s = Λ r ( s ) ,
i.e., the isomorphic copies Λ r , R r Sym ( K ) are the same for all r K , which implies D C , K ( R ) = D C , K ( Λ ) . Labeling the elements e , a , b , c as 1 , 2 , 3 , 4 , one can locate the four copies { Λ r : r K } of the group K in the Kendall adjacency graph of Sym ( 4 ) , Figure 2, and read there the distances in the right table of Equation (40). For example,
D K ( Λ ) ( a , b ) = d K ( Λ a , Λ b ) = d K ( a e c b , b c e a ) = d K ( 2143 , 3412 ) = 6 .
As a final remark, note that when G = Sym ( L ) , D C , K ( Φ ) ( r , s ) does not become d C , K ( r , s ) , as one might think. The reason is that, in that event, d C , K ( r , s ) is defined on Sym ( L ) × Sym ( L ) , while D C , K ( Φ ) ( r , s ) = d C , K ( Φ ( r ) , Φ ( s ) ) , where d C , K ( Φ ( r ) , Φ ( s ) ) is defined on Sym ( Sym ( L ) ) × Sym ( Sym ( L ) ) = Sym ( L ! ) × Sym ( L ! ) . In other terms, the definition domain and the range of Cayley’s isomorphism Φ : Sym ( L ) Sym ( L ! ) are different also in the particular case G = Sym ( L ) , which prevents Φ from becoming the identity (unless L = 2 ). However, this does not prevent d C , K ( r , s ) and D C , K ( Λ ) ( r , s ) from providing the same qualitative and even quantitative information, as shown in Example 6 below and Section 6. This fact supports the consistency of our approach to group metrics based on Cayley’s isomorphism.
Example 6.
Tables (41) and (42) below show the distances d C ( Λ r , Λ s ) = : D C ( Λ ) ( r , s ) and d K ( Λ r , Λ s ) = : D K ( Λ ) ( r , s ) for r , s Sym ( 3 ) , and Λ r = Φ ( r ) , Λ s = Φ ( s ) Sym ( 6 ) , see table (8):
Entropy 27 00913 i011
Entropy 27 00913 i012
For instance, if we encode the permutations of Sym ( 3 ) as
123 = 1 , 132 = 2 , 213 = 3 , 231 = 4 , 312 = 5 , 321 = 6 ,
then
D C ( Λ ) ( 213 , 321 ) = d C ( Λ 213 , Λ 321 ) = d C ( 341265 , 654321 ) = 4 ,
while
D K ( Λ ) ( 213 , 321 ) = d K ( Λ 213 , Λ 321 ) = d K ( 341265 , 654321 ) = 10 .
Note that if we replace 3 by 1 and 4 by 2 in Equation (41) for d C ( Λ r , Λ s ) , then we obtain Equation (28) for d C ( r , s ) . Furthermore, if we divide d K ( Λ r , Λ s ) in Equation (42) by 3, then we obtain Equation (29) for d K ( r , s ) , i.e.,
D K ( Λ ) ( r , s ) = 3 d K ( r , s )
for all r , s Sym ( 3 ) . We conclude that the results obtained using d C , K ( r , s ) in G = Sym ( 3 ) and D C , K ( Λ ) ( r , s ) in Φ ( G ) Sym ( 6 ) are equivalent. According to Equations (41) and (42), the allowed distances for D C ( Λ ) are { 0 , 3 , 4 } out of { 0 , 1 , , 5 } , while the allowed distances for D K ( Λ ) are { 0 , 5 , 10 , 15 } = { 5 k : 0 k 3 = d K , max ( 3 ) } out of { 0 , 1 , , 15 } .

4.2. Distances with Respect to a Generating Set

For the time being, let G be a finite or infinite group. A finite set S = { s 1 , , s n } G is a generating set (or generator) of G if every a G can be written as a finite product of elements of S and their inverses. In particular, groups generated by a single element are called cyclic. For example, { θ 0 , θ 1 , , θ n 1 } endowed with θ i θ j = θ k , where k = i + j mod n is a cyclic group of order n with generator S = { θ 1 } . The (edit) distance (or word metric) d S ( a , b ) between the elements a and b of a finitely generated group (in particular of a finite group) G is defined as the minimum number of elements from the generating set S needed to transform a into b. That is, if b = a s 1 s k , where s i S (or s i 1 S ), then d S ( a , b ) is the smallest possible value of k. Therefore, the distance d S depends on the generating set S. In particular, if G = Sym ( L ) , then the Cayley distance d C ( r , s ) of Section 3.2 is the distance d S with respect to the generating set of all transpositions, while the Kendall distance d K ( r , s ) is the distance d S with respect to the generating set of all adjacent transpositions.
Example 7.
For the cyclic group G = { θ 0 , θ 1 , θ 2 , θ 3 } of Example 2, the distances with respect to the generating set S = { θ 1 } are the following:
Entropy 27 00913 i013
As for the distances D K ( Λ ) ( θ i , θ j ) = d K ( Λ θ i , Λ θ j ) , we find (see Equation (10)):
Entropy 27 00913 i014
For example,
D K ( Λ ) ( θ 2 , θ 3 ) = d K ( Λ θ 2 , Λ θ 3 ) = d K ( θ 2 θ 3 θ 0 θ 1 , θ 3 θ 0 θ 1 θ 2 ) = 3 .
If right translations (4) are used instead of left translations (3), then D K ( R ) ( θ i , θ j ) = d K ( R θ i , R θ j ) happens to be the same as in Equation (46). For example,
D K ( R ) ( θ 2 , θ 3 ) = d K ( R θ 2 , R θ 3 ) = d K ( θ 2 θ 3 θ 0 θ 1 , θ 1 θ 2 θ 3 θ 0 ) = 3 .
If the group elements θ 0 , θ 1 , θ 2 , θ 3 are labeled 1 , 2 , 3 , 4 , respectively, then the above distances can be read in the Kendall adjacency graph of Sym ( 4 ) , Figure 2. For example, distances (47) and (48) read d K ( 3412 , 4123 ) and d K ( 3412 , 2341 ) , respectively.

4.3. Discussion

When comparing the distances D C , K ( Φ ) ( a , b ) and d S ( a , b ) for finite groups, a possible advantage of the former is its expediency, in the sense that D C , K ( Φ ) dispenses with generating sets and, hence, with the search for minimal descriptions of b as products of the form a s 1 s k . In addition, there are algorithms (such as the bubble-sort algorithm) that compute D C ( Φ ) in time O ( G ) and D K ( Φ ) in time O ( G log G ) [28]. Computational issues are briefly discussed in Section 6.
On the other hand, a possible shortcoming of the distances D C , K ( Φ ) in applications is the existence of forbidden values pointed out in Remark 4. For instance, the presence of such gaps in the distances between the algebraic representations of two coupled time series (see Section 5) might be misinterpreted as a dynamical characteristic of the underlying systems, e.g., full or generalized synchronization. So, the forbidden values for D C , K ( Φ ) must be identified in advance, which can be easily done by calculating the row ( D C , K ( Φ ) ( e , c ) : c G ) ) of the distance matrix (Remark 4). Alternatively, they can be identified using independent white noises. We come back to this point in Section 6.
In sum, when embedding a group G in Sym ( G ) via Cayley’s isomorphism Φ , we are encoding the G elements { a 1 , , a G } G as the G permutations Φ ( a ) = ( b 1 , b 2 , , b G ) , where ( b 1 , b 2 , , b G ) is a shuffle of ( a 1 , , a G ) ; see Equation (6) for Φ being the left translation a i Λ a i . The penalty for doing so is a more complex representation of the elements of G . The pay-off is a general and computationally efficient metric D C , K ( Φ ) . In principle, there may be symmetric groups Sym ( M ) with M < G in which G can be embedded, but finding such symmetric groups, in particular, the minimum-order one, is rather difficult in general [29,30]. In any case, note that in the practice of symbolic representation of time series, the alphabets used have low cardinality.

5. Distances for Group-Valued Time Series and Algebraic Representations

In this section, we explore possible applications of permutation-based distances to group-valued time series. Examples of group-valued time series include binary and n-ary time series. In the first case, G = { 0 , 1 } , endowed with the XOR operation (addition modulo 2); these time series arise in digital communications and cryptography. The second example is a generalization, also used in digital communications: G = { 0 , 1 , , n 1 } endowed with addition modulo n.
The perhaps most familiar example of group-valued time series is the ordinal representation of real-value time series, introduced in Section 3.1. A generalization thereof is the concept of algebraic representation.
Definition 7.
We say that a symbolic representation α = ( a t ) t 0 of a time series is an algebraic time series if its elements a t belong to a finite group ( G , ) .
Since here we are interested in practical applications, consider two finite G -valued time series α = ( a t ) 1 t N and β = ( b t ) 1 t N of length N. In time series analysis, α and β could be ordinal representations of two coupled real-valued time series ( x t ) 1 t N and ( y t ) 1 t N , respectively. To carry out a data-driven analysis of the coupled dynamics of the underlying systems (think of various types of synchronization), or to measure the similarity between α and β , there are a number of metrics that we review in Section 5.1. In Section 5.2, we discuss how to extract information with those metrics.

5.1. String Metrics for Group-Valued Time Series

Below, we mention perhaps the most common metrics. Each of them targets specific situations.
(i) 
Some of the metrics to quantify the similarity of two symbolic time series such as α and β are based on the probability distributions of their symbols (estimated by their frequencies) [31]. This category includes the Kullback–Leibler (KL) divergence (usually symmetrized via an arithmetic or harmonic mean) [8], the Jensen–Shannon (JS) divergence [32], the JS distance (which is the square root of the JS divergence) [33], the permutation JS distance [34,35], the Hellinger distance [36], the Wasserstein distance [37,38], the total variation distance [39,40] and more. Since in this paper we are interested in harnessing the algebraic structure of the symbolic data (if any), we will dispense with entropic distances.
(ii) 
One can also exploit the algebraic structure of G and calculate the transcription of α and β [8], that is, the time series τ = ( τ t ) t 0 , where τ t = b t a t 1 (right translations by a t ) or τ t = a t 1 b t (left translations by a t 1 ), see Equations (4) and (3). Trancriptions of coupled time series in an ordinal representation have been used to study different aspects of coupled dynamics: complexity [8,41], synchronization [8,41], information directionality (or causality) [42], features for classification [43], etc. Interestingly, if G = Sym ( L ) , then the distance between the ordinal patterns a t and b t can be written as the norm · C , K of the transcript a t 1 b t , see Equation (21). Otherwise, we embed G into Sym ( G ) via Cayley’s isomorphism Φ : G Sym ( G ) and, again, the distance between the ordinal patterns Φ ( a t ) and Φ ( b t ) can be written as the norm · C , K of the transcript Φ ( a t ) 1 Φ ( b t ) , see Equation (33).
(iii) 
Since a window a t W : = a t , a t + 1 , , a t + W 1 of size W of any G -valued time series α = ( a t ) t 0 can be viewed as a string of symbols of length W, we can borrow a number of string metrics from information theory, computer science and computational linguistics to compare a t W and b t W : = b t , b t + 1 , , b t + W 1 , where (unlike permutations) these strings can have repeated symbols. Thus, the Hamming distance between two strings of equal length is the number of positions at which the corresponding symbols differ [44]. The Damerau–Levenshtein distance considers insertions, deletions, substitutions and adjacent transpositions of symbols [45,46,47]. Such metrics are also examples of edit distances. Finally, we also mention the Jaro–Winkler similarity coefficient (not a true distance) which, like the Hamming distance, is based on symbol matching [48,49].

5.2. Extracting Information with d C , K and D C , K ( Φ )

Next, we focus on the distances d C , K for the group Sym ( L ) (Section 3.2) and D C , K ( Φ ) for other groups (Section 3.2) and their applications to the analysis of G -valued time series and algebraic representations. The idea is to measure the distance between (A) simultaneous symbols a t and b t , or (B) concurrent windows a t W and b t W , and thereby characterize the similarity or dissimilarity of the symbolic time series α and β . To this end, we consider sliding windows a t W and b t W , 1 t N W + 1 , with the same size W 1 , where we allow W = 1 in order to include distances between simultaneous symbols.
CASE A: 
W = 1 . To unify the notation, we will write dist ( a t , b t ) for the distance between the elements a t , b t G , with the understanding that dist ( a t , b t ) = d C , K ( a t , b t ) if G = Sym ( L ) and dist ( a t , b t ) = D C , K ( Φ ) ( a t , b t ) otherwise. Therefore,
dist ( a t , b t ) { 0 , 1 , , dist max } ,
where
dist max = L 1 if   dist = d C ( Equation ( 24 ) ) , = L ( L 1 ) / 2 if   dist = d K ( Equation ( 25 ) ) , G 1     if   dist = D C ( Φ ) ( Equation ( 36 ) ) , G ( G 1 ) / 2     if   dist = D K ( Φ ) ( Equation ( 37 ) ) .
where the inequalities in Equation (50) allow for the possibility that D C , K , max ( Φ ) is a forbidden distance (Remark 4). As a result of calculating dist ( a t , b t ) for 1 t N , we obtain the integer-valued time series
( dist ( a t , b t ) ) 1 t N .
According to Equation (50), d C , max < d K , max and D C , max ( Φ ) < D K , max ( Φ ) , except for L = 2 . Therefore, d K and D K ( Φ ) have greater differentiating power in applications than their Cayley counterparts due to their larger ranges.
CASE B: 
W > 1 . Consider now the windows a t W = ( a t , a t + 1 , , a t + W 1 ) and b t W = ( b t , b t + 1 , , b t + W 1 ) as W-dimensional vectors in the corresponding Cartesian product of the metric space ( G , dist ) . In this case, we have the whole family of l p distances, p 1 , at our disposal. Well-known instances include the so-called Manhattan distance,
dist 1 ( a t W , b t W ) = k = 0 W 1 dist ( a t + k , b t + k ) ,
the Euclidean distance,
dist 2 ( a t W , b t W ) = k = 0 W 1 dist ( a t + k , b t + k ) 2 1 / 2 ,
and the Chebychev distance,
dist ( a t W , b t W ) = max dist ( a t + k , b t + k ) : 0 k W 1 .
As a result, we obtain the time series
( dist p ( a t W , b t W ) ) 1 t N W + 1
which is integer-valued for = 1 , , and real-valued otherwise.
Once the metric information from the G -valued time series α and β has been collected element-wise (51) and/or window-wise (55), one can proceed in several ways to process the information. We discuss some simple ways in Section 6.

6. Numerical Simulations

In this section, we illustrate the application of permutation-based distances to algebraic representations with numerical simulations. To this end, we revisit a model composed of two unidirectionally coupled, non-identical Henon systems, used in [50] to study generalized synchronization. The equations of the driver X are
x t + 1 ( 1 ) = 1.4 ( x t ( 1 ) ) 2 + 0.1 x t ( 2 ) x t + 1 ( 2 ) = x t ( 1 )
and the equations of the responder Y are
y t + 1 ( 1 ) = 1.4 [ C x t ( 1 ) y t ( 1 ) + ( 1 C ) ( y t ( 1 ) ) 2 ] + 0.3 y t ( 2 ) y t + 1 ( 2 ) = y t ( 1 )
where C 0 is the coupling strength. It is numerically proved in [50] that this system has generalized synchronization for C in a small interval around 0.55 and for C 1 ([50], [Figure 3]).
For a given coupling strength C, let x = ( x t ( 1 ) ) 1 t 10000 and y = ( y t ( 1 ) ) 1 t 10000 be two stationary time series of length N = 10000 composed of the first components of the states x t = ( x t ( 1 ) , x t ( 2 ) ) of the driver and y t = ( y t ( 1 ) , y t ( 2 ) ) of the responder, respectively, and generated with seeds x 0 = ( 0 , 0.9 ) and y 0 = ( 0.75 , 0 ) (after discarding the initial transient). Let α = ( r t ) 1 t 10000 L + 1 and β = ( s t ) 1 t 10000 L + 1 be the algebraic representations of x and y with ordinal patterns of length 3 L 6 . The values chosen for the coupling strength are C = 0.30 , 0.55 , 1.10 .
Next we computed different types of distances between α and β from those presented in Section 5.2. Here, we present only the results with the Kendall distances d K ( r t , s t ) and D K ( Λ ) ( r t , s t ) because, as explained there, they have greater differentiating power than d C and D C ( Λ ) . As for the distances dist p ( r t W , s t W ) , we used p = 1 , 2 , (Equations (52)–(54)). Irrational values of dist 2 ( r t W , s t W ) were rounded to the integer n if dist 2 ( r t W , s t W ) ( n 0.5 , n + 0.5 ] . To facilitate analysis, we transformed the data ( d K ( r t , s t ) ) 1 t N L + 1 , ( D K ( Λ ) ( r t , s t ) ) 1 t N L + 1 and ( dist p ( r t W , s t W ) ) 1 t N L W + 2 into (empirical) probability distributions for the distance values.
Figure 3 illustrates CASE A of Section 5.2, i.e., W = 1 . Here, G = Sym ( 4 ) (top row) and G = Sym ( 5 ) (bottom row). The main conclusions can be summarized as follows.
  • For C = 0.30 (no synchronization, panels (a) and (d)), all possible values { 0 , 1 , , L ( L 1 ) / 2 } of d K are realized.
  • For C = 0.55 (“weak synchronization”, panels (b) and (e)), only the greater values of d K are allowed.
  • For C = 1.10 (“strong synchronization”, panels (c) and (f)), only the smaller values of d K are allowed.
  • So, d K detects that the generalized synchronizations at C = 0.55 and C = 1.10 are different: the former forbids the shorter distances between simultaneous ordinal patterns r t and s t , while the latter forbids large distances.
  • The results for each C are consistently similar.
Figure 3. Top row: Probability distributions of the Kendall distances d K ( r t , s t ) for the algebraic representation of the time series x and y with the group G = Sym ( 4 ) (i.e., ordinal patterns of length L = 4 ) and coupling strengths C = 0.30 (left panel), 0.55 (middle panel) and 1.10 (right panel). Bottom row: Same as top row for the representation group G = Sym ( 5 ) (i.e., ordinal patterns of length L = 5 ).
Figure 3. Top row: Probability distributions of the Kendall distances d K ( r t , s t ) for the algebraic representation of the time series x and y with the group G = Sym ( 4 ) (i.e., ordinal patterns of length L = 4 ) and coupling strengths C = 0.30 (left panel), 0.55 (middle panel) and 1.10 (right panel). Bottom row: Same as top row for the representation group G = Sym ( 5 ) (i.e., ordinal patterns of length L = 5 ).
Entropy 27 00913 g003
We conclude that the distance d K is sensitive to dynamical changes in coupled systems and robust with respect to the length of the ordinal patterns.
At this point, we draw on Figure 3 to, as in Example 6, check the consistency of the results obtained with d K and D K ( Λ ) , this time using G = Sym ( 4 ) and G = Sym ( 5 ) . Figure 4 shows the probability distribution of the allowed distances for D K ( Λ ) ( r t , s t ) with L = 4 (panel (a)) and L = 5 (panel (b)). The coupling strength in both panels is C = 0.30 , so that all L ( L 1 ) / 2 + 1 allowed distances are realized. The allowed distances for D K ( Λ ) ( r t , s t ) , listed along the horizontal axes in Figure 4, happen to be { 46 k : 0 k 6 = d K , max ( 4 ) } for L = 4 and { 714 k : 0 k 10 = d K , max ( 5 ) } for L = 5 . Comparison of panels (a) and (b) of Figure 4 with panels (a) and (d) of Figure 3, respectively, shows that the probability distributions of D K ( Λ ) ( r t , s t ) and d K ( r t , s t ) are exactly the same for L = 4 , 5 and C = 0.30 , except for the labeling of the distances; notice the change of scales. In fact, and similarly to Equation (44), numerical calculations show that (i)
D K ( Λ ) ( r , s ) = 46 d K ( r , s )
for all r , s Sym ( 4 ) , where 46 = min { d K ( Λ r , Λ s ) > 0 : r , s Sym ( 4 ) } , and (ii)
D K ( Λ ) ( r , s ) = 714 d K ( r , s )
for all r , s Sym ( 5 ) , where 714 = min { d K ( Λ r , Λ s ) > 0 : r , s Sym ( 5 ) } . For example, d K ( Λ 1234 , Λ 1243 ) = 46 and d K ( Λ 12345 , Λ 12354 ) = 714 . The same occurs for C = 0.55 and C = 1.10 (not shown).
Figure 5 illustrates CASE B of Section 5.2, i.e., W > 1 . Here, W = 4 with G = Sym ( 3 ) , dist ( r t , s t ) = d K ( r t , s t ) , and the distance dist p ( r t 4 , s t 4 ) is (i) dist 1 ( r t 4 , s t 4 ) { 0 , 1 , , 12 } in the top row, (ii) dist 2 ( r t 4 , s t 4 ) [ 0 , 6 ] in the middle row and (iii) dist ( r t 4 , s t 4 ) { 0 , 1 , 2 , 3 } in the bottom row. The main conclusions can be summarized as follows.
  • Due to the monotony property of the p-norms ( · p · p for 1 p p ), the distances with smaller parameters p ( dist 1 and dist 2 in Figure 3) have greater differentiating power.
  • The results shown in Figure 3 (obtained with sliding windows of 4 consecutive ordinal patterns of length 3) are qualitatively similar to the results shown in Figure 1 (obtained with simultaneous pairs ( r t , s t ) of ordinal patterns of lengths 4 and 5).
Figure 5. Top row: Probability distributions of the distance dist 1 ( r t 4 , s t 4 ) for the algebraic representation of the time series x and y with the group G = Sym ( 3 ) (ordinal patterns of length L = 3 ) and coupling strengths C = 0.30 (left panel), 0.55 (middle panel) and 1.10 (right panel). Middle row: Same as top row for the distance dist 2 ( r t 4 , s t 4 ) . Bottom row: Same as top row for the distance dist ( r t 4 , s t 4 ) .
Figure 5. Top row: Probability distributions of the distance dist 1 ( r t 4 , s t 4 ) for the algebraic representation of the time series x and y with the group G = Sym ( 3 ) (ordinal patterns of length L = 3 ) and coupling strengths C = 0.30 (left panel), 0.55 (middle panel) and 1.10 (right panel). Middle row: Same as top row for the distance dist 2 ( r t 4 , s t 4 ) . Bottom row: Same as top row for the distance dist ( r t 4 , s t 4 ) .
Entropy 27 00913 g005
We conclude that the distances dist p are also sensitive to dynamical changes in coupled systems and robust with respect to the parameter p 1 .
To wrap up the previous discussion, we are also going to compare the computational times of D C , K ( Λ ) ( a t , b t ) (Section 4.1) and d S ( a t , b t ) (Section 4.2), where ( a t ) 1 t N , ( b t ) 1 t N are G -valued time series. Rather than using ad hoc groups and coupled time series, we take advange of the above ordinal representations α and β , and benchmark the computational cost of computing D C , K ( Λ ) ( r t , s t ) for G = Sym ( L ) , 3 L 6 (the usual ordinal pattern lengths in applications), N = 10,000 and C = 0.30 , against the computational cost of calculating d K ( r t , s t ) for the same group and settings. We choose C = 0.30 so that all allowed ordinal patterns are realized (see Figure 3 and Figure 4). Table 1 shows the times in seconds of the corresponding calculations with a laptop (Intel I9 processor, 8 cores, 64 GB of RAM, 8 GB of GPU memory) and a non-paralellized algorithm.
Altogether, the above numerical results support the usefulness of distances d C , K , D C , K ( Φ ) and dist p in the analysis of group-valued time series.

7. Conclusions

The results presented in this paper are an outgrowth of the study of transcripts and their applications to time series analysis in algebraic representations (Section 5), which are a generalization of transcripts in ordinal representations [8]. Indeed, the concept of transcript from a group element a G to another b G or, for that matter, the right translation of b by a (Equation (4)) leads directly to the isomorphism Φ : a R ( a , · ) = : R a from G to a subgroup of the symmetric group Sym ( G ) (Cayley’s theorem). In turn, the elements of Sym ( G ) can be written as numerical or symbolic strings, which allows us to endow Sym ( G ) with any convenient edit distance, e.g., the Cayley distance d C or the Kendall distance d K of Section 3. This being the case, the isomorphism Φ can be used to transport the distance d C , K in Sym ( G ) to G , as we did in Section 4. The result is the ordinal pattern-based distance for groups D C , K ( Φ ) ( a , b ) proposed in Definition 6.
Metric properties of finite groups is an unsual tool in time series analysis in algebraic representations. Even in the ordinal representation, distances or similarities between time series are usually measured with functionals of probability distributions such as divergences or functions thereof. There are also distances defined in the groups themselves, based on generating sets, which were the subject of Section 4.2. Actually, the distances d C and d K in the permutations groups, discussed in Section 3, are examples of distances with respect to generating sets. A possible advantage of the ordinal pattern-based distance proposed in this paper for any group G is its simplicity and generality, since it dispenses with generating sets and minimal descriptions of elements via generators. Furthermore, there are general-purpose algorithms to efficiently calculate the distances d C and d K in Sym ( G ) for the low and moderate group cardinalities used in practice, see Table 1.
In the previous sections we have presented the mathematical underpinnings of our approach, which include group actions, Cayley’s theorem, and group representations, as well as its practical implementation. It is remarkable that Cayley’s theorem gives permutations (or ordinal patterns) a certain universality in algebraic representations of time series, although other choices or isomorphisms can be more convenient in practice. For example, the Klein group (Example 5) is isomorphic to Z 2 × Z 2 endowed with XOR addition and the cyclic group { θ 0 , θ 1 , , θ n 1 } endowed with θ i θ j = θ k , where k = i + j mod n, is isomorphic to { 0 , 1 , , n 1 } equipped with addition modulo n. Some of these groups were used in the previous sections to illustrate the theory. In contrast to the specificities of each group, the group distance introduced in Definition 6 is completely general, since the only input it needs is the multiplication table of the group, and can be efficiently computed. Possible applications were only touched upon in Section 5 because they are the subject of ongoing research. The numerical simulations in Section 6 show the potential of the metric tools discussed in this paper in the analysis of group-valued time series.

Author Contributions

Conceptualization, J.M.A.; methodology, J.M.A.; software, R.D.; validation, J.M.A. and R.D.; formal analysis, J.M.A.; investigation, J.M.A.; resources, R.D.; data curation, J.M.A. and R.D.; writing—original draft preparation, J.M.A.; writing—review and editing, J.M.A. and R.D.; visualization, J.M.A. and R.D.; supervision, J.M.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The numerical data supporting the conclusions of this article will be made available by the authors on request.

Acknowledgments

The authors are very grateful to the Reviewers for their helpful comments.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Cayley and Kendall Distances for the Group Sym (4) (Example 4)

Table A1. Distance d C for Sym ( 4 ) .
Table A1. Distance d C for Sym ( 4 ) .
d C 123412431324134214231432213421432314234124132431312431423214324134123421412341324213423143124321
1234011221122332231223322132
1243102112213223322132231223
1324120112231223122332233221
1342211021322132213223322312
1423211201322312233221122332
1432122110233221322312213223
2134122332011221122332213223
2143213223102112213223122332
2314231223120112231223322312
2341322132211021322132233221
2413322312211201322312231223
2431233221122110233221322132
3124231223122332011221122332
3142322132213223102112213223
3214122332231223120112231223
3241213223322132211021322132
3412233221322312211201322312
3421322312233221122110233221
4123322312213223122332011221
4132233221122332213223102112
4213213223322312231223120112
4231122332233221322132211021
4312322132231223322312211201
4321231223322132233221122110
Table A2. Distance d K for Sym ( 4 ) .
Table A2. Distance d K for Sym ( 4 ) .
d K 123412431324134214231432213421432314234124132431312431423214324134123421412341324213423143124321
1234011223122334233445344556
1243102312213423344556233445
1324120132233445122334435645
1342231021344556213423324534
1423213201324534435645122334
1432322110435645324534213423
2134122334011223342354453465
2143213423102312453465342354
2314233445120132231243564354
2341344556231021342132453243
2413324534213201564354231243
2431435645322110453243342132
3124231243342354011223546534
3142342132453465102312435423
3214342354231243120132655443
3241453465342132231021544332
3412453243564354213201324312
3421564354453243322110433221
4123324312435423546534011223
4132433221546534435423102312
4213435423324312655443120132
4231546534433221544332231021
4312544332655443324312213201
4321655443544332433221322110

References

  1. Hirata, Y.; Amigó, J.M. A review of symbolic dynamics and symbolic reconstruction of dynamical systems. Chaos 2023, 33, 052101. [Google Scholar] [CrossRef]
  2. Bandt, C.; Pompe, B. Permutation Entropy: A Natural Complexity Measure for Time Series. Phys. Rev. Lett. 2002, 88, 174102. [Google Scholar] [CrossRef] [PubMed]
  3. Keller, K.; Lauffer, H. Symbolic analysis of high dimensional time series. Int. J. Bifurc. Chaos 2003, 13, 2657–2668. [Google Scholar] [CrossRef]
  4. Graff, G.; Graff, B.; Kaczkowska, A.; Makowiecz, D.; Amigó, J.M.; Piskorski, J.; Narkiewicz, K.; Guzik, P. Ordinal pattern statistics for the assessment of heart rate variability. Eur. Phys. Spec. Top. 2013, 222, 525–534. [Google Scholar] [CrossRef]
  5. Schlemmer, A.; Berg, S.; Lilienkamp, T.; Luther, S.; Parlitz, U. Spatiotemporal permutation entropy as a measure for complexity of cardiac arrhythmia. Front. Phys. 2018, 6, 39. [Google Scholar] [CrossRef]
  6. Rosso, O.A.; Larrondo, H.A.; Martin, M.T.; Plastino, A.; Fuentes, M.A. Distinguishing noise from chaos. Phys. Rev. Lett. 2007, 99, 154102. [Google Scholar] [CrossRef] [PubMed]
  7. Amigó, J.M.; Zambrano, S.; Sanjuán, M.A.F. True and false forbidden patterns in deterministic and random dynamics. Europhys. Lett. 2007, 79, 50001. [Google Scholar] [CrossRef]
  8. Monetti, R.; Bunk, W.; Aschenbrenner, T.; Jamitzky, F. Characterizing synchronization in time series using information measures extracted from symbolic representations. Phys. Rev. E 2009, 79, 046207. [Google Scholar] [CrossRef]
  9. Parlitz, U.; Suetani, H.; Luther, S. Identification of equivalent dynamics using ordinal pattern distribution. Eur. J. Spec. Top. 2013, 222, 553–568. [Google Scholar] [CrossRef]
  10. Weiß, C.H. Non-parametric tests for serial dependence in time series based on asymptotic implementations of ordinal-pattern statistics. Chaos 2022, 32, 093107. [Google Scholar] [CrossRef]
  11. Weiß, C.H.; Ruiz Marín, M.; Keller, K.; Matilla-García, M. Non-parametric analysis of serial dependence in time series using ordinal patterns. Comput. Stat. Data Anal. 2022, 168, 107381. [Google Scholar] [CrossRef]
  12. Amigó, J.M.; Keller, K.; Kurths, J. Recent Progress in Symbolic Dynamics and Permutation Complexity. Eur. Phys. J. Spec. Top. 2013, 222, 241–247. [Google Scholar] [CrossRef]
  13. Leyva, I.; Martinez, J.; Massoller, C.; Rosso, R.O.; Zanin, M. 20 Years of Ordinal Patterns: Perspectives and challenges. Eur. Phys. Lett. 2022, 138, 31001. [Google Scholar] [CrossRef]
  14. Amigó, J.M.; Rosso, O.A. Ordinal methods: Concepts, applications, new developments, and challenges. Chaos 2023, 33, 080401. [Google Scholar] [CrossRef]
  15. Herstein, I.N. Abstract Algebra; John Wiley: Hoboken, NJ, USA, 1996; ISBN 978-0471368793. [Google Scholar]
  16. Lang, S. Undergraduate Algebra, 3rd ed.; Undergraduate Texts in Mathematics; Springer: New York, NY, USA, 2005; ISBN 978-0387220253. [Google Scholar]
  17. Fraleigh, J.B. A First Course in Abstract Algebra; Pearson Education Limited: London, UK, 2013; ISBN 978-1292024967. [Google Scholar]
  18. Mohr, M.; Wilhelm, F.; Hartwig, M.; Möller, R.; Keller, K. New Approaches in Ordinal Pattern Representations for Multivariate Time Series. In Proceedings of the Thirty-Third International Artificial Intelligence Research Society Conference (FLAIRS 2020), North Miami Beach, FL, USA, 17–20 May 2020; pp. 124–129. Available online: https://aaai.org/papers/124-flairs-2020-18417 (accessed on 26 August 2025).
  19. Amigó, J.M.; Keller, K. Permutation entropy: One concept, two approaches. Eur. Phys. J. Spec. Top. 2013, 222, 263–274. [Google Scholar] [CrossRef]
  20. Ribeiro, H.V.; Zunino, L.; Lenzi, E.K.; Santoro, P.A.; Mendes, R.S. Complexity-entropy causality plane as a complexity measure for twodimensional patterns. PLoS ONE 2012, 7, e40689. [Google Scholar] [CrossRef]
  21. Zunino, L.; Ribeiro, H.V. Discriminating image textures with the multiscale two-dimensional complexity-entropy causality plane. Chaos Solitons Fractals 2016, 91, 679–688. [Google Scholar] [CrossRef]
  22. Bandt, C.; Wittfeld, K. Two new parameters for the ordinal analysis of images. Chaos 2023, 33, 043124. [Google Scholar] [CrossRef] [PubMed]
  23. Deza, M.; Huang, T. Metrics on permutations: A survey. J. Comb. Inf. Syst. Sci. 1998, 23, 173–185. [Google Scholar]
  24. Nguyen, T. Improving the Gilbert-Varshamov bound for permutation Codes in the Cayley metric and Kendall τ-Metric. arXiv 2024, arXiv:2404.15126v2. [Google Scholar]
  25. Kendall, M.G. A new measure of rank correlation. Biometrika 1938, 30, 81–93. [Google Scholar] [CrossRef]
  26. Sörensen, K. Distance measures based on the edit distance for permutation-type representations. J. Heuristics 2007, 13, 35–47. [Google Scholar] [CrossRef]
  27. Bandt, C. Small Order Patterns in Big Time Series: A Practical Guide. Entropy 2019, 21, 613. [Google Scholar] [CrossRef] [PubMed]
  28. Cicirello, V.A. Kendall tau sequence distance: Extending Kendall tau from ranks to sequences. arXiv 2019, arXiv:1905.02752v3. [Google Scholar] [CrossRef]
  29. Johnson, D.L. Minimal Permutation Representations of Finite Groups. Am. J. Math. 1971, 93, 857–866. [Google Scholar] [CrossRef]
  30. Grechkoseeva, M.A. On Minimal Permutation Representations of Classical Simple Groups. Sib. Math. J. 2003, 44, 443–462. [Google Scholar] [CrossRef]
  31. Rachev, S.T.; Klebanov, L.; Stoyanov, S.V.; Fabozzi, F. The Methods of Distances in the Theory of Probability and Statistics; Springer: New York, NY, USA, 2013; ISBN 978-1461448686. [Google Scholar]
  32. Lin, J. Divergence measures based on the Shannon entropy. IEEE Trans. Inf. Theory 1991, 37, 145–151. [Google Scholar] [CrossRef]
  33. Endres, D.; Schindelin, J. A new metric for probability distributions. IEEE Trans. Inf. Theory 2003, 49, 1858–1860. [Google Scholar] [CrossRef]
  34. Zunino, L.; Olivares, F.; Ribeiro, H.V.; Rosso, O.A. Permutation Jensen-Shannon distance: A versatile and fast symbolic tool for complex time-series analysis. Phys. Rev. E 2022, 105, 045310. [Google Scholar] [CrossRef]
  35. Zunino, L. Revisiting the Characterization of Resting Brain Dynamics with the Permutation Jensen–Shannon Distance. Entropy 2024, 26, 432. [Google Scholar] [CrossRef]
  36. Hellinger, E. Neue Begründung der Theorie quadratischer Formen von unendlichvielen Veränderlichen. J. Fürdie Reine Angew. Math. 1909, 136, 210–271. Available online: http://eudml.org/doc/149313 (accessed on 26 August 2025). [CrossRef]
  37. Kantorovich, L.V. On the translocation of masses. Dokl. Akad. Nauk SSSR 1942, 37, 227–229, Reprinted in J. Math. Sci. 2006, 133, 1381–1382. [Google Scholar] [CrossRef]
  38. Figalli, A.; Glaudo, F. An Invitation to Optimal Transport, Wasserstein Distances, and Gradient Flows. In EMS Textbooks in Mathematics, 23rd ed.; European Mathematical Society: Berlin, Germany, 2021; ISBN 978-3985470105. [Google Scholar]
  39. Pinsker, M.S. Information and Information Stability of Random Variables and Processes; Holden-Day: San Francisco, CA, USA, 1964; ISBN 978-0816268047. [Google Scholar]
  40. Bhattacharyya, A.; Gayen, S.; Meel, K.S.; Myrisiotis, D.; Pavan, A.; Vinodchandran, N.V. On Approximating Total Variation Distance. arXiv 2023, arXiv:2206.07209v2. [Google Scholar] [PubMed]
  41. Amigó, J.M.; Monetti, R.; Aschenbrenner, T.; Bunk, W. Transcripts: An algebraic approach to coupled time series. Chaos 2012, 22, 013105. [Google Scholar] [CrossRef]
  42. Monetti, R.; Bunk, W.; Aschenbrenner, T.; Springer, S.; Amigó, J.M. Information directionality in coupled time series using transcripts. Phys. Rev. E 2013, 88, 022911. [Google Scholar] [CrossRef]
  43. Pilarczyk, P.; Graff, G.; Amigó, J.M.; Tessmer, K.; Narkiewicz, K.; Graff, B. Differentiating patients with obstructive sleep apnea from healthy controls based on heart rate-blood pressure coupling quantified by entropy-based indices. Chaos 2023, 33, 103140. [Google Scholar] [CrossRef]
  44. Hamming, R.W. Error detecting and error correcting codes. Bell Syst. Tech. J. 1950, 29, 147–160. [Google Scholar] [CrossRef]
  45. Damerau, F.J. A technique for computer detection and correction of spelling errors. Commun. ACM 1964, 7, 171–176. [Google Scholar] [CrossRef]
  46. Levenshtein, V.I. Binary codes capable of correcting deletions, insertions, and reversals. Sov. Phys. Dokl. 1966, 10, 707–710. [Google Scholar]
  47. Cormen, T.H.; Leiserson, C.E.; Rivest, R.L.; Stein, C. Introduction to Algorithms, 3rd ed.; The MIT Press: Cambridge, MA, USA, 2009. [Google Scholar]
  48. Jaro, M.A. Advances in record-linkage methodology as applied to matching the 1985 census of Tampa, Florida. J. Am. Stat. Assoc. 1989, 84, 414–420. [Google Scholar] [CrossRef]
  49. Winkler, W.E. String Comparator Metrics and Enhanced Decision Rules in the Fellegi-Sunter Model of Record Linkage. In Proceedings of the Section on Survey Research Methods, American Statistical Association, Anaheim, CA, USA, 6–9 August 1990; pp. 354–359. [Google Scholar]
  50. Amigó, J.M.; Dale, R.; King, J.C.; Lehnertz, K. Generalized synchronization in the presence of dynamical noise and its detection via recurrent neural networks. Chaos 2024, 34, 123156. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Kendall adjacency graph of Sym ( 3 ) . A link between two nodes means that the corresponding permutations differ by an adjacent transposition, i.e., the Kendall distance between them is 1.
Figure 1. Kendall adjacency graph of Sym ( 3 ) . A link between two nodes means that the corresponding permutations differ by an adjacent transposition, i.e., the Kendall distance between them is 1.
Entropy 27 00913 g001
Figure 2. Kendall adjacency graph of Sym ( 4 ) . A link between two permutations means that the Kendall distance between them is 1.
Figure 2. Kendall adjacency graph of Sym ( 4 ) . A link between two permutations means that the Kendall distance between them is 1.
Entropy 27 00913 g002
Figure 4. Probability distributions of the allowed distances for D K ( Λ ) ( r t , s t ) for the algebraic representation of the time series x and y with the group G = Sym ( 4 ) (panel (a)) and G = Sym ( 5 ) (panel (b)). C = 0.30 in both panels so that all L ( L 1 ) / 2 + 1 allowed distances for D K ( Λ ) ( r t , s t ) (listed along the horizontal axes) are actually realized.
Figure 4. Probability distributions of the allowed distances for D K ( Λ ) ( r t , s t ) for the algebraic representation of the time series x and y with the group G = Sym ( 4 ) (panel (a)) and G = Sym ( 5 ) (panel (b)). C = 0.30 in both panels so that all L ( L 1 ) / 2 + 1 allowed distances for D K ( Λ ) ( r t , s t ) (listed along the horizontal axes) are actually realized.
Entropy 27 00913 g004
Table 1. Computation time in seconds of d K ( r t , s t ) and D C , K ( Λ ) ( r t , s t ) , 1 t 10,000.
Table 1. Computation time in seconds of d K ( r t , s t ) and D C , K ( Λ ) ( r t , s t ) , 1 t 10,000.
G Φ ( G ) d K ( r t , s t ) D C , K ( Λ ) ( r t , s t )
Sym ( 3 ) Sym ( 6 ) 0.009 s 0.022 s
Sym ( 4 ) Sym ( 24 ) 0.010 s 0.038 s
Sym ( 5 ) Sym ( 120 ) 0.011 s 0.143 s
Sym ( 6 ) Sym ( 720 ) 0.012 s 2.837 s
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Amigó, J.M.; Dale, R. Permutation-Based Distances for Groups and Group-Valued Time Series. Entropy 2025, 27, 913. https://doi.org/10.3390/e27090913

AMA Style

Amigó JM, Dale R. Permutation-Based Distances for Groups and Group-Valued Time Series. Entropy. 2025; 27(9):913. https://doi.org/10.3390/e27090913

Chicago/Turabian Style

Amigó, José M., and Roberto Dale. 2025. "Permutation-Based Distances for Groups and Group-Valued Time Series" Entropy 27, no. 9: 913. https://doi.org/10.3390/e27090913

APA Style

Amigó, J. M., & Dale, R. (2025). Permutation-Based Distances for Groups and Group-Valued Time Series. Entropy, 27(9), 913. https://doi.org/10.3390/e27090913

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