Question

We would like to fit the quadratic curve y = β1 + β2x + β3x2 to a set of points (x1, y1), (x2, y2), . . . , (xn, yn) by the method of least squares. To do this, let
(a) By setting the three first partial derivatives of h with respect to β1, β2, and β3 equal to 0, show that β1, β2, and β3 satisfy the following set of equations (called normal equations), all of which are sums going from 1 to n:
(b) For the data
Show that
a = −1.88, b = 9.86, and c = −0.995.
(c) Plot the points and the linear regression line for these data.
(d) Calculate and plot the residuals. Does linear regression seem to be appropriate?
(e) Show that the least squares quadratic regression line is 6y = −1.88 + 9.86x − 0.995x2.
(f) Plot the points and this least squares quadratic regression curve on the same graph.
(g) Plot the residuals for quadratic regression and compare this plot with that in part (d).


$1.99
Sales0
Views33
Comments0
  • CreatedOctober 12, 2015
  • Files Included
Post your question
5000