Skip to main content
Log in

Hierarchical Clustering as a Dimension Reduction Technique in the Markowitz Portfolio Optimization Problem

  • Published:
Automatic Control and Computer Sciences Aims and scope Submit manuscript

Abstract—

Optimal portfolio selection is a common and important solution to an optimization problem. It is often difficult to apply existing methods of optimal portfolio selection in practice, because of the large number of securities available for investment (and, as a consequence, the high dimensionality of the input data). In this article, we propose a method to reduce the dimensionality of the input data based on the hierarchical clustering of the securities available for investment. Many algorithms and methods have already been developed for clustering widely used in computer science. Pearson’s pairwise correlation coefficient is used as a measure of proximity of securities for hierarchical clustering. Next, we investigate the impact of the proposed method on the quality of the optimal solution obtained using several examples of the optimal portfolio selection according to the Markowitz model. The influence of hierarchical clustering parameters (intercluster distance metrics and clustering threshold value) on the change in the quality of the obtained optimal solution is also examined. The dependence between the target portfolio return and dimensionality reduction using the proposed method is analyzed. For each considered example, graphs and tables with the main obtained results of the application of the method are given: dimensionality reduction and return drop (reduction of the quality of the optimal solution) of the portfolio selected using the proposed method as compared to the portfolio selected without the proposed method. The Python programming language and its libraries are used for the experiments: SciPy for clustering and CVXPY for solving the optimization problem (optimal portfolio selection).

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1.
Fig. 2.
Fig. 3.
Fig. 4.
Fig. 5.
Fig. 6.

Similar content being viewed by others

REFERENCES

  1. Markowitz, M., Portfolio selection, J. Finance, 1952, vol. 7, no. 1, pp. 77–91.

    Google Scholar 

  2. Dubrovin, V.I. and Yus’kiv, O.I., Models and methods for optimizing the choice of investment portfolio, Radio-elektron., Inf., Upr., 2008, no. 1, pp. 49–59.

  3. Chaitanya, J., Markowitz Portfolio Optimization, 2017. https://chaitjo.github.io/markowitz/.

  4. Tola, V., Lillo, F., Gallegati, M., and Mantegna, R.N., Cluster analysis for portfolio optimization, J. Econ. Dyn. Control, 2008, vol. 32, no. 1, pp. 235–258.  https://doi.org/10.1016/j.jedc.2007.01.034

    Article  MathSciNet  MATH  Google Scholar 

  5. León, D., Aragón, A., Sandoval, J., Hernández, G., Arévalo, A., and Niño, J., Clustering algorithms for risk-adjusted portfolio construction, Procedia Compt. Sci., 2017, vol. 108, pp. 1334–1343.  https://doi.org/10.1016/j.procs.2017.05.185

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to A. Y. Poletaev or E. M. Spiridonova.

Ethics declarations

The authors declare that they have no conflicts of interest.

Additional information

Translated by O. Pismenov

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Poletaev, A.Y., Spiridonova, E.M. Hierarchical Clustering as a Dimension Reduction Technique in the Markowitz Portfolio Optimization Problem. Aut. Control Comp. Sci. 55, 809–815 (2021). https://doi.org/10.3103/S0146411621070270

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.3103/S0146411621070270

Keywords:

Navigation