x: - gVaR(), gEX():: matrix of (rowwise) multivariate losses.
VaR_np(), ES_np(), RVaR_np():: if x is a matrix then rowSums() is applied first (so value-at-risk and expected shortfall of the sum is computed).
otherwise:: vector of losses.
level: - RVaR_np():: vector of length 1 or 2 giving the lower and upper confidence level; if of length 1, it is interpreted as the lower confidence level and the upper one is taken to be 1.
gVaR(), gEX():: vector or matrix of (rowwise) confidence levels alpha
shape: - VaR_GPD(), ES_GPD():: GPD shape parameter xi, a real number.
VaR_Par(), ES_Par():: Pareto shape parameter theta, a positive number.
scale: - VaR_t(), ES_t():: t scale parameter sigma, a positive number.
VaR_GPD(), ES_GPD():: GPD scale parameter beta, a positive number.
VaR_Par(), ES_Par():: Pareto scale parameter kappa, a positive number.
df: degrees of freedom, a positive number; choose df = Inf
for the normal distribution. For the standardized t
distributions, df has to be greater than 2.
threshold: threhold u (used to estimate the exceedance probability based on the data x).
p.exceed: exceedance probability; typically mean(x > threshold)
for x being the data modeled with the peaks-over-threshold (POT) method.
start: vector of initial values for the underlying optim().
method: - ES_np():: character string indicating the method for computing expected shortfall.
gVaR(), gEX():: the optimization method passed to the underlying optim().
verbose: logical indicating whether verbose output is given (in case the mean is computed over (too) few observations).
...: - VaR_np():: additional arguments passed to the underlying quantile().
ES_np(), RVaR_np():: additional arguments passed to the underlying VaR_np().
gVaR(), gEX():: additional arguments passed to the underlying optim().
Returns
VaR_np(), ES_np(), RVaR_np() estimate value-at-risk, expected shortfall and range value-at-risk non-parametrically. For expected shortfall, if method = ">="
(method = ">", the default), losses greater than or equal to (strictly greater than) the nonparametric value-at-risk estimate are averaged; in the former case, there might be no such loss, in which case NaN is returned. For range value-at-risk, losses greater than the nonparametric VaR estimate at level level[1] and less than or equal to the nonparametric VaR estimate at level level[2] are averaged.
VaR_t(), ES_t() compute value-at-risk and expected shortfall for the t (or normal) distribution. VaR_t01(), ES_t01() compute value-at-risk and expected shortfall for the standardized t (or normal) distribution, so scaled t
distributions to have mean 0 and variance 1; note that they require a degrees of freedom parameter greater than 2.
VaR_GPD(), ES_GPD() compute value-at-risk and expected shortfall for the generalized Pareto distribution (GPD).
VaR_Par(), ES_Par() compute value-at-risk and expected shortfall for the Pareto distribution.
gVaR(), gEX() compute the multivariate geometric value-at-risk and expectiles suggested by Chaudhuri (1996) and Herrmann et al. (2018), respectively.
Details
The distribution function of the Pareto distribution is given by