Question: How do I do this in Python? Problem 4 Write a function using gradient descent method to do multiple linear re- gression: gradient_MLR.py. For starting

 How do I do this in Python? Problem 4 Write a
How do I do this in Python?

Problem 4 Write a function using gradient descent method to do multiple linear re- gression: gradient_MLR.py. For starting point, use a vector of all O's. Use step length parameter a = le - 6. The function should take as input at least 3 arguments: design matrix X, response vector y, and starting point 80 (as a vector of all zeros). Run 1000 iterations and return vector of estimates: B and the objective function value at the final estimate. You can use the data for Problem 2 as testing instances. (10pts)

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!