The SVD interpretation of random projection
On this page 8 headings
Learning goal: Understand projection as orthogonal changes of coordinates and scaling.
Conditions and notation
- For the displayed k × d SVD, assume .
- Squared singular values are eigenvalues of MMᵀ.
- Random directions are uniform in every dimension; nearly equal singular values need a suitable dimension ratio.
- The ideaSo far we treated M as a source of random measurements and estimated a length from them.
- Now look at M as a machine.
- The SVD uses orthogonal changes of coordinates and scaling.
- For a random Gaussian M, the first rotation is random, so it can't favour any direction of your vector.
- All k stretches are about equal, so nothing gets crushed.
- The last rotation doesn't change length at all.
- Result: the length comes out roughly unchanged.
Use this section for geometric intuition. Lessons 1 and 2 establish the probability guarantee.
Step 1: any matrix rotate · stretch · rotate
Key statement
Matrices act right to left, so happens in three steps:
: rotate in . Still d numbers, same length.
Call the result .
- : keep the first k coordinates, stretch them, drop the rest. .
- : rotate in . Same length again.
- Since rotations never change length, the only step that changes length is the middle one.
- The exact squared-length formula is:
Step 2: what is special about a random Gaussian M
Random rotation and scaling: the key facts
- For a fixed unit input vector, the first orthogonal transformation produces a random unit direction in d dimensions.
- Individual coordinates fluctuate. Their squared values have expectation 1/d.
- A sum of k squared coordinates is typically near k/d when k is sufficiently large.
- When d is much larger than k, the nonzero singular values are near . This is an approximation, not equality for every draw.
The final orthogonal transformation preserves length. The probability proof works for any original dimension; a smaller target dimension is what makes projection useful.
- Use d for the original dimension and k for the target dimension.
- The three ideas are:
The first rotation is random. Whatever direction u points (even ), points in a uniformly random direction.
So no coordinate is special, and for every i (Toolkit 0.10).
The stretches are all about . The sum of all squared entries of M is , and on average it equals .
Shared among k singular values, each .
Random matrix theory adds that for d ≫ k they all fall in .
Put together: .
The length is kept.
Worked example: the heuristic with numbers
d = 10,000, k = 100, ‖u‖ = 1.
- After the random rotation, a typical coordinate has size , and .
- Every singular value is , roughly in [9, 11].
- Stretched coordinates: .
.
Precisely: .
The last rotation U doesn't change this.
Step 3: a random-direction experiment
- Key statementk = 2, d = 3 (then 100 or 1,000).
- , .
- Generate 1,000 such matrices; for each, , and pick the first column of V: , each with .
- Fix a random unit vector: with three entries, .
- Compute and observe this histogram.
The simulation results are shown below:
Check yourself
Which of the three SVD steps can change a vector's length?
- Only Σ (stretching the first k coordinates and dropping the rest).
- U and Vᵀ are rotations.
Why is each singular value of about ?
- The sum of squares of all entries is about , and that equals .
- Shared among k values, each .
d = 1,000,000, k = 400. Roughly what are the singular values, and the typical size of ?
; , so .
True or false: the JL probability bound fails when d is small.
- False.
- The bound depends only on k and ε.
- Small d just means there's nothing to gain from projecting.
Key points to remember
- For the displayed k × d SVD, assume .
- Squared singular values are eigenvalues of MMᵀ.
- Random directions are uniform in every dimension; nearly equal singular values need a suitable dimension ratio.
