|Course:||MA121: Introduction to Statistics|
|Printed by:||Guest user|
|Date:||Wednesday, August 17, 2022, 10:30 AM|
This section discusses the notion of influence and describes what makes a point influential. It introduces the concepts of leverage and distance, which are useful to detect influential observations.
- Define "influence"
- Describe what makes a point influential
- Define "leverage"
- Define "distance"
It is possible for a single observation to have a great influence on the results of a regression analysis. It is therefore important to be alert to the possibility of influential observations and to take them into consideration when interpreting the results.
The influence of an observation can be thought of in terms of how much the predicted scores for other observations would differ if the observation in question were not included. Cook's D is a good measure of the influence of an observation and is proportional to the sum of the squared differences between predictions made with all observations in the analysis and predictions made leaving out the observation in question. If the predictions are the same with or without the observation in question, then the observation has no influence on the regression model. If the predictions differ greatly when the observation is not included in the analysis, then the observation is influential.
A common rule of thumb is that an observation with a value of Cook's D over 1.0 has too much influence. As with all rules of thumb, this rule should be applied judiciously and not thoughtlessly.
An observation's influence is a function of two factors: (1) how much the observation's value on the predictor variable differs from the mean of the predictor variable and (2) the difference between the predicted score for the observation and its actual score. The former factor is called the observation's leverage. The latter factor is called the observation's distance.
Calculation of Cook's D (Optional)
The first step in calculating the value of Cook's D for an
observation is to predict all the scores in the data once using a
regression equation based on all the observations and once using all the
observations except the observation in question. The second step is to
compute the sum of the squared differences between these two sets of
predictions. The final step is to divide this result by 2 times the MSE.
The leverage of an observation is based on how much the observation's value on the predictor variable differs from the mean of the predictor variable.
The greater an observation's leverage, the more potential it has to be
an influential observation. For example, an observation with a value
equal to the mean on the predictor variable has no influence on the
slope of the regression line regardless of its value on the criterion
variable. On the other hand, an observation that is extreme on the
predictor variable has the potential to affect the slope greatly.
Calculation of Leverage (h)
The first step is to standardize
the predictor variable so that it has a mean of 0 and a standard
deviation of 1. Then, the leverage (h) is computed by squaring the
observation's value on the standardized predictor variable, adding 1,
and dividing by the number of observations.
The distance of an observation is based on the error of prediction for the observation: The greater the error of prediction, the greater the distance. The most commonly used measure of distance is the studentized residual. The studentized residual for an observation is closely related to the error of prediction for that observation divided by the standard deviation of the errors of prediction. However, the predicted score is derived from a regression equation in which the observation in question is not counted. The details of the computation of a studentized residual are a bit complex and are beyond the scope of this work.
Even an observation with a large distance will not have that much influence if its leverage is low. It is the combination of an observation's leverage and distance that determines its influence.
Table 1 shows the leverage, studentized residual, and influence for each of the five observations in a small dataset.
Table 1. Example Data.
|h is the leverage, R is the studentized residual, and D is Cook's measure of influence.|
Observation A has fairly high leverage, a relatively high residual, and moderately high influence.
Observation B has small leverage and a relatively small residual. It has very little influence.
Observation C has small leverage and a relatively high residual. The influence is relatively low.
Observation D has the lowest leverage and the second highest residual. Although its residual is much higher than Observation A, its influence is much less because of its low leverage.
Observation E has by far the largest leverage and the largest residual. This combination of high leverage and high residual makes this observation extremely influential.
Figure 1 shows the regression line for the whole dataset (blue) and the regression line if the observation in question is not included (red) for all observations. The observation in question is circled. Naturally, the regression line for the whole dataset is the same in all panels. The residual is calculated relative to the line for which the observation in question is not included in the analysis. The most influential observation is Observation E for which the two regression lines are very different. This indicates the influence of this observation.
Figure 1. Illustration of leverage, residual, and influence. The circled points are not included in the calculation of the red regression line. All points are included in the calculation of the blue regression line.
Source: David M. Lane, https://onlinestatbook.com/2/regression/influential.html
This work is in the Public Domain.
Question 1 out of 2.
Which of the following statements are true about studentized residuals?
They are the deviations of the observed values from the fitted line.
They're closely related to the errors of prediction of the observation.
Large studentized residuals will lead to large influence on the regression model in all circumstances.
Question 2 out of 2.
Which of the following would have the largest influence? (h is the leverage, R is the studentized residual)
X:1, Y:2, h:0.39, R:1.2
X:2, Y:3, h:1.23, R:-0.13
X:3, Y:5, h:1.21, R:-1.68
- The Studentized residual measures the distance which is based on the
error of the prediction for the observation. It is the combination of an
observation's leverage and distance that determines its influence.
- It is the combination of an observation's leverage and distance that determines its influence.