Write a matlab script to determine the linear least squares regression coefficients for the x and y data in the attached image. Also perform all calculations and requirements detailed in the image.
Repeat everything written above, but in Excel. Explicitly calculate each statistical value (a0, a1, St, Sr, r^2). Compare these with the matlab values.
Then, use the Excel built-in linear regression trend line and again compare with the two sets of computed values. (so compare the built in regression trend line data with the two previously calculated sets of values)