a) The square error would be the following:
b) Now the normal equations can be found by differentiating with respect to the coefficients and then take the RHS to be 0. Doing this, we obtain the following:
Trasforming it into a matrix equation, we get that
where
c) The following command in MATLAB solves the system from part b)
>linsolve([5.8726 3.7836;-3.7836 2.926],[0.414;1.952])
ans =
-0.19601
0.41366
10. This data set is super small. It's really kinda cute. t 1.4 2.7 3.8 y...
(I) Let's start with very simple data table 1.0 2.0 3.0 4.0 5.0 6.0 -1 ± 1.8 4±2.0 9+ 1.0 14 + 0.8 19 s 0.8 24 + 1.2 2% 1.8 34 ± 2.0 7.0 8.0 9.0 1. Plot a graph of y vs. X on a piece of graph paper 2. Is it a straight line? Draw the best-fit line. 3. Compute the slope and y-intercept for this line. Write the equation for y in terms of x using...