Nested Clustered Optimization (NCO), introduced by Marcos Lopez de Prado and Michael J. Lewis in 2019, represents an innovative portfolio construction framework that combines the advantages of hierarchical clustering with traditional mean-variance optimization techniques.
NCO bridges the gap between purely algorithmic approaches like Hierarchical Risk Parity (HRP) and traditional optimization methods. It leverages the structure discovered through clustering while allowing for the incorporation of expected returns and various objective functions, making it a powerful and flexible approach for modern portfolio management.
Think of NCO as a structured team decision-making process:
Imagine you're managing a large corporation with many divisions. Instead of making all decisions at the top level, you first organize similar divisions into departments (clustering). Then, within each department, you optimize resources based on specific goals. Finally, you allocate budget across departments based on their relative importance to the company.
In NCO:
Assets are first grouped into clusters based on their similarities (like HRP).
Within each cluster, a traditional optimization method (such as mean-variance) is applied.
These optimized clusters are then treated as "meta-assets" for a final portfolio-wide optimization.
This multi-level approach combines the stability of clustering with the efficiency of optimization techniques, offering a balance between structure and flexibility.
Example: Consider a global portfolio with stocks from different countries and sectors. NCO would first cluster assets by their geographic and sectoral relationships, optimize allocations within each cluster (e.g., optimal allocation for European tech stocks), and then perform a final optimization across these optimized clusters to create the complete portfolio.
NCO follows a systematic approach that can be broken down into three primary stages:
Similar to HRP, NCO begins by grouping assets based on their correlations using a distance measure:
where:
This clustering creates a hierarchical structure (dendrogram) and determines which assets belong to which clusters.
For each identified cluster, a separate optimization problem is solved:
where:
This step can use any of the traditional optimization approaches such as:
Maximum Sharpe ratio: Maximizing
Minimum variance: Minimizing
Mean-variance utility: Maximizing
Each optimized cluster is now treated as a single "meta-asset" with:
The final portfolio optimization is performed across these meta-assets:
where:
The final portfolio weights are computed by combining the intra-cluster weights with the inter-cluster allocation:
where:
NCO allows for various objective functions at both intra-cluster and inter-cluster levels, including:
Maximum Sharpe Ratio: Optimizing risk-adjusted return.
Minimum Variance: Minimizing portfolio volatility.
Mean-Variance Utility: Balancing return and risk with a risk aversion parameter.
Maximum Diversification: Maximizing the ratio of weighted average volatility to portfolio volatility.
Hybrid Approach: Combines the stability of clustering with the flexibility of traditional optimization.
Incorporates Expected Returns: Unlike pure HRP, can incorporate views on asset returns.
Flexible Objective Functions: Can use different optimization criteria at different levels.
Reduced Dimensionality: By optimizing within clusters first, reduces the impact of estimation errors.
Computational Complexity: More complex than both traditional optimization and pure HRP.
Parameter Sensitivity: Results depend on clustering parameters, objective functions, and expected returns.
Estimation Error Propagation: While mitigated, errors in expected returns can still impact performance.
Lopez de Prado, M., & Lewis, M. J. (2019). "Nested Clustered Optimization: A Clustering-Based Portfolio Construction Algorithm." SSRN Electronic Journal. doi:10.2139/ssrn.3469961
Lopez de Prado, M. (2020). "Machine Learning for Asset Managers," Cambridge University Press. doi:10.1017/9781108883658
Sjöstrand, D., & Behnejad, N. (2020). "Exploration of hierarchical clustering in long-only risk-based portfolio optimization." Master's thesis, Copenhagen Business School.
Riskfolio-Lib Documentation: Hierarchical Clustering Portfolio Optimization