Linear Systems and Least Squares
Regression is the tool researchers use most, and interviewers test the linear algebra underneath it: "derive the least squares estimator", "what does the normal equation mean geometrically?", "why not just invert the matrix?". The answers follow from one picture. The fitted values are the closest point to the data that the model can reach, and the residual points straight away from everything the model can express.
Linear systems
A system with a square matrix has exactly one solution when has full rank. When is rank-deficient, the system has either no solution or infinitely many, depending on .
Regression is the other case: more equations than unknowns. With observations and coefficients, , the system usually has no exact solution, because data points do not lie exactly on a -parameter model. So we choose the that makes the error as small as possible.
The rest of this lesson is for subscribers
Unlock every lesson in Basics of Quantitative Finance, and every other premium course.
Subscribe to continueTest your knowledge
Keep reading Basics of Quantitative Finance
30 lessons in this course, and every other premium course, on one subscription.
- Every lesson in every course, with the worked examples and interactive simulators
- Graded questions on every lesson, with explanations for the wrong answers as well as the right one
- The trainers, timed assessments and brainteaser library that go with them