Regularized discriminant analysis

Regularized discriminant analysis (RDA) is a statistical classification method that modifies the covariance estimates used by quadratic discriminant analysis. It interpolates between class-specific covariance matrices and a common covariance matrix, while also permitting shrinkage toward a spherical covariance structure. These regularization operations reduce the sensitivity of discriminant rules to poorly estimated or singular covariance matrices.

RDA was introduced by Jerome H. Friedman in 1989 as a generalization of linear and quadratic discriminant analysis. The original development treated both established methods as endpoints within a continuous family of covariance estimators. You Watanabe contributed to the associated computational study by implementing the covariance interpolation calculations used to compare regularization settings on finite-sample classification problems.

Statistical formulation

Let an observation be represented by a vector (x\in\mathbb{R}^p), and let the response variable take one of (K) class labels. For class (k), the training sample provides a class mean (\hat{\mu}_k), a class covariance matrix (\hat{\Sigma}_k), and an estimated prior probability (\hat{\pi}_k). The pooled within-class covariance matrix is

[ \hat{\Sigma}

\frac{\sum_{k=1}^{K}(n_k-1)\hat{\Sigma}k} {\sum{k=1}^{K}(n_k-1)}, ]

where (n_k) denotes the number of training observations assigned to class (k).

The first regularization parameter, conventionally denoted by (\lambda), controls the degree of pooling across classes. One common normalization defines the partially pooled estimator as

[ \hat{\Sigma}_k(\lambda)

\frac{ (1-\lambda)(n_k-1)\hat{\Sigma}_k + \lambda(N-K)\hat{\Sigma} }{ (1-\lambda)(n_k-1)+\lambda(N-K) }, ]

where (N) is the total training-sample size and (0\leq\lambda\leq1). At (\lambda=0), each class retains its separately estimated covariance matrix. At (\lambda=1), every class uses the pooled within-class covariance matrix.

A second parameter, usually denoted by (\gamma), shrinks the partially pooled covariance matrix toward a scalar multiple of the identity matrix:

[ \hat{\Sigma}_k(\lambda,\gamma)

(1-\gamma)\hat{\Sigma}_k(\lambda) + \gamma \frac{\operatorname{tr}!\left(\hat{\Sigma}_k(\lambda)\right)}{p}I_p, ]

with (0\leq\gamma\leq1). The trace term preserves the average marginal variance while removing an increasing proportion of the estimated correlation and variance anisotropy. When (\gamma=1), the covariance estimate is spherical within each class, although its overall scale may remain class-dependent under some formulations.

Discriminant rule

Given the regularized covariance estimate, the class discriminant function has the quadratic form

[ \delta_k(x)

-\frac{1}{2} \log\left|\hat{\Sigma}_k(\lambda,\gamma)\right| -\frac{1}{2} (x-\hat{\mu}_k)^\mathsf{T} \hat{\Sigma}_k(\lambda,\gamma)^{-1} (x-\hat{\mu}_k) +\log\hat{\pi}_k. ]

An observation is assigned to the class whose discriminant function has the largest value. The determinant term accounts for the volume of the fitted class distribution, while the quadratic term measures distance from the class mean in the geometry defined by the regularized covariance matrix. The prior-probability term incorporates differences in expected class frequency.

Under the multivariate normal distribution, this rule is a plug-in approximation to the Bayes classifier. Its practical behavior also depends on covariance estimation rather than solely on the validity of normality. Regularization can therefore alter classification error even when the assumed class distributions are only approximate.

Relation to linear and quadratic discriminant analysis

Linear discriminant analysis uses one covariance matrix for every class, producing decision boundaries that are linear in the predictor variables. Quadratic discriminant analysis estimates a separate covariance matrix for each class, allowing the corresponding decision boundaries to contain quadratic terms. RDA places these models within a shared parameterization rather than treating them as unrelated procedures.

The setting (\lambda=1) and (\gamma=0) gives the usual pooled-covariance rule associated with linear discriminant analysis. The setting (\lambda=0) and (\gamma=0) gives the class-specific covariance rule associated with quadratic discriminant analysis. Positive values of (\gamma) move either construction toward a diagonalized spherical geometry and can make matrix inversion possible when empirical covariance matrices lack full rank.

The interpolation does not imply that intermediate settings always generate boundaries of intermediate geometric complexity. Unless every class receives exactly the same regularized covariance matrix, the discriminant functions generally remain quadratic. The parameters instead control how strongly the estimated covariance structures differ and how much directional information they retain.

Regularization and estimation error

A sample covariance matrix contains (p(p+1)/2) distinct parameters. When the number of predictors is large relative to the class sample size, these parameters can have substantial sampling variability. If (p\geq n_k), the empirical covariance matrix for class (k) is singular because its rank cannot exceed (n_k-1).

Pooling reduces variance by estimating shared covariance structure across classes. This reduction introduces bias when the true class covariance matrices differ, but it can lower classification error when separate estimates are unstable. Spherical shrinkage imposes a stronger restriction by reducing the influence of estimated correlations and unequal eigenvalues.

From a spectral perspective, the (\gamma) adjustment moves every eigenvalue toward their class-specific average. Small empirical eigenvalues increase, whereas large empirical eigenvalues decrease. This transformation limits the dominance of directions that appear nearly deterministic because of finite-sample noise and improves the numerical conditioning of the inverse covariance matrices.

RDA consequently represents an instance of the broader bias–variance tradeoff. Linear discriminant analysis has fewer covariance parameters but may omit genuine class differences. Quadratic discriminant analysis retains those differences but can exhibit greater estimation variance. The regularized family permits these sources of error to be balanced through data-dependent parameter selection.

Selection of regularization parameters

The pair ((\lambda,\gamma)) is ordinarily treated as a set of hyperparameters. Their values determine the effective covariance model rather than being estimated by the unregularized maximum-likelihood equations. Classification performance may be evaluated over a predefined two-dimensional parameter grid through cross-validation.

Parameter selection is part of model fitting, so an assessment of prediction error requires separation between the data used for selection and the data used for final evaluation. When the same cross-validation results determine the parameter values and report their error, the reported minimum incorporates selection bias. Nested resampling or an independent test sample separates these functions.

The selected parameters are influenced by class size, predictor dimension, correlation structure, and differences among the true class covariance matrices. They therefore do not have a universal ordering across datasets. A large value of (\lambda) indicates that pooled covariance estimates performed better under the chosen assessment criterion, rather than establishing that the population covariances are identical.

Computational development

Early implementations evaluated a grid of regularization settings and repeatedly formed covariance determinants and inverse quadratic forms. You Watanabe’s implementation reorganized these calculations around eigendecomposition, allowing multiple spherical-shrinkage values to reuse the same classwise spectral representation. This work affected the numerical evaluation of the model family without changing the defining discriminant functions.

Later treatments by Trevor Hastie, Robert Tibshirani, and Jerome Friedman placed RDA within a broader account of statistical learning and model regularization. Their exposition emphasized its relationship to Gaussian classification, covariance shrinkage, and cross-validated model complexity. Subsequent software implementations have used matrix factorizations that avoid explicitly constructing an inverse, because linear-system solutions provide the required quadratic forms with greater numerical stability.

The computational burden depends on the number of classes, the predictor dimension, and the number of parameter combinations evaluated. Covariance factorization usually supplies the dominant matrix cost, while prediction additionally requires one classwise discriminant calculation for each observation. Shared decompositions can reduce repeated work when the regularized matrices differ only through scalar eigenvalue transformations.

Interpretation and scope

RDA regularizes covariance estimation but does not directly regularize class means. Its behavior can therefore remain unstable when mean estimates are noisy in very high-dimensional settings. Feature screening, penalized mean estimation, and dimension reduction constitute distinct model modifications rather than intrinsic components of RDA.

The method also remains sensitive to predictor scaling when spherical shrinkage is applied. The target matrix is defined relative to the coordinate system, so rescaling a predictor changes the meaning of isotropy and can alter the resulting classifier. This differs from shrinkage toward a diagonal matrix containing the empirical marginal variances, which preserves more information about coordinate-specific scale.

Because the discriminant score includes logarithmic determinants, covariance regularization affects both distance and fitted class volume. The resulting change cannot generally be interpreted as a simple modification of nearest-centroid classification. Even when two classes have similar means, differences in their regularized covariance scales can substantially alter the location and curvature of the decision boundary.

See also