Why does perfect collinearity make X-transpose-X singular so OLS has no unique solution?

Quick Overview

Asks why perfect collinearity among predictors makes the X-transpose-X matrix singular and leaves ordinary least squares without a unique coefficient vector. Tests the linear algebra behind the normal equations, what stays identified, and how near-collinearity differs.

Why does perfect collinearity make X-transpose-X singular so OLS has no unique solution?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

Why does perfect collinearity make $X^\top X$ singular, so that ordinary least squares (OLS) has no unique solution? ```hint Write the dependence as a vector An exact linear relation among the columns of $X$ can be written with one nonzero vector $v$. What is $Xv$ for that vector? ``` ```hint Connect X to its Gram matrix To show that $X^\top X$ loses rank exactly when $X$ does, look at the quadratic form $v^\top X^\top X v$ and what it equals. ``` ### What a Strong Answer Covers - The normal equations and why a unique solution needs an invertible $X^\top X$ - A clear argument that dependent columns of $X$ make $X^\top X$ singular - Why there are infinitely many solutions, and what stays unique across all of them - How near-collinearity differs from perfect collinearity - How software and practitioners deal with a rank-deficient design matrix ### Follow-up Questions - Why are the fitted values unique even when the coefficients are not? - What is the dummy variable trap, and how do you avoid it? - How does ridge regression make the system solvable, and what does it do to the coefficients? - How would you detect near-collinearity before fitting, and what would you do about it?

Overview: Asks why perfect collinearity among predictors makes the X-transpose-X matrix singular and leaves ordinary least squares without a unique coefficient vector. Tests the linear algebra behind the normal equations, what stays identified, and how near-collinearity differs.

PracHub logo
General
Nov 24, 2026
mediumData ScientistOtherStatistics & Math
0
0

Why does perfect collinearity make X⊤XX^\top X singular, so that ordinary least squares (OLS) has no unique solution?

What a Strong Answer Covers Guidance

  • The normal equations and why a unique solution needs an invertible X⊤XX^\top X
  • A clear argument that dependent columns of XX make X⊤XX^\top X singular
  • Why there are infinitely many solutions, and what stays unique across all of them
  • How near-collinearity differs from perfect collinearity
  • How software and practitioners deal with a rank-deficient design matrix

Follow-up Questions Guidance

  • Why are the fitted values unique even when the coefficients are not?
  • What is the dummy variable trap, and how do you avoid it?
  • How does ridge regression make the system solvable, and what does it do to the coefficients?
  • How would you detect near-collinearity before fitting, and what would you do about it?