LibraryQuant puzzles

Which Moments a Sample Will Support

Quant puzzle · medium · free, full solution

The question

Every tail index estimate needs a threshold chosen by hand, and the choice moves the answer. Here is a statistic with nothing to choose. For a sample X1,…,XnX_1, \ldots, X_n and a power pp, define the largest term's share of the total pp-th power:

Rp(n)=max⁡i≤n∣Xi∣p∑i≤n∣Xi∣pR_p(n) = \frac{\max_{i \le n} \left|X_i\right|^p}{\sum_{i \le n} \left|X_i\right|^p}
  1. What does Rp(n)R_p(n) do as nn grows when E∣X∣p\mathbb{E}\left|X\right|^p is finite, and what does it do when it is not? Give the rate in the first case.
  2. From the table below, read off the highest moment that exists and estimate the tail index.
  3. One row is a trap. Say which, and why a row that keeps falling is not evidence that its moment exists.
  4. At n=104n = 10^4 the p=4p = 4 ratio has a median of 0.346, a mean of 0.411 and a standard deviation of 0.253, with a tenth percentile of 0.133 and a ninetieth of 0.820. What does that do to the diagnostic, and how should it be run?

The table is simulated from an iid generator with an unknown power tail, one million draws at the largest size, medians over hundreds of replications:

ppn=103n = 10^3n=104n = 10^4n=105n = 10^5n=106n = 10^6
10.007490.001630.0003450.000072
20.04410.02050.009080.00395
30.1640.1340.1060.0820
40.3480.3460.3410.301

Hint

Ask how the largest term and the sum each grow with sample size, first when the average of the p-th power is finite and then when it is not. In the table, look at the slope across sizes rather than at any single value.

The idea behind it

The largest observation's share of the total is a statistic about moment existence, and unlike every fitted tail index it has nothing in it for the analyst to choose.

Worked solution

Part 1: two regimes, and the rate

Set Yi=∣Xi∣pY_i = \left|X_i\right|^p and suppose ∣X∣\left|X\right| has a regularly varying tail with index α\alpha. Raising to a power divides the index:

P(Y>y)=P(∣X∣>y1/p)∼C y−α/pP\left(Y > y\right) = P\left(\left|X\right| > y^{1/p}\right) \sim C\, y^{-\alpha/p}

so YY has tail index β=α/p\beta = \alpha/p, and E[Y]=E∣X∣p\mathbb{E}[Y] = \mathbb{E}|X|^p is finite exactly when β>1\beta > 1, which is the usual statement that moments of order below α\alpha exist McNeil et al. (2015).

When the moment exists. The denominator obeys the law of large numbers, Sn≈n E[Y]S_n \approx n\,\mathbb{E}[Y]. The numerator is the maximum of nn draws from a tail with index β\beta, which grows like n1/βn^{1/\beta}, since the largest of nn draws sits where the survival function equals 1/n1/n. So

Rp(n)=MnSn=Op(n1/β−1)=Op(np/α−1)R_p(n) = \frac{M_n}{S_n} = O_p\left(n^{1/\beta - 1}\right) = O_p\left(n^{p/\alpha - 1}\right)

It goes to zero, at a power rate that is steepest for small pp and flattens as pp approaches α\alpha.

When the moment does not exist. With β<1\beta < 1 there is no law of large numbers. The sum has a stable limit, Sn/n1/βS_n / n^{1/\beta} converging in distribution, and the maximum grows at exactly the same order n1/βn^{1/\beta}. The ratio is then Op(1)O_p(1) with a nondegenerate limiting distribution. The clean statement behind all of this: for iid nonnegative draws, Mn/Sn→0M_n / S_n \to 0 almost surely if and only if E[Y]\mathbb{E}[Y] is finite. The largest term keeps a nonvanishing share of the total forever precisely when the mean is infinite.

So the diagnostic is a dichotomy, not a fit. Decays like a power of nn: the moment exists. Refuses to decay: it does not.

Line chart of Largest term's share of the total against Sample size. p = 1. 1,000: 0.00749; 10,000: 0.00163; 100,000: 0.000345; 1M: 0.000072. p = 2. 1,000: 0.0441; 10,000: 0.0205; 100,000: 0.00908; 1M: 0.00395. p = 3. 1,000: 0.164; 10,000: 0.134; 100,000: 0.106; 1M: 0.082. p = 4. 1,000: 0.348; 10,000: 0.346; 100,000: 0.341; 1M: 0.301.Largest term's share of the total1e-51e-40.0010.010.111,00010,000100,0001MSample sizep = 4p = 3p = 2p = 1Line chart of Largest term's share of the total against Sample size. p = 1. 1,000: 0.00749; 10,000: 0.00163; 100,000: 0.000345; 1M: 0.000072. p = 2. 1,000: 0.0441; 10,000: 0.0205; 100,000: 0.00908; 1M: 0.00395. p = 3. 1,000: 0.164; 10,000: 0.134; 100,000: 0.106; 1M: 0.082. p = 4. 1,000: 0.348; 10,000: 0.346; 100,000: 0.341; 1M: 0.301.Largest term's share of the totalp = 1p = 2p = 3p = 41e-51e-40.0010.010.111,00010,000100,0001MSample size
The first two powers fall as straight lines on these axes, which is the power decay the criterion predicts, and the fourth is nearly flat across three decades of extra data.

Medians over hundreds of replications, the table above drawn on logarithmic axes.

Part 2: reading the table

Take per-decade ratios of the medians. If Rp∝np/α−1R_p \propto n^{p/\alpha - 1}, then a factor of ten in nn multiplies the median by 10p/α−110^{p/\alpha - 1}, so the implied index is α^=p/(1+log⁡10ratio)\hat{\alpha} = p / \left(1 + \log_{10}\text{ratio}\right).

pp103→10410^3 \to 10^4104→10510^4 \to 10^5105→10610^5 \to 10^6implied α\alpha
10.2180.2120.2092.96, 3.07, 3.12
20.4640.4440.4353.00, 3.09, 3.13
30.8190.7930.7713.29, 3.34, 3.38
40.9970.9850.8814.01, 4.03, 4.23

The first two rows agree with each other on an index of about 3, from two different powers, which is the internal consistency check the method comes with. The generator was in fact a Pareto tail with α=3\alpha = 3, the value repeatedly measured on equity returns Gopikrishnan et al. (1998).

The fourth row does not decay: three decades of extra data move its median from 0.348 to 0.301 while the p=2p = 2 row falls by a factor of 11. Note what its implied index reads: 4.01, 4.03, 4.23, which is to say pp itself. A flat row always reports α=p\alpha = p, because zero slope gives p/(1+0)p/(1+0). That is the signature to look for, and it is why the fourth moment is the first one that does not exist here.

Part 3: the trap is the third row

The p=3p = 3 row keeps falling, from 0.164 to 0.082, and its moment does not exist either. For a Pareto tail with α=3\alpha = 3,

E[X3]=∫1∞3x−4x3 dx=∫1∞3x dx=∞\mathbb{E}\left[X^3\right] = \int_1^{\infty} 3 x^{-4} x^3 \, dx = \int_1^{\infty} \frac{3}{x}\, dx = \infty

The moment diverges, logarithmically. Moments of order below α\alpha exist and the boundary itself does not, and a logarithmic divergence is slow enough that the ratio still drifts down over any span of sample sizes we can simulate.

So a decaying row is not evidence that the moment exists. What separates the third row from the first two is not that it fails to decay, it is that it fails to decay at a power rate: its implied index is 3.29 and rising rather than settling, where the honest rows sit flat near 3. Reading the boundary correctly means noticing a drift in a second derivative, and that is not something to bet a capital number on.

The practical rule that survives this: the largest pp whose implied index is stable and agrees with the smaller powers is a lower bound on α\alpha, and the smallest pp whose implied index reads back as pp is an upper bound. Here that brackets α\alpha between 2 and 4, and the agreement of the first two rows puts it near 3. A bracket of that width is what this method actually delivers, and pretending otherwise would repeat the mistake it was built to avoid.

Part 4: the dispersion, which is most of the story

A median of 0.346 with a tenth percentile of 0.133 and a ninetieth of 0.820 means one sample tells us close to nothing. The ratio's own distribution is heavy, which is not a surprise: it is a functional of the largest observation, so it inherits the pathology it is measuring. Two consequences follow and both are operational.

Never read a single number. The diagnostic is the slope across sample sizes, not the value at one. Run it on nested prefixes of the same sample, n/1000n/1000, n/100n/100, n/10n/10, nn, and look at the trajectory.

Use the median, not the mean. In the table above the mean at p=4p = 4, n=103n = 10^3 is 0.414 against a median of 0.348, and the mean is the noisier of the two by a wide margin because a single replication can land near 1. Across replications the medians have bootstrap standard errors of a few parts in a thousand where the means wander.

The dispersion also caps what the method can claim. A bracket of α\alpha between 2 and 4, which is roughly what the table supports, is not much narrower than what a Hill estimator gives, and the two disagree in a useful way: the Hill estimate on the same kind of data can be tight and wrong, because a threshold pushed into the body biases it downward while the quoted standard error shrinks Weron (2001). This diagnostic has no threshold to push, so it is honest about its own width. Being visibly imprecise is a feature when the alternative is being invisibly biased.

Where it breaks

Independence. The rates above all assume iid draws. Volatility clustering makes large observations arrive in bursts, which inflates the maximum relative to the sum at any given nn and biases the diagnostic toward declaring moments nonexistent.

It sees the sample, not the population. Every real quantity is truncated somewhere, and a truncated power law has all its moments. What the table measures is the behaviour of the observed range, which is the same limitation every tail method has, stated without a fitted parameter to hide it in.

It gives a bracket, not a number. Anything downstream that needs α\alpha to two decimal places is not going to get it from here. It is not going to get it from anywhere else either, which is the more useful finding.

If the largest observation still owns a third of the total after a million draws, what exactly did the sample average of the fourth power converge to?

In short

Moments of order below three exist and nothing at or above three does. The p=1p = 1 and p=2p = 2 columns fall at the predicted rate np/α−1n^{p/\alpha - 1} and both imply an index near 3.0; the p=4p = 4 column's median moves only from 0.348 to 0.301 across three decades of sample size, where the p=2p = 2 column falls by a factor of 11.

Learn quant finance on Thuztra Learn

Thuztra Learn teaches the maths of quant finance from zero, in short lessons, for readers who are unsure of it. Three questions in the app build your quant roadmap, free. Membership is a paid subscription. See what Thuztra Learn is and what it costs, or see the whole Core quant curriculum.

Get the app and answer the three questions:

Download on the Microsoft Store Download for Android

On Android, the app is a direct download, not a Google Play listing. Which devices, and what each one needs.

References

  1. McNeil, A. J., Frey, R., and Embrechts, P. (2015) Quantitative Risk Management: Concepts, Techniques and Tools. Revised edition.
  2. Gopikrishnan, P., Meyer, M., Amaral, L. A. N., and Stanley, H. E. (1998) Inverse Cubic Law for the Probability Distribution of Stock Price Variations. European Physical Journal B.
  3. Weron, R. (2001) Levy-Stable Distributions Revisited: Tail Index Greater Than Two Does Not Exclude the Levy-Stable Regime. International Journal of Modern Physics C.

Further reading

Related problems

Topics

Also in the library