What is the Normal Equation in matrix form, and how does its cost compare with gradient descent?
Role: Data Scientist
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Derive the Normal Equation for ordinary least squares in matrix form and compare its computational cost with gradient descent. Tests linear algebra behind linear regression, complexity in rows and features, and numerical stability when features are collinear.