Mean-Conditional Drawdown at Risk Optimization

The Conditional Drawdown at Risk (CDaR) is the average of the worst alpha share of the drawdowns of the uncompounded cumulative return of the portfolio (Chekhlov, Uryasev and Zabarankin, 2005), the Conditional Value at Risk applied to the drawdowns rather than to the returns. With alpha close to 0 it approaches the maximum drawdown, with \(\alpha = 1\) the average drawdown.

The formula for the Conditional Drawdown at Risk starts from the uncompounded cumulative return \(Y_{t}\) of the portfolio, with \(w_{i}\) the weight and \(r_{i , s}\) the return of asset i of the N assets in period s, and its drawdowns \(D_{t}\) below the running peak \(P_{t}\), the highest Y up to t and at least zero:

\[Y_{t} = \sum_{s=1}^{t} \sum_{i=1}^{N} w_{i} \cdot r_{i,s}\] \[D_{t} = P_{t} - Y_{t}\]

It takes, with alpha the tail probability, the value of the expression below at the \(\zeta_{0}\) that minimizes it, which is the Drawdown at Risk:

\[\text{CDaR} = \zeta_{0} + \frac{\sum_{t=1}^{T} \max\left(0, D_{t} - \zeta_{0}\right)}{\alpha \cdot T}\]

It suits an investor or manager who is judged on drawdowns; consecutive drawdown periods belong to the same episode, so the tail rests on few independent falls.

It is the portfolio with the lowest risk, the lowest risk at a target return, or the highest ratio of the average excess return to the risk. Mean-variance analysis measures risk by the variance; the mean-risk portfolios keep its trade-off between expected return and risk and measure the risk of the historical portfolio returns in another way. Measures that only count losses leave upside swings unpenalized, the dispersion measures count deviations in proportion to their size rather than their square, and the drawdown measures penalize deep and long falls, which are what investors feel and what ends strategies.

There are two objectives. The minimum risk portfolio minimizes the risk measure, at a target expected return when one is given. The maximum ratio portfolio maximizes the expected excess return over the risk measure, with the transformation of Charnes and Cooper (1962) that turns the ratio into a problem of the same kind as the minimum risk one; with the volatility as the measure, it would be the maximum Sharpe ratio portfolio.

Also known as: CDaR, minimum CDaR, minimum drawdown weights, drawdown optimization.

In the Finance Toolkit this is get_mean_risk_weights with risk_measure="cdar", the same function as Mean-Risk Weights.

Example · AAPL, MSFT, JNJ, XOM · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_mean_risk_weights:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["AAPL", "MSFT", "JNJ", "XOM"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.portfolio.get_mean_risk_weights(
    risk_measure="cdar", objective="maximum_ratio"
)[["Weight", "Expected Return", "CDaR", "CDaR Ratio"]]

Which returns:

References

  • Paper Charnes, A. and Cooper, W. W. (1962). “Programming with Linear Fractional Functionals.” Naval Research Logistics Quarterly, 9(3-4), 181-186.
  • Paper Chekhlov, A., Uryasev, S. and Zabarankin, M. (2005). “Drawdown Measure in Portfolio Optimization.” International Journal of Theoretical and Applied Finance, 8(1), 13-58.
Share