What Is an Outlier in Statistics? Definition & Examples

An outlier is a value that stands well apart from the rest of a set of numbers. Being unusual doesn’t make a value wrong, though. An outlier can be a typo, or it can be the most interesting thing in the data.1Wikipedia. Outlier What counts as an outlier also depends on context, so a normal-looking number can be strange at the wrong time or place.2PubMed Central. On the nature and types of anomalies: a review of deviations in data

What Outliers Look Like in Real Data

Take the ages of a small class: 19, 20, 20, 21, 22, and 95. The 95 is the outlier. A single value sitting far from everything else is the most common kind.3Anomalo. Data Anomaly: What Is It, Common Types and How to Identify Them

You’ve probably met others like it. A house priced at $50 million in a list of typical suburban homes. A height typed as 1,750 cm instead of 175 cm, which is a data-entry slip. A marathon finish time far faster than anyone else’s, which may be real and simply exceptional. A spike in website visits on the day a post went viral.

Some values look ordinary on their own and are strange only in a particular setting.2PubMed Central. On the nature and types of anomalies: a review of deviations in data A temperature of 10°C is unremarkable in winter but strikingly low in summer.2PubMed Central. On the nature and types of anomalies: a review of deviations in data This kind is common in data recorded over time, where a value that is expected on one day is odd on another.3Anomalo. Data Anomaly: What Is It, Common Types and How to Identify Them

Outliers can also show up as a group. Sometimes a set of related points is unusual together, even though none of them looks odd alone.2PubMed Central. On the nature and types of anomalies: a review of deviations in data A run of identical card charges a minute apart can be suspicious even when each charge is small.

A good first step is to look at the data by eye. Sorting a column in a spreadsheet puts the extreme values at the top or bottom. A dot plot or scatter plot shows a lone point far from the cluster. A box plot draws outliers as separate dots beyond the whiskers.

Looking has limits. Sorting only shows you the largest and smallest values, not whether they’re far enough from the rest to count, so compare the gap between the extreme and its nearest neighbor. A scatter plot can reveal a point that sits far from the overall pattern even though its value on each axis, taken alone, looks normal.

When a value looks wrong in a spreadsheet, start by asking what the column is supposed to measure and what range is plausible for it. The comparison group matters too: a 7-foot player is extreme among the general population but ordinary in professional basketball. And outlier status is a matter of degree. A value slightly past a cutoff deserves less alarm than one ten times larger than everything else.

Why Outliers Happen

Outliers can appear by pure chance, come from measurement or recording errors, or reveal genuinely new behavior worth following up.1Wikipedia. Outlier1Wikipedia. Outlier1Wikipedia. Outlier Some simply mean the data naturally has long tails. Incomes are the classic case, where a few huge values are normal.1Wikipedia. Outlier

Even in clean data collected perfectly, a few values will land far from the center, because random variation sometimes produces unusual draws. The larger the dataset, the more likely a few extreme values appear, so seeing one or two in thousands of rows is not by itself a sign of a problem. A chance outlier is a real, correct measurement. Removing it just for being extreme changes the picture the data gives of the world.

The cause decides what to do. An error is usually corrected or removed, while a real extreme value is usually kept.1Wikipedia. Outlier In long-tailed data, outliers are a warning that methods built for bell-shaped data can mislead.1Wikipedia. Outlier

Telling an error from a real extreme value takes a bit of detective work. Check whether the value is even possible, such as a negative age. Go back to the original form, sensor log, or receipt. Ask whether the value fits a known event, such as a holiday sale. If it can’t be explained either way, report it rather than quietly dropping it.

How to Find Outliers in Your Data

The most common rule is the 1.5 × IQR rule:

Here it is on the class ages. Sort the six ages first, since the sorted order is what lets you locate the quarter and three-quarter positions. Q1 is about 20 and Q3 about 22, so the middle-half spread is 2, and 1.5 times that is 3. The lower fence works out to 20 − 3 = 17 and the upper fence to 22 + 3 = 25. The ordinary ages from 19 to 22 all sit inside the fences. The age 95 lies far above 25, so the rule flags it, which matches what the eye already saw.

Spreadsheet QUARTILE functions come in versions that treat the data’s positions slightly differently, so fences can shift a little between programs. Note which function you used. The 1.5 multiplier is a convention, so a value just beyond a fence is a borderline case.

A z-score says how many standard deviations a value sits from the average, and values beyond about 3 are often flagged. The weakness is that the outliers themselves pull the average and spread around, which can hide them from z-scores.5Statology. What is a Modified Z-Score? (Definition & Example) The modified z-score gets around this. It uses the median and the typical distance from the median, 0.6745 × (value − median) ÷ MAD, where MAD is the median of those distances.5Statology. What is a Modified Z-Score? (Definition & Example) Modified z-scores above about 3.5 are commonly treated as outliers.

No single method works best everywhere, and the right choice depends on how many data points you have.6Communications in Statistics – Simulation and Computation. A comprehensive benchmarking of different outlier detection techniques for univariate datasets by Monte Carlo simulations Median-based rules and formal tests tend to do better with small samples, while z-score methods tend to hold up better in large ones.6Communications in Statistics – Simulation and Computation. A comprehensive benchmarking of different outlier detection techniques for univariate datasets by Monte Carlo simulations

Sometimes you’re looking at several measurements at once. A point can look normal on each measure separately but odd in combination, such as a tall person with a very low weight. Plotting two variables together reveals these points. Software can also measure how far a point sits from the center of the cloud of points, though it needs robust versions, because ordinary ones get distorted by the outliers themselves.

What Outliers Do to the Average

The mean (average) can be thrown off by a single extreme value.7Wikipedia. Robust statistics The median, the middle value, stays within the normal values until half the data are outliers.7Wikipedia. Robust statistics The median depends only on the order of values, so you could make the largest value a hundred times bigger and the median wouldn’t change at all. The standard deviation, the typical spread, relies on the mean, so one bad point can ruin it too.8Lancaster University. What Is an Outlier in Statistics? Definition & Examples

The class ages show this. Without the 95, the five ages average about 20.4, which is close to every student’s age. Adding the 95 lifts the average to about 32.8, a number that describes no one in the class. The middle value moves only from 20 to 20.5, because adding one more value at the top shifts the middle by half a position. Median household income is reported for the same reason: a few very large incomes would drag the average far above what a typical household earns.

That helps when reading reports. When the mean is much higher than the median, a few large values are likely pulling it up, so ask for both numbers when salaries or prices are quoted. A large typical spread can likewise reflect one outlier rather than widely varied data.

Trend lines are affected too. A standard best-fit line can fit much worse when outliers are present, even if its slope barely changes.9OTS Canadian Journal. The Impact of Outliers on Linear Regression Models: Detection and Correction Strategies Points far out along the horizontal axis can also pull a line toward themselves more than other points do.10Preprints. Detection of Influential Observations in Spatial Regression Model Based on Outliers and Bad Leverage Classification

Should You Remove an Outlier

Remove an outlier only after you identify a specific cause, such as an error, that explains it.11Wikipedia. Data dredging Removing points after you’ve seen the results makes false findings more likely.11Wikipedia. Data dredging Replacing removed points with made-up values makes them more likely still.11Wikipedia. Data dredging

A real reason is something you can point to about the value itself: an impossible entry, a broken instrument, or a record that doesn’t belong to the group you’re studying. “It makes my average look odd” or “the plot flagged it” says nothing about the value itself. If you can verify a typo against the original record, correcting it is better than deleting the row.

Combining just four flexible choices can raise the false-alarm rate from 5% to over 60%.12MetricGate. Data Dredging and P-Hacking Explained Writing the rule for what counts as an outlier, and what you’ll do with it, before you see the results removes that temptation and lets others trust the outcome. Even a simple note saying “I will use the 1.5 × IQR fences” counts as a pre-decided rule.

A simple honest routine looks like this. Write down your outlier rule before analyzing. Fix typos you can verify against the original record. Run the analysis with and without the outlier and report both. Keep a note of every change you made.

Ways to Handle Outliers Without Deleting Them

Winsorizing replaces extreme values with a cutoff value, while trimming drops a set share of the extremes.13OpenAlex API / Journal of Development Economics. Winsorizing and trimming in RCTs The choice of method can change both the size of a result and whether it appears meaningful.13OpenAlex API / Journal of Development Economics. Winsorizing and trimming in RCTs So say which method you used and why.

On the class ages, winsorizing with the upper fence at 25 would replace 95 with 25, so the ages become 19, 20, 20, 21, 22, 25. The dataset keeps all six values, so the sample size is unchanged, but the extreme value no longer dominates the average. The cap hides the real value, so state that you applied it and which cutoff you used.

Transforming the data is another route. Taking the square root of each value shrinks large numbers more than small ones, which reduces the pull of outliers.14MachineLearningMastery.com. Skewness Be Gone: Transformative Tricks for Data Scientists Some software can automatically find the power transformation that best evens out lopsided data.14MachineLearningMastery.com. Skewness Be Gone: Transformative Tricks for Data Scientists Logarithms are common for money and population figures.

You can also lean on resistant methods. Reporting the median and the middle-half spread instead of the mean and the typical spread sidesteps much of the problem. For fitted lines, robust regression methods downweight extreme values instead of letting them steer the line.15Electronic Journal of Statistics. Robust regression through the Huber’s criterion and adaptive lasso penalty

Which option to pick starts with the same question as always: is this value an error or real? A confirmed error is fixed or removed. If the value is real but distorts a summary such as the average, reporting the median, which barely moves, is often the simplest fix. If the whole dataset is lopsided, as with incomes, a log transform often evens it out so that ordinary methods work better. If you’re fitting a line, compare an ordinary fit with a robust one; if they differ noticeably, the outlier is steering the result.