apaVaR.EVT.GP(Returns, Threshold, ConfidenceLevel)
Excel
=apaVaR.EVT.GP(Returns, Threshold, ConfidenceLevel)Result
Calculates value at risk (VaR) based on extreme value theory, from a generalized Pareto distribution fitted to the losses beyond the threshold.
Syntax
Returns: r x 1 vector of returns
Threshold: return threshold defining the tail
ConfidenceLevel: confidence level, e.g. 0.95.
Algorithm
S and K are the scale and shape parameters of the fitted generalized Pareto distribution.
