When would you choose random projection over PCA?

Quick Overview

Asks when random projection is a better choice than PCA for reducing the dimension of a dataset. Tests your knowledge of the Johnson-Lindenstrauss lemma, the cost of fitting PCA on huge or sparse data, and which downstream tasks only need distances preserved.

When would you choose random projection over PCA?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

When would you choose random projection over PCA? ```hint Compare the costs Think about what PCA has to compute before it can project anything, and what a random projection has to compute. ``` ```hint Ask what must survive Consider what the downstream task needs from the reduced data: pairwise distances, or a few directions that explain most of the variance. ``` ### What a Strong Answer Covers - The guarantee random projection relies on, and how the target dimension scales with the number of points and the tolerance - The cost and data-independence advantages, including very sparse inputs and streaming settings - The downstream tasks where preserved distances are what matters - When PCA is the better choice, with a sense of the numbers that make random projection pointless ### Follow-up Questions - Why does the Johnson-Lindenstrauss bound not depend on the original dimension? - How would you get PCA-like components from a sparse matrix with millions of columns? - How would you check empirically that a projection preserved distances well enough for a kNN model? - How does random projection relate to locality-sensitive hashing for cosine similarity?

Overview: Asks when random projection is a better choice than PCA for reducing the dimension of a dataset. Tests your knowledge of the Johnson-Lindenstrauss lemma, the cost of fitting PCA on huge or sparse data, and which downstream tasks only need distances preserved.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

When would you choose random projection over PCA?

What a Strong Answer Covers Guidance

  • The guarantee random projection relies on, and how the target dimension scales with the number of points and the tolerance
  • The cost and data-independence advantages, including very sparse inputs and streaming settings
  • The downstream tasks where preserved distances are what matters
  • When PCA is the better choice, with a sense of the numbers that make random projection pointless

Follow-up Questions Guidance

  • Why does the Johnson-Lindenstrauss bound not depend on the original dimension?
  • How would you get PCA-like components from a sparse matrix with millions of columns?
  • How would you check empirically that a projection preserved distances well enough for a kNN model?
  • How does random projection relate to locality-sensitive hashing for cosine similarity?