7.7 Least Squares Problems
In this section, we study computational methods for finding least squares solutions of overdetermined systems. Let A be an matrix with and let . We consider some methods for computing a vector x that minimizes .
Normal Equations
We saw in Chapter 5 that if satisfies the normal equations
then is a solution to the least squares problem. If A is of full rank (rank n), then is nonsingular and hence the system will have a unique solution. Thus, if is invertible, one possible method for solving the least squares problem is to form the normal equations and then solve them by Gaussian elimination. An algorithm for doing this would have two main parts.
Compute and
Get Linear Algebra with Applications, 10th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.