EconBase
← All papers

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

Ruiyu Zhang, Qihao Wang

arXiv 18 May 2026 · cs.MS

arXiv:2605.18686 · PDF · DOI · OpenAlex · Extracted main text

Abstract

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.

Citation extraction

17
references
25
in-text mentions
17
distinct cited
0
self-citations
5,838
main-text words

appendix boundary found by none_found · 100% of the source is main text. Read the extracted text to check this.

Most heavily cited references

The works this paper leans on most, across its whole bibliography — not restricted to papers in our corpus. Ranked by composite intensity, which combines how often a work is mentioned, how many sections mention it, and how much of that falls in the main text rather than the appendix.

ReferenceIntensityMentionsSectionsMain text
1J. Ameijeiras-Alonso, R. M. Crujeiras, and A. Rodríguez-Casal (2021) multimode: An R package for mode assessment0.64422100%
2I. K. Baldry et al (2004) Quantifying the bimodal color-magnitude distribution of galaxies0.64422100%
3M. Bessarabova, E. Kirillov, W. Shi, A. Bugrim, Y. Nikolsky, and T.… (2010) Bimodal gene expression patterns in breast cancer0.64422100%
4P. Hall and M. York (2001) On the calibration of Silverman's test for multimodality0.64422100%
5C. S. Holling (1992) Cross-scale morphology, geometry, and dynamics of ecosystems0.64422100%
6D. W. Müller and G. Sawitzki (1991) Excess mass estimates and tests for multimodality0.64422100%
7B. W. Silverman (1981) Using kernel density estimates to investigate multimodality0.64422100%
8P. Virtanen et al (2020) SciPy 1.0: Fundamental algorithms for scientific computing in Python0.64422100%
9B. Efron and R. J. Tibshirani (1993) An Introduction to the Bootstrap0.40511100%
10J. Esteban and D. Ray (1994) On the measurement of polarization0.40511100%

Showing the top 10 of 17 scored citations.