Understand the idea
Every dataset can have a point (or a few) that sits far away from the rest: an unusually high sale, a patient with an extreme lab value, a machine reading that looks nothing like its neighbors. That alone does not tell you whether the point is WRONG or simply RARE.
Investigate before deciding what to do: check whether it is a data-entry error (a misplaced decimal point, a unit mix-up), a measurement glitch (a sensor fault), or a genuinely unusual but real case (a legitimate, very large sale). Each of those calls for a different response: fix the error, exclude with a documented reason, or keep it and use a method robust to its influence.
Outliers matter because many common methods (means, standard deviations, ordinary regression) are very sensitive to extreme values: a single extreme point can shift a mean or a regression line substantially. Medians and rank-based methods are far less affected, which is one reason they exist as alternatives. An influential point is one whose removal would noticeably change the result. An outlier is not always influential, and an influential point is not always an outlier. Leverage measures how unusual a point's predictor values are; Cook's distance measures how much the fitted line would move if that point were left out.
Practitioner explanation
Detection tools serve different purposes: the IQR rule (below Q1 - 1.5*IQR or above Q3 + 1.5*IQR) and boxplots for a quick univariate screen; z-scores or a robust variant (modified z-score using the median absolute deviation) for a distributional view; and, for regression specifically, LEVERAGE (how unusual a point's predictor values are) versus INFLUENCE (how much removing the point changes the fitted coefficients, via Cook's distance or DFFITS) are distinct concepts: a high-leverage point is not necessarily influential, and an influential point may not have extreme leverage.
Removing an outlier changes the estimand as much as it changes the estimate: dropping the point silently answers a slightly different question ('the effect among typical cases') than the one originally posed, and this should be disclosed explicitly rather than implied by a lower final n. Winsorizing (capping extreme values at a percentile) and robust estimators (trimmed means, M-estimators, rank-based tests) are documented alternatives to outright deletion that retain the point's ordinal information while limiting its leverage.
KernelStats' EDA screen flags outliers by both IQR and MAD rules per numeric column, and the regression card reports Cook's distance, leverage and DFFITS with documented thresholds per point, flagging influential points explicitly rather than silently including or excluding them. On the Data tab a numeric column's quality dot also flags a value that sits far outside the rest of the column (outside a stated scale such as 0-100, or far beyond a tightly bounded bulk by a robust median-absolute-deviation distance), naming its row ('row 57 holds 150, while every other value lies between 50 and 100'), and the t-test and ANOVA cards' outlier notes name the rows as well; none of these flags removes a value, and this one offers no automatic fix because only you can tell an entry error from a real extreme.
When to use it
Consider it when
Screen for outliers during EDA on every numeric column, and check leverage/influence diagnostics on every fitted regression before trusting its coefficients.
Use caution when
Do not remove an outlier without documenting the reason; silent deletion changes what population the remaining analysis describes and is a common, serious source of irreproducibility.
Alternatives
- Mann-Whitney U Test. Outliers are influential and a rank-based comparison, less sensitive to extreme values, is preferred to a mean comparison.
- Bootstrap Confidence Interval. You want an interval estimate that does not assume a specific parametric shape and is less sensitive to isolated extreme values than a normal-theory interval.
Common misconceptions
Misconception
An outlier should always be removed before analysis.
Correction
An outlier may be a genuine, informative extreme case rather than an error. The decision to remove one should be based on an investigated, documented reason: a confirmed data error, not simply that the point looks unusual.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.17 Detection of outliers, NIST/SEMATECH (2012), §1.3.5.17.
