Efficient Computation of Location Depth Contours by Methods of Computational Geometry

Kim Miller, Tufts University
Suneeta Ramaswami, Rutgers University–Camden
Peter Rousseeuw, Universiteit Antwerpen
J. Antoni Sellarès, Universitat de Girona
Diane Souvaine, Smith College
Ileana Streinu, Smith College
Anja Struyf, Universiteit Antwerpen

This document has been relocated to https://scholarworks.smith.edu/csc_facpubs/291/


The concept of location depth was introduced as a way to extend the univariate notion of ranking to a bivariate configuration of data points. It has been used successfully for robust estimation, hypothesis testing, and graphical display. The depth contours form a collection of nested polygons, and the center of the deepest contour is called the Tukey median. The only available implemented algorithms for the depth contours and the Tukey median are slow, which limits their usefulness. In this paper we describe an optimal algorithm which computes all bivariate depth contours in O(n 2) time and space, using topological sweep of the dual arrangement of lines. Once these contours are known, the location depth of any point can be computed in O(log 2 n) time with no additional preprocessing or in O(log n) time after O(n 2) preprocessing. We provide fast implementations of these algorithms to allow their use in everyday statistical practice.