Least Squared Error Solution
Explore how to calculate and interpret the least squared error solution in linear regression problems. Learn to minimize the sum of squared errors of a linear system using vectorized notation and matrix operations. Gain hands-on experience applying these concepts with Python functions like pseudo-inverse and least squares solving to approximate solutions, even for inconsistent systems.
Squared error
Squared distance is also known as squared error. Consider a linear equation in 's:
The squared error (squared distance) on a given point, , is defined as:
Note: In the case of , the sum of squared errors=0. This implies that we’re able to find an exact solution.
Sum of squared errors
Consider a linear system with equations and unknowns and the corresponding squared errors on a point, :
| Linear System | Sum of Squared Distances |
|---|---|