Wasserstein Spatial Depth

François Bachoc, Alberto González-Sanz, Jean–Michel Loubes, Yisha YaoarXiv 2024 · DOI

Abstract

Modeling observations as random distributions embedded within Wasserstein spaces is becoming increasingly popular across scientific fields, as it captures the variability and geometric structure of the data more effectively. However, the distinct geometry and unique properties of Wasserstein space pose challenges to the application of conventional statistical tools, which are primarily designed for Euclidean spaces. Consequently, adapting and developing new methodologies for analysis within Wasserstein spaces has become essential. The space of distributions on $\mathbb{R}^d$ with $d>1$ is not linear and mimics the geometry of a Riemannian manifold. In this paper, we extend the concept of statistical depth to distribution-valued data, introducing the notion of Wasserstein spatial depth (WSD). This new measure provides a way to rank and order distributions, enabling the development of order-based clustering techniques and inferential tools. We show that WSD preserves critical properties of conventional statistical depths, notably ranging within $[0,1]$, transformation invariance, vanishing at infinity, reaching a maximum at the geometric median, and continuity. Additionally, the population WSD has a straightforward plug-in estimator based on sampled empirical distributions. We establish the estimator's consistency and asymptotic normality. Extensive simulation and real-data application showcase the practical efficacy of WSD.

Introduction

In modern data science, observations are increasingly complex, often taking the form of probability distributions rather than simple points in Euclidean space. Examples include longitudinal medical imaging, text corpora, and daily temperature profiles. Analyzing these objects requires working within the Wasserstein space, a framework that accounts for the optimal transport of mass between distributions.

However, the Wasserstein space is inherently non-linear and behaves like a curved Riemannian manifold. This geometric complexity renders traditional statistical measures—such as the arithmetic mean or standard deviation—insufficient for capturing the intrinsic structure of the data. A significant gap in this field has been the lack of a reliable method to define "centrality." Without a notion of depth, it is difficult to determine which distribution in a collection is the most representative (the center) and which are the outliers.

Methodology: Defining Depth in Wasserstein Space

To address this, we introduce Wasserstein Spatial Depth (WSD). This framework adapts the classical concept of spatial depth to the non-linear geometry of Optimal Transport.

Geodesic Interpretation

While depth in flat Euclidean space is calculated using straight lines, WSD utilizes geodesics—the shortest paths between distributions—defined by the $W_2$ (quadratic) Wasserstein distance. The depth of a distribution $Q$ relative to a population $\mathbf{P}$ is determined by the average "direction" of the optimal transport maps from $Q$ to all other distributions in the population.

Theoretical Properties

We demonstrate that WSD satisfies the four fundamental axioms required for a robust statistical depth:

  1. Transformation Invariance: The depth remains unchanged under isometric shifts.
  2. Maximality at the Center: The geometric median (or Wasserstein barycenter) of the population achieves the highest depth value.
  3. Monotonicity: Depth values decrease monotonically as a distribution moves further from the geometric median.
  4. Vanishing at Infinity: As a distribution becomes increasingly distant from the population, its depth approaches zero.

Statistical Estimation

For practical application, we provide a "plug-in" estimator. This estimator operates in two stages: sampling $n$ distributions from the population, and then sampling $m$ points from each distribution. We provide the first central limit theorem for depth in Wasserstein spaces, proving that this estimator is both consistent and asymptotically normal.

Experimental Validation

Simulated Data

We tested WSD against various families of distributions, including Exponential, Weibull, Gaussian, and Uniform. In these simulations, WSD demonstrated superior performance in outlier detection compared to existing functional data analysis (FDA) methods, such as Modified Band Depth. WSD successfully identified "exotic" distributions that standard methods failed to distinguish from the main population.

Climate Case Study: European Temperature Profiles

We applied WSD to the European Climate Assessment and Dataset (ECA&D), analyzing daily average temperatures from 40 meteorological stations across Europe from 1874 to 2023. Each year was treated as a distribution of temperatures across these locations.

  • Centrality: The "deepest" years identified by WSD represent the most typical European climate profiles.
  • Anomaly Detection: The "shallowest" years (the bottom 5% in depth) aligned precisely with documented historical climate anomalies. These include the severe winters of 1929 and 1963, as well as the record-breaking heatwave and drought of 2018. This demonstrates WSD's utility in quantifying "climatic typicality" over long temporal scales.

Discussion and Future Work

WSD offers a computationally efficient alternative to other depth measures. While some methods like Tukey depth are NP-hard in high dimensions, WSD can be calculated in polynomial time using standard optimal transport solvers.

Current limitations include a primary focus on absolutely continuous distributions (those with smooth densities). While a version for discrete distributions is possible, its full mathematical properties require further exploration. Future research will also investigate the use of regularized optimal transport (e.g., Sinkhorn distances) to enhance computational speed for massive datasets and extend the framework beyond the $W_2$ distance to other metric spaces.

Summary updated

BibTeX
@misc{bachoc2024wasserstein,
  author = {François Bachoc and Alberto González-Sanz and Jean–Michel Loubes and Yisha Yao},
  title = {{Wasserstein Spatial Depth}},
  year = {2024},
  eprint = {2411.10646},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.10646},
}
Figure