The method used to obtain linear regression for a line expressed in explicit form can be generalized to any polynomial function of the form:
| (4.103) |
Setting the gradient to zero therefore means solving the associated system:
Alternatively, one can use the theory of the pseudoinverse (Section 1.1) and directly use equation (4.102) to construct an overdetermined linear system:
| (4.105) |
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