- Introduced by
- Rousseeuw & Van Zomeren (robust distance); Filzmoser, Garrett & Reimann (multivariate outlier detection)
- Year
- 1990
- Type
- Robust multivariate outlier detection
What does it do?
Robust Mahalanobis distance flags multivariate outliers by measuring how far each observation lies from the centre of the data, using a robust location and covariance estimate in place of the ordinary mean and covariance.
It follows the robust-distance framework of Rousseeuw and Van Zomeren (1990), and Filzmoser, Garrett and Reimann (2005) applied multivariate outlier detection of this kind in exploration geochemistry. Because the centre and shape come from the Minimum Covariance Determinant (MCD) estimate, the outliers themselves have much less influence on the distance.
The intuition behind the method
The ordinary Mahalanobis distance can fail when outliers are present. A group of outliers pulls the sample mean toward itself and inflates the covariance, so the points you want to detect can end up looking close to the centre. Rousseeuw and Van Zomeren (1990) call this the masking effect. The robust version instead estimates centre and shape from the most concentrated part of the data, and distances are measured against that reference, so observations far from the bulk of the cloud stand out.
History
Rousseeuw and Van Zomeren (1990) introduced robust distances, based on very robust location and covariance estimates, to unmask multivariate outliers and leverage points that classical Mahalanobis-type distances fail to reveal. Filzmoser, Garrett and Reimann (2005) applied multivariate outlier detection of this kind to exploration geochemistry.
When to use it
Choose it when the data are multivariate and continuous, and the goal is to detect outliers or leverage points without letting them distort the reference centre and covariance. It assumes that the bulk of the data is roughly ellipsoidal, since otherwise the quadratic distance and the chi-square cut-off are not meaningful. No validated minimum sample size is established here. Small samples, especially when n is small relative to the number of variables p, make the MCD subset and covariance unstable, so results should be checked carefully, and univariate robust measures such as the MAD estimation entry under related methods may be more practical. Do not use it when the data are strongly non-elliptical, when outliers may make up a large share of the sample, or when the variables are categorical.
Limitations and considerations
- Assumes approximately ellipsoidal continuous data; the chi-square cut-off is only as sound as that assumption. A quantile-quantile plot of the squared robust distances against chi-square quantiles can show whether the bulk of the data fits; a poor fit means the cut-off should not be trusted.
- In small samples, particularly when n is small relative to p, the MCD subset and its covariance are poorly determined, so the robust distances become unstable and univariate methods are often more practical.
- Like other high-breakdown estimators, it loses reliability when contamination is heavy: a large outlier share can draw the MCD subset toward the outliers, so the flagged set depends on the subset size chosen.
- The 0.975 cut-off flags a fixed small proportion of clean elliptical data, so some false positives are expected; flags are candidates for inspection, not confirmed outliers.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Resists the masking effect: because the MCD centre and scatter come from the most concentrated part of the data, clustered outliers are much less able to hide by pulling the reference toward themselves.
- Detects multivariate outliers and leverage points that one-variable-at-a-time screening can miss, because the distance uses the correlation structure among the variables.
- Gives a reference cut-off from the chi-square distribution for the squared distances, so flagging follows an explicit rule rather than being purely visual; the cut-off is a convention that is most reasonable when the bulk of the data is roughly elliptical.
Applications
- Screening multivariate datasets for outliers and influential observations before fitting a model.
- Detecting anomalous samples in geochemical and environmental exploration data.
- Quality control and data cleaning where contamination would otherwise distort multivariate summaries.
How it works
How it works
Each observation's robust distance is the square root of a quadratic form in its deviation from the MCD centre, weighted by the inverse of the MCD scatter matrix. Because the centre and scatter come from a robust estimate rather than the ordinary mean and covariance, the suspect observations have much less influence on their own reference, so large distances point to observations that depart from the bulk of the multivariate cloud.
Formula
RD(x) = \sqrt{(x - \hat{\mu}_{MCD})^{\top} \hat{\Sigma}_{MCD}^{-1} (x - \hat{\mu}_{MCD})}The MCD estimate searches for a subset of h observations whose covariance matrix has the smallest determinant, and uses that subset's centre and scatter as the robust location and shape. The subset size h is the key tuning choice. Smaller h tolerates more contamination but makes the estimate less efficient. Larger h is more efficient but less resistant to outliers. Implementations commonly default to a value near (n+p+1)/2, which gives the maximum breakdown point, and it is sensible to try several settings and check whether the flagged set is stable. An observation is flagged when its squared robust distance exceeds the 0.975 quantile of the chi-square distribution with p degrees of freedom, where p is the number of variables. This cut-off is a convention, not a formal test: even for clean, roughly elliptical data it flags a small fixed proportion of points by construction, and it is only approximate because the MCD estimates are themselves estimated.
Formula
(\hat{\mu}_{MCD}, \hat{\Sigma}_{MCD}) = \arg\min_{H} \det(\hat{\Sigma}_{H}), \quad RD^2 > \chi^2_{p,0.975}Common pitfalls
- Applying it to very small samples, where the robust distances are unstable; a univariate robust measure such as MAD estimation may be more appropriate.
- Running it when a large share of the data may be contaminated, since the MCD estimate can then be pulled toward the outliers and the flags become unreliable. Check the result by varying the subset size, comparing robust distances with classical Mahalanobis distances, and inspecting pairwise scatterplots. For regression data, the plot of robust residuals against robust distances described by Rousseeuw and Van Zomeren (1990) is a further check.
- Using it on strongly skewed or otherwise non-elliptical data, where the quadratic distance and chi-square cut-off lose their meaning and many ordinary points can be flagged. Examine a chi-square quantile-quantile plot of the squared distances before trusting the cut-off.
- Treating flagged points as errors to be deleted automatically. A large robust distance signals an unusual observation, which may be a valid extreme value, so each flag should be examined before any decision.
Frequently asked questions
How is this different from the ordinary Mahalanobis distance?
The ordinary distance uses the sample mean and covariance, which outliers themselves pull toward them, so clustered outliers can mask one another. The robust version replaces these with the MCD centre and scatter, estimated from the most concentrated part of the data, so genuine outliers are more likely to stand out.
What is the MCD estimator?
The Minimum Covariance Determinant estimator searches for a subset of the observations whose covariance matrix has the smallest determinant, and uses that subset's centre and scatter as a robust estimate of location and shape. How much contamination it can tolerate depends on the subset size chosen.
How are observations flagged as outliers?
An observation is flagged when its squared robust distance exceeds a chi-square cut-off, commonly the 0.975 quantile of the chi-square distribution with degrees of freedom equal to the number of variables. This is a convention rather than a formal test, so some clean points will be flagged and flags should be treated as candidates for inspection.
How many outliers can it tolerate?
The method is reliable while contamination stays modest, but the tolerable share depends on the MCD subset size and the structure of the data, and no fixed share is guaranteed. When a large fraction of the observations may be outliers, the estimate can be drawn toward them, and the flags should be checked with another approach.
Related methods
Sources
Rousseeuw, P. J. & Van Zomeren, B. C. (1990). Unmasking Multivariate Outliers and Leverage Points. Journal of the American Statistical Association, 85(411), 633-639.
Open DOI referenceFilzmoser, P., Garrett, R. G. & Reimann, C. (2005). Multivariate Outlier Detection in Exploration Geochemistry. Computational Statistics & Data Analysis, 49(2), 561-587.
Open DOI reference