Least Squares
When a system of equations has more equations than unknowns, no exact solution typically exists. The least squares method finds the best approximate solution by minimizing the total squared error between the left and right-hand sides. This chapter covers two complementary approaches: the normal equations (derived by multiplying both sides by ) and QR decomposition (which uses an orthonormal factorization to solve the same problem with better numerical properties).
Learning Objectives
By the end of this chapter you should be able to:
- Recognize an overdetermined system and explain why a direct solution is generally not possible.
- Define the residual and state what quantity the least squares method minimizes.
- Derive the normal equations by multiplying both sides of by .
- Set up and solve the normal equations for a polynomial fitting problem using either an inverse matrix or Gaussian elimination.
- Define orthogonality () and normality () and verify that a given set of vectors is orthonormal.
- State the Kronecker delta and use it to express orthonormality compactly.
- Describe the QR decomposition and explain the role of and .
- Apply the Gram-Schmidt process to compute from the columns of .
- Derive the reduced system and solve it by back substitution.
- Prove that and that the Gram-Schmidt process produces .
Chapter Sections
| # | Section | Key Concepts |
|---|---|---|
| 1 | Why Least Squares | Overdetermined systems, residuals, minimizing squared error, best-fit line |
| 2 | Normal Equations | Deriving , polynomial fitting examples, Gaussian elimination |
| 3 | Orthonormality | Orthogonality, normality, Kronecker delta, verification |
| 4 | QR Decomposition | , Gram-Schmidt process, derivation of , proofs |
| 5 | QR Decomposition: Worked Example | Full step-by-step QR solution of a polynomial fitting problem |