The method applied to obtain linear regression to a line expressed in explicit form can be generalized to any polynomial function of the type:
| (3.81) |
Setting the gradient to zero means solving the associated system:
Alternatively, it is possible to leverage the theory of the pseudoinverse (see section
) and directly use equation (3.80) to construct an overdetermined linear system:
| (3.83) |
As will be seen in other parts of this book, matrices such as the Vandermonde matrix, where the different columns have varying orders of magnitude, are ill-conditioned and require normalization to enhance their numerical stability.
Paolo medici