SECTION 02 / 5
Prerequisite toolkit
On this page 18 headings
Learning goal: Learn the exponential, logarithm and SVD tools needed this week.
Conditions and notation
- For the upper-tail proof, choose λ .
- The simpler Taylor bound is valid at λ when .
- Orthogonal transformations can include reflections; both rotations and reflections preserve length.
- Week 1's toolkit (expectation, variance, normal distribution, vectors, matrices, covariance, MLE) is still needed.
- Below are the new tools this week uses, each with a tiny example.
0.1 Rules for e and
.
So : a sum in the exponent becomes a product.
- is another way to write , used when the exponent is long.
, , , and .
Here "log" means the natural log (ln).
- and are increasing functions: if then and .
Worked example
- .
- Turning powers into exponentials is exactly what Lesson 1 does.
0.2 Same event, same probability
- The idea"My height is at least 160 cm" and "my height is at least 1.6 m" are the same statement in different units, so they have the same probability.
- Applying any increasing function to both sides of an inequality gives the same event in disguise.
- For any λ > 0: .
- Each step can be undone (divide by λ, take log), so all three events are identical and is the same for all of them.
- This is the A ⇔ B idea from Week 1, the union-bound lesson.
0.3 Expectation of a product of independent things
- If are independent, then .
- Functions of independent variables are still independent, so qualify when are independent.
Worked example
- Two independent dice: .
- Without independence this fails: for (the same die), .
0.4 Moment generating function (MGF)
- The ideaThe MGF packs all the moments of X (, , …) into one function.
- For our proof, its job is simpler: it makes large values of X count exponentially more, which is exactly what we need to measure rare large deviations.
The Gaussian identity used in Lesson 1: if and , then
For the curious: where it comes from
- .
- This is a bell-curve integral with variance , which equals .
- If the exponent is no longer negative and the integral is infinite.
- That is why λ must stay below ½.
Worked example
- λ = 0.1: . λ = 0.25: . λ = 0.49: .
- As λ approaches ½ it blows up.
0.5 Taylor series of
- For small y: .
- With and halved:
Worked example
- λ = 0.1: left side ; right side . ✓. λ = 0.35: left , right . ✗, too big.
- The lesson's choice λ = ε/4 is always below 0.25, so it is safe.
0.6 Finding the lowest point of a function
- To minimise , set .
- For an upward parabola (a > 0) this gives the bottom: , .
- A parabola is convex (bowl-shaped), so this point is the global minimum.
Worked example
- : , and .
- This calculation gives the exponent in the tail bound.
0.7 "There exists" versus "for all", and complements
- ∃ means "there exists at least one"; ∀ means "for all".
The complement (opposite) of "∃ a bad pair" is "∀ pairs are good".
So .
- "∃ a bad pair" is the union of the events "pair 1 is bad", "pair 2 is bad", …, so the union bound applies.
With n points there are pairs, which is less than .
For n = 1,000 that's 499,500 pairs.
0.8 δ: the failure probability you are willing to accept
- "With probability at least 1 − δ" means "the guarantee fails at most a fraction δ of the time". δ = 0.01 is a 1 % chance of failure (99 % success); δ = 0.001 is 99.9 %.
- You choose δ, just as you choose ε.
0.9 Orthonormal matrices and the SVD
- The ideaThe SVD separates a matrix into three operations: rotate, stretch along the axes, rotate again.
- That decomposition is the singular value decomposition.
An orthonormal (orthogonal) matrix Q has .
It is a rotation (possibly with a reflection): it never changes lengths, .
- SVD: any k × d matrix is , with U a k × k orthonormal matrix, V a d × d orthonormal matrix, and Σ a k × d "diagonal" matrix with on its diagonal and zeros elsewhere.
The are the singular values.
Their squares are the eigenvalues of .
- Useful fact: (the sum of all squared entries).
Worked example
- (2 × 3) is already in SVD form: U = I, V = I, σ₁ = 3, σ₂ = 2.
- It takes (a, b, c) to (3a, 2b): it stretches the first axis 3×, the second 2×, and throws the third away.
- Check: 3² + 2² = 13 = sum of squared entries.
0.10 A uniformly random direction
- Draw with independent entries and set .
- Then r is a uniformly random unit vector: every direction is equally likely, because the bell curve looks the same from every angle.
- Lesson 3's experiment uses exactly this recipe.
- Each coordinate of r has (the d squares add to 1, and they are all alike), so a typical coordinate is about in size.
But individual coordinates still vary a lot: for large d, behaves like an number.
What concentrates is a sum of many squares: .
Key points to remember
- For the upper-tail proof, choose λ .
- The simpler Taylor bound is valid at λ when .
- Orthogonal transformations can include reflections; both rotations and reflections preserve length.
