apaVolatilities.MatchObservedVaRs(VaR, Mu, ConfidenceLevel)
Excel
=apaVolatilities.MatchObservedVaRs(VaR, Mu, ConfidenceLevel)Result
Finds the normal volatilities which reproduce given values at risk (VaR), given the means and a confidence level.
Syntax
VaR: 1 x c vector of VaR figures to match
Mu: 1 x c vector of location parameters
ConfidenceLevel: confidence level, e.g. 0.95.
Algorithm
For each constituent, the volatility is calculated as σ = (VaR - Mu) / z, with z the (1 - ConfidenceLevel) quantile of the standard normal distribution.
Remarks
VaR figures are expressed as returns, i.e. losses are negative figures.
