An Optimal Portfolio Construction for Asset Management with Back-Test Using PSO Algorithm and PyPortfolioOpt in Indian Stock Market

Authors

  • Nikhitha Pai Research Scholar, Department of MCA, CMR Institute of Technology, VTU-RC, Bangalore, Karnataka -560037, India
  • Ilango V. Professor, Department of MCA, CMR Institute of Technology, VTU –RC, Bangalore, Karnataka – 560 037, India.
  • Nithya B. Associate Professor, Department of MCA, New Horizon College of Engineering, Bangalore-560 103, Karnataka – India.

Keywords:

Artificial Intelligence, Particle Swarm Optimization, Sharpe Ratio, Portfolio Optimization, Back-testing, Simple Moving Average Crossover

Abstract

The paper studies the concept of Portfolio optimization and back-testing in the context of BSE and NSE for a group of selected stocks in FMCG sector. Optimizing a portfolio refers to the process where assets are allocated such that the allocation results in maximum returns with minimum variance. This is also the fundamental theory proposed by Harry Markowitz. An optimal allocation which is mathematically valid can be constructed by a combination of different stocks with varying expected returns and volatilities. A comparative analysis is made in the study with Particle Swarm optimization algorithm used for constructing the optimal Portfolio from the selected sector of stocks firstly and next the same stocks are optimized using PyPortfolioOpt package. Suitable Back-testing is applied and the results evaluated. In Back-testing a predictive model or a strategy is applied to historical data which helps to assess its accuracy. We can consider the back-tested results of the trading system as reliable parameters for future performance based on probability. A comparison of the portfolio optimization using PSO and the package PyPortfolioOpt is done in this paper.

Downloads

Download data is not yet available.

References

Abd-El-Wahed, W. F., Mousa, A. A., & El-Shorbagy, M. A. (2011). Integrating particle swarm optimization with genetic algorithms for solving nonlinear optimization problems. Journal of Computational and Applied Mathematics, 235(5), 1446–1453.

Bailey, D. H., & de Prado, M. L. (2013). An open-source implementation of the critical-line algorithm for portfolio optimization. Algorithms, 6(1), 169–196.

Ban, G. Y., el Karoui, N., & Lim, A. E. B. (2018). Machine learning and portfolio optimization. Management Science, 64(3), 1136–1154.

Bin Shalan, S. A., & Ykhlef, M. (2015). Solving Multi-objective Portfolio Optimization Problem for Saudi Arabia Stock Market Using Hybrid Clonal Selection and Particle Swarm Optimization. Arabian Journal for Science and Engineering, 40(8), 2407–2421.

De, F. S., Filho, A., Madeiro, F., Fernandes, S. M. M., de Mattos Neto, P. S. G., & Ferreira, T. A. E. (2013). Time-series forecasting of pollutant concentration levels using particle swarm optimization and artificial neural networks. In Quim. Nova (Vol. 36, Issue 6).

Ertenlice, O., & Kalayci, C. B. (2018). A survey of swarm intelligence for portfolio optimization: Algorithms and applications. Swarm and Evolutionary Computation, 39, 36–52.

Fafuła, A., & Drelczuk, K. (2015). Buying stock market winners on Warsaw Stock Exchange - Quantitative back tests of a short-term trend following strategy. Proceedings of the Federated Conference on Computer Science and Information Systems, 1361–1366.

Harvey R Campbell, & Liu Yan. (2014). Evaluating Trading Strategies. The Journal of Portfolio Management , 108–118.

Hu, Y., Liu, K., Zhang, X., Su, L., Ngai, E. W. T., & Liu, M. (2015). Application of evolutionary computation for rule discovery in stock algorithmic trading: A literature review. In Applied Soft Computing Journal (Vol. 36, pp. 534–551). Elsevier Ltd.

Jamous, R. A., Tharwat, A. A., & Ibrahim Bayoum, B. (2015). Modifications of Particle Swarm Optimization Techniques and Its Application on Stock Market: A Survey. In IJACSA) International Journal of Advanced Computer Science and Applications (Vol. 6, Issue 3).

Kulshrestha Nitin, & Srivastava Vinay K. (2020, June 4). Synthesizing Technical Analysis, Fundamental Analysis & Artificial Intelligence – An Applied Approach to Portfolio Optimization & Performance Analysis of Stock Prices in India. 8th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions) (ICRITO).

Kumar, D., & Mishra, K. K. (2017). Portfolio optimization using novel co-variance guided Artificial Bee Colony algorithm. Swarm and Evolutionary Computation, 33, 119–130.

Lv, D., Yuan, S., Li, M., & Xiang, Y. (2019). An Empirical Study of Machine Learning Algorithms for Stock Daily Trading Strategy. Mathematical Problems in Engineering, 2019.

Macedo, L. L., Godinho, P., & Alves, M. J. (2017). Mean-semivariance portfolio optimization with multiobjective evolutionary algorithms and technical analysis rules. Expert Systems with Applications, 79, 33–43.

Martin, R. (2021). PyPortfolioOpt: portfolio optimization in Python. Journal of Open-Source Software, 6(61), 3066.

Meghwani, S. S., & Thakur, M. (2018). Multi-objective heuristic algorithms for practical portfolio optimization and rebalancing with transaction cost. Applied Soft Computing Journal, 67, 865–894.

Milhomem, D. A., & Dantas, M. J. P. (2020). Analysis of New Approaches Used in Portfolio Optimization: a Systematic Literature Review. Production, 30, 1–16.

Mishra, S. K., Panda, G., & Majhi, B. (2016). Prediction based mean-variance model for constrained portfolio assets selection using multi-objective evolutionary algorithms. Swarm and Evolutionary Computation, 28, 117–130.

Perrin, S., & Roncalli, T. (2019). Machine Learning Optimization Algorithms & Portfolio Allocation Handbook of Financial Risk Management View project Climate Risk View project Machine Learning Optimization Algorithms & Portfolio Allocation

Qu, B. Y., Zhou, Q., Xiao, J. M., Liang, J. J., & Suganthan, P. N. (2017). Large-Scale Portfolio Optimization Using Multiobjective Evolutionary Algorithms and Preselection Methods. Mathematical Problems in Engineering, 2017.

Saborido, R., Ruiz, A. B., Bermúdez, J. D., Vercher, E., & Luque, M. (2016). Evolutionary multi-objective optimization algorithms for fuzzy portfolio selection. Applied Soft Computing Journal, 39, 48–63.

Samigulina, G., & Massimkanova, Z. (2020). Development of modified cooperative particle swarm optimization with inertia weight for feature selection. Cogent Engineering, 7(1).

Seidy, E. el. (2016). A New Particle Swarm Optimization Based Stock Market Prediction Technique. In IJACSA) International Journal of Advanced Computer Science and Applications (Vol. 7, Issue 4).

Ta, V. D., Liu, C. M., & Tadesse, D. A. (2020). Portfolio optimization-based stock prediction using long-short term memory network in quantitative trading. Applied Sciences (Switzerland), 10(2).

Xiao, Y., Liu, J. J., Hu, Y., & Wang, Y. (2017). Time Series Forecasting Using a Hybrid Adaptive Particle Swarm Optimization and Neural Network Model. Journal of Systems Science and Information, 2(4), 335–344.

Zhang, X., Zou, D., & Shen, X. (2018). A novel simple particle swarm optimization algorithm for global optimization. Mathematics, 6(12).

Zhu, H., Wang, Y., Wang, K., & Chen, Y. (2011). Particle Swarm Optimization (PSO) for the constrained portfolio optimization problem. Expert Systems with Applications, 38(8), 10161–10169

Singh, H., Ahamad, S., Naidu, G.T., Arangi, V., Koujalagi, A., Dhabliya, D. Application of Machine Learning in the Classification of Data over Social Media Platform (2022) PDGC 2022 - 2022 7th International Conference on Parallel, Distributed and Grid Computing, pp. 669-674.

Singh, M. ., Angurala, D. M. ., & Bala, D. M. . (2020). Bone Tumour detection Using Feature Extraction with Classification by Deep Learning Techniques. Research Journal of Computer Systems and Engineering, 1(1), 23–27. Retrieved from https://technicaljournals.org/RJCSE/index.php/journal/article/view/21

K.P, S. ., C S, A. Y. ., & M, M. . (2023). Stock Price Prediction using Bat Algorithm. International Journal on Recent and Innovation Trends in Computing and Communication, 11(3), 94–97. https://doi.org/10.17762/ijritcc.v11i3.6207

Downloads

Published

27.10.2023

How to Cite

Pai, N. ., V., I. ., & B., N. . (2023). An Optimal Portfolio Construction for Asset Management with Back-Test Using PSO Algorithm and PyPortfolioOpt in Indian Stock Market. International Journal of Intelligent Systems and Applications in Engineering, 12(2s), 352 –. Retrieved from https://ijisae.org/index.php/IJISAE/article/view/3634

Issue

Section

Research Article