Question: a X y The following data is given -2 -1 1.5 3.2 0 4.5 1 3.4 a x+b = 2 2 that best fit
a X y The following data is given -2 -1 1.5 3.2 0 4.5 1 3.4 a x+b = 2 2 that best fit (1) (5 point) Determine the coefficients a and b in the function f(x) the data. What is the corresponding value of the squares of the residuals or Sp i (yi -f(x;))? Here, we introduce the coefficient of determination r = St-Sr, where = St St = i(y - y) and y is the arithmetic mean of y. Calculate . (2) (5 points) Determine the coefficients of the quadratic polynomial that best fit the data using the polynomial regression. Check your answer with the MATLAB predefined function polyfit. Calculate S, and r. (3) (5 points) Plot the original data in circular marker (O), the fitted data in (1) in red solid line, and the fitted data in (2) in blue solid line in one figure. Which fit do you think better between (1) and (2)? Explain your answer.
Step by Step Solution
There are 3 Steps involved in it
Answer Solution For the detailed Sol... View full answer
Get step-by-step solutions from verified subject matter experts
