Lack-of-fit Sum of Squares - Sketch of The Idea

Sketch of The Idea

In order for the lack-of-fit sum of squares to differ from the sum of squares of residuals, there must be more than one value of the response variable for at least one of the values of the set of predictor variables. For example, consider fitting a line

by the method of least squares. One takes as estimates of α and β the values that minimize the sum of squares of residuals, i.e., the sum of squares of the differences between the observed y-value and the fitted y-value. To have a lack-of-fit sum of squares that differs from the residual sum of squares, one must observe more than one y-value for each of one or more of the x-values. One then partitions the "sum of squares due to error", i.e., the sum of squares of residuals, into two components:

sum of squares due to error = (sum of squares due to "pure" error) + (sum of squares due to lack of fit).

The sum of squares due to "pure" error is the sum of squares of the differences between each observed y-value and the average of all y-values corresponding to the same x-value.

The sum of squares due to lack of fit is the weighted sum of squares of differences between each average of y-values corresponding to the same x-value and the corresponding fitted y-value, the weight in each case being simply the number of observed y-values for that x-value. Because it is a property of least squares regression that the vector whose components are "pure errors" and the vector of lack-of-fit components are orthogonal to each other, the following equality holds:


\begin{align}
&\sum (\text{observed value} - \text{fitted value})^2 & & \text{(error)} \\
&\qquad = \sum (\text{observed value} - \text{local average})^2 & & \text{(pure error)} \\
& {} \qquad\qquad {} + \sum \text{weight}\times (\text{local average} - \text{fitted value})^2. & & \text{(lack of fit)}
\end{align}

Hence the residual sum of squares has been completely decomposed into two components.

Read more about this topic:  Lack-of-fit Sum Of Squares

Famous quotes containing the words sketch and/or idea:

    the vagabond began
    To sketch a face that well might buy the soul of any man.
    Then, as he placed another lock upon the shapely head,
    With a fearful shriek, he leaped and fell across the
    picture—dead.
    Hugh Antoine D’Arcy (1843–1925)

    If you think you are emancipated, you might consider the idea of tasting your menstrual blood—if it makes you sick, you’ve a long way to go, baby.
    Germaine Greer (b. 1939)