Chapter 5 Linear Least Squares