Skip to content
nonconvexcard

Johnson–Lindenstrauss dimension arithmetic

NumericalBeginner⏱ 15 minHigh-Dim Probabilityjldimensionarithmeticpractice

Problem

Using k≥24ε−2log⁡Nk \ge 24\eps^{-2}\log N:

  1. Compute the required kk for N=103,106,109N=10^3, 10^6, 10^9 at ε=0.1\eps = 0.1.
  2. Compute the required kk for N=106N = 10^6 at ε=0.5,0.1,0.01\eps = 0.5, 0.1, 0.01.
  3. A team wants to compress 10610^6 vectors from D=4096D = 4096 to k=256k = 256. What distortion does the lemma guarantee? Is the guarantee useful?

Compute the requested quantities and say what they mean. A number without an interpretation is not an answer.

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
Simulate distance contrast runClassical MLCodingBeginner30 min
A sufficient condition for correct retrievalRAGProofIntermediate30 min
From distance preservation to inner-product preservationHigh-Dim ProbabilityProofIntermediate30 min
Implement random projection and measure the distortion runHigh-Dim ProbabilityCodingIntermediate1 hour
The chi-squared moment generating function and its Chernoff boundHigh-Dim ProbabilityProofIntermediate30 min