Optimal Projections in the Distance-Based Statistical Methods

Chuanping Yu, Xiaoming HuoarXiv 2019 · DOI

Distance-based statistics—like energy distance and distance covariance—are powerful tools for testing whether two distributions are equal or if two variables are independent. However, they come with a heavy "computational tax." This paper by Chuanping Yu and Xiaoming Huo provides a clever way to dodge that tax by using optimal projections.

TL;DR

The authors propose a method to accelerate multivariate distance-based statistics by projecting high-dimensional data onto a set of pre-calculated "optimal" directions. This allows the use of fast $O(m \log m)$ univariate algorithms, reducing total complexity from $O(m^2)$ to $O(nm \log m)$ and significantly outperforming standard random projection methods.

What Problem Does This Paper Address?

Many modern statistical tests rely on calculating pairwise distances between all $m$ points in a dataset. If you have $m$ samples, you end up with $O(m^2)$ calculations. For large datasets, this becomes a massive bottleneck.

While researchers have developed fast algorithms that run in $O(m \log m)$ time, these generally only work for univariate (1D) data. To handle multivariate data, the standard "hack" is to use random projections (a Monte Carlo approach): project the data onto several random lines, run the fast 1D algorithm on each, and average the results.

The problem? Random projections are noisy and inefficient. You need a lot of them to get an accurate estimate. This paper asks: Instead of picking directions at random, can we pre-calculate the "best" possible directions for a given dimension?

Methods

The authors treat the problem as a geometric approximation task. They want to approximate the Euclidean norm $\|v\|$ using a weighted sum of absolute values of its projections: $$\|v\| \approx C_n \sum_{i=1}^n |u_i^T v|$$ Where $u_i$ are the projection directions and $C_n$ is a constant.

To find the best $u_i$, they formulate a minimax optimization problem: find the set of directions that minimizes the worst-case difference between the true distance and the approximation.

The paper explores three scenarios:

  1. The 2D Case ($p=2$): They derive an exact analytical solution. The optimal directions are simply equally spaced points on a circle.
  2. The $n=p$ Case: When the number of projections equals the data dimension, the optimal directions form an orthonormal basis.
  3. The General Case ($n > p > 2$): This is a non-convex, NP-hard problem. The authors propose a greedy, coordinate-ascent-style numerical algorithm (Algorithm 3) to find high-quality approximate solutions.

Datasets

The paper relies on simulated datasets to evaluate performance. They randomly select 100 unit vectors on a sphere and compare how accurately the proposed optimal projections estimate their norms versus the standard Monte Carlo (random) approach. They test dimensions ranging from $p=2$ to $p=11$.

Key Insights and Ideas

  • Theoretical Superiority: In 2D, the authors prove that their optimal method achieves a squared error rate of $O(1/n^2)$, whereas the random Monte Carlo approach only manages $O(1/n)$. This is a massive theoretical gain in efficiency.
  • Quasi-Monte Carlo Inspiration: The approach mirrors the philosophy of Quasi-Monte Carlo methods—replacing random sampling with carefully chosen, "well-distributed" points to achieve faster convergence.
  • Geometric Intuition: The problem is essentially about how to best "cover" the surface of a high-dimensional unit sphere with a finite number of points.

Key Results

  • Significant Speedup: By reducing the complexity from $O(m^2)$ to $O(nm \log m)$, the method makes distance-based statistics viable for much larger sample sizes $m$, provided the number of projections $n$ is kept relatively small.
  • Lower Error: In all simulations, the "optimal projection" method yielded a lower mean squared error (MSE) than the Monte Carlo method.
  • Scaling Advantage: The performance gap between the authors' method and random projections grows wider as the number of projection directions $n$ increases, especially in lower dimensions.

Limitations and Future Work

  • Local Optima: For the general case ($p > 2$), the optimization problem is non-convex. The proposed algorithm finds a local optimum, but there is no theoretical guarantee it has found the global best set of directions.
  • Fixed Kernels: The current work focuses specifically on approximating the Euclidean norm. While this is the most common case, extending this to other types of kernels (like those used in Support Vector Machines or other distance metrics) remains an open area for research.
  • Dimensionality Limits: While the method works well for moderate dimensions, the "curse of dimensionality" suggests that as $p$ becomes very large, the number of projections $n$ required to maintain accuracy might grow, potentially eating into the computational savings.

Summary updated

BibTeX
@misc{yu2019optimal,
  author = {Chuanping Yu and Xiaoming Huo},
  title = {{Optimal Projections in the Distance-Based Statistical Methods}},
  year = {2019},
  eprint = {1911.02753},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.02753},
}
Figure