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

Write a function in Python to perform gradient descent method for ridge 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 (by default a vector of all zeros), value for tunning parameter. Run 1000 iterations and return vector of estimates and the objective function value at the final estimate.

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!