Mathematics (Oct 2023)

Selecting and Weighting Mechanisms in Stock Portfolio Design Based on Clustering Algorithm and Price Movement Analysis

  • Titi Purwandari,
  • Riaman,
  • Yuyun Hidayat,
  • Sukono,
  • Riza Andrian Ibrahim,
  • Rizki Apriva Hidayana

DOI
https://doi.org/10.3390/math11194151
Journal volume & issue
Vol. 11, no. 19
p. 4151

Abstract

Read online

The fundamental stages in designing a stock portfolio are each stock’s selection and capital weighting. Selection and weighting must be conducted through diversification and price movement analysis to maximize profits and minimize losses. The problem is how the technical implementations of both are carried out. Based on this problem, this study aims to design these selection and weighting mechanisms. Stock selection is based on clusters and price movement trends. The optimal stock clusters are formed using the K-Means algorithm, and price movement analyses are carried out using the moving average indicator. The selected stocks are those whose prices have increasing trends with the most significant Sharpe ratio in each cluster. Then, the capital weighting for each preferred stock is carried out using the mean-variance model with transaction cost and income tax. After designing the mechanism, it is applied to Indonesia’s 80 index stock data. In addition, a comparison is conducted between the estimated portfolio return and the actual one day ahead. Finally, the sensitivity of investors’ courage in taking risks to their profits and losses is also analyzed. This research is expected to assist investors in diversification and price movement analysis of the stocks in the portfolios they form.

Keywords