Added Variable Plot
Study guide: Exam MAS-I
An Added Variable Plot (partial regression plot) is a plot of the response adjusted for all the other predictors against one predictor x_j adjusted for all the other predictors. It shows the effect of x_j in the full multiple regression. The added variable plot for x_j is built in three steps:
- Regress the response
yon all the predictors exceptx_j, and keep the residualse_i^{(y)}. - Regress
x_jon the same other predictors, and keep the residualse_i^{(x_j)}. - Plot
e_i^{(y)}againste_i^{(x_j)}.
The least squares line through the plot is
e_i^{(y)} = \hat{\beta}_j\, e_i^{(x_j)} + e_i
\hat{\beta}_jis the coefficient ofx_jin the full multiple regression.e_iis the residual of observationiin the full multiple regression.
The line has intercept zero, because residuals from a least squares regression with an intercept average zero. By the Frisch–Waugh result, its slope is the full model's coefficient \hat{\beta}_j, and its residuals are the full model's residuals.
A simple regression of claim cost on vehicle value alone gives a slope of 1.8. In the multiple regression of claim cost on vehicle value and driver age, the coefficient of vehicle value is 0.6. What line is fitted through the added variable plot for vehicle value?
- The slope of the line is the coefficient in the full multiple regression, 0.6.
- The intercept of the line is zero.
- The simple regression's slope of 1.8 is a marginal effect, which includes what vehicle value shares with driver age, so it differs from the adjusted coefficient.
Leverage and outliers in an added variable plot
A point far along the horizontal axis has a value of x_j that is unusual given the other predictors, so it has high leverage for \hat{\beta}_j. A point far from the fitted line is an outlier. A point that is both can move the slope a great deal and should be investigated.
Partial residual plot
An added variable plot is a weak guide to the functional form of x_j, because its horizontal axis is not x_j and its construction forces the relationship to be linear. The plot for judging the functional form, or a needed transformation, is the partial residual (component plus residual) plot. Its vertical coordinate is
e_i + \hat{\beta}_j x_{ij}
e_iis the residual of the full model, the working residual in a GLM.\hat{\beta}_j x_{ij}is the fitted linear contribution ofx_j.
This is plotted against x_{ij} itself. Curvature, or a systematic departure from the fitted line, shows that the linear term in x_j is not appropriate. One remedy is to group x_j into bins treated as a categorical predictor, so that each bin has its own coefficient, with the bin boundaries placed where the partial residuals change their pattern.
In a frequency GLM, the partial residual plot for driver age is flat from age 25 to age 65 but rises steeply below 25 and above 65. What should replace the linear term in driver age?
- The partial residuals curve away from the fitted line, so a single linear term is not appropriate.
- The pattern changes at about age 25 and age 65.
- Group driver age into three bins, below 25, 25 to 65, and above 65, each with its own coefficient.