Why a Lower-Dimensional Representation Can Preserve LDA Decisions
A data set may have many predictors but only a few distinct directions in which class means differ. In that situation, LDA decisions need not depend on every coordinate separately. The key is to retain the directions that carry the class-mean differences in the geometry induced by the shared covariance matrix. Projecting onto the resulting discriminant subspace can reduce dimension while preserving every comparison between LDA scores.
This is a precise claim about the LDA score comparisons, not a claim that projection preserves all information about the predictors or every possible analysis. We will construct the subspace, derive the reduced scores, and prove that the full and reduced score differences are identical. The proof also identifies the zero-dimensional case, where no inverse of a zero-dimensional covariance matrix is needed.
The Discriminant Subspace and Projected LDA
Suppose there are \(K\) classes and \(p\) predictors. In class \(k\), assume the predictor vector has a multivariate normal distribution \(N(\mu_k,\Sigma)\), where the class means \(\mu_k\in\mathbb{R}^p\) may differ and the shared covariance matrix \(\Sigma\) is positive definite. Let the prior probabilities satisfy \(\pi_k>0\) and \(\sum_{k=1}^K\pi_k=1\). The LDA score for a predictor vector \(x\in\mathbb{R}^p\), omitting a term common to all classes, is
The LDA decision selects a class with the largest score. The class-mean differences determine the parts of these scores that vary across classes. Define the prior-weighted mean \(\bar{\mu}=\sum_{k=1}^K\pi_k\mu_k\), the between-class mean-difference space \(\mathcal{M}=\operatorname{span}\{\mu_k-\bar{\mu}:1\leq k\leq K\}\), and the discriminant subspace \(\mathcal{S}=\Sigma^{-1}\mathcal{M}\). Equivalently, \(\mathcal{S}\) is spanned by the vectors \(\Sigma^{-1}(\mu_k-\bar{\mu})\). Since \(\bar{\mu}\) is a weighted average of the class means, \(\mathcal{M}\) is also the span of all pairwise differences \(\mu_k-\mu_l\).
Let \(U\) be a \(p\times r\) matrix whose columns form an orthonormal basis for \(\mathcal{S}\), when \(r>0\). The projected predictor is \(z=U'x\). Under class \(k\), its mean is \(U'\mu_k\), and its covariance matrix is \(C=U'\Sigma U\). This matrix is positive definite: for any nonzero \(a\in\mathbb{R}^r\), \(a'Ca=(Ua)'\Sigma(Ua)>0\), because \(Ua\neq 0\) and \(\Sigma\) is positive definite. Thus the reduced LDA score is well defined:
This is the ordinary shared-covariance LDA score formed from the projected class distributions. If \(r=0\), the projected coordinate has no entries and \(C^{-1}\) must not be used. In that case all class means are equal, and we define the zero-dimensional projected scores directly as \(\delta_k^{(S)}=\log\pi_k\).
Exact Preservation of Score Comparisons
Proof. First consider \(r>0\), and set \(H=UC^{-1}U'\). The matrix \(H\) is symmetric because \(C\) is symmetric. For any \(d\in\mathcal{M}\), the vector \(\Sigma^{-1}d\) belongs to \(\mathcal{S}\), so there is an \(a\in\mathbb{R}^r\) such that \(\Sigma^{-1}d=Ua\). Therefore \(d=\Sigma Ua\) and \(U'd=U'\Sigma Ua=Ca\). It follows that
Now fix classes \(k,l\), and write \(d=\mu_k-\mu_l\), which belongs to \(\mathcal{M}\). The difference of the full linear score terms is \(x'\Sigma^{-1}d\). The difference of the projected linear terms is \(x'Hd\), because \(z=U'x\). These are equal by \(Hd=\Sigma^{-1}d\).
For the quadratic terms, use symmetry of \(H\) and \(\Sigma^{-1}\):
Thus the difference of the quadratic contributions, including their factor of \(-\tfrac12\), also agrees. The prior contribution is \(\log\pi_k-\log\pi_l\) in both score systems. Adding the linear, quadratic, and prior contributions proves the asserted equality for \(r>0\).
If \(r=0\), then \(\mathcal{M}=\{0\}\), so \(\mu_k=\mu_l\) for every pair. In the full scores the linear terms and quadratic terms therefore cancel in every pairwise difference, leaving \(\log\pi_k-\log\pi_l\). The defined zero-dimensional scores have exactly this difference. This proves the theorem in all cases. \(\square\)
The result is stronger than saying that the projected classifier usually agrees with the full classifier: every pairwise score difference is unchanged at every \(x\). The absolute scores can differ by a common term that is the same for all classes. A common shift cannot change which score is largest, nor can it change whether two scores tie.
Worked Examples
Worked Example: Removing a Predictor Direction with No Class-Mean Differences
Suppose there are three equally likely Gaussian classes in three predictors, with shared covariance \(\Sigma=\operatorname{diag}(1,1,4)\) and means \(\mu_1=(0,0,0)'\), \(\mu_2=(2,0,0)'\), and \(\mu_3=(0,2,0)'\). The mean differences have zero third coordinate. Since \(\Sigma^{-1}=\operatorname{diag}(1,1,\tfrac14)\), the discriminant subspace is spanned by the first two coordinate vectors. Choose \(U=(e_1,e_2)\); then \(C=U'\Sigma U=I_2\).
The full scores, with the common log prior omitted for the moment, are \(\delta_1(x)=0\), \(\delta_2(x)=2x_1-2\), and \(\delta_3(x)=2x_2-2\). The projected means are \((0,0)'\), \((2,0)'\), and \((0,2)'\), so the projected scores are \(0\), \(2z_1-2\), and \(2z_2-2\), with the same common log prior added to each.
For \(x=(0.2,0.1,10)'\), the projected vector is \(z=(0.2,0.1)'\). The score values, after dropping the common prior, are \(0\), \(2(0.2)-2=-1.6\), and \(2(0.1)-2=-1.8\). The full scores give exactly those same values: none contains \(x_3\). Class 1 is the unique maximizing class in either representation, even though the omitted coordinate is large.
Worked Example: A One-Dimensional Discriminant Subspace with Correlated Predictors
Let there be two equally likely classes with means \(\mu_1=(0,0)'\) and \(\mu_2=(1,1)'\), and shared covariance \(\Sigma=\begin{pmatrix}2&1\\1&2\end{pmatrix}\). Its inverse is \(\frac13\begin{pmatrix}2&-1\\-1&2\end{pmatrix}\), so \(\Sigma^{-1}(\mu_2-\mu_1)=(1/3,1/3)'\). The discriminant subspace is one-dimensional; choose \(U=(1,1)'/\sqrt{2}\).
The projected covariance is \(C=U'\Sigma U=3\). The projected means are \(U'\mu_1=0\) and \(U'\mu_2=\sqrt{2}\). Thus the projected score difference, class 2 minus class 1, is \[ z\frac{\sqrt{2}}{3}-\frac12\frac{2}{3} =\frac{x_1+x_2}{3}-\frac13, \] since \(z=(x_1+x_2)/\sqrt{2}\). Directly in the full space, the score difference is \(x'\Sigma^{-1}\mu_2-\tfrac12\mu_2'\Sigma^{-1}\mu_2 =(x_1+x_2)/3-1/3\). The expressions agree.
At \(x=(2,0)'\), both differences equal \(2/3-1/3=1/3>0\), so class 2 wins. The projected representation uses only the sum-direction \((x_1+x_2)/\sqrt{2}\); the orthogonal predictor direction has no effect on this LDA comparison.
Worked Example: Checking a Three-Class Gaussian Decision
Consider three classes with priors \((1/2,1/3,1/6)\), shared covariance \(\Sigma=\operatorname{diag}(1,4,9)\), and means \(\mu_1=(5,0,7)'\), \(\mu_2=(7,0,7)'\), and \(\mu_3=(5,4,7)'\). The third mean coordinate is common to all classes, so the mean differences lie in the first two coordinates. Since \(\Sigma\) is diagonal, \(\mathcal{S}\) is spanned by \(e_1,e_2\). Take \(U=(e_1,e_2)\), giving \(C=\operatorname{diag}(1,4)\).
Evaluate at \(x=(6,1,100)'\), so \(z=(6,1)'\). The projected score calculations are \(\delta_1^{(S)}=6(5)-\tfrac12(25)+\log(1/2)=17.5+\log(1/2)\); \(\delta_2^{(S)}=6(7)-\tfrac12(49)+\log(1/3)=17.5+\log(1/3)\); and \(\delta_3^{(S)}=6(5)+1(1/4)(4)-\tfrac12(25+4)+\log(1/6)=16.5+\log(1/6)\).
To check directly in the full space, the common contribution from the third coordinate is \(100(7/9)-\tfrac12(49/9)=700/9-49/18=1351/18\). The first two coordinates contribute \(17.5\), \(17.5\), and \(16.5\), respectively, just as in the projected calculations. Thus each full score is its projected score plus \(1351/18\), a common shift. Class 1 wins: its score exceeds class 2 by \(\log((1/2)/(1/3))=\log(3/2)>0\), and exceeds class 3 by \(1+\log((1/2)/(1/6))=1+\log 3>0\). The large third coordinate changes the absolute scores but not a single comparison.
What the Projection Does—and Does Not—Guarantee
This dimension reduction matters when \(r\ll p\): the classifier can be represented using fewer coordinates without changing its LDA decisions. The bound \(r\leq K-1\) means that with a modest number of classes, the decision-relevant mean-difference space can be much smaller than the original predictor space. This is a statement about the specified shared-covariance LDA model and its score comparisons. It does not say that the discarded coordinates are irrelevant to other scientific questions, nor that arbitrary projections preserve decisions.
A frequent mistake is to project predictors onto an arbitrary subspace, fit a new LDA rule there, and assume that the old decisions must survive. The proof depends on choosing the subspace spanned by \(\Sigma^{-1}\) times the class-mean differences and using the projected covariance \(C=U'\Sigma U\). A projection that discards one of these directions can alter score differences. Another mistake is to treat the case \(r=0\) as though \(C^{-1}\) existed. When all class means coincide, the correct projected scores are simply the log priors; if priors are equal, all classes tie under LDA.
For computation, a practical check is to compare pairwise score differences before and after reduction, rather than comparing raw scores. Raw scores may differ by a shared additive term, as the multiclass example illustrates. Exact preservation of pairwise differences is the algebraic property that guarantees identical decisions.
Check Your Understanding
Use the definitions and proof above to answer these questions.
- Why does the discriminant subspace use \(\Sigma^{-1}(\mu_k-\bar{\mu})\), rather than just the unadjusted mean differences?
- For \(r>0\), explain why \(C=U'\Sigma U\) is positive definite.
- In the theorem's proof, why is it enough to show that \(Hd=\Sigma^{-1}d\) for every \(d\in\mathcal{M}\)?
- If every class has the same mean but the priors are unequal, what determines the LDA decision? What are the zero-dimensional projected scores?
- Why can the full and projected scores differ while still yielding identical decisions?