arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.08223stat.COcs.LGcs.NAmath.NA
收藏

使用非中心Gram形式的高性能方差-协方差矩阵构建

High-Performance Variance-Covariance Matrix Construction Using an Uncentered Gram Formulation

Department of Economics, Johannes Kepler University Linz(经济系,约翰尼斯·开普勒大学林茨)

Felix Reichel

AI总结:

本文通过非中心Gram矩阵和修正项等价于成对差异定义,避免了显式中心化,将计算简化为一个p×p外积和一次减法,在Python基准测试中显著提升运行速度。

摘要:

Reichel (2025) 将bariance定义为一种成对差异度量,该度量可以仅使用标量求和在线性时间内重写。我们通过证明涉及非中心Gram矩阵和修正项的标准矩阵表达式在代数上与成对差异定义相同,同时避免了显式中心化,将此思想扩展到协方差矩阵。然后计算简化为一个p×p维的外积和一次减法。Python中的基准测试显示出明显的运行时间增益,特别是在没有BLAS优化的情况下。可选的更快Gram矩阵例程(如RXTX, Rybin et al., 2025)进一步降低了总体成本。

英文摘要:

Reichel (2025) defined the bariance as a pairwise-difference measure that can be rewritten in linear time using only scalar sums. We extend this idea to the covariance matrix by showing that the standard matrix expression involving the uncentered Gram matrix and a correction term is algebraically identical to the pairwise-difference definition while avoiding explicit centering. The computation then reduces to one outer product of dimension p-by-p and a single subtraction. Benchmarks in Python show clear runtime gains, especially when BLAS optimizations are absent. Optionally faster Gram-matrix routines such as RXTX (Rybin et al., 2025) further reduce overall cost.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑