liveBook · Manning

Convex hull

As explained in Outlier Detection in Python

An iterative outlier-detection method that assigns scores according to the successive layers of a convex hull around the data points.

Convex hull is an iterative outlier detector that peels away the outermost points surrounding a dataset. Each removed layer receives a progressively lower outlier score, continuing until a stopping condition such as a fixed number of layers or outliers is reached. The method is also called convex peeling. section 7.11

Interpret the detector through its practical strengths and limits:

  • Use it for data forming one cluster, where global extremes are meaningful; it does not target local or internal outliers well. section 7.11
  • Expect reasonable robustness against masking and swamping because only small groups of points are removed at each iteration. section 7.11
  • Limit the feature count to a small number, since high-dimensional hulls can place many inliers on an edge and produce tied scores. section 7.11 section 7.14
  • Stop after enough layers have identified the intended outliers, because further iterations can be slow and mainly score inliers. section 7.11

Layered removal

A first hull removes the outermost points, a second hull removes the newly exposed boundary, and a third hull continues the peeling process. On a single-cluster dataset this emphasizes global extremes; on a multi-cluster dataset it may not identify the most meaningful anomalies. section 7.11

Figure 7.11 The first three layers of convex peeling on a dataset. At each stage, the outermost points on a Convex Hull are removed, leaving all other points. The process continues until all points are removed or a prespecified number of layers or outliers is reached.

Inspect the first three convex-peeling layers to see how removing each outer boundary exposes the next set of candidate outliers. section 7.11

How Outlier Detection in Python covers it

How deep it goes
Explains iterative peeling, scoring, stopping, robustness, runtime, and dimensionality limits without deriving hull geometry.
Examples
Uses successive hull-layer figures and contrasts suitable single-cluster data with unsuitable multi-cluster data.
What it assumes
Requires a small-feature representation and a defensible single-cluster assumption before interpreting boundary points as outliers.
What you can do after
Apply it via SciPy's ConvexHull implementation to score boundary layers and select a preset number of outliers.
How it connects
Connects convex peeling with outlier detection, clustering, masking, swamping, and the curse of dimensionality.

Also explained in

Compare how 4 books explain convex hull →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Outlier Detection in Python. The section links point to the parts of the book it draws on.