Question: Load the data stored in the file synthdata.mat. Fit a fourth-order polynomial function (-f(x ; mathbf{w})=w_{0}+w_{1} x+w_{2} x^{2}+w_{3} x^{3}+w_{4} x^{4}-) to this data. What do
Load the data stored in the file synthdata.mat. Fit a fourth-order polynomial function \(-f(x ; \mathbf{w})=w_{0}+w_{1} x+w_{2} x^{2}+w_{3} x^{3}+w_{4} x^{4}-\) to this data. What do you notice about \(w_{2}\) and \(w_{4}\) ? Use 10 -fold cross-validation to choose the polynomial order (between 1 and 4).
Step by Step Solution
3.39 Rating (152 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
