Question: Q1. Using the method of least squares, derive the normal equations for the model Y^=b0+b1X. Evaluate the coefficients using the data below Q2. Write a

Q1. Using the method of least squares, derive the normal equations for the model Y^=b0+b1X. Evaluate the coefficients using the data below Q2. Write a MATLAB function that take two vectors x and y of data and return the value of linear fitting curve parameter intercept b and slop x using the gradient decent algorithm. Then test you function on the data below
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
