orderlim: vector of (lower, upper) limits of order statistics to plot estimator, or NULL to use default values
tlim: vector of (lower, upper) limits of range of threshold to plot estimator, or NULL to use default values
y.alpha: logical, should shape xi (FALSE) or tail index alpha (TRUE) be given on y-axis
alpha: significance level over range (0, 1), or NULL for no CI
ylim: y-axis limits or NULL
legend.loc: location of legend (see legend) or NULL for no legend
try.thresh: vector of thresholds to consider
main: title of plot
xlab: x-axis label
ylab: y-axis label
...: further arguments to be passed to the plotting functions
Returns
pickandsplot gives Pickand's plot. It also returns a dataframe containing columns of the order statistics, order, Pickand's estimator, it's standard devation and 100(1−α)% confidence interval (when requested).
Details
Produces the Pickand's plot including confidence intervals.
For an ordered iid sequence X(1)≥X(2)≥⋯≥X(n)
the Pickand's estimator of the reciprocal of the shape parameter ξ
at the kth order statistic is given by
ξ^k,n=log(2)1log(X(2k)−X(4k)X(k)−X(2k)).
Unlike the Hill estimator it does not assume positive data, is valid for any ξ and is location and scale invariant. The Pickands estimator is defined on orders k=1,…,⌊n/4⌋.
Once a sufficiently low order statistic is reached the Pickand's estimator will be constant, upto sample uncertainty, for regularly varying tails. Pickand's plot is a plot of
ξ^k,n
against the k. Symmetric asymptotic normal confidence intervals assuming Pareto tails are provided.
The Pickand's estimator is for the GPD shape ξ, or the reciprocal of the tail index α=1/ξ. The shape is plotted by default using y.alpha=FALSE and the tail index is plotted when y.alpha=TRUE.
A pre-chosen threshold (or more than one) can be given in try.thresh. The estimated parameter (ξ or α) at each threshold are plot by a horizontal solid line for all higher thresholds. The threshold should be set as low as possible, so a dashed line is shown below the pre-chosen threshold. If Pickand's estimator is similar to the dashed line then a lower threshold may be chosen.
If no order statistic (or threshold) limits are provided orderlim = tlim = NULL then the lowest order statistic is set to X(1) and highest possible value X⌊n/4⌋. However, Pickand's estimator is always output for all k=1,…,⌊n/4⌋.
The missing (NA and NaN) and non-finite values are ignored.
The lower x-axis is the order k. The upper axis is for the corresponding threshold.
Note
Asymptotic Wald type CI's are estimated for non-NULL signficance level alpha
for the shape parameter, assuming exactly GPD tails. When plotting on the tail index scale, then a simple reciprocal transform of the CI is applied which may well be sub-optimal.
Error checking of the inputs (e.g. invalid probabilities) is carried out and will either stop or give warning message as appropriate.
Acknowledgments
Thanks to Younes Mouatasim, Risk Dynamics, Brussels for reporting various bugs in these functions.
Examples
## Not run:par(mfrow = c(2,1))# Reproduce graphs from Figure 4.7 of Resnick (2007)data(danish, package="evir")# Pickand's plotpickandsplot(danish, orderlim=c(1,150), ylim=c(-0.1,2.2), try.thresh=c(), alpha=NULL, legend.loc=NULL)# Using default settingspickandsplot(danish)## End(Not run)
References
Pickands III, J.. (1975). Statistical inference using extreme order statistics. Annal of Statistics 3(1), 119-131.
Dekkers A. and de Haan, S. (1989). On the estimation of the extreme-value index and large quantile estimation. Annals of Statistics 17(4), 1795-1832.
Resnick, S. (2007). Heavy-Tail Phenomena - Probabilistic and Statistical Modeling. Springer.