IDEAS home Printed from https://ideas.repec.org/a/kap/compec/v65y2025i3d10.1007_s10614-024-10604-6.html
   My bibliography  Save this article

Portfolio Optimization with Prediction-Based Return Using Long Short-Term Memory Neural Networks: Testing on Upward and Downward European Markets

Author

Listed:
  • Xavier Martínez-Barbero

    (Universitat Politècnica de València)

  • Roberto Cervelló-Royo

    (Universitat Politècnica de València)

  • Javier Ribal

    (Universitat Politècnica de València)

Abstract

In recent years, artificial intelligence has helped to improve processes and performance in many different areas: in the field of portfolio optimization, the inputs play a crucial role, and the use of machine learning algorithms can improve the estimation of the inputs to create robust portfolios able to generate returns consistently. This paper combines classical mean–variance optimization and machine learning techniques, concretely long short-term memory neural networks to provide more accurate predicted returns and generate profitable portfolios for 10 holding periods that present different financial contexts. The proposed algorithm is trained and tested with historical EURO STOXX 50® Index data from January 2015 to December 2020, and from January 2021 to June 2022, respectively. Empirical results show that our LSTM neural networks are able to achieve minor predictive errors since the average of the MSE of the 10 holding periods is 0.00047, the average of the MAE is 0.01634, and predict the direction of returns with an average accuracy over the 10 investment periods of 95.8%. Our prediction-based portfolios consistently beat the EURO STOXX 50® Index, achieving superior positive results even during bear markets.

Suggested Citation

  • Xavier Martínez-Barbero & Roberto Cervelló-Royo & Javier Ribal, 2025. "Portfolio Optimization with Prediction-Based Return Using Long Short-Term Memory Neural Networks: Testing on Upward and Downward European Markets," Computational Economics, Springer;Society for Computational Economics, vol. 65(3), pages 1479-1504, March.
  • Handle: RePEc:kap:compec:v:65:y:2025:i:3:d:10.1007_s10614-024-10604-6
    DOI: 10.1007/s10614-024-10604-6
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10614-024-10604-6
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10614-024-10604-6?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. William F. Sharpe, 1963. "A Simplified Model for Portfolio Analysis," Management Science, INFORMS, vol. 9(2), pages 277-293, January.
    2. Michaud, Richard O. & Michaud, Robert O., 2008. "Efficient Asset Management: A Practical Guide to Stock Portfolio Optimization and Asset Allocation," OUP Catalogue, Oxford University Press, edition 2, number 9780195331912, Decembrie.
    3. J. Tobin, 1958. "Liquidity Preference as Behavior Towards Risk," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 25(2), pages 65-86.
    4. Gah-Yi Ban & Noureddine El Karoui & Andrew E. B. Lim, 2018. "Machine Learning and Portfolio Optimization," Management Science, INFORMS, vol. 64(3), pages 1136-1154, March.
    5. Victor DeMiguel & Francisco J. Nogales, 2009. "Portfolio Selection with Robust Estimation," Operations Research, INFORMS, vol. 57(3), pages 560-577, June.
    6. Herwartz, Helmut, 2017. "Stock return prediction under GARCH — An empirical assessment," International Journal of Forecasting, Elsevier, vol. 33(3), pages 569-580.
    7. Jorion, Philippe, 1985. "International Portfolio Diversification with Estimation Risk," The Journal of Business, University of Chicago Press, vol. 58(3), pages 259-278, July.
    8. Jorion, Philippe, 1986. "Bayes-Stein Estimation for Portfolio Analysis," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 21(3), pages 279-292, September.
    9. Fama, Eugene F., 1996. "Multifactor Portfolio Efficiency and Multifactor Asset Pricing," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 31(4), pages 441-465, December.
    10. Best, Michael J & Grauer, Robert R, 1991. "On the Sensitivity of Mean-Variance-Efficient Portfolios to Changes in Asset Means: Some Analytical and Computational Results," The Review of Financial Studies, Society for Financial Studies, vol. 4(2), pages 315-342.
    11. Kolm, Petter N. & Tütüncü, Reha & Fabozzi, Frank J., 2014. "60 Years of portfolio optimization: Practical challenges and current trends," European Journal of Operational Research, Elsevier, vol. 234(2), pages 356-371.
    12. William F. Sharpe, 1964. "Capital Asset Prices: A Theory Of Market Equilibrium Under Conditions Of Risk," Journal of Finance, American Finance Association, vol. 19(3), pages 425-442, September.
    13. Lin, Cheng-Jian & Chen, Cheng-Hung, 2006. "A compensation-based recurrent fuzzy neural network for dynamic system identification," European Journal of Operational Research, Elsevier, vol. 172(2), pages 696-715, July.
    14. Ghiassi, M. & Saidane, H. & Zimbra, D.K., 2005. "A dynamic artificial neural network model for forecasting time series events," International Journal of Forecasting, Elsevier, vol. 21(2), pages 341-362.
    15. Ayodele Ariyo Adebiyi & Aderemi Oluyinka Adewumi & Charles Korede Ayo, 2014. "Comparison of ARIMA and Artificial Neural Networks Models for Stock Price Prediction," Journal of Applied Mathematics, John Wiley & Sons, vol. 2014(1).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Erindi Allaj, 2020. "The Black–Litterman model and views from a reverse optimization procedure: an out-of-sample performance evaluation," Computational Management Science, Springer, vol. 17(3), pages 465-492, October.
    2. Oscar V. De la Torre-Torres & Evaristo Galeana-Figueroa & María de la Cruz Del Río-Rama & José Álvarez-García, 2022. "Using Markov-Switching Models in US Stocks Optimal Portfolio Selection in a Black–Litterman Context (Part 1)," Mathematics, MDPI, vol. 10(8), pages 1-28, April.
    3. Plachel, Lukas, 2019. "A unified model for regularized and robust portfolio optimization," Journal of Economic Dynamics and Control, Elsevier, vol. 109(C).
    4. Detlef Seese & Christof Weinhardt & Frank Schlottmann (ed.), 2008. "Handbook on Information Technology in Finance," International Handbooks on Information Systems, Springer, number 978-3-540-49487-4, December.
    5. Mishra, Anil V., 2016. "Foreign bias in Australian-domiciled mutual fund holdings," Pacific-Basin Finance Journal, Elsevier, vol. 39(C), pages 101-123.
    6. Wang, Christina Dan & Chen, Zhao & Lian, Yimin & Chen, Min, 2022. "Asset selection based on high frequency Sharpe ratio," Journal of Econometrics, Elsevier, vol. 227(1), pages 168-188.
    7. Yilie Huang & Yanwei Jia & Xun Yu Zhou, 2024. "Mean--Variance Portfolio Selection by Continuous-Time Reinforcement Learning: Algorithms, Regret Analysis, and Empirical Study," Papers 2412.16175, arXiv.org.
    8. Michele Costola & Bertrand Maillet & Zhining Yuan & Xiang Zhang, 2024. "Mean–variance efficient large portfolios: a simple machine learning heuristic technique based on the two-fund separation theorem," Annals of Operations Research, Springer, vol. 334(1), pages 133-155, March.
    9. Mishra, Anil V., 2015. "Measures of equity home bias puzzle," Journal of Empirical Finance, Elsevier, vol. 34(C), pages 293-312.
    10. Thomas J. Brennan & Andrew W. Lo, 2010. "Impossible Frontiers," Management Science, INFORMS, vol. 56(6), pages 905-923, June.
    11. Thomas Trier Bjerring & Omri Ross & Alex Weissensteiner, 2017. "Feature selection for portfolio optimization," Annals of Operations Research, Springer, vol. 256(1), pages 21-40, September.
    12. Platanakis, Emmanouil & Sutcliffe, Charles & Ye, Xiaoxia, 2021. "Horses for courses: Mean-variance for asset allocation and 1/N for stock selection," European Journal of Operational Research, Elsevier, vol. 288(1), pages 302-317.
    13. Kolm, Petter N. & Tütüncü, Reha & Fabozzi, Frank J., 2014. "60 Years of portfolio optimization: Practical challenges and current trends," European Journal of Operational Research, Elsevier, vol. 234(2), pages 356-371.
    14. Cesare Robotti, 2003. "Dynamic strategies, asset pricing models, and the out-of-sample performance of the tangency portfolio," FRB Atlanta Working Paper 2003-6, Federal Reserve Bank of Atlanta.
    15. Hsu, Po-Hsuan & Han, Qiheng & Wu, Wensheng & Cao, Zhiguang, 2018. "Asset allocation strategies, data snooping, and the 1 / N rule," Journal of Banking & Finance, Elsevier, vol. 97(C), pages 257-269.
    16. Meade, N. & Beasley, J.E. & Adcock, C.J., 2021. "Quantitative portfolio selection: Using density forecasting to find consistent portfolios," European Journal of Operational Research, Elsevier, vol. 288(3), pages 1053-1067.
    17. Markus Hirschberger & Ralph E. Steuer & Sebastian Utz & Maximilian Wimmer & Yue Qi, 2013. "Computing the Nondominated Surface in Tri-Criterion Portfolio Selection," Operations Research, INFORMS, vol. 61(1), pages 169-183, February.
    18. Yuki Shigeta, 2016. "Optimality of Naive Investment Strategies in Dynamic MeanVariance Optimization Problems with Multiple Priors," Discussion papers e-16-004, Graduate School of Economics , Kyoto University.
    19. Levy, Haim & Levy, Moshe, 2014. "The benefits of differential variance-based constraints in portfolio optimization," European Journal of Operational Research, Elsevier, vol. 234(2), pages 372-381.
    20. Chavez-Bedoya, Luis & Rosales, Francisco, 2022. "Orthogonal portfolios to assess estimation risk," International Review of Economics & Finance, Elsevier, vol. 80(C), pages 906-937.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:kap:compec:v:65:y:2025:i:3:d:10.1007_s10614-024-10604-6. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.