TL;DR
This paper introduces a new, stable, and computationally efficient way to generalize the Kolmogorov-Smirnov (KS) distance to multiple dimensions (dKS). This novel approach is an integral probability metric, making it robust and invariant to unit choices, and can be computed efficiently in near-linear time for dimensions up to 4, enabling powerful new statistical tests.
What Problem Does This Paper Address?
The classic Kolmogorov-Smirnov (KS) test is a powerful tool for comparing probability distributions in one dimension. However, extending it to multiple dimensions has been a significant challenge. Existing multi-dimensional KS variants often suffer from instability (small changes in data leading to large changes in distance), computational intractability, or a lack of desirable metric properties. This makes them unsuitable for many real-world applications where data has multiple features with potentially different units, and where robust, efficient statistical comparisons are needed.
Methods
The authors propose a new multi-dimensional KS distance (dKS) based on maximizing the difference over "orthogonal dominating rectangular ranges." This formulation is shown to be an integral probability metric, meaning it satisfies desirable properties like symmetry and the triangle inequality, and importantly, it is invariant to the choice of units for each dimension.
Key algorithmic contributions include:
- Efficient Approximation: They develop an algorithm (dKS-Sketch) that can approximate the dKS distance within a specified error $\epsilon$ in near-linear time for dimensions $d=2, 3, 4$. This is a significant improvement over naive approaches that scale exponentially with dimension.
- Computational-Statistical Runtime (CSR) Bounds: The paper establishes near-optimal CSR bounds for computing dKS and for performing two-sample hypothesis tests using dKS. This means they provide guarantees on both computational efficiency and statistical accuracy simultaneously.
- Stable Generalization: They demonstrate that their proposed dKS formulation is stable, unlike some other multi-dimensional KS variants (like quad-KS), which can be sensitive to individual data points.
Datasets
Not discussed in the paper. The paper focuses on theoretical contributions and algorithmic development, using synthetic data distributions (e.g., uniform distributions) for empirical evaluation.
Key Insights and Ideas
- Dominating Rectangles are Key: The core insight is that by considering "dominating rectangular ranges" (axis-aligned rectangles defined by a single corner point), a stable and efficient multi-dimensional KS distance can be constructed. This avoids the complexities of considering all possible $2^d$ orthants.
- Integral Probability Metric (IPM) Power: Framing dKS as an IPM is crucial. It provides a theoretical foundation for its desirable properties (metric properties, unit invariance) and connects it to a well-established family of distance measures.
- Computational-Statistical Trade-offs: The paper elegantly bridges the gap between statistical accuracy (sample size needed) and computational cost, showing that for moderate dimensions, we can achieve high accuracy with near-linear computational time.
- Instability of Alternatives: A critical finding is the demonstration that popular alternatives like "quad-KS" are inherently unstable, preventing them from having generic sample complexity guarantees.
Key Results
- Near-Linear Runtime: For dimensions $d=2, 3, 4$, the dKS distance can be computed with $\epsilon$-approximation in near-linear time with respect to the sample size $n$. Specifically, for $d=2$, the runtime is $O(n \log n)$.
- Efficient Hypothesis Testing: The proposed dKS enables two-sample hypothesis tests with near-linear runtime in dimensions $d=2, 3, 4$, providing exact guarantees on the probability of rejection under the null hypothesis.
- Stability: The proposed dKS is shown to be stable with respect to data sampling, a property lacking in some other multi-dimensional KS extensions.
- Metric Properties: dKS is proven to be a metric on probability measures, satisfying symmetry, triangle inequality, and the strong identity property (dKS(μ, ν) = 0 iff μ = ν).
Limitations and Future Work
- Higher Dimensions: While the paper provides theoretical bounds for higher dimensions ($d>4$), the computational complexity grows significantly. Achieving near-linear time for $d>4$ is conjectured to be hard, likely requiring breakthroughs in problems like MAX-WEIGHT k-CLIQUE.
- Implementation Complexity: The algorithms for $d=3, 4$ are noted to be complex to implement due to their reliance on reductions to problems like Klee's measure. The authors express hope for simpler practical solutions.
- General Paradigm: The paper suggests a general three-step paradigm for developing computational-statistical runtime analyses for statistical measures: (1) sample data, (2) sketch the data, and (3) solve for the measure. This framework is presented as a promising direction for future research.
Summary updated