Skip to content
StackDecode
AI & ML Atlas
Machine LearningalgorithmAnimated walkthrough

Elliptic Envelope

Fits an ellipse around the data and flags points far outside it.

The idea

It assumes the normal data is roughly Gaussian, estimates its mean and covariance robustly (the Minimum Covariance Determinant), and scores points by their Mahalanobis distance, which accounts for the shape and tilt of the data cloud. Points beyond a chosen distance are outliers.

d² = (x − μ)ᵀ Σ⁻¹ (x − μ)

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Estimate a robust mean and covariance.
  2. 2Compute the Mahalanobis distance of each point.
  3. 3Set a threshold from the expected contamination.
  4. 4Mark points beyond it as outliers.

d² = (x − μ)ᵀ Σ⁻¹ (x − μ)

1/4

Step by step

  1. 1Estimate a robust mean and covariance.
  2. 2Compute the Mahalanobis distance of each point.
  3. 3Set a threshold from the expected contamination.
  4. 4Mark points beyond it as outliers.

Where it is used

Detecting outliers in roughly Gaussian numeric data.

Watch out for

Fails when the data has several clusters or is skewed.

Related