How is the least-squares solution x* defined when Ax=b has no exact solution?
Conditions
- The system is inconsistent (no exact solution exists)
- Distance is measured by the standard Euclidean norm
Reasoning, step by step
- Acknowledge that exact equality is impossible because .
- Define the objective as making 'as close as possible' to .
- Formalize 'closeness' using the vector length (norm) of the difference: minimize .
- Expand the squared norm into a sum of squares: , where .
- Identify as the least-squares estimate based on this minimization.
Example
The board displays 'minimize ||b - Ax*||' and expands it to the sum of squared differences between the components of b and the components of v (where v=Ax*), labeling x* as the least squares estimate.
Common misconceptions
- Believing that finding a least-squares solution means finding an exact solution to the original inconsistent system.
- Thinking that minimizing the norm is different from minimizing the sum of squares (they are equivalent for the minimizer).
Watch the explanation
Connected concepts
Explore next
Related questions
The least-squares fit is identified with the orthogonal projection of onto because the goal of least squares is to find the vector in the subspace that is closest to . A fundamental geometric property of subspaces states that the unique closest point in a subspace to an external vector is its orthogonal projection.
Conditions: is a subspace of ; ; Distance is measured by the Euclidean norm
The solution to the normal equations is considered the least-squares solution because it satisfies the necessary and sufficient condition for minimizing the residual norm . The derivation shows that minimizing this norm is equivalent to requiring the residual to be orthogonal to the column space .
Conditions: The original system may be inconsistent; has a solution
Every product is a member of the column space because matrix-vector multiplication is defined as a linear combination of the columns of . Specifically, if and , then .
Conditions: is an matrix; ; is the span of the columns of
The equation has no solution because solving it is equivalent to finding weights such that . The column space is defined as the set of all possible linear combinations of the columns of .
Conditions: is an matrix; and ; denotes the column space of
Minimizing the Euclidean norm is equivalent to minimizing its square, . The squared norm expands algebraically into the sum of the squared differences of corresponding components: , where .
Conditions: ; Standard Euclidean norm is used;
Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.