Cost functional method
The original paper propose is to minimize the Kolmogorov-Smirnov standard statstics, given by:
but we can give a weight to this measure, defining the weighted-KS statistics for a theoretical distribution :
In fact, one can show that to choose is to make the measure variations uniformly over the interval .
With these two stats, the standard one and the uniformly one, the long tail has the same weight as the data in the neighborhood. So, if we want to maximize the long tail, we can build a weight that is low near and grows in the tail. One solution is to consider as and . That is:
This weight is, however, instable and does not give a good statistical measure.
In other way, we can define a cost functional:
where is the original data size. The interpratation is imediate: is the cost of the longtail length and minimize while considering the importance of the long tail is to minimize the functional . This revealed to be much more stable and rigorous.
Fitting with cost functional¶
The quantity does not represent any formal statistical measure; instead, we need information theory to give a formal sense to it. The cost is, somehow, like a lagrangian multiplier so that
represents the lost information if we drop points from the original data. Minimizing , then, is minimize the KS measure minimizing the lost of information in the tail.
is a trade off parameters which tells us, for a given KS value, how plausible a given can be for the cost functional. So we have to apply the p-value bootstrap test to verify what are the plausible values for ; in other words, cannot be a free parameters for the model. The values