Home   >   User Resources   >   Online Help   >   apaCorrels.Implied.CVaR
 

 

Function index Version 3.0.0

apaCorrels.Implied.CVaR(TimeSeries, ConfidenceLevel, Weight)

Excel=apaCorrels.Implied.CVaR(TimeSeries, ConfidenceLevel, Weight)

Result

Calculates the implied CVaR correlation matrix: for each pair of assets, the correlation that reproduces the CVaR of a two-asset portfolio when CVaRs are aggregated like volatilities.

Syntax

TimeSeries: nObs x nAssets matrix in which each column contains the return time series (scenarios) of an asset

ConfidenceLevel: optional; CVaR confidence level in [0, 1), e.g. 0.95; default: 0.95

Weight: optional; weight of the row asset i in each two-asset portfolio, in (0, 1); the column asset j receives 1 - Weight; default: 0.5

Remarks

For each pair (i, j), the function computes the CVaR of asset i, of asset j and of the portfolio Weight x asset i + (1 - Weight) x asset j, and returns rho_ij = (CVaR_p^2 - w_i^2 CVaR_i^2 - w_j^2 CVaR_j^2) / (2 w_i w_j CVaR_i CVaR_j), i.e. the correlation that reproduces the portfolio CVaR with the variance aggregation rule. CVaR is defined exactly as in the mean-CVaR optimizer (apaMeanCVaR functions, apaMeanCVaR.Assets): the historical Rockafellar-Uryasev CVaR of the raw returns, expressed as a positive loss, i.e. the average of the worst (1 - ConfidenceLevel) x nObs scenario returns with a fractional weight on the boundary scenario; returns are not demeaned. Because this CVaR is subadditive, the implied correlation does not exceed 1; values below 1 measure the CVaR diversification that the optimizer sees between the two assets. For normally distributed returns with zero means the implied correlation equals the Pearson correlation; non-zero means and heavy or asymmetric tails make it differ. The result depends on Weight; with Weight = 0.5 the matrix is symmetric, otherwise element (i, j) uses the weight Weight for the row asset i. The matrix is not guaranteed to be positive semi-definite. Results are clamped to [-1, 1]; a non-positive portfolio CVaR returns -1. #N/A is returned for every element involving an asset whose own CVaR is zero or negative, which happens when the average of its worst scenarios is not a loss. TimeSeries must be a complete numeric matrix (empty cells are read as 0, text returns #VALUE!).