On exact computation of Tukey depth central regions

Vít Fojtík, Petra Laketa, Pavlo Mozharovskyi, Stanislav NagyJ. Comput. Graph. Stat 2022

TL;DR

This paper tackles the challenge of precisely calculating Tukey depth central regions, which are fundamental for robust multivariate data analysis. The authors introduce a new algorithm (Algorithm B) that guarantees exactness, unlike previous methods that could fail in higher dimensions, and demonstrate its efficiency compared to existing approaches.

What Problem Does This Paper Address?

Tukey depth is a powerful tool for non-parametric multivariate data analysis, providing a measure of how "central" a point is within a dataset. The central regions of Tukey depth are essentially multivariate quantiles, forming nested convex polytopes that describe the shape of the data. While the concept is well-established, efficiently and exactly computing these regions, especially in dimensions higher than two, has been a significant challenge. Existing algorithms, while fast, have been shown to sometimes produce incorrect results in higher dimensions. This paper aims to provide a theoretically sound and practically efficient method for computing these exact central regions.

Methods

The core of the paper revolves around refining an existing algorithm called "RidgeSearch" (Algorithm A). The authors first analyze Algorithm A, proving its exactness in 2D and for low depth levels in higher dimensions, but also demonstrating its failure in a specific 3D example. They then propose a modified algorithm, Algorithm B, which guarantees exact computation of Tukey depth central regions for any dimension and depth level.

Algorithm B's key innovation lies in its initialization strategy for the RidgeSearch. Instead of relying on a heuristic selection of initial "ridges" (sets of points defining hyperplanes), Algorithm B uses a recursive approach. It leverages the central regions computed at depth $k-1$ to inform the search for regions at depth $k$. Specifically, it initializes the search queue with all ridges derived from the boundaries of relevant halfspaces at the previous depth level. This ensures that all necessary hyperplanes are considered, thus guaranteeing exactness. The paper also explores the concept of a "dual graph" of the dataset, which provides a graphical representation of the relationships between hyperplanes and helps to understand why certain algorithms fail.

Datasets

The paper does not introduce new benchmark datasets. Instead, it uses synthetic datasets generated from a standard bivariate normal distribution for testing in 2D (Section 4.1) and from a standard multivariate normal distribution for higher dimensions (Section 4.2). The specific configuration of points in R³ used to demonstrate the failure of Algorithm A is described in detail in Section 2.3 and visualized in Figure 2.

Key Insights and Ideas

  • Exactness is Crucial: While fast algorithms are desirable, the paper emphasizes that for robust statistical analysis, guaranteed exactness in computing central regions is paramount, especially as dimensions increase.
  • Algorithm A's Limitations: The paper provides a theoretical proof and a concrete example showing that Algorithm A, despite its speed and empirical success, can fail to compute exact central regions in dimensions $d > 2$ for $k > 2$.
  • Recursive Approach for Exactness: Algorithm B's success stems from its recursive initialization strategy, building upon previously computed (and guaranteed exact) lower-depth regions. This is a key departure from heuristic-based initialization.
  • Dual Graph as a Diagnostic Tool: The introduction of the dual graph provides a novel perspective for understanding the structure of Tukey depth computations and for diagnosing why certain algorithms might miss relevant hyperplanes. It frames the problem as a graph connectivity challenge.
  • Trade-off Between Speed and Exactness: While Algorithm B is guaranteed to be exact, it's not always faster than Algorithm A. However, for computing all central regions up to a certain depth, Algorithm B is shown to be competitive and sometimes even faster than the non-exact Algorithm A, and significantly faster than the purely combinatorial exact algorithm (Algorithm C).

Key Results

  • Algorithm A is Exact for d=2: The paper proves that Algorithm A correctly computes Tukey depth central regions for any dataset in 2 dimensions.
  • Algorithm A is Exact for k=1, 2: For any dimension $d$, Algorithm A is proven to be exact for depth levels $k=1$ and $k=2$.
  • Algorithm B is Exact for All Cases: Algorithm B is rigorously proven to compute exact Tukey depth central regions for any dataset, dimension $d \ge 1$, and depth level $k \ge 1$.
  • Empirical Performance: Numerical studies show that Algorithm B, while more complex, is competitive in speed with Algorithm A, especially when computing multiple central regions. For $d=2$, Algorithm A slightly outperforms the specialized isodepth package for small sample sizes, but Algorithm B catches up and surpasses it as sample sizes grow. For $d>2$, Algorithm B is shown to be a viable and exact alternative.

Limitations and Future Work

  • Computational Complexity: While Algorithm B guarantees exactness, its computational complexity can still be high, especially for large datasets and high dimensions. The paper notes that Algorithm C (combinatorial) might be preferred if only a single region at a very high depth is needed.
  • Heuristic Simplifications: The paper uses the dual graph to demonstrate that several "appealing simplifications" of Algorithm B, similar in spirit to Algorithm A, are unlikely to guarantee exactness. This suggests that achieving exactness might inherently require exploring a significant portion of the search space.
  • Future Work: The paper mentions the development of an R package TukeyRegion implementing Algorithm B, and a Mathematica notebook for visualizing dual graphs. The supplementary material also hints at an "Algorithm A³" which is a further extension of Algorithm A, suggesting ongoing research into improving exactness and efficiency. The authors also suggest using the dual graph for heuristic assessment of the quality of approximation from non-exact algorithms.

Summary updated

BibTeX
@article{fojtik2022exact,
  author = {Vít Fojtík and Petra Laketa and Pavlo Mozharovskyi and Stanislav Nagy},
  title = {{On exact computation of Tukey depth central regions}},
  journal = {J. Comput. Graph. Stat.},
  year = {2022},
}
Figure