Advances in Economics, Management and Political Sciences

- The Open Access Proceedings Series for Conferences


Proceedings of the 2nd International Conference on Financial Technology and Business Analysis

Series Vol. 48 , 01 December 2023


Open Access | Article

Portfolio Optimization by LSTM with a Selection of Six Stocks

Dailin Song * 1
1 University of Wisconsin-Madison

* Author to whom correspondence should be addressed.

Advances in Economics, Management and Political Sciences, Vol. 48, 46-55
Published 01 December 2023. © 2023 The Author(s). Published by EWA Publishing
This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Citation Dailin Song. Portfolio Optimization by LSTM with a Selection of Six Stocks. AEMPS (2023) Vol. 48: 46-55. DOI: 10.54254/2754-1169/48/20230423.

Abstract

As the financial industry undergoes continuous evolution, efficient asset allocation has become increasingly crucial. However, traditional methods employed for portfolio optimization are often deemed inefficient and in need of improvement. To address this, recent advancements in deep learning techniques provide a promising perspective to tackle portfolio optimization, offering new possibilities for maximizing returns or minimizing risk based on specific objectives and constraints. This study delves into the analysis of stock data from six distinct industries. By utilizing the LSTM model and employing the Monte Carlo method, efficient frontier, and other advanced techniques, a training set is constructed to generate predictions using the first 80% of the data. For testing purposes, the remaining 20% of the data is utilized to assess how well the created portfolio performed. Various performance metrics such as portfolio returns, volatility, Sharpe Ratio, and maximum reduction are calculated to assess the effectiveness of the LSTM-based portfolio. Additionally, a comparison is made against other benchmark portfolios or strategies. The results for evaluation show that the LSTM-based portfolio outperform the commonly used benchmark model. This study illuminates the potential of deep learning in the financial industry, presenting groundbreaking applications that offer novel portfolio allocation strategies.

Keywords

LSTM-based portfolio, Mean-Variance model, Monte Carlo simulation, efficient frontier

References

1. Black, F., and Litterman, R. (1992) Global portfolio optimization. Financial analysts journal, 48(5), 28-43.

2. Lu, L., Zhao, S., Shen, X., Dan, C., and Wang, X. (2023) Intelligent Portfolio Optimization Based on Machine Learning. Computer Science and Application, 13(3), 349–357.

3. Mangram, M. E. (2013) A simplified perspective of the Markowitz portfolio theory. Global journal of business research, 7(1), 59-70.

4. Pan, G. (2016) A Literature Review of the Capital Asset Pricing Model (CAPM). Shi Dai Jin Rong, 14, 279–280.

5. 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, 10(2), 437.

6. Mohanty, S. (2023) An International Study of Application of Long Short-Term Memory (LSTM) Neural Networks for the prediction of stock and forex markets. IJFMR-International Journal For Multidisciplinary Research, 5(3).

7. Peng, Y., Liu, Y., and Zhang, R. (2019) Modeling and Analysis of Stock Price Prediction Based on LSTM. Computer Engineering and Applications, 55(11), 209–212.

8. Nafia, A., Yousfi, A., and Echaoui, A. (2023) Equity-Market-Neutral Strategy Portfolio Construction Using LSTM-Based Stock Prediction and Selection: An Application to S&P500 Consumer Staples Stocks. International Journal of Financial Studies, 11(2), 57.

9. Steinbach, M. C. (2001) Markowitz revisited: Mean-variance models in financial portfolio analysis. SIAM review, 43(1), 31-85.

10. Github, https://colah.github.io/posts/2015-08-Understanding-LSTMs/, accessed on 2023/7/20

11. Li, Y., and Wang, H. (2016) Security Portfolio Risk Analysis Based on Monte Carlo Simulation. Xin Jing Ji, 17, 38.

Data Availability

The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Authors who publish this series agree to the following terms:

1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this series.

2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this series.

3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See Open Access Instruction).

Volume Title
Proceedings of the 2nd International Conference on Financial Technology and Business Analysis
ISBN (Print)
978-1-83558-143-8
ISBN (Online)
978-1-83558-144-5
Published Date
01 December 2023
Series
Advances in Economics, Management and Political Sciences
ISSN (Print)
2754-1169
ISSN (Online)
2754-1177
DOI
10.54254/2754-1169/48/20230423
Copyright
01 December 2023
Open Access
This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited

Copyright © 2023 EWA Publishing. Unless Otherwise Stated