What is QR decomposition and how is it used for least squares?
Role: Data Scientist
Category: Statistics & Math
Difficulty: medium
Interview Round: Other
Overview: Asks what the QR decomposition of a matrix is and how it is used to solve linear least squares problems. Tests the derivation from orthogonality, numerical stability compared with the normal equations, and what happens when the design matrix is rank-deficient.