Next Article in Journal
Multidimensional Fractional Calculus: Theory and Applications
Previous Article in Journal
Analytical and Numerical Approaches via Quadratic Integral Equations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Complete Characterization of Linear Dependence and Independence for All 4-by-4 Metric Matrices

1
Department of Mathematical Sciences, College of Science, Mathematics and Technology, Wenzhou-Kean University, Wenzhou 325060, China
2
Department of Mathematical Sciences, College of Science, Mathematics and Technology, Kean University, 1000 Morris Avenue, Union, NJ 07083, USA
Axioms 2024, 13(9), 622; https://doi.org/10.3390/axioms13090622
Submission received: 11 May 2024 / Revised: 6 September 2024 / Accepted: 11 September 2024 / Published: 12 September 2024

Abstract

:
In this article, we study the properties of 4-by-4 metric matrices and characterize their dependence and independence by M 4 × 4 = ( M 4 × 4 D M 4 × 4 ) D M 4 × 4 , where D M 4 × 4 is the set of all dependent metric matrices. D M 4 × 4 is further characterized by D M 4 × 4 = D M 1 4 × 4 D M 2 4 × 4 , where D M 2 4 × 4 is characterized by D M 2 4 × 4 = D M 21 4 × 4 D M 22 4 × 4 . These characterizations provide some insightful findings that go beyond the Euclidean distance or Euclidean distance matrix and link the distance functions to vector spaces, which offers some theoretical and application-related advantages. In the application parts, we show that the metric matrices associated with all Minkowski distance functions over four different points are linearly independent, and that the metric matrices associated with any four concyclic points are also linearly independent.

1. Introduction

Distance functions, or metrics, are always a fascinating topic in research due to their diverse and intuitive applications [1,2]. In this article, we investigate the relationship between linear dependence and metrics. For each metric d with a finite domain size, say n, it can be represented (or the nodes relabeled) by n ! metric matrices (or { M d j } j = 1 n ! ). Because the simultaneous exchange of any two rows and the exchange of any two columns does not change the value of the determinants, i.e., | M d j | = | M d k | for all 1 i , j n ! , it is sufficient to study one representation. Here, R + 4 × 4 denotes the set of all 4-by-4 real matrices where the diagonal elements are 0 and the off-diagonal elements are all positive real numbers.
Definition 1.
M 4 × 4 = 0 d 12 d 13 d 14 d 12 0 d 23 d 24 d 13 d 23 0 d 34 d 14 d 24 d 34 0 R + 4 × 4 : | d i j d j k | d i k d i j + d j k , 1 i , j , k 4 } .
Officially, we should probably call these matrices ‘distance matrices’. However, in order not to confuse them with the typical Eulidean Distance Matrix (or EDM) [3,4] based on square distances, we simply call our simple distance-based matrices metric matrices. In this paper, we study and characterize the necessary and sufficient conditions for the dependence and independence of M 4 × 4 . First, we provide the necessary conditions for the linear dependence of a metric matrix. These conditions are mainly found in Lemma 1. Then, we show that any metric matrix containing at least one real triangular triplet would not satisfy the necessary conditions, as shown in Claims 1 and 3. This leads directly to the further characterization of the necessary condition, as shown in Claims 2 and 4 and summarized in Lemma 2 and 3. We then show the sufficient conditions for linear dependence by constructing three sets of disjoint dependence metric matrices: D M 1 4 × 4 , D M 21 4 × 4 , and D M 22 4 × 4 , respectively defined in Definitions 2, 4, and 5. We show that these categorized metric matrices fully characterize the dependent metric matrices in M 4 × 4 via Theorem 1, Corollary 1, and Lemma 4. The entire theorems, associated presentations, and derivations are presented in Section 2. Applications of these theorems are presented in Section 3 and Section 4.

2. Theories and Derivations

Lemma 1
(Necessary conditions). If D M 4 × 4 and | D | = 0 , then
d 12 = d 13 d 24 + d 14 d 23 ± 2 d 13 d 14 d 23 d 24 d 34 ,
or
d 12 d 34 = [ d 13 d 24 ± d 14 d 23 ] 2 .
Proof. 
Let D = D 11 D 12 D 21 D 22 , where D 11 = 0 d 12 d 12 0 ;   D 12 = d 13 d 14 d 23 d 24 ;   D 21 = d 13 d 23 d 14 d 24 ;   D 22 = 0 d 34 d 34 0 .  □
Because D 22 is invertible (thus, | D | = | D 22 | × | D 11 D 12 D 22 1 D 21 | ), we have | D 11 D 12 D 22 1 D 21 | = 0 , i.e.,
0 d 12 d 12 0 2 d 13 d 14 d 34 d 13 d 24 + d 14 d 23 d 34 d 13 d 24 + d 14 d 23 d 34 2 d 23 d 24 d 34 = 0 ,
i.e.,
d 12 2 ( 2 t d 34 ) d 12 + [ t 2 d 34 2 4 d 13 d 14 d 23 d 24 d 34 2 ] = 0 ,
where t = d 13 d 24 + d 14 d 23 . Therefore,
d 12 = t ± 2 d 13 d 14 d 23 d 24 d 34 .
Claim 1.
If
d 12 1 ( d 13 + d 23 ) d 12 2 ( d 14 + d 24 ) d 34 3 ( d 13 + d 14 ) d 34 4 ( d 23 + d 24 ) ,
where i { < , = } for all 1 i 4 and | { i { 1 , 2 , 3 , 4 } : i = } | 3 , then d 12 d 13 d 24 + d 14 d 23 + 2 d 13 d 14 d 23 d 24 d 34 .
Proof. 
Assume d 12 = d 13 d 24 + d 14 d 23 + 2 d 13 d 14 d 23 d 24 d 34 . From the premise, we have d 12 d 34 13 ( d 13 + d 23 ) ( d 13 + d 14 ) ; d 12 d 34 14 ( d 13 + d 23 ) ( d 23 + d 24 ) ; d 12 d 34 23 ( d 14 + d 24 ) ( d 13 + d 14 ) ; d 12 d 34 24 ( d 14 + d 24 ) ( d 23 + d 24 ) , where i j = if i = and j = , otherwise i j < . These results lead to
[ d 13 d 24 + 2 d 13 d 14 d 23 d 24 ] 13 [ d 13 2 + d 13 d 14 + d 13 d 23 ] ,
[ d 14 d 23 + 2 d 13 d 14 d 23 d 24 ] 14 [ d 23 2 + d 13 d 23 + d 23 d 24 ] ,
[ d 14 d 23 + 2 d 13 d 14 d 23 d 24 ] 23 [ d 14 2 + d 13 d 14 + d 14 d 24 ] ,
[ d 13 d 24 + 2 d 13 d 14 d 23 d 24 ] 24 [ d 24 2 + d 14 d 24 + d 23 d 24 ] .
Now, we can divide both sides of Equations (1)–(4) by d 13 , d 23 , d 14 , and d 24 , respectively, yielding
[ d 24 + 2 d 14 d 23 d 24 d 13 ] 13 [ d 13 + d 14 + d 23 ] ,
[ d 14 + 2 d 13 d 14 d 24 d 23 ] 14 [ d 23 + d 13 + d 24 ] ,
[ d 23 + 2 d 13 d 23 d 24 d 14 ] 23 [ d 14 + d 13 + d 24 ] ,
[ d 13 + 2 d 13 d 14 d 23 d 24 ] 24 [ d 24 + d 14 + d 23 ] .
Multiplying Equation (5) by d 14 and (6) by d 24 yields
( d 14 d 24 ) 13 [ d 13 d 14 + d 14 2 + d 14 d 23 2 d 14 d 14 d 23 d 24 d 13 ] ,
( d 14 d 24 ) 14 [ d 23 d 24 + d 13 d 24 + d 24 2 2 d 24 d 13 d 14 d 24 d 23 ] .
Substituting Equations (9) and (10) into (3) and (4), respectively, yields
2 d 13 d 14 d 23 d 24 + 2 d 14 d 14 d 23 d 24 d 13 123 2 ( d 13 d 14 + d 14 2 ) , 2 d 13 d 14 d 23 d 24 + 2 d 24 d 13 d 14 d 24 d 23 124 2 ( d 23 d 24 + d 24 2 ) ,
where 123 = if 1 2 3 = and 123 < otherwise, and where 124 = if 1 2 4 = and 124 < otherwise. Furthermore, the equations can be simplified as follows:
d 23 d 24 d 13 d 14 [ d 13 d 14 + d 14 2 ] 123 [ d 13 d 14 + d 14 2 ] , d 13 d 14 d 23 d 24 [ d 23 d 24 + d 24 2 ] 124 [ d 23 d 24 + d 24 2 ] ,
i.e., ( d 13 d 14 ) 124 ( d 23 d 24 ) 123 ( d 13 d 14 ) , i.e., ( d 13 d 14 ) < ( d 13 d 14 ) , as | { i { 1 , 2 , 3 , 4 } : i = } | 3 . This yields a contradiction; hence, d 12 d 13 d 24 + d 14 d 23 + 2 d 13 d 14 d 23 d 24 d 34 . □
Remark 1.
In order to save space for our expositions, this claim and the following claims, lemmas, theorems, etc., are not expressed in the traditional way. In principle, to capture the conditions for the premises of the triangle inequlaity, we need 2 4 = 16 batches of premises. Instead, we use the notation ⊛ together with
| { i { 1 , 2 , 3 , 4 } : i = } | 3 ,
to denote all remaining cases (except the premise with the equations based on triangle equality: d 12 = d 13 + d 23 ; d 12 = d 14 + d 24 ; d 34 = d 13 + d 14 ; d 34 = d 23 + d 24 ). In other words, this claim or the following similar statements deal with uniform triangle equality cases. Strictly speaking, if we adopt the traditional representation we would have fifteen claims for this claim alone; thus, we use the notation ⊛ to save space. Another advantage of our presentation is it keeps the derivations as concise as possible and makes it easier for readers to check the validity of the statements.
Claim 2.
If d 12 = d 13 d 24 + d 14 d 23 + 2 d 13 d 14 d 23 d 24 d 34 , then d 13 = d 24 and d 23 = d 14 .
Proof. 
Per Claim 1, if we have d 12 = d 13 d 24 + d 14 d 23 + 2 d 13 d 14 d 23 d 24 d 34 , then
d 12 = d 13 + d 23 d 12 = d 14 + d 24 d 34 = d 13 + d 14 d 34 = d 23 + d 24 ,
i.e., d 13 + d 23 = d 14 + d 24 and d 13 + d 14 = d 23 + d 24 , i.e., d 13 = d 24 and d 23 = d 14 . □
Lemma 2.
d 12 = d 13 d 24 + d 14 d 23 + 2 d 13 d 14 d 23 d 24 d 34 iff d 13 = d 24 ; d 23 = d 14 ; d 12 = d 34 = d 13 + d 23 .
Proof. 
Per Claim 2, d 13 = d 24 and d 23 = d 14 , i.e., d 12 d 34 = d 13 d 24 + d 14 d 23 + 2 d 13 d 14 d 23 d 24 = [ d 13 + d 14 ] 2 . Because d 34 d 13 + d 14 , it follows that d 12 d 13 + d 14 = d 24 + d 14 . From the property d 12 d 14 + d 24 , we have d 12 = d 13 + d 14 = d 34 . On the other hand, if d 13 = d 24 ; d 23 = d 14 ; d 12 = d 34 = d 13 + d 23 , then d 13 d 24 + d 14 d 23 + 2 d 13 d 14 d 23 d 24 d 34 = ( d 13 + d 23 ) 2 d 34 = d 34 = d 12 . □
Claim 3.
If
| d 13 d 23 | 1 d 12 | d 14 d 24 | 2 d 12 | d 13 d 14 | 3 d 34 | d 23 d 24 | 4 d 34 ,
where i { < , = } for all 1 i 4 , and | { i { 1 , 2 , 3 , 4 } : i = } | 3 , then d 12 d 13 d 24 + d 14 d 23 2 d 13 d 14 d 23 d 24 d 34 .
Proof. 
Assume d 12 = d 13 d 24 + d 14 d 23 2 d 13 d 14 d 23 d 24 d 34 . From the premise, we have ( d 13 d 23 ) ( d 13 d 14 ) 13 d 12 d 34 ; ( d 23 d 13 ) ( d 23 d 24 ) 14 d 12 d 34 ; ( d 14 d 24 ) ( d 14 d 13 ) 23 d 12 d 34 ; ( d 14 d 24 ) ( d 23 d 24 ) 24 d 12 d 34 , where i j = if i = and j = , otherwise i j < . These results lead to
[ d 13 2 d 13 d 14 d 13 d 23 ] 13 [ d 13 d 24 2 d 13 d 14 d 23 d 24 ] ,
[ d 23 2 d 13 d 23 d 23 d 24 ] 14 [ d 14 d 23 2 d 13 d 14 d 23 d 24 ] ,
[ d 14 2 d 13 d 14 d 14 d 24 ] 23 [ d 14 d 23 2 d 13 d 14 d 23 d 24 ] ,
[ d 24 2 d 14 d 24 d 23 d 24 ] 24 [ d 13 d 24 2 d 13 d 14 d 23 d 24 ] .
In fact, the notation i j is meant to represent the equation α 1 α 2 = β 1 β 2 if and only if α 1 = β 1 and α 2 = β 2 . Now, we can divide both sides of Equations (11)–(14) by d 13 , d 23 , d 14 and d 24 , respectively, to yield
[ d 13 d 14 d 23 ] 13 [ d 24 2 d 14 d 23 d 24 d 13 ] ,
[ d 23 d 13 d 24 ] 14 [ d 14 2 d 13 d 14 d 24 d 23 ] ,
[ d 14 d 13 d 24 ] 23 [ d 23 2 d 13 d 23 d 24 d 14 ] ,
[ d 24 d 14 d 23 ] 24 [ d 13 2 d 13 d 14 d 23 d 24 ] .
Multiplying Equation (15) by d 14 and (16) by d 24 yields
( d 13 d 14 ) 13 [ d 14 d 24 + d 14 2 + d 14 d 23 2 d 14 d 14 d 23 d 24 d 13 ] ,
( d 23 d 24 ) 14 [ d 14 d 24 + d 13 d 24 + d 24 2 2 d 24 d 13 d 14 d 24 d 23 ] .
Substituting Equations (19) and (20) into (13) and (14), respectively, yields
2 d 13 d 14 d 23 d 24 + 2 d 14 d 14 d 23 d 24 d 13 123 2 ( d 14 d 23 + d 14 d 24 ) , 2 d 13 d 14 d 23 d 24 + 2 d 24 d 14 d 13 d 24 d 23 124 2 ( d 13 d 24 + d 14 d 24 ) ,
where 123 = if 1 2 3 = , otherwise 123 < and where 124 = if 1 2 4 = , otherwise 124 < . Furthermore, the equations can be simplified as follows:
d 13 d 14 d 23 d 24 [ 1 + d 14 d 13 ] 123 d 14 [ d 23 + d 24 ] , d 13 d 14 d 23 d 24 [ 1 + d 24 d 23 ] 124 d 24 [ d 13 + d 14 ] ,
i.e.,
d 13 d 14 d 23 d 24 123 d 13 d 14 ( d 23 + d 24 ) d 13 + d 14 ,
d 13 d 14 d 23 d 24 124 d 23 d 24 ( d 13 + d 14 ) d 23 + d 24 .
Multiplying Equation (21) with (22) together yields d 13 d 14 d 23 d 24 1234 d 13 d 14 d 23 d 24 , where 1234 = if 1 2 3 4 = and 1234 < otherwise. In fact, the notation i j k is meant to represent the equation α 1 α 2 α 3 = β 1 β 2 β 2 if and only if α 1 = β 1 and α 2 = β 2 and α 3 = β 3 . Hence, d 13 d 14 d 23 d 24 < d 13 d 14 d 23 d 24 , as | { i { 1 , 2 , 3 , 4 } : i = } | 3 . This yields a contradiction; hence, d 12 d 13 d 24 + d 14 d 23 2 d 13 d 14 d 23 d 24 d 34 . □
Claim 4.
If d 12 = d 13 d 24 + d 14 d 23 2 d 13 d 14 d 23 d 24 d 34 , then
d 12 = | d 13 d 23 | d 12 = | d 14 d 24 | d 34 = | d 13 d 14 | d 34 = | d 23 d 24 | .
Proof. 
This follows immediately from Claim 3. □
Lemma 3.
d 12 = d 13 d 24 + d 14 d 23 2 d 13 d 14 d 23 d 24 d 34 iff d 13 = d 24 ; d 23 = d 14 ; d 12 = d 34 = | d 13 d 14 | .
Proof. 
Without loss of generality, per Claim 4, let us assume d 13 > d 14 and d 23 > d 24 ; then, we can identify Equations (15) and (18) with
[ d 13 d 14 d 23 ] = [ d 24 2 d 14 d 23 d 24 d 13 ] ,
[ d 23 d 13 d 24 ] = [ d 14 2 d 13 d 14 d 24 d 23 ] ,
[ d 14 d 13 d 24 ] = [ d 23 2 d 13 d 23 d 24 d 14 ] ,
[ d 24 d 14 d 23 ] = [ d 13 2 d 13 d 14 d 23 d 24 ] .
Subtracting Equation (24) from (23) yields
d 13 d 23 = d 14 d 24 d 13 d 23 [ d 13 d 23 ] .
Then, we argue d 13 d 23 ; if d 13 = d 23 , then per Claim 4 we have d 34 = d 13 d 14 = d 23 d 24 . Thusm d 14 = d 24 , i.e., d 12 = 0 , which is not possible. Hence, d 13 d 23 ; thus, per Equation (27), d 14 d 24 d 13 d 23 = 1 , i.e.,
d 14 d 24 = d 13 d 23 .
Substituting Equation (28) into either Equation (23), (24), (25), or (26), we have
d 13 + d 23 = d 14 + d 24 = q .
From Equations (28) and (29), we have d 14 ( q d 14 ) = d 13 ( q d 13 ) , i.e., q = d 13 + d 14 , i.e., d 14 = d 23 and d 13 = d 24 . Thus, from the premise, d 12 d 34 = [ d 13 d 14 ] 2 . Per Claim 4, we know that d 34 = | d 13 d 14 | ; hence, we have d 12 = d 34 = | d 13 d 34 | . □
Based on the above-mentioned theorems, claims, etc., we can identify the dependence metric matrices as follows.
Definition 2.
(First-type dependence metric matrices)
D M 1 4 × 4 : = 0 α + γ γ α α + γ 0 α γ γ α 0 α + γ α γ α + γ 0 : α , γ R + .
Definition 3.
(Second-type dependence metric matrices)
D M 2 4 × 4 : = 0 | α γ | γ α | α γ | 0 α γ γ α 0 | α γ | α γ | α γ | 0 : α , γ R + , α γ .
Definition 4.
(First subtype of second-type dependence metric matrices)
D M 21 4 × 4 : = 0 γ α γ α γ α 0 α γ γ α 0 γ α α γ γ α 0 : α , γ R + , γ > α .
Definition 5.
(Second subtype of second-type dependence metric matrices)
D M 22 4 × 4 : = 0 α γ γ α α γ 0 α γ γ α 0 α γ α γ α γ 0 : α , γ R + , α > γ .
Definition 6.
D M 4 × 4 = D M 1 4 × 4 D M 2 4 × 4 .
Observing that D M 21 4 × 4 D M 22 4 × 4 = D M 2 4 × 4 and D M 1 4 × 4 D M 2 4 × 4 = D M 21 4 × 4 D M 22 4 × 4 = . We show that these definitions are sufficient to characterize the set of dependence and independence metric matrices.
Theorem 1.
D M 4 × 4 M 4 × 4 is the maximal set of all the linearly dependent 4-by-4 metric matrices.
Proof. 
The result follows immediately from Lemmas 1–3. □
Corollary 1.
M 4 × 4 D M 4 × 4 is the maximal set of all the linearly independent 4-by-4 metric matrices.
Theorem 2.
For all pairs ( a , b ) R 2 with a b 0 and a + b > 0 :
1. 
D M 1 4 × 4 is closed under positive linear combinations, i.e., if K , H D M 1 4 × 4 , then a K + b H D M 1 4 × 4 .
2. 
D M 21 4 × 4 is closed under positive linear combinations.
3. 
D M 22 4 × 4 is closed under positive linear combinations.
Proof. 
The first statement is trivial. Here, we prove the second and third statements. Let K = [ k i j ] , H = [ h i j ] D M 21 4 × 4 , let ( a , b ) be an arbitrary pair such that a b 0 and a + b > 0 , and let C = [ c i j ] = a K + b H ; then,
c 13 = a k 13 + b h 13 = a k 24 + b h 24 = c 24 c 14 = a k 14 + b h 14 = a k 23 + b h 23 = c 23 c 12 = a k 12 + b h 12 = a ( k 13 k 23 ) + b ( h 13 h 23 ) = ( a k 13 + b h 13 ) ( a 23 + b 23 ) = c 13 c 23 ;
furthermore,
c 12 = c 13 c 23 = c 24 c 14 = c 21 c 34 = a k 34 + b h 34 = a k 12 + b h 12 = c 12 .
Hence, we have shown that a K + b H D M 21 4 × 4 . A similar proof applies to the third statement. □
Example 1.
If D = 0 8 3 5 8 0 5 3 3 5 0 8 5 3 8 0 , E = 0 2 5 3 2 0 3 5 5 3 0 2 3 5 2 0 , and F = 0 2 3 5 2 0 5 3 3 5 0 2 5 3 2 0 , then D D M 1 4 × 4 M 4 × 4 , E D M 21 4 × 4 M 4 × 4 , F D M 22 4 × 4 M 4 × 4 , and | D | = | E | = | F | = 0 .
The completely characterization of the above relation can be seen in Figure 1:
Let K M 4 × 4 be arbitrary, and let K i j M 4 × 4 denote the metric matrix after swapping the i-th and j-th rows and the i-th and j-th columns of K.
Claim 5.
1. 
If K D M 1 4 × 4 , then K 1 2 , K 3 4 D M 1 4 × 4 ; K 2 3 , K 1 4 D M 21 4 × 4 ; K 1 3 , K 2 4 D M 22 4 × 4 .
2. 
If K D M 21 4 × 4 , then K 1 3 , K 2 4 D M 21 4 × 4 ; K 1 4 , K 2 3 D M 1 4 × 4 ; K 1 2 , K 3 4 D M 22 4 × 4 ;
3. 
If K D M 22 4 × 4 , then K 1 4 , K 2 3 D M 22 4 × 4 ; K 1 3 , K 2 4 D M 1 4 × 4 ; K 1 2 , K 3 4 D M 21 4 × 4 .
Proof. 
Let K = 0 α + γ γ α α + γ 0 α γ γ α 0 α + γ α γ α + γ 0 D M 1 4 × 4 be arbitrary. Then, K 1 2 , K 3 4 only swap α and γ in K, i.e., K 1 2 , K 3 4 D M 1 4 × 4 . Furthermore, K 2 3 = 0 γ α + γ α γ 0 α α + γ α + γ α 0 γ α α + γ γ 0 D M 21 4 × 4 and K 2 4 = 0 α γ α + γ α 0 α + γ γ γ α + γ 0 α α + γ γ α 0 D M 22 4 × 4 . Similarly, K 1 4 D M 21 4 × 4 and K 1 3 D M 22 4 × 4 . Now, let K = 0 γ α γ α γ α 0 α γ γ α 0 γ α α γ γ α 0 D M 21 4 × 4 be arbitrary, where γ > α . Then, K 2 3 = 0 γ γ α α γ 0 α γ α γ α α 0 γ α γ α γ 0 D M 1 4 × 4 and K 2 4 = 0 γ γ α α γ 0 α γ α γ α α 0 γ α γ α γ 0 D M 21 4 × 4 ; similarly, K 1 3 D M 21 4 × 4 , K 1 4 D M 1 4 × 4 , and K 1 2 , K 3 4 D M 22 4 × 4 . Lastly, let K = 0 α γ γ α α γ 0 α γ γ α 0 α γ α γ α γ 0 D M 22 4 × 4 be arbitrary, where γ < α ; then, K 1 2 = 0 α γ α γ α γ 0 γ α α γ 0 α γ γ α α γ 0 D M 21 4 × 4 , as does K 3 4 D M 21 4 × 4 . Moreover, K 1 3 = 0 α γ α γ α 0 α γ γ γ α γ 0 α α γ γ α 0 D M 1 4 × 4 , as does K 2 4 D M 1 4 × 4 . Lastly, K 1 4 = 0 γ α γ α γ 0 α α γ α γ α 0 γ α α γ γ 0 D M 22 4 × 4 , as does K 2 3 D M 22 4 × 4 . □
These results are encapsulated in Figure 2.
Lemma 4.
D M 4 × 4 is closed under the relabeling of the four nodes.
Proof. 
Let N denote the set { 1 , 2 , 3 , 4 } , and let T denote the set of all the bijective functions from N to N. Then, there are 4 ! bijective functions in T, or T = { ρ j } j = 1 24 , where ρ 1 T is associated with the identity function. Each ρ k can be regarded as several transformations (each of which is a simultaneous exchanges of i-th and j-th rows and columns), starting from ρ 1 l; then, per Claim 5, the result follows immediately. □
Before we proceed to the application of our results, let us summarize the derived results in this article. It is quite obvious that all metric matrices consisting of three points, i.e., 3-by-3 matrices, are all linearly independent. Intuitively (based on Euclidean distance), all metric matrices consisting of four points or more would be linearly independent. In this article, we show that this is not the case. We partition the set of all 4-by-4 metric matrices, or M 4 × 4 (see Definition 1), into the set of all dependent metric matrices, or D M 4 × 4 (see Definition 6) and the set of all independent metric matrices (or M 4 × 4 D M 4 × 4 ). We further partition D M 4 × 4 into D M 1 4 × 4 (see Definition 2) and D M 2 4 × 4 (see Definition 3). Finally, we partition D M 2 4 × 4 into D M 21 4 × 4 (see Definition 4) and D M 22 4 × 4 (see Definition 5). These partitions (see Figure 1) can be listed as follows:
  • M 4 × 4 = D M 4 × 4 ( M 4 × 4 D M 4 × 4 ) ,
  • D M 4 × 4 = D M 1 4 × 4 D M 2 4 × 4 ,
  • D M 2 4 × 4 = D M 21 4 × 4 D M 22 4 × 4 .

3. Application One

Now that we have completed the characterization of dependence and independence metric matrices, we can define their deviation.
Definition 7
(Deviation from dependence). Define D P : [ M 4 × 4 D M 4 × 4 ] R + by
D P ( K ) : = m i n { | | K D | | 2 : D D M 4 × 4 } .
In addition, we can also find some other applications. Let d denote a metric over a finite set consisting of four distinct points, and let [ d ] denote its associated metric matrix.
Claim 6.
For any arbitrary distinct real numbers α 1 , α 2 , α 3 , α 4 R , it is the case that ( { α 1 , α 2 , α 3 , α 4 } , d ) , where d ( α i , α j ) : = | α i α j | derives a linearly independent metric matrix.
Proof. 
Let d i j denote d ( α i , α j ) , i.e., | α i α j | , and let D d denote the associated metric matrix with metric d. If D d is not independent, then | D d | = 0 , i.e., d 12 = d 13 + d 23 = d 14 + d 24 = d 34 = d 13 + d 14 = d 23 + d 24 , i.e.,
| α 1 α 2 | = | α 1 α 3 | + | α 2 α 3 | ,
| α 1 α 2 | = | α 1 α 4 | + | α 2 α 4 | ,
| α 3 α 4 | = | α 1 α 3 | = | α 1 α 4 | ,
| α 3 α 4 | = | α 2 α 3 | = | α 2 α 4 | .
From Equations (30) and (31), we have α 1 < α 3 , α 4 < α 2 . On the other hand, from Equations (32) and (33) we have α 3 < α 1 , α 2 < α 4 . This obviously contradicts the linear order of R . □
Similarly, we can investigate the dependence and independence of p-order Minkowski distance functions d p , where p 1 . Minkowski distance functions have diverse applications in AI, data science [5,6], and machine learning-based subjects [7]. Let distinct V 1 = [ v 11 , v 12 , , v 1 n ] , V 2 = [ v 21 , v 22 , , v 2 n ] , V 3 = [ v 31 , v 32 , , v 3 n ] , and V 4 = [ v 41 , v 42 , , v 4 n ] R n be arbitrary; then, d p ( V i , V j ) : = [ k 4 | v i k v j k | p ] 1 p . Suppose there exists p 1 such that [ d p ] D M 4 × 4 , i.e., [ d p ] D M 1 4 × 4 or [ d p ] D M 21 4 × 4 , or [ d p ] D M 22 4 × 4 . We can show that [ d p ] D M 1 4 × 4 cannot be true. Let γ = d p ( V 1 , V 3 ) and α = d p ( V 2 , V 3 ) ; then,
d p ( V 1 , V 2 ) = α + γ = d p ( V 2 , V 3 ) + d p ( V 2 , V 3 ) ,
i.e., (by norms)
| | V 1 V 2 | | p = | | ( V 3 V 1 ) + ( V 2 V 3 ) | | p = | | V 3 V 1 | | p + | | V 3 V 2 | | p ,
which is true only if V 3 V 1 = t ( V 3 V 2 ) , i.e., if V 1 , V 2 and V 3 are collinear and if V 3 lies between V 1 and V 2 . Similarly, d p ( V 3 , V 4 ) = d p ( V 1 , V 3 ) + d p ( V 1 , V 4 ) , i.e.,
| | V 3 V 4 | | p = | | ( V 3 V 1 ) + ( V 1 V 4 ) | | p = | | V 3 V 1 | | p + | | V 1 V 4 | | p ,
which is true only if V 3 V 1 = s ( V 1 V 4 ) , i.e., if V 1 , V 3 and V 4 are collinear and if V 1 lies between V 3 and V 4 . This, together with V 1 , V 2 and V 3 being collinear and V 3 lying strictly between V 1 and V 2 , implies | | V 1 V 3 | | p < | | V 2 V 4 | | p , which contradicts the fact that | | V 1 V 3 | | p = | | V 2 V 4 | | p . Hence, it is impossible to have [ d p ] D M 1 4 × 4 . By the same arguments, we find that it is impossible to have [ d p ] D M 21 4 × 4 or [ d p ] D M 22 4 × 4 , i.e., [ d p ] M 4 × 4 D M 4 × 4 , an independent metric matrix.
Example 2.
V 1 = [ 3 , 4 , 3 , 0 , 8 ] , V 2 = [ 7 , 1 , 2 , 9 , 1 ] ; V 3 = [ 12 , 7 , 9 , 1 , 8 ] ; V 4 = [ 10 , 4 , 1 , 7 , 13 ] ; then, [ d 6 ] = [ | | V i V j | | 6 ] 1 i , j 4 = [ ( k = 1 5 | V i ( k ) V j ( k ) | 6 ) 1 6 ] i , j = 1 4 , where V i ( k ) denotes the k-th element of vector V i . After a sequence of computations, we obtain [ d 6 ] = 0.00 11.30 15.37 8.95 11.30 0.00 12.37 19.09 15.37 12.37 0.00 22.01 8.95 19.09 22.01 0.00 and | [ d 6 ] | = 105755 , i.e., [ d 6 ] M 4 × 4 D M 4 × 4 , i.e., [ d 6 ] is an independent metric matrix.
Lemma 5.
d p , or precisely [ d p ] , is linearly independent for all p 1 .

4. Application Two

Claim 7.
Any associated metric matrices with four concyclic points are linearly independent.
Proof. 
Let A , B , C , D be four arbitrary points on a given circle, as shown in Figure 3. Per Ptolemy’s Theorem [8], the lengths of edges abide by
A B ¯ × C D ¯ = A D ¯ × B C ¯ + A C ¯ × B D ¯ .
Let D = 0 A B ¯ A C ¯ A D ¯ A B ¯ 0 B C ¯ B D ¯ A C ¯ B C ¯ 0 C D ¯ A D ¯ B D ¯ C D ¯ 0 ; if | D | = 0 , then per Lemma 1 we have
A B ¯ × C D ¯ = A C ¯ × B D ¯ + A D ¯ × B C ¯ ± 2 A C ¯ × A D ¯ × B C ¯ × B D ¯ .
Comparing Equation (34) with (35), we have A C ¯ × A D ¯ × B C ¯ × B D ¯ = 0 , which is a contradiction. Therefore, | D | 0 , i.e., 0 A B ¯ A C ¯ A D ¯ , A B ¯ 0 B C ¯ B D ¯ , A C ¯ B C ¯ 0 C D ¯ , A D ¯ B D ¯ C D ¯ 0 could serve as a basis for other points on the circumsphere of the given circle. □
Based on Claim 7, we can analyze a dataset. Given a dataset { E j } j = 1 N , we can compute each distance column matrix Σ j [ E j A ¯ , E j B ¯ , E j C ¯ , E j D ¯ ] . Then, the set of distances (or coordinates) between the dataset { E j } j = 1 N and the four representative points A , B , C , D can be calculated as { D 1 Σ j } j = 1 N . This set provides us with some information about the dataset in terms of the distances between representative points.
Example 3.
Given a 2D unit circle with origin 0 ( 0 , 0 ) and eight uniformly sampled points { P n = ( c o s n 4 π , s i n n 4 π ) } n = 1 8 , A , B , C , D are respectively associated with P 4 , P 8 , P 6 , P 3 , while E 1 , E 2 , E 3 , E 4 are respectively associated with P 1 , P 2 , P 5 , P 7 . After a series of calculations, the following results are obtained:
D = 0 A B ¯ A C ¯ A D ¯ A B ¯ 0 B C ¯ B D ¯ A C ¯ B C ¯ 0 C D ¯ A D ¯ B D ¯ C D ¯ 0 = 0.00 2.00 1.41 0.77 2.00 0.00 1.41 1.85 1.41 1.41 0.00 1.85 0.77 1.85 1.85 0.00 ; | D | = 11 ; E 1 A ¯ E 2 A ¯ E 3 A ¯ E 4 A ¯ E 1 B ¯ E 2 B ¯ E 3 B ¯ E 4 B ¯ E 1 C ¯ E 2 C ¯ E 3 C ¯ E 4 C ¯ E 1 D ¯ E 2 D ¯ E 3 D ¯ E 4 D ¯ [ 1 , 2 , 3 , 4 ] = 1.85 1.41 0.77 1.85 0.77 1.41 1.85 0.77 1.85 2.00 0.77 0.77 1.41 0.77 1.41 2.00 . Hence, the distances between { E 1 , E 2 , E 3 , E 4 } and the basis D can be represented by
D 1 [ 1 , 2 , 3 , 4 ] = 0 0 0.54 0 0.77 0.41 0 0.54 0 0 0.54 0.54 0.41 0.77 0 0 .

5. Conclusions

It is interesting to know the boundary between linear independence and metric matrices. In this article, we study the dependence and independence of metric matrices based on some algebraic calculations related to the triangle inequality. This study concludes that the set of all 4-by-4 metric matrices, or M 4 × 4 , can be characterized by a set of disjoint metric matrices, or more precisely by M 4 × 4 = ( M 4 × 4 D M 4 × 4 ) D M 4 × 4 = ( M 4 × 4 D M 4 × 4 ) [ D M 1 4 × 4 D M 2 4 × 4 ] = ( M 4 × 4 D M 4 × 4 ) [ D M 1 4 × 4 ( D M 21 4 × 4 D M 22 4 × 4 ) ] . This characterization completes the dependence and independence for 4-by-4 metric matrices. In addition, we demonstrate some applications of these results; in particular, we show that certain distance functions are linearly independent. These statements should help to better understand the properties of metrics, especially, their relations to vector spaces.

Funding

The research was funded by the Internal (Faculty/Staff) Start-Up Research Grant of Wenzhou-Kean University (Project No. ISRG2023029) and the 2023 Student Partnering with Faculty/Staff Research Program (Project No. WKUSPF2023035) and 2024 Summer Student Partnering with Faculty (SSpF) Research Program (Project No. WKUSSPF202413).

Data Availability Statement

Data is contained within the article.

Conflicts of Interest

The author declares that they have no known competing financial interests or personal relationships that could have influenced or appeared to influence the work reported in this paper.

References

  1. Deza, M.M.; Deza, E. Encyclopedia of Distances; Springer: Berlin/Heidelberg, Germany, 2016. [Google Scholar]
  2. Deza, M.M.; Petitjean, M.; Markov, K. Mathematics of Distances and Applications; ITHEA: Sofia, Bulgaria, 2012. [Google Scholar]
  3. Dokmanic, I.; Parhizkar, R.; Ranieri, J.; Vetterli, M. Euclidean Distance Matrices: Essential theory, algorithms, and applications. IEEE Signal Process. Mag. 2015, 32, 12–30. [Google Scholar] [CrossRef]
  4. Alfakih, A. Euclidean Distance Matrices and Their Applications in Rigidity Theory; Springer: Cham, Switzerland, 2018. [Google Scholar]
  5. Guterman, A.E.; Zhilina, S.A. Relation Graphs of the Sedenion Algebra. J. Math. Sci. 2021, 255, 254–270. [Google Scholar] [CrossRef]
  6. Hennig, C. Minkowski distances and standardisation for clustering and classification on high-dimensional data. In Advanced Studies in Behaviormetrics and Data Science. Behaviormetrics: Quantitative Approaches to Human Behavior; Imaizumi, T., Nakayama, A., Yokoyama, S., Eds.; Springer: Singapore, 2020; Volume 5, pp. 103–118. [Google Scholar]
  7. Gao, C.X.; Dwyer, D.; Zhu, Y.; Smith, C.L.; Du, L.; Filia, K.M.; Bayer, J.; Menssink, J.M.; Wang, T.; Bergmeir, C.; et al. An overview of clustering methods with guidelines for application in mental health research. Psychiatry Res. 2023, 327, 115265. [Google Scholar] [CrossRef]
  8. Indika, G.W.; Amarasinghe, S. A Concise Elementary Proof for the Ptolemy’s Theorem. Glob. J. Adv. Res. Class. Mod. Geom. 2013, 2, 20–25. [Google Scholar]
  9. Coolidge, J.L. Concurrent Circles and Concyclic Points. A Treatise on the Geometry of the Circle and Sphere; Chelsea: New York, NY, USA, 1971. [Google Scholar]
Figure 1. Characterization of dependence and independence: M 4 × 4 D M 4 × 4 is the set of all the linearly independent metric matrices in which D M 4 × 4 consists of two parts, D M 1 4 × 4 and D M 2 4 × 4 ; moreover, D M 2 4 × 4 is divided into D M 21 4 × 4 and D M 22 4 × 4 .
Figure 1. Characterization of dependence and independence: M 4 × 4 D M 4 × 4 is the set of all the linearly independent metric matrices in which D M 4 × 4 consists of two parts, D M 1 4 × 4 and D M 2 4 × 4 ; moreover, D M 2 4 × 4 is divided into D M 21 4 × 4 and D M 22 4 × 4 .
Axioms 13 00622 g001
Figure 2. Closeness of simultaneous swapping of the i-th and j-th rows and i-th and j-th columns; the simultaneous swapping between rows and between columns symbolizes the relabeling of nodes in the domain of a metric, i.e., a distance function. This shows that D M 4 × 4 is closed for any relabeled representations.
Figure 2. Closeness of simultaneous swapping of the i-th and j-th rows and i-th and j-th columns; the simultaneous swapping between rows and between columns symbolizes the relabeling of nodes in the domain of a metric, i.e., a distance function. This shows that D M 4 × 4 is closed for any relabeled representations.
Axioms 13 00622 g002
Figure 3. Concyclic points [9] on a given circle with some center and radius; A , B , C , D are four chosen representative points and E 1 , E 2 , , E N comprise a dataset with a relation to the representative points that is to be calculated. Solid lines indicate the distances between representative points, and their length serves as a basis for other distances. The solid dots right along the circle are used to indicates the possible positions for other E j points. The dashed lines are the distances between { E j } j = 1 N and the four representative points.
Figure 3. Concyclic points [9] on a given circle with some center and radius; A , B , C , D are four chosen representative points and E 1 , E 2 , , E N comprise a dataset with a relation to the representative points that is to be calculated. Solid lines indicate the distances between representative points, and their length serves as a basis for other distances. The solid dots right along the circle are used to indicates the possible positions for other E j points. The dashed lines are the distances between { E j } j = 1 N and the four representative points.
Axioms 13 00622 g003
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

Chen, R.-M. A Complete Characterization of Linear Dependence and Independence for All 4-by-4 Metric Matrices. Axioms 2024, 13, 622. https://doi.org/10.3390/axioms13090622

AMA Style

Chen R-M. A Complete Characterization of Linear Dependence and Independence for All 4-by-4 Metric Matrices. Axioms. 2024; 13(9):622. https://doi.org/10.3390/axioms13090622

Chicago/Turabian Style

Chen, Ray-Ming. 2024. "A Complete Characterization of Linear Dependence and Independence for All 4-by-4 Metric Matrices" Axioms 13, no. 9: 622. https://doi.org/10.3390/axioms13090622

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