Mean, median, mode and what outliers do to them
The mean averages every value, so one outlier can drag it anywhere. The median, the middle value, is robust: extremes barely move it. The mode is the most frequent value (there can be several). A trimmed mean drops the extremes; a winsorized mean caps them at chosen percentiles.
Watch the lesson 17 min
The video follows this page: the same examples, then the checkpoint questions.
Before this: Arithmetic and geometric mean returns
On the exam
- Calculate, interpret, and evaluate various measures of (1) central tendency and location and (2) dispersion
Calculate, interpret and evaluate measures of central tendency. Expect a median with an odd or even count, the difference between a trimmed and a winsorized mean and their percentage conventions, and which measure to trust when the data hold outliers or a long tail.
How deeply to learn each part
- Know the idea
- Understand it in general. It frames other topics, but you will not calculate with it.
- Use it
- Understand it well enough to solve a question with it. Recognize when it applies.
- Memorize
- Learn it by heart. The exam will not give it to you.
You know this one. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still do.
You tested strong here. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still know it.
What are the three ways to find the middle?
Each answers “what is a typical return?” in a different way: the mean uses every value, the median uses position, and the mode uses frequency.
A measure of central tendency tells you where a data set is centered. For a return series it is, in effect, a summary of the return you might “expect” based on history. The arithmetic mean is the sum of the observations divided by the number of observations. When the data are a sample, the same calculation gives the sample mean .
The population mean μ and the sample mean X̄ are calculated the same way: both divide by the number of observations. Unlike the sample variance, the mean never divides by n − 1.
A statistic is robust when it stays reliable even if the data contain outliers or do not follow the distribution you assumed. The median is extremely robust: you could move almost half the observations as far as you like without shifting it. A single outlier can move the mean by any amount.
The median is the middle value once the data are sorted. With an odd count it is the single middle observation. With an even count there is no single middle, so you average the two that straddle it.
The mode is the value that appears most often. A data set with one mode is unimodal ; one with several is multi-modal (modes can also be local peaks, such as a cluster of small gains and a separate cluster of losses); and some data sets have no mode at all. Unlike the mean and the median, the mode allows for more than one center.
Returns are rarely repeated to the last decimal, so for grouped data analysts use the modal interval : the bin with the highest frequency, which is always the tallest bar of the histogram.
- Mean Memorize sum ÷ n, uses every value
- Pulled by outliers drifts toward the tail
-
- Median Memorize the middle value after sorting
- Robust to outliers robust: best center for skewed data
-
- Mode Use it the most frequent value
- Unimodal, multi-modal one mode, several, or none
- Modal interval grouped data: the tallest histogram bar
-
- Outlier-resistant means Memorize still average, with the extremes handled
- Trimmed mean drop the extremes, n falls
- Winsorized mean replace extremes with the cutoff values, n stays
-
Try this 0 of 3
- Drag the extreme month out to 25% or more and check the median
- Drag the extreme month until the mean equals the median
- Drag the extreme month below −5% and compare the winsorized mean with the mean
Drag the orange dot, or focus it and use the arrow keys. Grey dots are the other eight months.
Sorted returns, % (1 per side is trimmed or winsorized):
- −1.5 → −0.8
- −0.8
- 0.6
- 0.9
- 1.4 (median)
- 1.4
- 2.1
- 3.0
- 14.0 → 3.0
Struck-through values are dropped by the trimmed mean; the arrow shows what the winsorized mean puts in their place. The outlined value is the median.
Cut per side: 0, 1 or 2 values (of 9)
1 of 9 per side ≈ 11% at each end
The extreme month at 14.0% pulls the mean to 2.34%, 0.94 points above the median of 1.40%. Trimming gives 1.23%, winsorizing 1.20%.
Show working
Sort first: −1.5, −0.8, 0.6, 0.9, 1.4, 1.4, 2.1, 3.0, 14.0.
Mean = 21.1 ÷ 9 = 2.34%.
Median: n = 9 is odd, so take position (n + 1) ÷ 2 = 5: 1.40%.
Mode: 1.4% (appears most often).
Trimmed mean: drop the 1 lowest and 1 highest, then average the 7 left: 8.6 ÷ 7 = 1.23%.
Winsorized mean: replace them with the nearest kept values (−0.8 and 3.0), keep all 9: 10.8 ÷ 9 = 1.20%.
- 2.1−0.8+1.4+0.6+3−1.5+1.4+0.9+14=21.1
- ÷9=2.34, the mean
- 0.8+|-+0.6+0.9+1.4+1.4+2.1+3=8.6
- ÷7=1.23, trimmed mean
- 0.8+|-−0.8+0.6+0.9+1.4+1.4+2.1+3+3=10.8
- ÷9=1.20, winsorized mean
+|- change sign
- 2.1ENTER0.8−1.4+0.6+3+1.5−1.4+0.9+14+21.1
- 9÷2.34, the mean
- 0.8CHSENTER0.6+0.9+1.4+1.4+2.1+3+8.6
- 7÷1.23, trimmed mean
- 0.8CHSENTER0.8−0.6+0.9+1.4+1.4+2.1+3+3+10.8
- 9÷1.20, winsorized mean
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Drag the 14.0 and watch which marker moves. The mean follows the outlier. The median does not notice it.
What do outliers do?
An outlier is an observation that differs markedly from the rest. It can come from a measurement or data-entry error, a sampling error, or simply the natural variability of returns. Before choosing a measure, ask one question: is it real?
For a valid outlier there are three choices: leave it in, remove it (a trimmed mean) or replace it (a winsorized mean).
- Error fix or delete it
- Valid outlier Use it three choices
- Leave it keep all data; report the median beside the mean
- Remove it trimmed mean
- Replace it winsorized mean
-
If the 14.0 is a typing error (say the true figure was 1.4), fix it. If it is a real month, deleting it would hide something true about the asset, so keep it and say what it does. Replace 14.0 with 3.0 and the mean drops from 2.34% to 1.12%, while the median stays at 1.4%. That gap is the whole argument for reporting the median of a skewed series.
Compute these statistics on returns, not on price levels: prices drift over time, so their mean and spread keep changing (lesson 7 explains why).
How do the trimmed and winsorized means handle extremes?
Both keep the averaging idea but blunt the outliers. They differ in what happens to the extreme values.
- The trimmed mean drops a set number (or percentage) of the lowest and highest observations, then averages what remains. n falls.
- The winsorized mean keeps every observation, but replaces the extremes with the nearest values that stay (in practice, with a chosen percentile value). n is unchanged.
In practice the cut is a percentage. An x% trimmed mean drops x/2% of the observations at each end: a 10% trimmed mean of 500 daily returns drops the 25 lowest and the 25 highest and averages the other 450. A 90% winsorized mean sets the lowest 5% equal to the value at the 5th percentile and the highest 5% equal to the value at the 95th percentile, then averages all 500.
Winsorizing keeps the information that extreme values occurred, which trimming throws away. It sits between the mean’s sensitivity and the median’s robustness. On a skewed series both pull the average toward the center: when the outliers are large losses, the trimmed and winsorized means come out above the raw mean.
Exam tip Trimmed: fewer numbers, smaller divisor. Winsorized: same count, clipped ends. A “5% trimmed mean” drops 2.5% from each end; a “95% winsorized mean” caps 2.5% at each end.
Which measure should you report?
Match the choice to the data and to what the outlier means.
| Situation | Report |
|---|---|
| One real, important outlier you want to keep | The mean and the median together |
| Data errors | Fix them, then use the mean |
| Heavy tails where the extremes are mostly noise | A trimmed or winsorized mean |
| Skewed data (house prices, private-company returns) | The median |
| Data that cluster in more than one place | The mode (or modes) |
How do you get these in a spreadsheet?
Know the idea
| Measure | Excel | Google Sheets |
|---|---|---|
| Mean | AVERAGE(range) | AVERAGE(range) |
| Median | MEDIAN(range) | MEDIAN(range) |
| Mode | MODE.SNGL(range); MODE.MULT for several modes | MODE(range) |
| Trimmed mean | TRIMMEAN(range, percent) | TRIMMEAN(range, percent) |
TRIMMEAN’s percent is the total share cut from both ends together: TRIMMEAN(range, 0.1) drops 5% at each end. Neither program has a built-in winsorized mean; you cap the extremes yourself and then take the average.
Go deeper Why the median is the natural center for skewed data
In a distribution with a long right tail, a few very large values lift the mean above where most observations sit. The median depends only on ranks, so it is not lifted. That is why house prices and venture returns are quoted as medians. The same logic explains the order rule you will meet in the skewness lesson: with positive skew, the mean is above the median because the mean is dragged toward the tail.
Go deeper Other ways to average returns
The arithmetic mean is not the only mean. When you want the compound growth rate over several periods, the geometric mean is the right tool; it is covered in Learning Module 1, Returns of Financial Assets and Instruments. A portfolio return is also a mean, but a weighted one: each asset’s return times its weight, summed.
Memorize this
MemorizeDropping versus capping extremes
| Mean | Extremes | n in the divisor |
|---|---|---|
| Arithmetic | kept as they are | n |
| Trimmed | dropped | n − (values dropped) |
| Winsorized | replaced by the cutoff values | n |
| Any mean | sample or population | n, never n − 1 |
Memory hook Trim = throw away (fewer numbers). Winsorize = clip the ends (same count). Winsorized keeps all n.
Know it cold Even n: median = average of the two middle values. A "5% trimmed mean" drops 2.5% at each end; a "95% winsorized mean" caps 2.5% at each end at the 2.5th and 97.5th percentiles.
MemorizeWhich center fits
Memory hook The mean is dragged toward the tail; the median stays put. Skewed or outlier-heavy data: report the median.
Know it cold Robust = barely moved by outliers: the median is, the mean is not. Several peaks: multi-modal. Grouped data: the modal interval is the tallest bar.
- Mean Memorize sum ÷ n, uses every value
- Pulled by outliers drifts toward the tail
-
- Median Memorize the middle value after sorting
- Robust to outliers robust: best center for skewed data
-
- Mode Use it the most frequent value
- Unimodal, multi-modal one mode, several, or none
- Modal interval grouped data: the tallest histogram bar
-
- Outlier-resistant means Memorize still average, with the extremes handled
- Trimmed mean drop the extremes, n falls
- Winsorized mean replace extremes with the cutoff values, n stays
-
- Error fix or delete it
- Valid outlier Use it three choices
- Leave it keep all data; report the median beside the mean
- Remove it trimmed mean
- Replace it winsorized mean
-
Quick example
Four quarterly returns of 3%, −1%, 4% and 2%. (3 − 1 + 4 + 2) ÷ 4 = 2.00%.
- 3+1+|-+4+2=÷4= 2
+|- change sign
- 3ENTER1CHS+4+2+4÷ 2
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Six sorted returns 1.1, 1.9, 2.4, 2.8, 3.5, 6.0. Average the 3rd and 4th: (2.4 + 2.8) ÷ 2 = 2.60%.
- 2.4+2.8=÷2= 2.6
- 2.4ENTER2.8+2÷ 2.6
ENTER enter (on the HP, puts the number on the stack)
How it is asked
-
Median of an even count
Six returns: 3.2, −1.0, 0.4, 2.6, 5.1, 1.8. Median?
Sort: −1.0, 0.4, 1.8, 2.6, 3.2, 5.1. Average the 3rd and 4th: 2.20%. Trap: the mean, 2.02%.
-
Winsorized or trimmed mean
Replace (or drop) the single lowest and highest returns, then average.
Winsorized keeps n and replaces the ends; trimmed divides by n − 2. Trap: mixing up which is which.
-
Best measure with a huge outlier
One genuine, very large return in a fund data set. What to report?
The median alongside the mean. Not the mean alone, not the mode.
-
Percentage conventions
A 20% trimmed mean of 50 returns drops how many values?
20% in total, so 5 from each end (10% each). Trap: 10 from each end.
Exam traps
- Median of an even count taken as one middle value instead of the average of the two.
- Forgetting to sort before finding the median.
- Confusing trimmed (drop) with winsorized (replace). Only the winsorized mean still divides by n.
- Calling a data set with two equally frequent values 'no mode'. It is multi-modal: both values are modes.
- Dividing the mean by n − 1 because the data are a sample. The mean always divides by n.
- Reading a trimming percentage as the cut at each end. A 10% trimmed mean (and TRIMMEAN(range, 0.1)) cuts 5% at each end.
Checkpoint
6 exam-style questions. About 90 seconds each.
1Eight quarterly returns (%) are 4.0, −2.0, 1.0, 3.0, 25.0, 2.0, 0.0 and 1.0. The median is closest to:
2For the same data, the winsorized mean that replaces the single lowest and single highest values with their nearest neighbors is closest to:
3A data set of fund returns contains one genuine, very large return. To describe the typical fund, an analyst should most appropriately report:
4Compared with a winsorized mean of the same data, a trimmed mean most likely:
5A fund's daily returns include a few very large losses and no comparable gains. Compared with the ordinary arithmetic mean, the fund's 98% winsorized mean is most likely:
6An analyst computes a 5% trimmed mean of 200 daily returns. The calculation most likely:
Key takeaways
- The mean uses every value, the median uses position, the mode uses frequency.
- Outliers pull the mean toward them; the median resists.
- Trim to drop the extremes, winsorize to cap them.
- Odd n: the median is at position (n + 1) ÷ 2. Even n: average the two middle values.
- A 5% trimmed mean drops 2.5% at each end; a 95% winsorized mean caps 2.5% at each end.
Quick example
Four quarterly returns of 3%, −1%, 4% and 2%. (3 − 1 + 4 + 2) ÷ 4 = 2.00%.
- 3+1+|-+4+2=÷4= 2
+|- change sign
- 3ENTER1CHS+4+2+4÷ 2
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Six sorted returns 1.1, 1.9, 2.4, 2.8, 3.5, 6.0. Average the 3rd and 4th: (2.4 + 2.8) ÷ 2 = 2.60%.
- 2.4+2.8=÷2= 2.6
- 2.4ENTER2.8+2÷ 2.6
ENTER enter (on the HP, puts the number on the stack)
All Quantitative Methods formulas, every lesson
Practice exam-style questions on Statistical Characteristics of Asset Returns
Questions about this lesson?
Where this comes back
- Quartiles, percentiles and box plots Statistical Characteristics of Asset Returns
- Statistical Distributions Quantitative Methods
Questions candidates ask
When should you use the median instead of the mean?
When the data are skewed or contain outliers. House prices and private-company returns are classic cases: a few huge values drag the mean, while the median stays in the middle of the typical observations. Report both when the outlier is genuine.
What is the difference between a trimmed mean and a winsorized mean?
A trimmed mean deletes the lowest and highest values and averages what is left, so n falls. A winsorized mean replaces those extremes with the nearest remaining values and averages all n. Both reduce the pull of outliers. A 5% trimmed mean drops 2.5% at each end; a 95% winsorized mean caps 2.5% at each end at the percentile values.
How do you find the median of an even number of observations?
Sort the values, then average the two middle ones, at positions n ÷ 2 and n ÷ 2 + 1. With six returns, average the 3rd and 4th. With an odd count, take the single value at position (n + 1) ÷ 2.
What does robust mean in statistics?
A robust statistic stays reliable when the data contain outliers or break the assumptions behind it. The median is the classic example: nearly half the data can change without moving it, while a single outlier can drag the mean as far as you like.
Spotted an error? Tell us and we will fix it.