Bootstrapped ES for specified confidence level
Estimates the bootstrapped ES for confidence level and holding period implied by data frequency.
BootstrapES(Ra, number.resamples, cl)
Ra
: Vector corresponding to profit and loss distributionnumber.resamples
: Number of samples to be taken in bootstrap procedurecl
: Number corresponding to Expected Shortfall confidence levelBootstrapped Expected Shortfall
# Estimates bootstrapped ES for given parameters a <- rnorm(100) # generate a random profit/loss vector BootstrapVaR(a, 50, 0.95)
Dinesh Acharya
Dowd, K. Measuring Market Risk, Wiley, 2007.
Useful links