Step 1: Assemble the normal equation
The normal equation for finding the best fit polynomial is given by:
\[ A^T A x = A^T b \]
where A is the matrix of the input data points, x is the vector of coefficients of the polynomial, and b is the vector of output data
Show more…