Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 14

Outliers: Impact on Statistics and Regression

Welcome back. In our previous lesson, we established a systematic process for detecting outliers using both the z-score and the more robust IQR method. You saw how these calculations can flag anomalous data points that might otherwise go unnoticed. However, identifying an outlier is only the first step. The crucial follow-up is to understand its actual, quantifiable impact.

This lesson directly addresses that question. We will assess how a single outlier can significantly skew your interpretation of a dataset, a critical skill given that much of your work involves handling data imperfections. We'll do this in two stages: first, by measuring the outlier's effect on basic descriptive statistics, and second, by examining its influence on the results of a linear regression analysis. This will bridge the gap between simple detection and informed statistical judgment.

The Influence of an Outlier on Descriptive Statistics

The mean and standard deviation are the bedrock of many statistical procedures, but they are not robust. This means they are highly sensitive to extreme values. An outlier can pull the mean in its direction and inflate the standard deviation, giving a distorted picture of the data's center and spread.

Let's quantify this effect using the datasets from our last lesson. We will calculate the mean and standard deviation for each dataset twice: once with the outlier included, and once with it removed.

Numerical Example 1: Bra-Fitting Business

Scenario: We have the under-bust measurements (in inches) for 11 clients. The IQR method previously identified the value 48 as an outlier.

Data (with outlier): 32, 34, 34, 34, 36, 36, 36, 36, 38, 38, 48

Calculations (with outlier, n=11):
As calculated in the previous lesson:

  • Mean (): 36.55 inches
  • Standard Deviation (): 4.55 inches

Data (outlier removed): 32, 34, 34, 34, 36, 36, 36, 36, 38, 38

Calculations (without outlier, n=10):

  1. Calculate the new sample mean ():

  2. Calculate the new sample standard deviation ():

Assessment of Impact:

  • Mean: The mean dropped from 36.55 to 35.4 inches. The outlier was artificially inflating the average band size.
  • Standard Deviation: The standard deviation plummeted from 4.55 to 1.90 inches. This is a dramatic change. The outlier gave a false impression of high variability in your client measurements. The core group of clients is actually much more homogeneous.

Numerical Example 2: Polyandrous Relationship Study

Scenario: We have the number of monthly "date nights" from 10 "vee" relationships. The IQR method identified 15 as an outlier.

Data (with outlier): 2, 3, 4, 4, 5, 5, 6, 6, 7, 15

Calculations (with outlier, n=10):

  • Mean (): nights
  • Standard Deviation (): nights

Data (outlier removed): 2, 3, 4, 4, 5, 5, 6, 6, 7

Calculations (without outlier, n=9):

  1. Calculate the new sample mean ():

  2. Calculate the new sample standard deviation ():

Assessment of Impact:

  • Mean: The mean decreased from 5.7 to 4.67 nights. The one unusual case was skewing the perception of the "typical" number of date nights.
  • Standard Deviation: The standard deviation was more than halved, from 3.59 to 1.58. This shows the data, absent the outlier, is far less variable than it first appeared.

The Influence of an Outlier on Linear Regression

While outliers affect descriptive statistics, their most profound impact is often on modeling. In linear regression, a single point can dramatically pivot the entire regression line, changing the slope, intercept, and correlation coefficient (). Such points are often called influential points.

An outlier's influence depends on two factors:

  1. Leverage: How far its x-value is from the mean of the x-values. Points with high leverage have the potential to be influential.
  2. Discrepancy: How far the point's y-value is from the regression line fitted to the rest of the data (i.e., a large residual).

The image below shows four scenarios. The top-left point has high leverage but low discrepancy (it's far out on the x-axis but falls close to the line), so it's not an outlier. The bottom-right point has both high leverage and high discrepancy, making it a highly influential outlier that will pull the line toward it.

Four scatter plots illustrating how a point's position relative to the other data determines if it is an outlier. Points can be far in the X-direction (high leverage), far in the Y-direction (high residual), or both, which determines their influence on the regression line.

The next image provides a stark visual of this effect. The black line and its associated equation represent the regression calculated with all the data points. The red line shows the new regression after a single outlier is removed. Notice how the slope and the correlation coefficient () change dramatically.

A scatter plot comparing two linear regression lines. The black line (r = -0.328) is fitted to a dataset that includes an outlier. The red line (r = -0.904) is fitted to the same dataset after the outlier is removed, showing a much stronger and steeper negative relationship.

To assess this impact numerically, we will calculate the simple linear regression coefficients and the correlation coefficient with and without an outlier. The key formulas are:

  • Slope:
  • Intercept:
  • Pearson Correlation:

Numerical Example 1: Bra-Fitting Business (Regression)

Scenario: You want to understand the relationship between a client's age (X) and their preference for band stiffness (Y, on a 1-10 scale). You have data from five clients. One data point seems unusual: a much older client with a very low stiffness preference.

Data (with outlier):

  • Client 1: (Age=25, Stiffness=4)
  • Client 2: (Age=30, Stiffness=5)
  • Client 3: (Age=35, Stiffness=6)
  • Client 4: (Age=40, Stiffness=5)
  • Client 5 (Outlier): (Age=65, Stiffness=2)

Calculations (with outlier, n=5):

X (Age) Y (Stiff)
25 4 -14 -0.4 196 0.16 5.6
30 5 -9 0.6 81 0.36 -5.4
35 6 -4 1.6 16 2.56 -6.4
40 5 1 0.6 1 0.36 0.6
65 2 26 -2.4 676 5.76 -62.4
  • Slope ():
  • Intercept ():
  • Correlation ():

Model with outlier: Stiffness = 7.13 - 0.070 * Age. This suggests a moderate negative relationship: as age increases, stiffness preference decreases.

Calculations (without outlier, n=4):
Data: (25, 4), (30, 5), (35, 6), (40, 5)

X (Age) Y (Stiff)
25 4 -7.5 -1.0 56.25 1.0 7.5
30 5 -2.5 0.0 6.25 0.0 0.0
35 6 2.5 1.0 6.25 1.0 2.5
40 5 7.5 0.0 56.25 0.0 0.0
  • Slope ():
  • Intercept ():
  • Correlation ():

Assessment of Impact:
The single outlier had a profound effect.

  • Slope: Flipped from negative (-0.070) to positive (0.08). The original interpretation was completely wrong.
  • Intercept: Changed from 7.13 to 2.4.
  • Correlation: Swung from a strong negative (-0.72) to a moderate positive (0.63).

The outlier created a spurious negative relationship. Without it, the data suggests a slight tendency for stiffness preference to increase with age, or at least no clear relationship at all. Your business conclusion would be entirely different depending on whether you included this single client's data.


Conclusion

In this lesson, we moved from detecting outliers to quantifying their precise impact. You have now performed the hand-calculations to see exactly how a single extreme value can mislead your conclusions, both for simple descriptive statistics and for a linear regression model.

Key Takeaways:

  • Outliers can substantially alter the mean and standard deviation, giving a distorted view of a dataset's central tendency and variability.
  • In regression analysis, an influential outlier can completely change the sign and magnitude of the slope and correlation coefficient, leading to flawed interpretations of relationships between variables.
  • The process of recalculating key statistics with and without a suspected outlier is a fundamental diagnostic step to ensure the robustness of your findings.

You have now tackled two major data quality issues: sample size adjustments and outlier analysis. The next logical challenge in preparing a dataset for analysis is handling missing information. In our next lesson, we will focus on identifying patterns of missing data and applying a simple method for imputation.