apaMeanCDaR.Assets(ReturnMatrix, ConfidenceLevel)
=apaMeanCDaR.Assets(ReturnMatrix, ConfidenceLevel)Result
Returns a 2 x nAssets matrix with the average return of each asset in the first row and its conditional drawdown at risk (CDaR) in the second row. The CDaR is calculated exactly as in the mean-CDaR optimizer (apaMeanCDaR.Restricted.Bounded.Frontier and apaMeanCDaR.Restricted.Bounded.Axb.Frontier): the CDaR of an asset equals the CDaR 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-CDaR diagram. The CDaR is expressed as a positive drawdown: a CDaR of 0.15 at a confidence level of 0.95 means that the average of the worst 5% of the drawdowns is 15 percentage points of cumulative return. The average returns are expressed in the periodicity of the input data and are not annualized.
Syntax
ReturnMatrix: nObs x nAssets matrix of asset returns in chronological order (oldest observation in the first row), each column containing the return time series of one asset
ConfidenceLevel: CDaR confidence level in [0, 1), e.g. 0.95; 0 gives the average drawdown, values close to 1 give the maximum drawdown
Algorithm
The CDaR follows Chekhlov, Uryasev and Zabarankin and uses the same drawdown definition as the linear program of the mean-CDaR optimizer. With T returns r(t, j) of asset j, the cumulative uncompounded return and the drawdown in period t are
The running peak includes the starting value R(0) = 0, so an initial loss already counts as a drawdown. All T drawdowns enter the calculation with the probability 1/T, including the periods without a drawdown (DD = 0). With the confidence level β, the CDaR is the Rockafellar-Uryasev tail average of the drawdowns:
The minimizing z is the drawdown at risk (DaR). The function evaluates the minimum in closed form. With the drawdowns of asset j sorted in descending order, DD(1) ≥ DD(2) ≥ … ≥ DD(T), the tail size τ and its integer part n are
The CDaR is thus the average of the τ largest drawdowns. If τ is not an integer, the boundary drawdown DD(n + 1) enters with the fractional weight τ - n. With β = 0 the CDaR equals the average drawdown, and for β ≥ 1 - 1/T it equals the maximum drawdown. The average return in the first row is the arithmetic mean of each column.
Remarks
The CDaR is computed per asset, i.e. without diversification; it is not additive across assets. Because drawdowns depend on the order of the observations, the rows of ReturnMatrix must be in chronological order.
apaCDaR.Empirical uses a different convention, so its figures generally differ from apaMeanCDaR.Assets. (1) Compounding: apaCDaR.Empirical measures drawdowns of the compounded wealth path, W(t) / max W(s) - 1, whereas apaMeanCDaR.Assets uses differences of cumulative uncompounded returns, as required for the linear program of the optimizer. For large losses the two differ markedly; uncompounded drawdowns can exceed 100%. (2) Sign: apaCDaR.Empirical reports drawdowns as negative returns, apaMeanCDaR.Assets as positive numbers. (3) Sample: apaCDaR.Empirical drops all periods without a drawdown and applies the confidence level to the underwater periods only, whereas apaMeanCDaR.Assets applies it to all T periods. (4) Tail definition: apaCDaR.Empirical determines the DaR as the interpolated empirical percentile of the drawdowns and averages the drawdowns strictly beyond it, without a fractional boundary observation; with IsSmooth = TRUE it additionally blends in the DaR. apaMeanCDaR.Assets uses the Rockafellar-Uryasev tail average with the fractional boundary weight described above.
Use apaMeanCDaR.Assets whenever assets are compared with the output of the mean-CDaR optimizer, and apaCDaR.Empirical when drawdowns of the compounded wealth path are of interest. See apaMeanCVaR.Assets and apaMeanVariance.Assets for the corresponding mean-CVaR and mean-volatility coordinates.
