Discrete Least Squares Approximation
Polynomial Least Squares
Given data points we can find a polynomial
of up to degree using the least squares procedure to minimize error.
To do so, we setup a linear system of normal equations to solve for the unknown constants. These are
This is derived from the fact that the error is
The system of equations is produced to minimize by setting for each
Continuous Least Squares Approximation
If we have a function we can use a similar method to approximate it with a polynomial of degree This time, our normal equations are, for each