Outliers in regression
Understanding Outliers in Regression
When analyzing the relationship between two quantitative variables using a least-squares regression line (LSRL), it's crucial to identify and understand the impact of unusual observations. These unusual points are broadly categorized as outliers. An outlier is an observation that lies outside the overall pattern of the other observations. In the context of regression, an outlier can have a significant influence on the slope, y-intercept, and correlation coefficient of the LSRL.
Types of Unusual Points
Not all unusual points have the same effect on the regression line. We classify them based on their position relative to the other data points and their impact:
- Outliers in the y-direction (Residual Outliers): These points have a large residual (the difference between the observed y-value and the predicted y-value,
y - ŷ). They lie far from the regression line vertically, but their x-value might be within the range of the other x-values. While they increase the sum of squared residuals and decrease the coefficient of determination (R-squared), they often do not heavily influence the slope of the LSRL. - High-Leverage Points: These are observations with x-values that are far removed from the mean of the x-values (
x̄). A point has high leverage if its x-value is an outlier among the x-values. High-leverage points can potentially pull the regression line towards themselves. - Influential Points: An influential point is any point that, if removed, would significantly change the position (slope and/or y-intercept) of the LSRL. All influential points are high-leverage points, but not all high-leverage points are influential. A high-leverage point becomes influential if it also has a large residual or if it aligns in a way that disproportionately skews the line.
Identifying Unusual Points
Visually inspecting a scatterplot is the primary method for identifying potential outliers and influential points. Look for points that appear to be far away from the main cluster of data or that clearly don't follow the trend of the rest of the data. For residual outliers, a residual plot can be very helpful. Points with large absolute residuals on a residual plot indicate strong deviations from the regression model.
Impact of Outliers on Regression Statistics
- Correlation Coefficient (r): Outliers, especially influential points, can significantly strengthen or weaken the correlation coefficient, sometimes changing its sign. For example, a single influential point can drag the LSRL and make a weak correlation appear strong, or vice versa.
- Slope (b): Influential points, due to their high leverage and potentially large residuals, can dramatically alter the slope of the LSRL, pulling it towards themselves.
- Y-intercept (a): Changes in the slope often lead to changes in the y-intercept, as the line pivots around the mean of the data (
x̄, ȳ). - R-squared (r²): Both residual outliers and influential points typically decrease the coefficient of determination (r²), indicating that the model explains less of the variability in the response variable.
Dealing with Outliers
Once identified, the decision of what to do with an outlier depends on its nature:
- Investigate: Always check for data entry errors or measurement errors first. If an error is found, correct it or remove the point.
- Report: If the outlier is a legitimate data point, analyze the data both with and without the outlier. Report the results of both analyses and explain the outlier's impact.
- Consider Robust Methods: In some advanced statistical contexts, methods that are less sensitive to outliers might be used.
Practice questions
Which type of unusual point in a regression analysis has an x-value far from the mean of the x-values?
How does a large residual typically manifest on a residual plot?
What is the primary visual tool for identifying potential outliers and influential points in a two-variable dataset?
If removing a specific data point significantly changes the slope of the least-squares regression line, what is that point called?
Related topics
Free AP4U account — unlimited practice, AI grader, and progress tracking.
Canonical: https://apforu.com/ap/statistics/unit-2-exploring-two-variable-data/outliers-in-regression