arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.02849stat.CO
收藏

使用\textit{R}包\textsf{estats}进行快速且轻量级的能量统计

Fast and light-weight energy statistics using the \textit{R} package \textsf{estats}

University of Crete(克里特大学)

Michail Tsagris, Manos Papadakis

AI总结:

提出内存高效的算法,通过即时计算成对距离而非存储完整距离矩阵,将能量统计的计算速度提升5-156倍,内存需求从$O(n^2)$降至$O(n)$,使数万级样本的计算成为可能,并在R包estats中实现。

摘要:

能量统计($\mathcal{\varepsilon}$--statistics)能够实现诸如距离相关等强大的非线性依赖性度量,但其计算负担限制了对大型数据集的应用。我们提出了内存高效的算法,通过即时计算成对距离而非存储完整的距离矩阵来计算与$\mathcal{\varepsilon}$--statistics相关的量。我们的方法在现有实现的基础上实现了5-156$\times$的速度提升,同时将内存需求从$O(n^2)$降至$O(n)$。这些进步使得能够对超过数万个观测值的样本进行能量统计计算——这在标准实现中是难以实现的——从而促进了其在统计学、生物信息学和机器学习等频繁遇到大规模数据集的现代应用中的使用。演示了以下案例:能量距离、单变量和多变量距离方差、距离协方差、(偏)距离相关以及单变量分布相等的假设检验。用于计算上述能量统计等的函数可在\textit{R}包\textsf{estats}中获得。

英文摘要:

Energy statistics ($\mathcal{\varepsilon}$--statistics) enable powerful non-linear dependence measures such as distance correlation, but their computational burden has limited application to large datasets. We present memory-efficient algorithms that compute $\mathcal{\varepsilon}$--statistics related quantities by calculating pairwise distances on-the-fly rather than storing full distance matrices. Our methods achieve 5-156$\times$ speed improvements over existing implementations while reducing memory requirements from $O(n^2)$ to $O(n)$. These advances enable energy statistics computation with sample sizes exceeding tens of thousands observations-previously infeasible with standard implementations-facilitating their use in modern applications across statistics, bioinformatics, and machine learning where large-scale datasets are frequently met. The following cases are demonstrated: energy distance, univariate and multivariate distance variance, distance covariance, (partial) distance correlation and hypothesis testing for the equality of univariate distributions. Functions to compute the aforementioned energy statistics, among others, are available in the \textit{R} package \textsf{estats}.

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

↑