apaCDaRRatio(Returns, ConfidenceLevel, RiskfreeReturns, PeriodsPerYear)
=apaCDaRRatio(Returns, ConfidenceLevel, RiskfreeReturns, PeriodsPerYear)Result
Returns the conditional drawdown at risk ratio, the mean excess return divided by the absolute empirical CDaR.
Syntax
Returns: r x c matrix of returns. Each column represents a different time series.
ConfidenceLevel: confidence level of the CDaR, e.g. 95%
RiskfreeReturns: optional; single value, r x 1 vector (shared by all columns) or r x c matrix of riskfree returns per period; default: 0
PeriodsPerYear: optional; number of return periods per year used to annualize the mean excess return, e.g. 12 for monthly data; default: 1 (per-period result)
Algorithm
CDaR ratio = PeriodsPerYear · mean(r − rf) / |CDaR|, with the CDaR of apaCDaR.Empirical (IsSmooth = FALSE).
Remarks
The result is a 1 x c row vector with one value per column of Returns.
#N/A is returned if the CDaR is 0 or undefined.
