The method used to obtain the linear regression of a line in explicit form can be generalized to any polynomial function of the form:
| (4.111) |
Setting the gradient to zero therefore means solving the associated system:
Alternatively, the theory of the pseudoinverse (Section 1.1) can be used, applying Equation (4.110) directly to construct an overdetermined linear system:
| (4.113) |
As will be seen elsewhere in this book, matrices such as the Vandermonde matrix, whose columns have different orders of magnitude, are ill-conditioned and require normalization to improve numerical stability.
Paolo medici