chapter 4, p140 - Linear Regression
This code shows linear regression on page 140 on the text book "Pattern Recognition and Machine Learning" by Christopher Bishop
This code describes linear regression of sine function with polynomial.
Lamda value is regularization coefficient that controls the relative importance of the data-dependent error and regularization term.
The regression result shows optimum result when lamda value is set to "e^(-0.31)"
Download the MATLAB code and check the result.
Download MATLAB code here :