Expected Shortfall for Generalized Pareto
Estimates the ES of a portfolio assuming losses are distributed as a generalised Pareto.
GParetoES(Ra, beta, zeta, threshold.prob, cl)
Ra
: Vector of daily Profit/Loss databeta
: Assumed scale parameterzeta
: Assumed tail indexthreshold.prob
: Threshold probabilitycl
: VaR confidence levelExpected Shortfall
# Computes ES assuming generalised Pareto for following parameters Ra <- 5 * rnorm(100) beta <- 1.2 zeta <- 1.6 threshold.prob <- .85 cl <- .99 GParetoES(Ra, beta, zeta, threshold.prob, cl)
Dinesh Acharya
Dowd, K. Measuring Market Risk, Wiley, 2007.
McNeil, A., Extreme value theory for risk managers. Mimeo, ETHZ, 1999.
Useful links
Downloads (last 30 days):