Extension of the Dip-test Repertoire -- Efficient and Differentiable p-value Calculation for Clustering
Lena G. M. Bauer, Collin Leiber, Christian Böhm, Claudia Plant
TL;DR
This work tackles the dependence of the Dip-test Dip-p-value on sample size by introducing a differentiable sigmoid-based transformation that maps Dip-values to Dip-p-values for any $N$, enabling efficient and gradient-friendly use in clustering. The authors derive a generalised Richards logistic function $p(x,\theta_N)$ with parameters tied to $N$, producing a smooth, differentiable export from $Dip$ to $p$ and enabling gradient-based optimization. They validate the approach against an extended bootstrapped table, showing lower mean-squared error and competitive runtimes, and integrate the transform into a novel subspace clustering method, Dip'n'Sub, which uses SGD to find projection axes that maximize multimodality across clusters. The results demonstrate reliable Dip-p-value computations across distributions, significant speedups over bootstrapping, and effective, interpretable subspace discovery, highlighting practical impact for large-scale Dip-based clustering and potential extensions to deep learning contexts.
Abstract
Over the last decade, the Dip-test of unimodality has gained increasing interest in the data mining community as it is a parameter-free statistical test that reliably rates the modality in one-dimensional samples. It returns a so called Dip-value and a corresponding probability for the sample's unimodality (Dip-p-value). These two values share a sigmoidal relationship. However, the specific transformation is dependent on the sample size. Many Dip-based clustering algorithms use bootstrapped look-up tables translating Dip- to Dip-p-values for a certain limited amount of sample sizes. We propose a specifically designed sigmoid function as a substitute for these state-of-the-art look-up tables. This accelerates computation and provides an approximation of the Dip- to Dip-p-value transformation for every single sample size. Further, it is differentiable and can therefore easily be integrated in learning schemes using gradient descent. We showcase this by exploiting our function in a novel subspace clustering algorithm called Dip'n'Sub. We highlight in extensive experiments the various benefits of our proposal.
