Question: y 1. Plot 10 samples, spaced uniformly in range [0, 1], with the function sin(2x) with a Gaussian noise like below. 1.5 -0.5 -1

y 1. Plot 10 samples, spaced uniformly in range [0, 1], with

y 1. Plot 10 samples, spaced uniformly in range [0, 1], with the function sin(2x) with a Gaussian noise like below. 1.5 -0.5 -1 0.5 1 -1.5 0 0.2 0.4 0.6 0.8 1 2. Generate regression lines with polynomial basis function with order 1, 3, 5, 9, and 15. 3. Add 2 or 3 points of exceptional outliers that do not follow sin(2x) and then generate regression lines with polynomial basis function with order 1, 3, 5, 9, and 15. 4. For the case including the outliers, generate the regression lines with the L2 regularization term with order 9 and 15. Show how the lines are changed with respect to . Generate the regression lines with the L1 regularization term and compare the lines with L2 regularization. 5. Plot 100 samples with the function sin(2x) instead of 10 samples, and then generate the regression lines with order 1, 3, 5, 9, and 15.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!