Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Regularization Methods: Consider the function f(x)=sin2x+2cosx on the interval [0,5]. In answering this question, follow the example we presented in class. Moreover, you need not
Regularization Methods: Consider the function f(x)=sin2x+2cosx on the interval [0,5]. In answering this question, follow the example we presented in class. Moreover, you need not split the data into train and test subsets. (a) Pick at least 50 sample points from the interval [0,5]. For the sample points, add some random noise - chosen from a normal distribution - to the target y=f(x). Record the values of x and y in a data-frame. (b) Construct all monomials of x up to power 11. (c) Perform the ordinary polynomial regression (up to order 11) to predict y. Present the coefficients of regression for all monomials. (d) Repeat part (c) with the Ridge regression. What value would you consider for the penalty factor? Present the coefficients of regression for all monomials and compare them to coefficients obtained in part (c). (e) Repeat part (c) with the LASSO regression. What value would you consider for the penalty factor? Present the coefficients of regression for all monomials and compare them to coefficients obtained in parts (c) and (d). (f) If the LASSO regression you performed in part (e) is viewed as a feature selection principle, what monomials are the most significant ones for the target y ? (g) Compare your answer in part (f) with the Taylor expansion of f(x) around 0
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started