Minimum covariance determinant

Also known as: MCD

On this page 7

Minimum covariance determinant (MCD) is a robust estimator of multivariate location and scatter that searches for the subset of h observations, out of n, whose sample covariance matrix has the smallest determinant. The mean and covariance of that subset describe the bulk of the data without being pulled toward outliers. In anomaly detection, MCD supplies the center and shape from which robust Mahalanobis distances are computed, so that points far from the core of the data stand out clearly.

Introduced by Peter Rousseeuw in the 1980s, MCD became practical with the FAST-MCD algorithm published in 1999. It is the engine behind the elliptic envelope detector and remains a standard baseline for multivariate outlier detection on tabular, sensor and financial data.

Why ordinary covariance fails with outliers

The classical sample mean and covariance have a breakdown point of zero: a single extreme observation can move them arbitrarily far. Worse, a cluster of outliers inflates the covariance in its own direction, so the Mahalanobis distances of those outliers shrink. This effect, called masking, lets anomalies hide behind the very statistics meant to expose them.

MCD avoids masking by estimating the shape only from the cleanest part of the data. The determinant of a covariance matrix is proportional to the squared volume of its tolerance ellipsoid, so the subset with the smallest determinant is the tightest ellipsoidal core of the data. Outliers outside that core cannot distort the estimate.

PropertyClassical estimateMCD estimate
Breakdown point0 percentUp to about 50 percent
Effect of outlier clustersMasking and swampingLargely resistant
Affine equivarianceYesYes
Statistical efficiency on clean dataHighestLower, improved by reweighting
Computational costVery lowModerate, iterative search
Classical versus MCD estimation

How the MCD estimator is computed

An exhaustive search over all subsets of size h is impossible for realistic n, so practice relies on FAST-MCD. The algorithm draws many small random starting subsets, then applies concentration steps (C-steps): compute the mean and covariance of the current subset, rank all points by Mahalanobis distance and keep the h closest. Each C-step is guaranteed never to increase the determinant, so the procedure converges in a few iterations.

The raw MCD covariance is then multiplied by a consistency factor so that it is unbiased for normal data. Finally, a reweighting step discards points whose robust distance exceeds a chi-square cutoff, typically the 97.5 percent quantile with p degrees of freedom, and recomputes mean and covariance on the remaining points. Reweighting restores much of the efficiency lost by using only h observations.

  1. Draw random starts of p + 1 points and extend them to h points.
  2. Run C-steps until the determinant stops decreasing.
  3. Keep the best subsets and refine them to full convergence.
  4. Apply the consistency factor to the winning covariance.
  5. Reweight with a chi-square cutoff and recompute.

Key parameters and their effects

The most important choice is the subset size h, often expressed as a support fraction h/n. A smaller h gives higher robustness but lower efficiency; a larger h is more efficient but tolerates fewer outliers. The breakdown point equals roughly (n − h + 1)/n, so h near n/2 offers maximum protection.

ParameterTypical valueEffect when increased
Subset size h(n + p + 1)/2 up to 0.75nHigher efficiency, lower robustness
Number of random startsAbout 500Better chance of the global optimum, more time
Reweighting cutoffChi-square 97.5 percent quantileFewer points flagged as outliers
Contamination rateExpected outlier share, for example 0.01-0.1More points labeled anomalous
Dimension pWell below n, ideally n > 5pLess stable estimate, higher cost
Main MCD settings

The contamination rate used by detectors such as the elliptic envelope is separate from h: it sets the decision threshold on robust distances, not the fitting subset.

MCD compared with other outlier detectors

MCD works best when the normal data form one roughly elliptical cloud, as with approximately Gaussian measurements. It gives an interpretable model and a statistically grounded threshold, but it cannot represent multiple clusters or curved shapes, where density- or tree-based methods are stronger.

MCD is also valued as a component inside other methods. Robust principal component analysis, robust linear discriminant analysis and robust regression diagnostics often start from an MCD estimate, and the elliptic envelope detector is simply MCD combined with a distance threshold derived from the expected contamination rate.

MethodShape of normal dataStrengthWeakness
MCD with Mahalanobis distanceSingle ellipseRobust, interpretable, chi-square thresholdFails on multimodal data
Isolation forestAny shapeFast, scales to high dimensionsNo explicit covariance model
Local outlier factorClusters of varying densityDetects local anomaliesSensitive to neighborhood size
One-class SVMFlexible via kernelsNonlinear boundariesHard to tune, slow on large n
Autoencoder detectionComplex manifoldsHandles images and sequencesNeeds much data, less interpretable
Where MCD fits among anomaly detectors

Limitations and practical advice

MCD struggles in high dimensions. When p approaches h, the subset covariance becomes singular and the determinant collapses to zero. The minimum regularized covariance determinant (MRCD) addresses this by shrinking the covariance toward a well-conditioned target, and deterministic variants such as DetMCD remove the randomness of the starting subsets.

A second limitation is cost on very large datasets. Each C-step needs a covariance estimate and distances for all n points, so FAST-MCD splits big samples into nested subsamples and refines only the most promising candidates on the full data. Even so, fitting time grows quickly with p, and for streaming data a rolling refit on a sliding window is usually more practical than refitting on the full history.

  • Standardize features robustly, for example with the median and MAD, before fitting.
  • Transform skewed variables toward symmetry, since MCD assumes an elliptical core.
  • Check the distance-distance plot, which contrasts classical and robust distances.
  • Avoid categorical or binary features, which break the elliptical model.
  • Refit periodically when the normal regime drifts over time.

Put simply

Minimum covariance determinant is a way to find the trustworthy core of a dataset. It looks for the tightest group holding about half or more of the points. It then describes that group with a center and an oval shape.

Imagine finding the real center of a crowd while a few people stand far away. If you average everyone, the stragglers pull the center off. MCD ignores them while measuring. Anyone far outside the oval is then flagged as unusual.

In practice

A reliability team at a wind farm monitors 120 turbines using five readings per turbine: gearbox temperature, bearing vibration, generator current, rotor speed and pitch angle. Under normal operation these readings form a single correlated cloud, but a few faulty turbines would distort a classical covariance estimate and mask one another.

The team fits MCD with a support fraction of 0.75 on two weeks of hourly data and computes robust Mahalanobis distances. Readings beyond the chi-square 99 percent cutoff for five dimensions trigger an alert. In the first month, the model flags three turbines with rising bearing vibration relative to their temperature, and inspections confirm early bearing wear before any failure occurs.