Percentile of historical simulation ES distribution function
Estimates percentiles of historical simulation ES distribution function, using theory of order statistics, for specified confidence level.
HSESDFPerc(Ra, perc, cl)
Ra
: Vector of daily P/L dataperc
: Desired percentile and is scalarcl
: VaR confidence level and is scalarValue of percentile of VaR distribution function
# Estimates Percentiles for random standard normal returns and given perc # and cl Ra <- rnorm(100) HSESDFPerc(Ra, .75, .95)
Dinesh Acharya
Dowd, K. Measuring Market Risk, Wiley, 2007.
Useful links
Downloads (last 30 days):