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.
What Is Skew
An outlier is a single extreme value, but sometimes an entire side of the distribution stretches out further than the other. When that happens, we say the distribution is skewed.
- A right-skewed (positively skewed) distribution has a long tail extending to the right. Most values cluster on the lower end, but a few high values pull the tail outward.
- A left-skewed (negatively skewed) distribution has a long tail extending to the left. Most values cluster on the higher end, but a few low values pull the tail outward.
A classic real-world example of right skew is household income. Most households earn moderate amounts, but a small number of very high earners stretch the distribution to the right. Test scores on a very easy exam, where most students score high but a few score low, would be an example of left skew.
How Skew Shifts the Mean Relative to the Median
Skew acts on the mean in the same way an outlier does, just spread across many values in the tail rather than concentrated in a single point. The tail contains values that are far from the center, and the mean absorbs all of them into its calculation. The median, as always, holds its ground near the middle position.
| Distribution Shape | Tail Direction | Mean vs. Median |
|---|---|---|
| Right-skewed | Long right tail | |
| Symmetric | Balanced | |
| Left-skewed | Long left tail |
A helpful memory trick: the mean chases the tail. Whichever direction the long tail points, the mean gets pulled that way. In a symmetric distribution, neither side tugs harder, so the mean and median stay close together.

Outliers and Skew in Home Prices
Let's tie both ideas together with one more example. Suppose we have home sale prices (in thousands of dollars) for a small neighborhood:
Five of the six prices cluster between K and K, but K is a luxury property far above the rest. The mean is:
The median (the average of the 3rd and 4th values in our already sorted list) is:
The mean of K is pulled far above what a typical home actually costs in this neighborhood. The median of K sits right in the cluster of typical prices. If someone asked, "What does a typical home cost here?", the median tells a much more accurate story.
Notice that this dataset is also right-skewed because of that long upper tail, so our rule holds: the mean sits above the median. A single extreme value and overall skew often go hand in hand — the outlier creates the skew, and both push the mean in the same direction.
Conclusion and Next Steps
In this lesson, we explored how outliers and skewed distributions pull the mean away from the median. Because the mean includes every value in its calculation, even one extreme number can shift it dramatically, while the median depends only on the middle position and remains stable. We also learned a handy rule: the mean chases the tail, shifting toward whichever side the distribution stretches.
Now it is time to put these ideas to the test! In the upcoming practice exercises, you will predict how outliers move the mean, crunch the numbers to see the shift firsthand, and explain in your own words why one measure of center can paint a more honest picture than another. Jump in and see how sharp your intuition has become!
