GATE DA 2024 · Linear Discriminant Analysis (LDA)

MCQ · 1 mark · Problem ML-LDA-0008

For any binary classification dataset, let \(S_{B} \in \mathbb{R}^{d \times d}\) and \(S_{W} \in \mathbb{R}^{d \times d}\) be the between-class and within-class scatter (covariance) matrices, respectively. The Fisher linear discriminant is defined by \(u^{*} \in \mathbb{R}^{d}\), that maximizes \(J(u)=\frac{u^{T} S_{B} u}{u^{T} S_{W} u}\)If \(\lambda=J\left(u^{*}\right), S_{W}\) is non-singular and \(S_{B} \neq 0\), then ( \(u^{*}, \lambda\) ) must satisfy which ONE of the following equations? Note: \(\mathbb{R}\) denotes the set of real numbers.
  1. A
    \(S_{W}^{-1} S_{B} u^{*}=\lambda u^{*}\)
  2. B
    \(S_{W} u^{*}=\lambda S_{B} u^{*}\)
  3. C
    \(S_{B} S_{W} u^{*}=\lambda u^{*}\)
  4. D
    \(u^{* T} u^{*}=\lambda^{2}\)

Solve it on GATE DA practice →More Supervised Learning — Classification problems

Show the worked solutionTo find the optimal direction \(\mathbf{u}^*\) that maximizes the Fisher criterion:\[ J(\mathbf{u}) = \frac{\mathbf{u}^T \mathbf{S}_B \mathbf{u}}{\mathbf{u}^T \mathbf{S}_W \mathbf{u}} \]We compute the gradient of \(J(\mathbf{u})\) with respect to \(\mathbf{u}\) and set it to \(\mathbf{0}\):\[ \nabla_{\mathbf{u}} J(\mathbf{u}) = \frac{2 \mathbf{S}_B \mathbf{u} (\mathbf{u}^T \mathbf{S}_W \mathbf{u}) - 2 \mathbf{S}_W \mathbf{u} (\mathbf{u}^T \mathbf{S}_B \mathbf{u})}{(\mathbf{u}^T \mathbf{S}_W \mathbf{u})^2} = \mathbf{0} \]This implies:\[ \mathbf{S}_B \mathbf{u}^* (\mathbf{u}^{*T} \mathbf{S}_W \mathbf{u}^*) = \mathbf{S}_W \mathbf{u}^* (\mathbf{u}^{*T} \mathbf{S}_B \mathbf{u}^*) \]Divide both sides by \(\mathbf{u}^{*T} \mathbf{S}_W \mathbf{u}^*\):\[ \mathbf{S}_B \mathbf{u}^* = \mathbf{S}_W \mathbf{u}^* \left( \frac{\mathbf{u}^{*T} \mathbf{S}_B \mathbf{u}^*}{\mathbf{u}^{*T} \mathbf{S}_W \mathbf{u}^*} \right) \]Recognizing the term in parentheses as \(\lambda = J(\mathbf{u}^*)\):\[ \mathbf{S}_B \mathbf{u}^* = \lambda \mathbf{S}_W \mathbf{u}^* \]Since \(\mathbf{S}_W\) is non-singular, we multiply both sides by \(\mathbf{S}_W^{-1}\) from the left:\[ \mathbf{S}_W^{-1} \mathbf{S}_B \mathbf{u}^* = \lambda \mathbf{u}^* \]This is exactly the generalized eigenvalue equation for the matrix \(\mathbf{S}_W^{-1} \mathbf{S}_B\).Answer: A

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com