Question: Write a function in Python to perform gradient descent method for lasso regression with no intercept. For a starting point, use a vector of all

Write a function in Python to perform gradient descent method for lasso regression with no intercept. For a starting point, use a vector of all 0's and use a step length parameter.The function should take as input at least 4 arguments: design matrix X, response vector y, starting point (a vector of all zeros), value for the tuning parameter. Run 1000 iterations and return vector of estimates and the objective function value at the final estimate.

The design matrix is 10 by 14 and the response vector has a length of 14.

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 Databases Questions!