What objective does Linear Discriminant Analysis optimize when projecting data?

Quick Overview

Asks which objective Linear Discriminant Analysis maximizes when it projects labeled data to fewer dimensions. Tests whether a candidate can write out the objective and explain its parts, how the projection directions are computed, how many there can be, and how LDA differs from PCA.

What objective does Linear Discriminant Analysis optimize when projecting data?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Linear Discriminant Analysis (LDA) is often used as a supervised dimensionality reduction step: it projects labeled data onto a few directions before classification or visualization. What objective does Linear Discriminant Analysis optimize when projecting data? ```hint Compare two spreads Think about what you want the class means to do after projection, and what you want the points of each class to do around their own mean. The objective trades these two off. ``` ```hint How many directions Look at the rank of the matrix that describes how the class means are spread out. ``` ### What a Strong Answer Covers - The objective written out, with what each scatter matrix measures - How the objective is maximized and how many useful directions it yields - The closed form for two classes - Why the objective is a ratio, and what goes wrong with mean separation alone - How LDA compares with PCA, plus the assumptions and numerical issues that matter in practice ### Follow-up Questions - Why can LDA produce at most $C - 1$ discriminant directions for $C$ classes? - What do you do when the within-class scatter matrix is singular? - When does LDA used as a classifier match the Bayes-optimal rule, and what changes when classes have different covariances? - When would PCA give a better projection than LDA for a downstream classifier?

Overview: Asks which objective Linear Discriminant Analysis maximizes when it projects labeled data to fewer dimensions. Tests whether a candidate can write out the objective and explain its parts, how the projection directions are computed, how many there can be, and how LDA differs from PCA.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Linear Discriminant Analysis (LDA) is often used as a supervised dimensionality reduction step: it projects labeled data onto a few directions before classification or visualization.

What objective does Linear Discriminant Analysis optimize when projecting data?

What a Strong Answer Covers Guidance

  • The objective written out, with what each scatter matrix measures
  • How the objective is maximized and how many useful directions it yields
  • The closed form for two classes
  • Why the objective is a ratio, and what goes wrong with mean separation alone
  • How LDA compares with PCA, plus the assumptions and numerical issues that matter in practice

Follow-up Questions Guidance

  • Why can LDA produce at most C−1C - 1 discriminant directions for CC classes?
  • What do you do when the within-class scatter matrix is singular?
  • When does LDA used as a classifier match the Bayes-optimal rule, and what changes when classes have different covariances?
  • When would PCA give a better projection than LDA for a downstream classifier?