Least squares as orthogonal projection
ProofFoundation⏱ 15 minClassical MLleast squaresnormal equationsprojection
Problem
Derive the normal equations from the first-order condition, and show that the hat matrix is the orthogonal projector onto . Verify that and interpret.
Write a complete argument. Every inequality you use should be one you could state precisely.
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| Solved | Problem | Field | Type | Difficulty | Time |
|---|---|---|---|---|---|
| Characterising orthogonal projectors | Foundations | Proof | 30 min | ||
| Conditional expectation minimises mean squared error | Probability | Proof | 30 min | ||
| Implement ridge and find the optimal lambda run | Classical ML | Coding | 1 hour | ||
| Prove the Gauss–Markov theorem | Classical ML | Proof | 30 min | ||
| Ridge regression in the SVD basis | Classical ML | Proof | 30 min |