Cookmath

Least squares approximations

When Ax=b has no exact solution, least squares chooses x̂ that minimizes ||Ax−b||. The residual is perpendicular to every column of A, giving AᵀA x̂=Aᵀb.

What you will learn

A two-coefficient line fit

Objective 1: Write a fitting problem as Ax≈b

Objective 2: Solve the normal equations

Objective 3: Check residuals and squared error

A common mistake

State the assumptions before using the formula.

Review first

Continue learning

Least squares approximations

Interactive diagnosis and practice load in the learning app. You can read these lesson notes without JavaScript.