Quantile estimators based on k order statistics, Part 5: Improving trimmed Harrell-Davis quantile estimator
During the last several months, I have been experimenting with different variations of the trimmed Harrell-Davis quantile estimator. My original idea of using the highest density interval based on the fixed area percentage (e.g., HDI 95% or HDI 99%) led to a set of problems with overtrimming. I tried to solve them with manually customized trimming strategy, but this approach turned out to be too inconvenient; it was too hard to come up with optimal thresholds. One of the main problems was about the suboptimal number of elements that we actually aggregate to obtain the quantile estimation. So, I decided to try an approach that involves exactly k order statistics. The idea was so promising, but numerical simulations haven’t shown the appropriate efficiency level.
This bothered me the whole week. It sounded so reasonable to trim the Harrell-Davis quantile estimator using exactly k order statistics. Why didn’t this work as expected? Finally, I have found a fatal flaw in my previous approach: while it was a good idea to fix the size of the trimming window, I mistakenly chose its location following the equation from the Hyndman-Fan Type 7 quantile estimator!
In this post, we fix this problem and try another modification of the trimmed Harrell-Davis quantile estimator based on k order statistics and highest density intervals at the same time.
All posts from this series:
- Quantile estimators based on k order statistics, Part 1: Motivation (August 3, 2021)
- Quantile estimators based on k order statistics, Part 2: Extending Hyndman-Fan equations (August 10, 2021)
- Quantile estimators based on k order statistics, Part 3: Playing with the Beta function (August 17, 2021)
- Quantile estimators based on k order statistics, Part 4: Adopting trimmed Harrell-Davis quantile estimator (August 24, 2021)
- Quantile estimators based on k order statistics, Part 5: Improving trimmed Harrell-Davis quantile estimator (August 31, 2021)
- Quantile estimators based on k order statistics, Part 6: Continuous trimmed Harrell-Davis quantile estimator (September 7, 2021)
- Quantile estimators based on k order statistics, Part 7: Optimal threshold for the trimmed Harrell-Davis quantile estimator (September 14, 2021)
- Quantile estimators based on k order statistics, Part 8: Winsorized Harrell-Davis quantile estimator (September 21, 2021)
First of all, let’s see in detail what’s wrong with the approach from the previous blog post. To illustrate the problem, let’s consider the following setting:
\[n = 10, \quad k = 3, \quad p = 0.175. \]
Now let’s see the order statistics weights for the classic Harrell-Davis quantile estimator (HD) and its trimmed modifications based on the trimming window derived from the Hyndman-Fan Type 7 quantile estimator (THD-HF7):
The weights in the THD-HF7 column don’t look right.
Let’s see why do we have such a situation.
For the above settings, we have \(L = 0.14\) and \(R=0.34\).
Thus, to obtain THD-HF7 weights from the HD weights,
we should take 60% of
W, 100% of
W, 40% of
W, and normalize the values.
As a result, we have a strange situation:
W > W (while we have the opposite situation in the HD case),
W = 0 (while it has a noticeable impact on the result in the HD case).
Due to these illogical weight assignments, the statistical efficiency of THD-HF7 is poor (which was shown in the previous post).
It’s time to fix the problem and try another approach.
The updated approach
As stated earlier, we keep the idea of using k order statistics. It means that the size of the trimming window is fixed:
\[R_k - L_k = (k - 1) / n. \]
However, we are going to change the location of this window so as to get the highest density interval (HDI) of the Beta distribution.
It’s time to check our update approach!
We are going to take the same simulation setup that was declared in this post. Briefly speaking, we evaluate the classic MSE-based relative statistical efficiency of different quantile estimators on samples from different light-tailed and heavy-tailed distributions using the classic Hyndman-Fan Type 7 quantile estimator as the baseline.
The considered estimator based on k order statistics is denoted as “KOS-THDk”. The estimator from the previous post based on the adjusted beta function is denoted as “KOS-Bk”.
Here are some of the statistical efficiency plots:
It sounds reasonable to use the trimmed modifications of the Harrell-Davis quantile estimator with the trimming strategy based on k order statistics. Unlike the originally proposed approach with the trimming strategy based on the highest density interval of the given area, the updated version of THD doesn’t become degenerated in the corner cases (the problem of over-trimming). Also, it provides more direct control of the estimator breakdown point, which is also a nice feature.
In the next post, I will try to come up with further improvements of the suggested estimator.