Robust Discriminant Analysis

Statistics
Introduced by
Hawkins & McLachlan (high-breakdown LDA); Croux & Dehon (S-estimator robust LDA)
Year
1997
Type
Robust classification / discriminant analysis

What does it do?

Robust discriminant analysis is a classification method that assigns observations to known groups with a linear discriminant rule whose mean and covariance estimates are designed to resist serious distortion by outliers.

It replaces the ordinary sample mean and covariance with high-breakdown estimators. Hawkins & McLachlan (1997) developed a high-breakdown criterion for linear discriminant analysis, and Croux & Dehon (2001) studied a robust linear discriminant function based on high-breakdown S-estimators of location and covariance. The Minimum Covariance Determinant (MCD) is a commonly used high-breakdown estimator for this purpose.

The intuition behind the method

Ordinary discriminant analysis places the boundary between groups using each group's average and a common spread. A small number of extreme observations can distort these sample statistics, and because such outliers may be invisible to conventional diagnostics, the resulting boundary can be distorted without an obvious warning. Robust discriminant analysis estimates the centres and the common spread with high-breakdown methods, which are designed to avoid serious distortion by a minority of outliers. The linear form still assumes that the groups share a common covariance matrix and that the within-group distributions are approximately elliptical (for example, multivariate normal). Robust estimation does not remove these assumptions.

History

Robust discriminant analysis developed within the robust statistics tradition, which seeks estimators that tolerate a fraction of contaminated data. Hawkins & McLachlan (1997) motivated and developed a high-breakdown criterion and algorithm for linear discriminant analysis, intended to indicate whether a dataset is seriously affected by outliers or to provide resistant estimators. Croux & Dehon (2001) considered a robust linear discriminant function based on high-breakdown location and covariance estimators, derived influence functions for the discriminant parameters and the classification error, identified the most B-robust estimator within the class of multivariate S-estimators, and compared it with the biweight S-estimator.

When to use it

Use robust discriminant analysis to assign observations to known groups from several continuous predictors when the data may contain outliers or other contamination that would distort classical linear discriminant analysis. The method is intended to supplement, not replace, classical discriminant analysis and outlier diagnostics. It assumes that the groups are known in advance, that the predictors are continuous, and that group covariances are approximately equal; if they differ strongly, consider quadratic discriminant analysis or another classifier. The sample must be large enough, overall and within each group, for the robust covariance to be estimated reliably; check each group's size relative to the number of predictors, because a robust covariance based on a subset of the data needs more cases than the classical one. Avoid it for very small samples or groups with only a few cases. For clean data where outliers are not a concern, classical discriminant analysis is usually adequate. Comparing robust and classical results is also a useful check: if they agree, outliers are less likely to be driving the classification.

Limitations and considerations

  • Requires more observations than classical discriminant analysis because the robust covariance is estimated from a subset of the data; it becomes unreliable in small samples and when a group has very few cases.
  • As a general caution, high-leverage observations may still affect the discriminant function, so resistance to outliers should not be assumed to cover every kind of aberrant point.
  • The linear rule still assumes common group covariances and roughly elliptical within-group distributions; robust estimation does not relax these assumptions.
  • May be slower than classical discriminant analysis for large datasets, depending on the MCD algorithm used.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • High-breakdown estimates are designed to resist serious distortion by a minority of outliers, including outliers that conventional diagnostics may not reveal.
  • Can supplement classical analysis: agreement between robust and classical results supports the usual analysis, while disagreement helps identify apparently aberrant points.
  • Keeps the interpretable linear discriminant structure, replacing only the location and scatter estimates.

Applications

  • Classifying cases into known groups from multivariate continuous measurements where a minority of contaminated or aberrant records may be present.
  • Checking whether group separation from classical discriminant analysis is driven by a few outlying observations, by comparing robust and classical results.
  • Predicting group membership from measurements that may contain recording errors, where the boundary should not depend on a handful of extreme cases.

How it works

How it works

1

Each group g has a linear score that combines a new observation x with the group's robust mean, a single covariance matrix common to all groups, and the log prior probability of the group. The observation is assigned to the group with the highest score. When the priors are equal, this is the same as assigning it to the group whose robust centre is nearest in Mahalanobis distance under the common covariance; with unequal priors, the log prior term shifts the decision. The scores can also be converted to posterior probabilities of group membership, which show how clear-cut each assignment is.

Formula
\delta_g(x) = \hat{\mu}_g^{\top}\hat{\Sigma}^{-1}x - \tfrac{1}{2}\hat{\mu}_g^{\top}\hat{\Sigma}^{-1}\hat{\mu}_g + \log \pi_g
2

The centres and the common spread are estimated with a high-breakdown estimator rather than the ordinary sample mean and covariance. The Minimum Covariance Determinant searches for the subset of observations whose covariance matrix has the smallest determinant and bases the estimates on that subset. Observations outside the subset have little influence on the estimates, which gives a high breakdown point. Because the discriminant score uses one covariance matrix, the group-wise robust fits must be combined into a common scatter (for example by pooling the within-group robust covariances), or a common scatter must be estimated from the within-group centred data. The size of the retained subset (the breakdown/efficiency setting) controls the trade-off between robustness and statistical efficiency and should be chosen and reported.

Formula
(\hat{\mu}_g, \hat{\Sigma}_g) = \operatorname{MCD}(X_g), \qquad \hat{\Sigma} = \textstyle\sum_g w_g \hat{\Sigma}_g \ (\text{pooled common scatter})

Common pitfalls

  • Running the method on a small sample, where the robust covariance estimate becomes unreliable; in that case classical discriminant analysis or another classification approach may be more suitable.
  • Ignoring unusual points. Compute robust Mahalanobis distances from the robust fit to flag outliers and high-leverage points, and examine them.
  • Having too few observations in one group, which makes that group's robust centre and scatter unstable.
  • Assuming robustness removes the need to inspect the data. The method is intended to supplement classical analysis, so diagnostics for outliers and group separation remain worthwhile.
  • Not reporting the MCD subset fraction (breakdown/efficiency setting), which affects results.
  • Judging performance on the training data only, which gives an optimistic error rate.

Frequently asked questions

How does this differ from classical LDA?

It keeps the same linear discriminant rule but replaces the ordinary mean and covariance with high-breakdown robust estimates, such as the MCD or S-estimators. This is designed to prevent a minority of outliers from seriously distorting the estimates and the boundary.

What is the Minimum Covariance Determinant (MCD)?

The MCD searches for the subset of observations whose covariance matrix has the smallest determinant and uses that subset to estimate the centre and spread. Because observations outside the subset have little influence, the estimates have a high breakdown point.

How much data do I need?

The robust covariance needs more data than the classical one, with enough cases overall and in each group relative to the number of predictors. It becomes unreliable in small samples or when a group has very few cases, and in those situations a different classification approach may be safer.

What about high-leverage points?

As a general caution, a robust discriminant function may still be affected by high-leverage observations. Examine robust Mahalanobis distances from the robust fit to find such points, and consider alternative methods, such as those listed as related on this page.

How should I judge the results?

Assess performance on held-out or cross-validated data rather than the training sample. Inspect the confusion matrix and the posterior probabilities, and compare robust and classical error rates.

Related methods

Sources

  1. Hawkins, D. M. & McLachlan, G. J. (1997). High Breakdown Linear Discriminant Analysis. Journal of the American Statistical Association, 92(437), 136-143.

    Open DOI reference
  2. Croux, C. & Dehon, C. (2001). Robust Linear Discriminant Analysis Using S-Estimators. Canadian Journal of Statistics, 29(3), 473-493.

    Open DOI reference