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
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
Get step-by-step solutions from verified subject matter experts
