What is Gram-Schmidt orthogonalization?

Quick Overview

Asks what Gram-Schmidt orthogonalization is and how it turns linearly independent vectors into an orthonormal basis for the same span. Tests the projection step, the link to QR factorization, and awareness of why the classical version is numerically unstable.

What is Gram-Schmidt orthogonalization?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

What is Gram-Schmidt orthogonalization? Explain what the procedure does, how each step works, and where it is used. ```hint Start from projection Ask how you would remove from a vector the part that points along a unit vector you already have, and what is left over. ``` ### What a Strong Answer Covers - The goal of the procedure and the condition it needs on the input vectors - The subtract-projections-then-normalize step, written as a formula or algorithm - Why the span is preserved and how the coefficients form the QR factorization - The numerical weakness of the classical version and the alternatives used in practice ### Follow-up Questions - What happens when the input vectors are linearly dependent, and how would your code detect it? - How does a QR factorization help solve a least squares regression, and why is it preferred over the normal equations? - What exactly changes between classical and modified Gram-Schmidt, and why does it matter in floating point? - How does Gram-Schmidt relate to reading a multiple regression coefficient as a regression on residuals?

Overview: Asks what Gram-Schmidt orthogonalization is and how it turns linearly independent vectors into an orthonormal basis for the same span. Tests the projection step, the link to QR factorization, and awareness of why the classical version is numerically unstable.

Nov 24, 2026
easyData ScientistOtherStatistics & Math
0
0

What is Gram-Schmidt orthogonalization? Explain what the procedure does, how each step works, and where it is used.

What a Strong Answer Covers Guidance

  • The goal of the procedure and the condition it needs on the input vectors
  • The subtract-projections-then-normalize step, written as a formula or algorithm
  • Why the span is preserved and how the coefficients form the QR factorization
  • The numerical weakness of the classical version and the alternatives used in practice

Follow-up Questions Guidance

  • What happens when the input vectors are linearly dependent, and how would your code detect it?
  • How does a QR factorization help solve a least squares regression, and why is it preferred over the normal equations?
  • What exactly changes between classical and modified Gram-Schmidt, and why does it matter in floating point?
  • How does Gram-Schmidt relate to reading a multiple regression coefficient as a regression on residuals?