We would like to fit the quadratic curve y = 1 + 2x + 3x2 to a
Question:
(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).
Step by Step Answer:
Probability And Statistical Inference
ISBN: 579
9th Edition
Authors: Robert V. Hogg, Elliot Tanis, Dale Zimmerman