Halfspace depth 2026-11-05
The halfspace depth of for a probability measure is the least mass of any closed half-space containing :
For an empirical distribution, it is the smallest fraction of observations in such a closed half-space. The boundary is included, so observations exactly on it count.
In one dimension,
For observations , the depth at is , and the depth at either endpoint is . Atoms can therefore give depth greater than . An invertible affine map preserves halfspace depth, because it carries the family of closed half-spaces bijectively to itself and preserves their associated probabilities. A Tukey median maximizes this depth; the maximizing point need not be unique.
Tukey median Created 2026-09-24 Updated 2026-11-05
A Tukey median maximizes halfspace depth. For a probability measure on , the depth of a point is
For a sample, is replaced by its empirical distribution, so is the fraction of observations in the closed half-space . Every direction is considered; choosing a single coordinate direction would give a different procedure.
In one dimension, the depth is the smaller of the masses in the closed rays to the left and right of . For the sample , point has depth , while has depth . The maximizing point is the sample median. In higher dimensions this gives a geometric extension of a central location that depends on how many observations lie on each side, rather than on their squared distances. Maximizers need not be unique, so a single-valued estimator needs a selection rule.