Introduction
In the field of statistics, the median is a cornerstone of robust analysis because it remains stable even in the presence of extreme outliers. However, extending the concept of a median to multi-dimensional data is non-trivial, as there is no inherent linear ordering for points in space. To address this, researchers utilize depth measures—functions that quantify how "central" or "deeply buried" a query point $q$ is within a dataset $S$. The point with the highest depth is then identified as the multi-dimensional median.
Enclosing depth is a relatively new and significant measure. It serves as a natural lower bound for other popular metrics, such as simplicial depth. Despite its theoretical importance, enclosing depth was previously understood only through a combinatorial lens, lacking efficient computational recipes. This paper bridges that gap by introducing the first efficient algorithms for computing enclosing depth in both 2D and higher dimensions.
The Planar Case (2D)
For data in a two-dimensional plane, the authors developed an optimal $O(n \log n)$ algorithm. The strategy involves simplifying the geometry by projecting all data points onto a unit circle centered at the query point $q$. This projection preserves the depth properties while reducing the problem to a one-dimensional angular search.
The algorithm follows three primary steps:
- Radial Sorting: Points are sorted by their angle relative to $q$.
- Opposite Neighbors: For each point, the algorithm identifies its "opposite neighbors"—the points immediately preceding and following the line passing through that point and $q$.
- Interval Search: The authors proved that optimal enclosing sets must consist of contiguous intervals of points on the circle. By applying a binary search over possible depth values, they can verify the existence of a valid partition in linear time.
Higher Dimensions
In general dimensions ($d$), the problem is framed as a search for specific halfspaces. The core insight is that if a point has a specific enclosing depth, there must exist $d+1$ halfspaces whose boundaries pass through $q$ and $d-1$ points of the dataset.
The high-dimensional algorithm iterates through all possible hyperplanes defined by the data points and $q$. It then evaluates combinations of these halfspaces to determine if their intersection is exactly the query point $q$. While the search space is finite, it is large, resulting in a polynomial runtime of $O(n^{d^2})$ for a fixed dimension $d$. This represents a significant theoretical milestone as the first polynomial-time solution for this problem.
Key Insights and Results
- Combinatorial to Algorithmic: The research successfully reduces abstract combinatorial definitions into discrete searches over geometric structures (intervals in 2D and hyperplanes in high-D).
- Optimal Performance: The $O(n \log n)$ runtime in 2D is considered optimal, matching the known lower bounds for other established depth measures like Tukey depth.
- Lower Bound Utility: By enabling the computation of enclosing depth, researchers can now quickly establish a guaranteed minimum depth for more complex, computationally expensive measures.
Limitations and Future Work
While the 2D algorithm is highly efficient, the $O(n^{d^2})$ cost in higher dimensions remains a challenge for very high-dimensional datasets (e.g., $d > 100$). The authors suggest that future research could improve this to $O(n^{d-1})$, matching other depth measures. Additionally, the "deepest point" problem—finding the point with the maximum possible depth in a dataset—remains an open area for further algorithmic optimization.
Summary updated