What does the design matrix represent, and why must it be full rank to fit a model?

Quick Overview

Asks what the design matrix in a linear model represents and why it needs full column rank before the coefficients can be fit. Tests understanding of the normal equations, coefficient identifiability, and the ways real feature sets become collinear.

What does the design matrix represent, and why must it be full rank to fit a model?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What does the design matrix represent in a linear model, and why must it be full rank to fit the model? ```hint Look at the normal equations Write down how least squares solves for the coefficients, then ask what has to be true about the matrix that gets inverted. ``` ### What a Strong Answer Covers - What the rows, the columns and the intercept column of the design matrix are, and how predictions come from it - What full column rank means in terms of the features - Why dependent columns make the coefficients non-unique - Typical ways real feature sets end up rank deficient - What can still be estimated when the matrix is rank deficient, and how to fix it ### Follow-up Questions - If the design matrix is rank deficient, are the fitted values still unique? Why? - How does near-collinearity (full rank but badly conditioned) affect the coefficient estimates, and how would you detect it? - How does ridge regression make the problem solvable when there are more features than rows? - What do common libraries do when you hand them a rank-deficient design matrix?

Overview: Asks what the design matrix in a linear model represents and why it needs full column rank before the coefficients can be fit. Tests understanding of the normal equations, coefficient identifiability, and the ways real feature sets become collinear.

General logo
General
Nov 24, 2026
mediumData ScientistOtherMachine Learning
0
0

What does the design matrix represent in a linear model, and why must it be full rank to fit the model?

What a Strong Answer Covers Guidance

  • What the rows, the columns and the intercept column of the design matrix are, and how predictions come from it
  • What full column rank means in terms of the features
  • Why dependent columns make the coefficients non-unique
  • Typical ways real feature sets end up rank deficient
  • What can still be estimated when the matrix is rank deficient, and how to fix it

Follow-up Questions Guidance

  • If the design matrix is rank deficient, are the fitted values still unique? Why?
  • How does near-collinearity (full rank but badly conditioned) affect the coefficient estimates, and how would you detect it?
  • How does ridge regression make the problem solvable when there are more features than rows?
  • What do common libraries do when you hand them a rank-deficient design matrix?