Outliers and Data Skew
Introduction
Welcome back to Data Distributions and Center! You are now on lesson five of six, which means the finish line for this course is just one lesson away. Over the previous four lessons, we explored what a data distribution looks like, and we built up three measures of center: the mean, the median, and the mode. Each one captures the "middle" of a dataset in its own way. But do they always agree? In this lesson, we will discover what happens when they don't, and why certain features of a dataset can pull the mean and median apart.
The Mean Listens to Every Value
As you may recall from earlier in this course, the mean is calculated by adding all values together and dividing by the count. This means every single number in the dataset has a direct influence on the result. The median, on the other hand, depends only on the position of the middle value after sorting. It does not care how large or small the values at the far ends are.
This difference in how the two measures are built is the key idea behind everything in this lesson. When most values are similar, the mean and median tend to land close together. But when something unusual enters the picture, their paths can split in a very noticeable way.
What Is an Outlier
An outlier is a value that sits far away from the rest of the data. There is no single rule we need right now for deciding exactly how far counts as "far" (a formal method appears later in this learning path), but think of it as a value that clearly does not fit the overall pattern.
For example, imagine recording the daily tips a barista earns over five shifts:
Most values cluster between and , but sits far above. That is an outlier, and we are about to see exactly what it does to the mean.
How an Outlier Pulls the Mean
Let's work through the numbers step by step. First, consider only the four typical shifts:
The mean is:
The median (the average of the two middle values) is:
Mean and median are identical here. Now let's add the outlier and recalculate with all five values sorted:
The new mean is:
The new median (the middle value in a sorted list of five) is simply .
| Measure | Without Outlier | With Outlier | Change |
|---|---|---|---|
| Mean | |||
| Median |
The mean jumped by , while the median barely moved at all. This happens because the mean folds every value into its sum, so one extreme number can drag it a long way. The median only cares about the middle position, so it stays put. We say that the median is resistant to outliers, while the mean is sensitive to them.


