arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.18686cs.MSecon.EM
收藏

critband: 一个用于多模分布临界带宽分析的Python包

critband: A Python Package for Critical Bandwidth Analysis of Multimodal Distributions

The University of Hong Kong(香港大学);Lanzhou University(兰州大学)

Ruiyu Zhang, Qihao Wang

AI总结:

本文提出critband,一个基于Silverman核密度方法的Python包,用于多模分布的临界带宽双峰检测,提供了稳健的模式计数求解器和FFT加速的KDE,以及k-模式检测、成分分解、双峰强度量化和超额质量估计等功能,验证表明其在不同情况下具有稳定的估计结果,且性能优于R的modetest()。

摘要:

多模密度估计是科学计算中的基本问题。确定分布中的模式数量是一个核心的数值挑战,应用领域涵盖生态学、经济学、基因组学和天文学。虽然R生态系统通过multimode包提供了成熟的工具,但Python生态系统缺乏等效的完整实现。我们提出了critband,一个基于Silverman核密度方法的Python包,用于临界带宽双峰检测。该包实现了基于稳健括号模式计数求解器的临界带宽搜索和FFT加速的KDE,并提供了额外功能,包括k-模式检测、成分分解、双峰强度量化和超额质量估计。对十二个基准案例的验证显示,在分离程度、方差不等、权重不等和小样本量的情况下,结果在明显分离的情况下保持稳定,而在边界情况下表现出预期的不稳定性。性能基准测试显示,在测试设置下,critband通常比R的modetest()快3-10倍。

英文摘要:

Multimodal density estimation is a fundamental problem in scientific computing. Determining the number of modes in a distribution is a core numerical challenge with applications across ecology, economics, genomics, and astronomy. While the R ecosystem provides mature tools through the multimode package, the Python ecosystem has lacked an equivalent cohesive implementation. We present critband, a Python package for critical bandwidth bimodality detection based on Silverman's kernel density approach. The package implements critical bandwidth search with a robust bracketed mode-count solver and FFT-accelerated KDE, and provides additional features including k-mode detection, component decomposition, bimodality strength quantification, and excess mass estimation. Validation against twelve benchmark cases spanning separation regimes, unequal variances, unequal weights, and small sample sizes shows stable estimates for clearly separated cases and expected instability for boundary cases. Performance benchmarks show critband is typically 3-10 times faster per case than R's modetest() in the tested setup.

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

↑