Chapter 6. Some Least Squares Problems