In: Statistics and Probability
Implement in a computer the curve fitting. Generate appropriate
data for your implementation (e.g., generate data from a polynomial
function and add noise with variance σ2). Show the mean
square error of the estimator in your implementation. What can you
say about under/over fitting (that is, when the degree of your
approximator is too small or too large for your data).