Finite-sample Gaussian efficiency: Shamos vs. Rousseeuw-Croux Qn scale estimators

Andrey Akinshin · 2023-12-19

Previously, we compared the finite-sample Gaussian efficiency of the Rousseeuw-Croux scale estimators and the QAD estimator. In this post, we compare the finite-sample Gaussian efficiency of the Shamos scale estimator and the Rousseeuw-Croux $Q_n$ scale estimator. This is a particularly interesting comparison. In the famous “Alternatives to the Median Absolute Deviation” (1993) paper by Peter J. Rousseeuw and Christophe Croux, the authors presented $Q_n$ as an improved version of the Shamos estimator. Both estimators are based on the set of pairwise absolute differences between the elements of the sample. The Shamos estimator takes the median of this set and, therefore, has the asymptotic breakdown point of $\approx 29\%$ and the asymptotic Gaussian efficiency of $\approx 86\%$. $Q_n$ takes the first quartile of this set and, therefore, has the asymptotic breakdown point of $\approx 50\%$ (like the median) and the asymptotic Gaussian efficiency of $\approx 82\%$. It sounds like a good deal: we trade $4\%$ of the asymptotic Gaussian efficiency for $21\%$ of the asymptotic breakdown point. What could possibly stop us from using $Q_n$ everywhere instead of the Shamos estimator?

Well, here is a trick. The breakdown point of $29\%$ is actually a practically reasonable value. If more than $29\%$ of the sample are outliers, we should probably consider them not as outliers but as a separate mode. Such a situation should be handled by a multimodality detector and lead us to a different approach. The usage of dispersion estimators in the case of multimodal distributions is potentially misleading. When such a multimodality diagnostic scheme is used, there is no practical need for a higher breakdown point.

Thus, the breakdown point of $50\%$ is not so impressive property of $Q_n$. Meanwhile, the drop in Gaussian efficiency is not so enjoyable. $4\%$ may sound like a negligible difference, but it is only the asymptotic value. In real life, we typically tend to work with finite samples. Let us explore the actual finite-sample Gaussian efficiency values of these estimators.

While the asymptotic gap of $4\%$ is indeed small, the finite-sample gap is much more significant. Even for $n=4$ the gap is about $7\%$ ($84\%$ vs. $77\%$). For small samples, the gap magnitude can be quite dramatic. Here are the values for $3 \leq n \leq 20$:

nshamosqngap
30.7080.3170.392
40.7900.5160.273
50.6560.4000.256
60.6800.5560.124
70.7040.4690.235
80.7100.5790.130
90.7320.5240.208
100.7410.5990.141
110.7370.5530.184
120.7550.6150.140
130.7650.5790.186
140.7640.6290.134
150.7740.6010.174
160.7800.6420.138
170.7780.6160.163
180.7860.6520.134
190.7910.6350.157
200.7940.6640.130

Based on these observations, it seems that the Shamos estimator has a higher potential to be practically useful than $Q_n$ (especially on small samples!).