For the data
find the quadratic regression equation and the coefficient of determination . Show the derivation.
Realise first that no least-squares machinery is needed. A quadratic has three free parameters , , , and there are exactly three data points. Three points with distinct -values determine a unique parabola, so the least-squares fit is the interpolating parabola: the minimum possible sum of squared residuals is , and it is attained. This is why the whole problem reduces to solving a linear system.
Substitute each point into .
Eliminate by subtracting consecutive equations. Differencing removes immediately because its coefficient is the same in all three:
Difference once more to find , then back-substitute.
The regression equation is
The double differencing is the second difference of the data ( per step of ), which is why came out negative: the increments are shrinking, so the curve bends downward.
Compute the fitted values and the residual sum of squares.
Every fitted value equals its observed value, so
Finish with — and check the denominator is not zero. With ,
so is well defined and
Read the result with the right amount of scepticism. here is a structural certainty, not evidence that the quadratic model is good. Any three points, however noisy, give for a quadratic fit, exactly as any two points give for a straight line. To learn anything about model quality you need more data points than parameters — with and parameters there are zero residual degrees of freedom, and the adjusted is undefined.
Need to solve a different problem like this? Open the solver →