Day 37 — Estimating a tail index, and why yours will move
Saturday, 12 September 2026 · Week 6 of 52 · Returns and noise · Study day · 60 min
The tail index decides whether the variance exists at all, which decides whether half the machinery of the next four weeks applies to your data.
What you should be able to do tonight
- Implement the Hill estimator and state what it is estimating, including which moments exist for a given estimate.
- Show how much the estimate moves with the number of order statistics used, and say how you would report it honestly.
Tasks 60 min
25 min Implement the Hill estimator yourself in ten lines: sort the exceedances, take the mean log ratio to the threshold, invert. Apply it to the left and right tail of SPY separately.
25 min Make the Hill plot: estimate against the number of upper order statistics k, for k from 20 to 500. Then say what you would report to someone who asked for one number, and why a single number without the plot is close to meaningless.
10 min Draw the consequence: at your estimated index, say which moments exist. If the estimate is near or below 4, the sample kurtosis you computed yesterday is estimating something that does not exist, and that is the explanation for its instability.
Resources
Deliverable
notebooks/day-037-tail-index.ipynb with a Hill plot for both tails of SPY and a stated estimate with its k-dependence.
Checkpoint
Your Hill estimate is 3.5. Which moments exist, and what does that do to the standard error of a sample variance?
Prepare for tomorrow
Ten minutes tonight so Day 38, Sunday, 13 September 2026 starts clean. This is what the evening email sends you.
Compute and plot the autocorrelation function of SPY daily returns out to 50 lags, and the autocorrelation of the absolute returns on the same axes.
Look at the two lines. The contrast is tomorrow’s entire subject.
Have the statsmodels tsa documentation page open.