Least Squares
- Situation: Fitting an inconsistent system
- Learning targets: Least squares · Normal equations · Uniqueness
- Convention: Declared field ℝ or ℂ; column vectors; rightmost matrix first; dimensionless data unless units stated · Finite-dimensional inner product spaces; first slot linear, second conjugate-linear; standard inner product for numerical examples
Core concepts
- Least squares: minimize ‖Ax−b‖²; fitted output as orthogonal projection onto range A
-
Normal equations: A*(b−Ax̂)=0 ⇔ AAx̂=Ab; valid also with dependent columns
-
Uniqueness: fitted output always unique; coefficients unique exactly for full column rank; then x̂=(AA)⁻¹Ab
-
Conditioning: full-column-rank A giving κ₂(A*A)=κ₂(A)²; QR/SVD avoiding explicit normal-equation formation in sensitive computations
Worked example
Practice
- Preparation: Paper or calculator; example inputs and ordered bases; exercise cases below as the calculation dataset
- Prediction: Result, dimensions and applicable conditions before calculation
- Calculation: First two exercises by hand → substitution into defining equations → exact and rounded checks separately
- Record: Assumed inputs and calculated results; no physical measurements; optional software output recorded separately
- Next step: Inputs, basis order and checked identities retained for the next chapter
| Case | Prediction | Exact result and reason | Software check |
|---|---|---|---|
- Optional extension: One changed input or removed hypothesis → recalculation → comparison of the conclusion
Exercises
- Problem:
- Problem:
- Problem: Line y=c₀+c₁t through data (0,1),(1,2),(2,2): least-squares coefficients
Answers and checks
- Answer:
- Answer:
- Answer:
Connections
- Previous: Orthogonal Projection
- Next: Pseudoinverse
- Overview: Linear Algebra