Tutorials › Regression Analysis (Undergraduate) › When an Extreme Case Is Not an Error

Outliers and Robust Fitting · Tutorial 837 of 991

When an Extreme Case Is Not an Error

Learn to audit unusual observations using their context and records, and to explain what changes scientifically when valid extreme cases are excluded.

Advanced 12 min read

What You'll Learn

  • Distinguish data-entry errors, response contamination, valid rare cases, and distinct subpopulations
  • Explain why an extreme predictor value is not the same as an unusual response
  • Use source records and study context rather than a statistical cutoff to assess validity
  • Compare regression fits with and without a case without treating sensitivity analysis as proof of error
  • Describe how deleting valid cases changes the population and scientific target

Introduction

An extreme observation can exert substantial influence on a regression fit, but influence is not evidence of error. A value may be wrong because of a transcription mistake, may come from a response process that did not measure the intended outcome, or may be a genuine and scientifically important case. These possibilities call for different decisions. A fitted line can flag a case for investigation; it cannot, by itself, tell us what happened.

The central question is therefore not simply, “Does this point look unusual?” It is, “Is this a valid observation from the population and process this analysis is intended to describe?” Answering that requires the study context and, where possible, the original records. Deleting a valid case does not just tidy the data: it changes which cases the regression summarizes.

What Makes an Observation Extreme?

In regression, “extreme” can refer to different features. A case can have an unusual predictor value, an unusual response value, or a response that is far from the value predicted by a chosen model. These descriptions are not interchangeable. An observation can be extreme in the predictor but fit the regression pattern well; another can have an ordinary predictor value but a large residual. Neither description establishes that the case is invalid.

Definition: A data-entry error occurs when a recorded value does not correctly represent the value in the source record, for example because of a transcription or coding mistake. Response contamination occurs when the recorded response is affected by a process that makes it fail to represent the intended outcome for that observation, such as a documented specimen mix-up or instrument failure. A valid rare case is unusual but correctly measured and belongs to the population the analysis is meant to describe. A distinct subpopulation is a group within the data whose membership or data-generating circumstances may differ in a scientifically relevant way from those of other cases.

These categories depend on evidence and on the scientific question. A value can be rare and valid. A case can also be recorded accurately but belong to a different subpopulation from the one a particular analysis is intended to describe. That may justify a separately specified analysis, but it does not make the case an error.

A regression model is a description of a response \(Y\) in relation to a predictor \(X\). For a simple linear regression, one possible model is

$$ Y_i=\beta_0+\beta_1x_i+\varepsilon_i, \qquad E(\varepsilon_i\mid x_i)=0. $$

Here, \(\beta_0+\beta_1x_i\) describes the conditional mean response at predictor value \(x_i\), provided the linear conditional-mean assumption is appropriate. The least-squares line is also a computable summary of the observed pairs, even when the model assumptions are not credible. In the examples below, the arithmetic compares least-squares summaries; it does not establish that a linear model is scientifically adequate or support population inference.

A Statistical Flag Is a Reason to Investigate

An unusual residual or an unusual predictor value can help identify a case for review. But a residual is calculated relative to a chosen model, and its size depends on the model and the other observations. A large residual says that the response is poorly aligned with that fitted relationship; it does not say whether the response was measured correctly. Similarly, an unusual predictor value is not a faulty predictor value.

A useful audit asks questions that statistical summaries cannot answer on their own: Does the recorded value match the source document? Are the units and coding correct? Was the measurement made using the intended protocol? Does the case meet the population and eligibility definitions? Is there a documented reason to believe the observation was affected by a measurement or response process different from the one of interest?

The answer may remain uncertain. In that situation, it is more accurate to describe the uncertainty and show how the analysis changes than to label a case an error merely because its inclusion has a large effect.

Worked Example: Correcting a Verified Entry Error

Consider hypothetical measurements of a predictor \(x\) and response \(y\). The source records show the pairs \((1,3)\), \((2,5)\), \((3,7)\), and \((4,9)\), but the data file contains \(90\) rather than \(9\) for the final response. First calculate the line from the file as it stands, then use the verified source value.

For simple least squares, the slope is \(b_1=S_{xy}/S_{xx}\), where \(S_{xx}=\sum (x_i-\bar{x})^2\) and \(S_{xy}=\sum (x_i-\bar{x})(y_i-\bar{y})\). The intercept is \(b_0=\bar{y}-b_1\bar{x}\). These calculations summarize the observed pairs; no normality assumption is needed to compute them.

Using the erroneous file. The predictor mean is \(\bar{x}=2.5\), and the response mean is \(\bar{y}=(3+5+7+90)/4=26.25\). Thus \(S_{xx}=(-1.5)^2+(-0.5)^2+(0.5)^2+(1.5)^2=5\). Also,

$$ S_{xy}=(-1.5)(3-26.25)+(-0.5)(5-26.25) +(0.5)(7-26.25)+(1.5)(90-26.25)=131.5. $$

Therefore \(b_1=131.5/5=26.3\), and \(b_0=26.25-(26.3)(2.5)=-39.5\). The fitted line is \(\hat{y}=-39.5+26.3x\).

Using the verified value. The corrected responses are \(3,5,7,9\), so \(\bar{y}=6\), \(S_{xx}=5\), and \(S_{xy}=(-1.5)(-3)+(-0.5)(-1)+(0.5)(1)+(1.5)(3)=10\). It follows that \(b_1=10/5=2\) and \(b_0=6-(2)(2.5)=1\). The corrected line is \(\hat{y}=1+2x\).

The dramatic difference is not grounds for choosing whichever line seems more plausible. The source record establishes that the file value is wrong, so correcting it is justified. The corrected pairs lie exactly on a line, but this small hypothetical example does not establish a general population relationship.

Valid Cases and the Target of the Analysis

A valid case can change a fitted line substantially, especially when it is far from the rest of the data in the predictor, has a response that pulls the line, or both. If that case belongs to the target population, excluding it changes the data being summarized. The resulting line answers a different descriptive question: how the response relates to the predictor among the retained cases, rather than among all eligible cases.

This change can be seen directly from the least-squares objective. With all \(n\) observations, the fitted coefficients minimize the sum of squared residuals across all \(n\) cases. If case \(j\) is deleted, its squared residual is removed from the objective, and the coefficients are then chosen to minimize the remaining terms. Unless the deleted case has no effect on the minimizer, the resulting fit can differ.

$$ \text{All cases: }\min_{b_0,b_1}\sum_{i=1}^{n}(y_i-b_0-b_1x_i)^2, \qquad \text{case }j\text{ excluded: }\min_{b_0,b_1}\sum_{i\ne j}(y_i-b_0-b_1x_i)^2. $$

The arithmetic change is only part of the issue. If the excluded case is a member of a genuine rare group, the retained cases may no longer represent the full population or the full range of circumstances in the research question. A fit restricted to the common group can be useful, but it should be described as such rather than presented as the relationship for everyone.

Worked Example: A Genuine Rare Group Changes the Fit

Suppose a hypothetical data set contains four ordinary cases, \((x,y)=(1,2),(2,3),(3,4),(4,5)\), and one valid case from a rare, scientifically relevant group, \((10,30)\). Assume the measurements have been checked and the rare case meets the study’s eligibility rules. Compare the least-squares line using all five cases with the line using only the four ordinary cases.

All five cases. The means are \(\bar{x}=20/5=4\) and \(\bar{y}=44/5=8.8\). The centered predictor values are \(-3,-2,-1,0,6\), so \(S_{xx}=9+4+1+0+36=50\). The centered response values are \(-6.8,-5.8,-4.8,-3.8,21.2\), giving

$$ S_{xy}=(-3)(-6.8)+(-2)(-5.8)+(-1)(-4.8)+(0)(-3.8)+(6)(21.2)=164. $$

Thus \(b_1=164/50=3.28\) and \(b_0=8.8-(3.28)(4)=-4.32\). The all-case line is \(\hat{y}=-4.32+3.28x\).

Four ordinary cases only. Their means are \(\bar{x}=2.5\) and \(\bar{y}=3.5\). The centered predictor values are \(-1.5,-0.5,0.5,1.5\), so \(S_{xx}=5\). The centered response values are \(-1.5,-0.5,0.5,1.5\), so \(S_{xy}=5\). The slope is \(b_1=5/5=1\), and the intercept is \(b_0=3.5-(1)(2.5)=1\). The four-case line is \(\hat{y}=1+x\).

Both calculations are correct summaries of different sets of cases. Because the fifth case is valid and belongs to the stated target, removing it cannot be justified by saying it changes the slope. The all-case line summarizes the whole hypothetical set; the four-case line describes only the ordinary cases. Neither calculation alone establishes why the groups differ or whether a single linear relationship is an appropriate scientific model.

Uncertain Cases: Make the Decision Traceable

Sometimes an observation looks suspicious but there is no source record or other evidence that settles the issue. A fitted model cannot fill that evidential gap. In such a situation, a transparent analysis can report the fit with the case included and compare it with a fit excluding the case, while explaining that the comparison measures sensitivity to the decision. It does not prove that the case is contaminated or that either fit is correct.

Worked Example: Sensitivity Is Not a Verdict

Suppose a hypothetical set of five recorded pairs is \((1,2),(2,4),(3,6),(4,8),(5,20)\). The last response is unusual relative to the first four. The available files do not establish whether \(20\) is a valid outcome, a recording problem, or a response affected by a measurement failure. Compare the fitted lines, then state what can and cannot be concluded.

Including all five cases. Here \(\bar{x}=3\), \(\bar{y}=40/5=8\), and \(S_{xx}=(-2)^2+(-1)^2+0^2+1^2+2^2=10\). The centered responses are \(-6,-4,-2,0,12\), so \(S_{xy}=(-2)(-6)+(-1)(-4)+(0)(-2)+(1)(0)+(2)(12)=40\). Therefore \(b_1=40/10=4\) and \(b_0=8-(4)(3)=-4\). The line is \(\hat{y}=-4+4x\).

Excluding the final case. The first four pairs lie on \(\hat{y}=2x\): their means are \(\bar{x}=2.5\) and \(\bar{y}=5\), with \(S_{xx}=5\) and \(S_{xy}=10\), giving slope \(10/5=2\) and intercept \(5-(2)(2.5)=0\).

The slope changes from \(4\) to \(2\), so this hypothetical data set is sensitive to the final case. That finding is a reason to investigate the measurement and study records. It is not evidence, by itself, that \(20\) is wrong. Without evidence resolving the case’s status, a responsible report describes the uncertainty and the two fits as a sensitivity comparison, rather than silently deleting the observation or claiming that the comparison identifies the correct relationship.

A Practical Decision and a Common Mistake

A defensible decision separates three questions: whether the value is valid, whether the case belongs to the target population, and how much the fitted summary depends on it. These are related questions, but they are not the same. For example, a measurement may be valid while the case falls outside a clearly defined target population; conversely, a case may be eligible but have a response corrupted by a documented failure.

1
Check the record.
Compare the value with available source documents, units, codes, and measurement notes. Correct a verified recording error using the verified value, and retain an audit trail.
2
Check the response process and eligibility.
Use study documentation to determine whether the response represents the intended measurement and whether the case belongs to the population specified by the research question.
3
Assess influence without treating it as a validity test.
Compare relevant fits if useful, and report what changed. A large difference shows sensitivity to inclusion, not the cause of the unusual observation.
4
State the analytic choice and its target.
Explain any correction or exclusion and specify which cases the reported regression describes. If the evidence is unresolved, make that uncertainty clear.

Common mistake: “The point has a large residual and changes the slope, so it must be an error and should be removed.” The reasoning confuses an observation’s effect on a model with evidence about how the observation was produced. The correction is to investigate the record and response process, check whether the case belongs to the intended population, and treat a fit comparison as sensitivity information—not as an error detector. If a valid case is excluded, state that the analysis now targets a restricted set of cases.

This distinction matters because regression is used to summarize relationships in a defined scientific setting. Removing a genuine case can conceal a rare but important pattern or change which population the summary represents. Retaining a known recording error can also distort the summary. The goal is not to keep every extreme value or to delete every influential one; it is to make a reasoned, documented decision that matches the scientific question.

Key takeaway: Extremeness and influence are statistical properties; error and validity are questions about records, measurement, and the target population. Use the first to motivate investigation, not to substitute for it.

Check Your Understanding

Answer each question using the distinction between statistical unusualness and scientific validity.

  1. A response is ten times larger than the others, and checking the original form confirms that the value was entered incorrectly. What evidence justifies changing the analysis value?
  2. Why does a large residual not establish that a response is contaminated?
  3. A valid observation comes from a rare group included in the stated target population. What changes in the interpretation if that case is excluded?
  4. In the sensitivity example, the slope differs with and without the uncertain case. What does that comparison establish, and what does it not establish?
  5. Name two kinds of records or contextual information that could help distinguish a recording problem from a valid rare observation.