For a simple linear fit with an intercept, write Show that the fitted slope is and that Then evaluate on the four points , , and , to two decimal places, and name the two sections this identity connects.
Worked solution
The fitted line passes through the point of averages, so its prediction is , and the residual is Squaring and summing gives Complete the square in : The squared term cannot be negative, so the smallest residual sum sits at , the slope of section 14.1. Substituting that value, Section 14.1 defines , so The right side is the square of the sample correlation , so for a simple fit with an intercept . For the four points, and . The products are , , and , so . The input deviations give , and the output deviations give . Therefore The identity connects section 14.1, which defines from the residual and total sums of squares, with section 14.2, which reads the residuals as evidence about the model. It holds only when the model has an intercept and only for one input; with several inputs is not the square of any single correlation.