Skip to content
LeetQuant
F5 Statistics and Inference

F5 · Statistics and Inference · Lesson 2 of 4

Descriptive Statistics and Robust Estimators

Location, spread and shape statistics, how far a few bad points can push each one, and why financial returns need robust versions.

16 min

What a summary statistic is for

A descriptive statistic compresses a sample into one number that answers a question: where is the centre, how wide is the spread, how lopsided or heavy-tailed is the shape? The objective of this lesson is to know, for each standard statistic, what loss it minimises, what it assumes, and how many contaminated points it can survive. Financial returns are the reason this matters: one crash day can dominate a year of data.

Location: mean, median, trimmed mean

  • The mean xˉ\bar x minimises ∑(xi−c)2\sum (x_i - c)^2. It uses every observation with equal weight, so a single point moved by Δ\Delta moves the mean by Δ/n\Delta / n, without limit.
  • The median minimises ∑∣xi−c∣\sum |x_i - c|. Moving any one point beyond the middle does not move it at all.
  • The α\alpha-trimmed mean sorts the data, drops the lowest and highest αn\alpha n points, and averages the rest. It interpolates between the mean (α=0\alpha = 0) and the median (α→50%\alpha \to 50\%). A winsorised mean instead replaces the extreme points by the most extreme retained value rather than dropping them.

For a symmetric distribution all three estimate the same centre. For a skewed one they estimate different quantities: in a right-skewed distribution such as the lognormal, mean >> median. Choosing a robust estimator then changes the question, not just the noise.

Spread: standard deviation, MAD, IQR

  • Standard deviation s=1n−1∑(xi−xˉ)2s = \sqrt{\tfrac{1}{n-1}\sum (x_i - \bar x)^2}. Squared deviations make it even more sensitive to outliers than the mean.
  • Median absolute deviation MAD=median⁡i∣xi−median⁡(x)∣\text{MAD} = \operatorname{median}_i |x_i - \operatorname{median}(x)|.
  • Interquartile range IQR=Q3−Q1\text{IQR} = Q_3 - Q_1.

Neither MAD nor IQR equals σ\sigma, even for normal data. To estimate σ\sigma under normality, rescale:

σ^MAD=1.4826×MAD,σ^IQR=IQR1.349.\hat\sigma_{\text{MAD}} = 1.4826 \times \text{MAD}, \qquad \hat\sigma_{\text{IQR}} = \frac{\text{IQR}}{1.349} .

Both constants come from the normal quantile z0.75=0.6745z_{0.75} = 0.6745: 1/0.6745=1.48261/0.6745 = 1.4826 and 2×0.6745=1.3492 \times 0.6745 = 1.349.

Breakdown point and efficiency

The breakdown point is the largest fraction of the sample that can be replaced by arbitrary values while the estimate stays bounded.

EstimatorBreakdown point
Mean, standard deviation00 (one point suffices)
α\alpha-trimmed meanα\alpha
IQR25%25\%
Median, MAD50%50\% (the maximum possible)

Robustness is not free. For normal data the median's variance is about π/2≈1.57\pi/2 \approx 1.57 times the mean's in large samples, so its asymptotic relative efficiency is 2/π≈0.642/\pi \approx 0.64: the median needs roughly 57% more data for the same precision. A 10% trimmed mean loses only a few percent of efficiency under normality and gains a lot under fat tails. For the Laplace distribution the median is actually more efficient than the mean; for a Student-tt with 3 degrees of freedom the trimmed mean and the median both beat it.

Shape: skewness and kurtosis

With central sample moments mk=1n∑(xi−xˉ)km_k = \tfrac1n \sum (x_i - \bar x)^k,

skewness=m3m23/2,kurtosis=m4m22,excess kurtosis=m4m22−3.\text{skewness} = \frac{m_3}{m_2^{3/2}}, \qquad \text{kurtosis} = \frac{m_4}{m_2^{2}}, \qquad \text{excess kurtosis} = \frac{m_4}{m_2^{2}} - 3 .

The normal has skewness 0 and excess kurtosis 0. The Laplace has excess kurtosis 3; a Student-tνt_\nu has 6/(ν−4)6/(\nu - 4) for ν>4\nu > 4 and infinite kurtosis for ν≤4\nu \le 4. Daily equity index returns typically show negative skew and excess kurtosis well above 3.

The catch: skewness and kurtosis are built from third and fourth powers, so they are the least robust statistics of all. A sample kurtosis mostly tells you about the one or two largest observations. Robust alternatives use quantiles, for example Bowley skewness (Q3+Q1−2Q2)/(Q3−Q1)(Q_3 + Q_1 - 2Q_2)/(Q_3 - Q_1).

Worked example

ten days with a crash

Ten daily returns (in %) are 0.3,−0.5,0.1,0.8,−0.2,0.4,−0.7,0.2,0.0,−9.00.3, -0.5, 0.1, 0.8, -0.2, 0.4, -0.7, 0.2, 0.0, -9.0. Compute the mean, median, 10% trimmed mean, sample standard deviation, MAD and IQR, and the two robust estimates of σ\sigma. Use the medians of the lower and upper five values as quartiles.

Show solution

Sorted: −9.0,−0.7,−0.5,−0.2,0.0,0.1,0.2,0.3,0.4,0.8-9.0, -0.7, -0.5, -0.2, 0.0, 0.1, 0.2, 0.3, 0.4, 0.8.

Location. The sum is −8.6-8.6, so the mean is −0.86%-0.86\%. The median is the average of the 5th and 6th values, (0.0+0.1)/2=0.05%(0.0 + 0.1)/2 = 0.05\%. The 10% trimmed mean drops one value from each end (−9.0-9.0 and 0.80.8) and averages the remaining eight, whose sum is −0.4-0.4: −0.05%-0.05\%.

Spread. The sample standard deviation is 2.89%2.89\%. Without the crash day it would be 0.46%0.46\%, so one point inflates it more than sixfold.

For the MAD, the absolute deviations from 0.050.05 are, sorted, 0.05,0.05,0.15,0.25,0.25,0.35,0.55,0.75,0.75,9.050.05, 0.05, 0.15, 0.25, 0.25, 0.35, 0.55, 0.75, 0.75, 9.05. Their median is (0.25+0.35)/2=0.30(0.25 + 0.35)/2 = 0.30, so σ^MAD=1.4826×0.30≈0.44%\hat\sigma_{\text{MAD}} = 1.4826 \times 0.30 \approx 0.44\%.

Quartiles: Q1=Q_1 = median of {−9.0,−0.7,−0.5,−0.2,0.0}=−0.5\{-9.0, -0.7, -0.5, -0.2, 0.0\} = -0.5, Q3=Q_3 = median of {0.1,0.2,0.3,0.4,0.8}=0.3\{0.1, 0.2, 0.3, 0.4, 0.8\} = 0.3. So IQR=0.8\text{IQR} = 0.8 and σ^IQR=0.8/1.349≈0.59%\hat\sigma_{\text{IQR}} = 0.8 / 1.349 \approx 0.59\%. (Software quartile conventions differ; statistics.quantiles(..., method="inclusive") gives Q1=−0.425Q_1 = -0.425, Q3=0.275Q_3 = 0.275. With ten points that matters; with thousands it does not.)

Reading it. The robust estimates describe a typical day (centre near zero, σ\sigma near 0.5%). The mean and standard deviation describe the crash. Neither is wrong: for risk you care about the crash, so the right move is to report both and look at the tail separately rather than let one statistic hide it.

Worked example

one day can be the whole kurtosis

A year of 250 daily returns, measured in units of their own volatility, has mean 0, variance 1 and kurtosis exactly 3 (so ∑xi2=250\sum x_i^2 = 250 and ∑xi4=750\sum x_i^4 = 750, with ∑xi=∑xi3=0\sum x_i = \sum x_i^3 = 0). Add one day of −20-20. What happens to the mean, standard deviation, skewness and excess kurtosis?

Show solution

Now n=251n = 251. The raw sums become ∑x=−20\sum x = -20, ∑x2=650\sum x^2 = 650, ∑x3=−8000\sum x^3 = -8000, ∑x4=160 750\sum x^4 = 160\,750.

  • Mean: −20/251≈−0.080-20 / 251 \approx -0.080.
  • Variance: m2=650/251−0.0802≈2.583m_2 = 650/251 - 0.080^2 \approx 2.583, so the standard deviation goes from 11 to 1.611.61.
  • Skewness: m3≈−31.2m_3 \approx -31.2, giving m3/m23/2≈−7.5m_3 / m_2^{3/2} \approx -7.5.
  • Kurtosis: m4≈630.4m_4 \approx 630.4, giving m4/m22≈94.5m_4/m_2^2 \approx 94.5, so excess kurtosis jumps from 00 to about 91.591.5.

The single day contributes 99.5%99.5\% of ∑(xi−xˉ)4\sum (x_i - \bar x)^4. A reported kurtosis of 90 does not mean "the distribution is uniformly fat-tailed"; it means "there was a big day". It is also why a kurtosis estimated from one window is so unstable from window to window.

For scale: under a normal model, a −5σ-5\sigma day has probability 2.9×10−72.9 \times 10^{-7}, about once in 14 00014\,000 years of trading. Under a Student-t3t_3 rescaled to unit variance it has probability 0.00160.0016, about once every 2.52.5 years. The normal is not a slightly wrong model of the tails; it is wrong by orders of magnitude.

How to answer in an interview

Asked "how would you estimate the volatility of this return series?", a strong answer names the trade-off: the sample standard deviation is efficient under normality but has breakdown point 0; a scaled MAD or IQR is robust but measures typical moves, not tail risk; and because returns cluster in volatility, a recency-weighted estimate (such as EWMA) may matter more than the choice of estimator. Then say what you would check: plot the series, look at the largest absolute values, and compare robust and classical estimates. A large gap between them is itself a finding.

Knowledge check

You compute a 10% trimmed mean (10% dropped from each end) of 200 returns. What is the largest number of observations an adversary can corrupt while the estimate stays bounded?

Knowledge check

What is the median absolute deviation (unscaled) of the data 1, 2, 3, 4, 100?

Knowledge check

Daily returns have a MAD of 0.6%. Assuming the bulk of the distribution is roughly normal, what is the robust estimate of daily sigma?

Practice problems

Finished reading?

Answer the 3 knowledge checks to complete this lesson (0 done).