Weighted regression is a method that you can use when the least squares assumption of constant variance in the residuals is violated (heteroscedasticity). With the correct weight, this procedure minimizes the sum of weighted squared residuals to produce residuals with a constant variance (homoscedasticity).

Weighted regression is not an appropriate solution if the heteroscedasticity is caused by an omitted variable.

Determining the correct weight to use can be a challenging task. The ideal weight is the reciprocal of the variance of the error. However, this is usually incalculable and other approaches must be used. Alternative approaches include using:

- The reciprocal of a predictor or squared predictor if the variance is proportional to a predictor. Use experience combined with trial and error to determine what works.
- Values based on theory, the literature, or previous research.

Usually, observations with small variances should have relatively large weights and observations with large variances should have relatively small weights.

Suppose your regression model predicts the annual number of traffic accidents in different cities. Because more populous cities tend to have more accidents, the residuals for larger cities also tend to be larger. One approach for resolving this is to use the reciprocal of each city's population for the weight.

Specifying a column of weights does not affect the degrees of freedom, unless you specify a weight of zero for one or more observations. Giving an observation a weight of zero removes it from the analysis and thus decreases your degrees of freedom.

Specifying a column of weights effects the sums of squares and parameter estimates in the following ways:

- The sums of squares become weighted sums of squares.
- A weighted mean is used in the total sum of squares.
- A weighted least squares criterion is used to estimate the parameters.

The graph created with the following steps will not contain the regression equation, s, R-squared, and adjusted R-squared (adj) as the Fitted Line Plot created with

does. However, Minitab prints this information in the Session window, and you can copy and paste it onto the graph.Suppose the responses are in C1, predictors are in C2, and weights are in C3:

- Choose
- In Responses, enter
`C1`. In Continuous predictors, enter`C2`. - Click Options.
- In Weights, enter
`C3`. Click OK. - Click Storage.
- Check Fits.
- Click OK in each dialog box.
- Choose .
- Click Simple. Click OK.
- In Y variables, enter
`C1`. - In X variables, enter
`C2`. Click OK. - Right-click the scatterplot and choose .
- In Y column, enter the column of fits (usually named FITS1).
- In X column, enter
`C2`. Click OK.

You can change the color of the line. To make the line blue, double-click it. On the Attributes tab, under Lines, choose Custom, and choose blue from the Color drop-down list. Click OK.

You can also change the title. Double-click the title. On the Font tab, under Text, type the title that you want. Click OK.