SECTION 10 / 10

Measuring projection accuracy

6 min read
On this page 8 headings

Learning goal: Rewrite a projection error using a standard Gaussian vector.

Conditions to check

  • Normalization requires a fixed nonzero input vector.
  • The normalized vector is jointly Gaussian because it is a linear transformation of Gaussian entries.
  • Mean zero and identity covariance alone do not establish Gaussianity for an arbitrary random vector.
  • The ideaOn average our squeezed length is right, but we only squeeze once.
  • What is the chance that this one time the length comes out too big, more than (1 + ε) times the truth?
  • The key step is to rescale things so this question no longer mentions u or d at all.
  • It becomes a question about a standard random Gaussian vector in k dimensions, which is much easier to analyse.
  • Key statement, entries of R ~ N(0,1).
  • is a "good" (unbiased) estimator for ‖u‖².
  • How good is this estimate? Fix and let

Step 1: unbiased, the exercise solved

  • To verify unbiasedness, calculate as an exercise.
  • Here is the solution:
  • The middle step uses Lesson 8: for every row i.
  • So if we could repeat the random projection many times and average, we'd get the length exactly.
  • Compare this with Lesson 7: no fixed matrix can preserve lengths, but a random one does on average.
  • In practice we project only once, so we need the probability of a bad outcome.

Step 2: name the bad event

  • Here u is fixed and v is random, because R is random.
  • We want to be tiny.
  • The "too small" side, , is handled the same way.

Step 3: rescale to a cleaner random vector

Define

  • Why this choice?
  • It divides out the unknown length ‖u‖ and the √k scaling, leaving a vector with a "standard" shape.
  • Now compute its mean and covariance:
  • Mean: each entry is , and , so .
  • Diagonal of covariance: .
  • Off-diagonal (i ≠ j): .

    The split is allowed because rows i and j of R are independent, so the two dot products are independent.

  • So x is a standard multivariate normal vector: k independent N(0,1) numbers.
  • The facts that every is normal and that the coordinates are independent come from Lesson 8, so mean 0 and covariance I pin down the distribution completely.

Step 4: rewrite the bad event in terms of x

  • Each step only divides or multiplies both sides by a positive number, so the events are identical (A ⇔ B from Lesson 5) and the probabilities are equal.
  • The last step uses (1).

Worked example: what the final question means

  • k = 1,000, ε = 0.1.
  • Draw 1,000 independent N(0,1) numbers, square them and add them up.
  • The total averages 1,000 (each square averages 1).
  • The bad event is "the total is at least 1,100".
  • Computed exactly, this happens with probability about 1.5 %.
  • The "too small" event (total ≤ 900) has probability about 1.1 %.
  • So with k = 1,000, one fixed vector keeps its length within ±10 % about 97.5 % of the time.

Check yourself

Why is ?

and each .

Rewrite the "too small" event in terms of x.

.

Where does d appear in ?
  • Nowhere.
  • That is the point.

Key points to remember

  • Fix a nonzero input vector before normalizing.
  • The normalized coordinates are independent standard normal variables.
  • The tail question depends on k and ε\varepsilon ; the original dimension d disappears.
YOUR STUDY PROGRESS

Finished this section? Save your progress.

Back to top ↑