· 3 min read
How to Find Outliers in a Data Set
Manesh Jayawardhana
CIO & Co-founder
Outliers can change an average, distort a chart, or reveal the most important thing in the data. The trouble is that different outlier methods do not always agree. A value may be outside IQR fences but not extreme by z-score, especially in small or skewed samples.
An outlier detector helps you compare IQR, z-score, and MAD-based modified z-score methods side by side so the decision is easier to explain.
What outlier detection involves
Outlier detection looks for values that are unusually far from the rest of a data set. IQR methods use quartiles and fences. Z-score methods compare values to the mean and standard deviation. Modified z-score uses the median and median absolute deviation, which can be more robust when data is skewed.
No method is universally best. The right interpretation depends on sample size, distribution, and what the data represents.
Why people get stuck here
People often expect a single yes-or-no answer. In practice, outlier tests are rules of thumb. They flag values for review; they do not automatically prove that a value is wrong.
Small samples are especially tricky. Some z-score tests cannot mathematically flag anything in very small data sets because no value can get far enough from the mean.
| Method | Useful When |
|---|---|
| IQR fences | You want quartile-based rules |
| Z-score | Data is roughly normal |
| Modified z-score | Median is more reliable than mean |
| Method comparison | You need an explainable decision |
What a good outlier review looks like
Methods are compared
Seeing where methods agree or disagree gives better context than one rule alone.
Sample-size warnings are visible
Small data sets can make some tests less useful.
Quartile convention is stated
Different quartile methods can produce different IQR fences.
Common mistakes to avoid
- Deleting outliers automatically. Review the reason before removing data.
- Using z-score on every data shape. Skewed data can mislead mean-based tests.
- Ignoring sample size. Very small samples need caution.
- Hiding the method used. Reports should state the rule.
How to do it with Outlier Detector
- Open the free Outlier Detector.
- Paste or enter your numeric data.
- Review IQR, z-score, and modified z-score results.
- Check warnings about sample size or method disagreement.
- Decide whether flagged values are errors, rare events, or meaningful extremes.
The tool is useful for quick data cleaning, classroom examples, and exploratory analysis.
Frequently asked questions
Should I remove every outlier?
No. Outliers can be valid observations. Remove them only when you have a defensible reason.
Why do methods disagree?
They measure unusualness differently. Mean-based, median-based, and quartile-based methods respond differently to skew and spread.
What is MAD?
MAD means median absolute deviation. It measures typical distance from the median.
Final thought
Outlier detection should start a review, not end it. Compare methods, check context, and state the rule you used.