Reading Numbers Like an Analyst · Lesson 2 of 6

Why the median for a lopsided sample: robustness to outliers

One concept: robustness to outliers

By — Founder, Kitalpha Finance · Passed Level I of the CFA Program
Published 17 September 2026 · 9 min

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-09-15 to 2026-09-15. On the median day of that window the yield moved by 0.000 percentage points. On the most extreme day it moved by 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.

Daily changes in the 30-year par yield: where the mean and the median sit Notice: Read the thin bars at the far left and far right: the side that reaches further out is the longer tail, and the mean's line sits on that side of the median's; where the two lines coincide, the tails balance. A histogram of the last 250 daily changes in the 30-year Treasury par yield, in percentage points, with bars 0.02 wide. Most days sit in the tall bars close to zero. A few days sit in short bars far from the centre, forming the tails. Two vertical lines mark the sample's mean and its median; their gap, and which side of the median the mean falls on, reflect the tail that reaches further out. The table below lists every bar's range and its count of days. Source: U.S. Department of the Treasury · as of 2026-09-15 · 30-Year Treasury Par Yield
-0.1 -0.06 -0.02 0.02 0.06 0.1 Mean 0.003 Median 0.000 54 0 Daily change, percentage points Days
Data table for the chart: Daily changes in the 30-year par yield: where the mean and the median sit
Bin fromtoCount
-0.100-0.0803
-0.080-0.0605
-0.060-0.04011
-0.040-0.02036
-0.0200.00051
0.0000.02050
0.0200.04054
0.0400.06022
0.0600.08012
0.0800.1003
0.1000.1202
0.1200.1401

Worked example

Take the record from the opening: the 30-year par yield‘s last 250 daily changes. The record keeps its figures in percentage points; the steps convert them to basis points by multiplying by 100. Steps one to three read the two centre measures and their difference. Steps four to six express the largest single day as a number of standard deviations above the mean. The last step measures that one day’s pull on the mean: how far the mean would move if the day were dropped.

Record: 30-Year Treasury Par Yield · as of · Source: U.S. Department of the Treasury

  1. Mean daily change over the window, in basis points 0.28 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.
  2. Median daily change, in basis points 0.00
  3. Mean minus median, in basis points 0.28 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.
  4. Largest single-day change in the window, in basis points 13.00
  5. Standard deviation of the daily changes, in basis points 3.58 The typical distance of a day's change from the mean.
  6. Distance of the largest day above the mean, in standard deviations: (largest − mean) ÷ standard deviation 3.6
  7. 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 close to zero. Step six 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. Step seven is the robustness test: one day shifts the mean by that many basis points and shifts the median by at most one place in the sorted list. For the other tail, the smallest single-day change in the window was -0.100 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. Complete the last step: 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

  1. Mean daily change of the spread over the window, in basis points-0.07
  2. Median daily change, in basis points0.00
  3. Standard deviation of the daily changes, in basis points2.63
  4. Tolerance ±0.02

Reveal the answer and the explanation

-0.03 — Subtract the median from the mean, keeping the sign, then divide by the standard deviation. 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 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. 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-09-15)

    Before you answer: how confident are you?
    Tolerance ±0.15
    Choose your confidence first.
  2. 2. On the 30-year record, the largest single-day change sits several standard deviations from the mean. Compared with the median, the mean of the 250 changes is:

    Before you answer: how confident are you?
    Options
    Choose your confidence first.
  3. 3. A record of 250 daily changes shows a mean below its median. Read as a description of the sample, that says:

    Before you answer: how confident are you?
    Options
    Choose your confidence first.
  4. 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.

    Before you answer: how confident are you?
    1. The median
    2. The mean
    3. The maximum
    Choose your confidence first.

Your summary

Stored on this device only. Not graded, never uploaded.