REVISION AND PRACTICE
The complete JL proof
On this page 3 headings
Learning goal: Connect the complete probability argument into one chain.
Conditions and notation
- Exponentiate, apply Markov, factor by independence, and use the Gaussian MGF.
- Control both tails for one pair, then all pairs with the union bound.
- For fixed failure probability, the target dimension grows like divided by .
Map: , independent.
For points x, y, put ; linearity gives .
- One measurement: , independent across rows (W1 L8).
- Rescale: and (W1 L9).
- Same event: (W1 L9).
- Chernoff: for , (Markov, independence, MGF; W2 Lesson 1).
- Simplify: the Taylor step gives , and λ = ε/4 gives (W2 Lesson 1).
- Both tails: the too-small side is bounded the same way, so one pair fails with probability (W2 Lesson 2).
- All pairs: union bound over fewer than n² pairs gives (W1 L5, W2 Lesson 2).
Choose k: set that ≤ δ, so .
With probability ≥ 1 − δ every pairwise squared distance lies within . ∎
Using it in practice
Pick ε (allowed distortion) and δ (allowed failure chance), then compute .
Check that k is well below d, otherwise there's no gain.
- Draw R (k × d) with independent N(0,1) entries once, and set .
- Replace every data point x by Mx (cost: about k·d multiplications per point).
Run your distance-based algorithm (nearest neighbours, k-means, …) on the k-dimensional points.
Each distance now costs k instead of d.
Key points to remember
- Exponentiate, apply Markov, factor by independence, and use the Gaussian MGF.
- Control both tails for one pair, then all pairs with the union bound.
- For fixed failure probability, the target dimension grows like divided by .
