‘The basic formula:
The training data:
Objective function:
In here,
We get the optimal weight
Next, we have to use Standard Results of Matrix Calculus, equation (4) and (1).
We set
Note that the last line is only applicable if
To determine the fitness of the model, we have R2 Goodness of Fit.