Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Answer Solution For the detailed Sol...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started