***This document uses HTML 3.0 tags as supported by Netscape 2.0.***

Simple Linear Regression - Weighted Least Squares

In figure 7 the graph of Y versus X exhibits another type of assumption violation.

The variability of the Ys appears to increase with increasing X. A linear least squares fit to these data results in the graph of studentized residuals versus X shown in figure 8. Seemingly the variability of the errors increases with X; the scatter of points does not at all approximate a horizontal band.

Under these circumstances weighted least squares methodology should be applied where each X, Y data point potentially receives a different weight. The appropriate weight to assign is one which is proportional to how well a given Y is known or inversely proportional to the variability of Y. In the case under consideration, figure 8 indicates that the variability of the errors (and thus Ys) increases almost linearly with X. A potential weight might thus be 1.0/X.

A weighted least squares problem may be converted to a ordinary least squares problem. If for the equation

Yi = a + b Xi

the variability of the errors (and thus Y) is proportional to Wi (a weighted least squares problem) the equation

can be fit by ordinary least squares methodology. For the example under consideration Wi = Xi so that the appropriate equation is

that is, the response variable Yi/(square root Xi) would be fit to two regressor variables 1.0/(square root Xi) and (square root Xi) with the intercept excluded from consideration. This is a multiple linear regression problem.

Note that applying a transformation changes the errors in the underlying equation as well. Residuals will need to be transformed to be properly interpreted. For the example just given one would plot residuals/(square root Xi) versus (square root Xi).

One special weighted least squares problem can be analyzed using the formulas presented earlier. When the variability of Y increases proportional to X2 the appropriate equation to fit is

which can be rewritten as

Y' = b0 + b1 X'

with Y' = Y/X, X' = 1/X, b0 = b, and b1 = a. The equations presented earlier can be used to estimate b0 and b1 using Y' and X'. One must be careful, however, to ascribe the correct interpretation to bhat0 and bhat1.


[Previous] [TOC] [Next]