ByteDance · ML & AI Fundamentals
Differentiate LDA and QDA; compute boundary
TrueInterview
October 7, 2026 · 1 min read
For class 0, the mean is and the covariance is . For class 1, the mean is and the covariance is . The prior probabilities are and . (1) State the LDA discriminant and decision rule when you (incorrectly) assume , and provide the linear boundary equation. (2) State the QDA discriminant using the actual covariances and derive the quadratic boundary as an explicit scalar equation in and . (3) Classify the point under both LDA and QDA, showing the numerical values of the discriminants. (4) Discuss when QDA is preferable and when LDA is safer with per class, and propose a regularized QDA that shrinks each class covariance toward a shared using a tunable shrinkage parameter; explain how you would select it via cross-validation.
Overview: This question tests understanding of Gaussian generative classification and discriminant analysis: how equal versus class-specific covariances affect linear (LDA) and quadratic (QDA) decision boundaries, how to compare discriminants numerically, and how to select models with regularization and cross-validation.