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.98) |
Setting the gradient to zero therefore amounts to solving the associated system:
Alternatively, the theory of the pseudoinverse can be used (Section 1.1), directly applying equation (4.97) to construct an overdetermined linear system:
| (4.100) |
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 their numerical stability.
Paolo medici