apaMeanCVaR.Assets(ReturnMatrix, ConfidenceLevel)
=apaMeanCVaR.Assets(ReturnMatrix, ConfidenceLevel)Result
Returns a 2 x nAssets matrix with the average return of each asset in the first row and its conditional value at risk (CVaR) in the second row. The CVaR is calculated exactly as in the mean-CVaR optimizer (apaMeanCVaR.Restricted.Bounded.Frontier and the related apaMeanCVaR functions): the CVaR of an asset equals the CVaR the optimizer reports for a portfolio fully invested in that asset. The asset points and the efficient frontier are therefore on the same scale and can be plotted in one mean-CVaR diagram. The CVaR is expressed as a positive loss: a CVaR of 0.08 at a confidence level of 0.95 means that the average loss in the worst 5% of the scenarios is 8%. Both statistics are expressed in the periodicity of the input data and are not annualized.
Syntax
ReturnMatrix: nObs x nAssets matrix of asset returns or return scenarios, each column containing the returns of one asset; all rows are treated as equally likely
ConfidenceLevel: CVaR confidence level in [0, 1), e.g. 0.95
Algorithm
Each of the T scenarios has the probability 1/T. With the confidence level β, the CVaR of asset j is the Rockafellar-Uryasev expected shortfall, the same expression that the mean-CVaR optimizer minimizes as a linear program:
The minimizing z is the value at risk. The function evaluates the minimum in closed form. With the returns of asset j sorted in ascending order, r(1) ≤ r(2) ≤ … ≤ r(T), the tail size τ and its integer part n are
The CVaR is thus the average loss of the worst τ scenarios. If τ is not an integer, the boundary scenario r(n + 1) enters with the fractional weight τ - n. The average return in the first row is the arithmetic mean of each column.
Remarks
The CVaR is computed per asset, i.e. without diversification; it is not additive across assets. With a confidence level of 0, the CVaR equals the negative average return. apaCVaR.Empirical uses a different convention: it reports the tail average as a (negative) return and averages only the scenarios strictly below the empirical VaR without a fractional boundary scenario, so its figures can differ from apaMeanCVaR.Assets in sign and, for small samples, in magnitude. Use apaMeanCVaR.Assets whenever assets are compared with the output of the mean-CVaR optimizer. See apaMeanVariance.Assets for the corresponding mean-volatility coordinates.
