1. Assessing the similarity of real matrices with arbitrary shape
- Author
-
Albers, Jasper, Kurth, Anno C., Gutzen, Robin, Morales-Gregorio, Aitor, Denker, Michael, Grün, Sonja, van Albada, Sacha J., and Diesmann, Markus
- Subjects
Quantitative Biology - Neurons and Cognition ,Physics - Data Analysis, Statistics and Probability ,Quantitative Biology - Quantitative Methods - Abstract
Assessing the similarity of matrices is valuable for analyzing the extent to which data sets exhibit common features in tasks such as data clustering, dimensionality reduction, pattern recognition, group comparison, and graph analysis. Methods proposed for comparing vectors, such as cosine similarity, can be readily generalized to matrices. However, this approach usually neglects the inherent two-dimensional structure of matrices. Here, we propose singular angle similarity (SAS), a measure for evaluating the structural similarity between two arbitrary, real matrices of the same shape based on singular value decomposition. After introducing the measure, we compare SAS with standard measures for matrix comparison and show that only SAS captures the two-dimensional structure of matrices. Further, we characterize the behavior of SAS in the presence of noise and as a function of matrix dimensionality. Finally, we apply SAS to two use cases: square non-symmetric matrices of probabilistic network connectivity, and non-square matrices representing neural brain activity. For synthetic data of network connectivity, SAS matches intuitive expectations and allows for a robust assessment of similarities and differences. For experimental data of brain activity, SAS captures differences in the structure of high-dimensional responses to different stimuli. We conclude that SAS is a suitable measure for quantifying the shared structure of matrices with arbitrary shape., Comment: 12 pages, 6 figures
- Published
- 2024