Reading Numbers Like an Analyst · Lesson 2 of 6
Why the median for a lopsided sample: robustness to outliers
One concept: robustness to outliers
Why it matters
Kitalpha’s 30-year Treasury par yield page carries the yield’s history, and from it the record used here takes the last 250 one-day changes, from 2025-10-30 to 2026-10-30. The middle value of those changes, once they are sorted, is 0.000 percentage points. The largest of them is 0.130. A reader who wants one figure for “a typical day” has two candidates, the mean and the median, and on real records they can disagree. This lesson is about why they disagree, and which of the two a handful of extreme days can move.
The concept
A sample is a set of numbers taken from a record: here, the one-day changes in a yield over a window of trading days. Two figures describe where such a sample centres. The mean adds every value and divides by the count. The median sorts the values from smallest to largest and takes the middle one, or, with an even count, the average of the two middle values. On a sample that is symmetric about its centre the two coincide. On real market data they often do not, because of how each treats the values far from the rest.
An outlier is a value far from the bulk of the sample. Consider five daily changes, in basis points: −2, −1, 0, 1 and 2. The mean is 0 and the median is 0. Now replace the 2 with 20. The mean becomes (−2 − 1 + 0 + 1 + 20) ÷ 5 = 3.6 basis points; the median is still 0, because the sorted list still has 0 in the middle. The mean takes every value at its full size, so one value can carry it anywhere. The median only asks how many values sit above and below it, so the size of the largest value is irrelevant once it is the largest. A figure that a few extreme values cannot move far is called robust, and the median is robust in exactly this sense while the mean is not. A bigger sample dilutes the effect without removing it: with 250 days rather than five, one outlier shifts the mean by its distance from the mean divided by 249. The shift is smaller in basis points, but it still grows without limit as the outlier grows, and the median still moves at most one place.
That difference is what makes the gap between the mean and the median useful when reading a record. The distribution of a sample is the pattern of how often each size of value occurs, and its tails are the thin ends where the rare, large values sit. When the tail on one side reaches further out than the tail on the other, the sample is said to be skewed toward that side. The extreme values in the longer tail pull the mean toward them; the median stays with the bulk. So the mean sits on the side of the longer tail, and the sign of mean minus median says which side that is. The size of the gap depends on the units and on how widely the sample is spread, so analysts scale it. Dividing the gap by the standard deviation, the typical distance of a value from the mean, gives a figure with no unit, comparable between series whose days typically move by different amounts. Kitalpha’s series records report this scaled gap as a skew proxy, and the same scaling expresses any single day as a number of standard deviations from the mean.
The histogram below draws the 30-year record’s sample as bars, one per range of daily change, with the mean and the median marked. Look for the thin bars at the far left and far right: the side that reaches further is the longer tail, and the mean’s line sits on that side of the median’s.
| Bin from | to | Count |
|---|---|---|
| -0.140 | -0.120 | 1 |
| -0.120 | -0.100 | 0 |
| -0.100 | -0.080 | 3 |
| -0.080 | -0.060 | 6 |
| -0.060 | -0.040 | 13 |
| -0.040 | -0.020 | 35 |
| -0.020 | 0.000 | 47 |
| 0.000 | 0.020 | 51 |
| 0.020 | 0.040 | 51 |
| 0.040 | 0.060 | 23 |
| 0.060 | 0.080 | 13 |
| 0.080 | 0.100 | 3 |
| 0.100 | 0.120 | 3 |
| 0.120 | 0.140 | 1 |
Worked example
Take the record from the opening: the 30-year par yield‘s last 250 daily changes. The record’s figures are in percentage points; the steps convert them to basis points. Steps one to three read the two centre measures and their difference. Steps four and five divide that difference by the standard deviation, giving the unit-free skew proxy. Steps six and seven place the largest single day in standard deviations above the mean; the last step measures its pull on the mean.
Record: 30-Year Treasury Par Yield · as of · Source: U.S. Department of the Treasury
- Mean daily change over the window, in basis points 0.26 The record keeps its figures in percentage points; multiplying by 100 converts them to basis points. One basis point is one hundredth of a percentage point.
- Median daily change, in basis points 0.00
- Mean minus median, in basis points 0.26 The sign says which side of the median the mean sits on: positive, above; negative, below. The mean sits on the side of the longer tail; a figure close to zero says the two tails balance.
- Standard deviation of the daily changes, in basis points 3.84 The typical distance of a day's change from the mean.
- Skew proxy: mean minus median, divided by the standard deviation 0.07 Basis points divided by basis points cancel, so this figure carries no unit. It states the gap in units of a typical day's move, which is what lets it be set beside another series' figure.
- Largest single-day change in the window, in basis points 13.00
- Distance of the largest day above the mean, in standard deviations: (largest − mean) ÷ standard deviation 3.3
- How far that one day shifts the mean, in basis points: (largest − mean) ÷ (days − 1) 0.05 Drop that single day from the sample and the mean of the remaining days moves by this much. The median would move at most one place in the sorted list.
The gap in step three carries a sign, and the sign is the reading: the mean sits on the side of the longer tail, or on neither if the gap is near zero. Step five restates that gap in units of a typical day’s move, the form that travels between series. Step seven says how far out the largest day sits: a bell-shaped sample keeps about 95% of its values within two standard deviations, so a figure well beyond two marks a day the bulk does not resemble. The last step is the robustness test: dropping that day shifts the mean by that many basis points, and the median by at most one place in the sorted list. At the other end of the sample the smallest single-day change was -0.130 percentage points; the retrieval check asks how far below the mean it sits.
Faded example
Now a second record: the daily changes of the 2s10s spread, the 10-year par yield minus the 2-year, over its own last 250 trading days. The mean, the median and the standard deviation are given below, in basis points, as the worked example’s steps read them. Complete the worked example’s fifth step yourself: the mean minus the median, divided by the standard deviation, which puts this record’s gap on the same unit-free scale as the 30-year’s.
Second record: 2s10s Spread (10-Year minus 2-Year) · as of
- Mean daily change of the spread over the window, in basis points-0.05
- Median daily change, in basis points0.00
- Standard deviation of the daily changes, in basis points2.82
- Tolerance ±0.02
Reveal the answer and the explanation
-0.02 — Subtract the median from the mean, keeping the sign, then divide by the standard deviation — the worked example's fifth step, on this record. Dividing by the spread's own standard deviation states the gap in units of a typical day's move, so this record's figure can be set beside the 30-year's fifth step even though the two series move by different amounts on a typical day. A figure near zero says the two centres almost coincide and the tails balance; a figure away from zero, positive or negative, says the mean has been pulled toward the longer tail on that side while the median stayed with the bulk.
Stored on this device only; not graded.
Retrieval check
Mark your confidence before each answer. Every option carries an explanation; read the ones you rejected too.
-
1. Using the 30-year record: the worked example gives the mean and the standard deviation in basis points, and the text beneath it gives the smallest single-day change in percentage points. How many standard deviations below the mean does that smallest day sit? Enter a positive number to one decimal place (±0.15).
Source record: 30-Year Treasury Par Yield (as of 2026-10-30)
Tolerance ±0.15Choose your confidence first. -
2. On the 30-year record, one day's change is the largest in the window, and the worked example states how far above the mean it sits. Whatever that distance turns out to be, the mean of the 250 changes, compared with the median, is:
Choose your confidence first. -
3. A record of 250 daily changes shows a mean below its median. Read as a description of the sample, that says:
Choose your confidence first. -
4. One day in the 250-day window is far larger than every other day. Order these three summary figures by how much that single day can move them, from least to most.
- The median
- The mean
- The maximum
Choose your confidence first.