LINEAR-ALGEBRA ยท Unit 15 ยท Video 3 ยท Interactive Practice
| Formula | Name | Description |
|---|---|---|
| Normal equations | Solves the least-squares problem | |
| Projection | Closest vector in to | |
| Error vector | Must satisfy | |
| Orthogonality condition | Error perpendicular to every column of |
No line hits all three points; the best fit is the one that minimizes the total squared residual .
is 's shadow on the plane ; the error is shortest exactly when it meets the plane at a right angle.
is a convex bowl, and the normal equations jump straight to its single lowest point.
Question 1
For data points , , with model , we write the system as . What is the right-hand side vector ?
โ Correct! The vector collects the -values from each data point.
โ Not quite. Each equation is , so is the column of -values.
Solution:
Substituting each data point into :
In matrix form:
The right-hand side collects the -values.
Common errors:
Question 2
True or False: If (the projection is perpendicular to the error), then we are guaranteed to have the least-squares solution.
โ Correct! The condition is necessary but not sufficient. We need .
โ Not quite. Being perpendicular to alone doesn't guarantee perpendicularity to the entire column space plane.
Solution: False
Checking only verifies perpendicularity to one vector ().
The least-squares condition requires:
This means must be perpendicular to every vector in the column space โ both and , and all their linear combinations.
Many vectors in can be perpendicular to without being perpendicular to the entire plane. Only the vector perpendicular to the whole column space minimizes .
Question 3
The optimal error vector is and the second column of is .
What is ?
โ Correct! The dot product is zero, confirming as required by .
โ Not quite. Compute carefully: . Try converting all terms to sixths.
Solution:
Converting to sixths:
This confirms , which is one of the two conditions in . (The other condition, , also holds.)
Question 4
In the "two pictures" framework, the column space in the vector space picture corresponds to what in the data space picture?
โ Correct! Each point in Col() corresponds to the fitted values of a line . The whole column space represents all possible linear fits.
โ Not quite. Think about what produces as you vary and โ each choice gives a different line and different fitted values.
Solution:
The column space consists of all vectors as and vary. Each such vector gives fitted values:
These are the values of the line evaluated at .
So = the set of all possible fitted lines .
The full two-picture correspondence:
| Data Space | Vector Space |
|---|---|
| Data points | Vector |
| All possible lines | Column space |
| Fitted values on best-fit line | Projection |
| Vertical residuals | Error vector |
| Minimize | Minimize |
Solved: 0 / 4