7.7 Least Squares Problems

In this section, we study computational methods for finding least squares solutions of overdetermined systems. Let A be an m×n matrix with mn and let bRm. We consider some methods for computing a vector x that minimizes bAx22.

Normal Equations

We saw in Chapter 5 that if x^ satisfies the normal equations

ATAx=ATb

then x^ is a solution to the least squares problem. If A is of full rank (rank n), then ATA is nonsingular and hence the system will have a unique solution. Thus, if ATA 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.

  1. Compute B=ATA and c=ATb

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.