IDEAS home Printed from https://ideas.repec.org/p/war/wpaper/2023-17.html
   My bibliography  Save this paper

Optimal Markowitz Portfolio Using Returns Forecasted with Time Series and Machine Learning Models

Author

Listed:
  • Damian Ślusarczyk

    (University of Warsaw, Faculty of Economic Sciences)

  • Robert Ślepaczuk

    (University of Warsaw, Quantitative Finance Research Group, Department of Quantitative Finance, Faculty of Economic Sciences)

Abstract

We aim to answer the question of whether using forecasted stock returns based on machine learning and time series models in a mean-variance portfolio framework yields better results than relying on historical returns. Nevertheless, the problem of the efficient stock selection has been tested for more than 50 years, the issue of adequate construction of mean-variance portfolio framework and incorporating forecasts of returns in it has not been solved yet. Stock returns portfolios were created using ’raw’ historical returns and forecasted return based on ARIMA-GARCH and the XGBoost models. Two optimization problems were concerned: global maximum information ratio and global mini-mum variance. Then strategies were compared with two benchmarks – an equally weighted portfolio and buy and hold on the DJIA index. Strategies were tested on Dow Jones Industrial Average stocks in the period from 2007-01-01 to 2022-12-31 and daily data was used. The main portfolio performance metrics were information ratio* and information ratio**. The results showed that using forecasted returns we can enhance our portfolio selection based on Markowitz framework, but it is not a universal solution, and we have to control all the parameters and hyperparameters of selected models.

Suggested Citation

  • Damian Ślusarczyk & Robert Ślepaczuk, 2023. "Optimal Markowitz Portfolio Using Returns Forecasted with Time Series and Machine Learning Models," Working Papers 2023-17, Faculty of Economic Sciences, University of Warsaw.
  • Handle: RePEc:war:wpaper:2023-17
    as

    Download full text from publisher

    File URL: https://www.wne.uw.edu.pl/download_file/3093/0
    File Function: First version, 2023
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Sami Ben Jabeur & Salma Mefteh-Wali & Jean-Laurent Viviani, 2021. "Forecasting gold price with the XGBoost algorithm and SHAP interaction values," Post-Print hal-03331805, HAL.
    2. Mohammadi, Hassan & Su, Lixian, 2010. "International evidence on crude oil price dynamics: Applications of ARIMA-GARCH models," Energy Economics, Elsevier, vol. 32(5), pages 1001-1008, September.
    3. Harry Markowitz, 1952. "The Utility of Wealth," Journal of Political Economy, University of Chicago Press, vol. 60(2), pages 151-151.
    4. Pascual, Lorenzo & Romo, Juan & Ruiz, Esther, 2006. "Bootstrap prediction for returns and volatilities in GARCH models," Computational Statistics & Data Analysis, Elsevier, vol. 50(9), pages 2293-2312, May.
    5. Bollerslev, Tim, 1986. "Generalized autoregressive conditional heteroskedasticity," Journal of Econometrics, Elsevier, vol. 31(3), pages 307-327, April.
    6. Mojtaba Nabipour & Pooyan Nayyeri & Hamed Jabani & Amir Mosavi, 2020. "Deep learning for Stock Market Prediction," Papers 2004.01497, arXiv.org.
    7. Robert Engle, 2001. "GARCH 101: The Use of ARCH/GARCH Models in Applied Econometrics," Journal of Economic Perspectives, American Economic Association, vol. 15(4), pages 157-168, Fall.
    8. Engle, Robert F, 1982. "Autoregressive Conditional Heteroscedasticity with Estimates of the Variance of United Kingdom Inflation," Econometrica, Econometric Society, vol. 50(4), pages 987-1007, July.
    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. Halkos, George & Tzirivis, Apostolos, 2018. "Effective energy commodities’ risk management: Econometric modeling of price volatility," MPRA Paper 90781, University Library of Munich, Germany.
    2. Siddiqi, Hammad, 2007. "Rational Interacting Agents and Volatility Clustering: A New Approach," MPRA Paper 2984, University Library of Munich, Germany.
    3. Peter Malec, 2016. "A Semiparametric Intraday GARCH Model," Cambridge Working Papers in Economics 1633, Faculty of Economics, University of Cambridge.
    4. Allen, David E. & Amram, Ron & McAleer, Michael, 2013. "Volatility spillovers from the Chinese stock market to economic neighbours," Mathematics and Computers in Simulation (MATCOM), Elsevier, vol. 94(C), pages 238-257.
    5. Wang, Yudong & Wu, Chongfeng & Wei, Yu, 2011. "Can GARCH-class models capture long memory in WTI crude oil markets?," Economic Modelling, Elsevier, vol. 28(3), pages 921-927, May.
    6. Shehu Usman Rano, Aliyu, 2010. "Does inflation has an Impact on Stock Returns and Volatility? Evidence from Nigeria and Ghana," MPRA Paper 30091, University Library of Munich, Germany, revised 19 Mar 2011.
    7. Ñíguez, Trino-Manuel & Perote, Javier, 2017. "Moments expansion densities for quantifying financial risk," The North American Journal of Economics and Finance, Elsevier, vol. 42(C), pages 53-69.
    8. Suripto & Supriyanto, 2021. "The Effect of the COVID-19 Pandemic on Stock Prices with the Event Window Approach: A Case Study of State Gas Companies, in the Energy Sector," International Journal of Energy Economics and Policy, Econjournals, vol. 11(3), pages 155-162.
    9. Abdmoulah, Walid, 2010. "Testing the evolving efficiency of Arab stock markets," International Review of Financial Analysis, Elsevier, vol. 19(1), pages 25-34, January.
    10. Alizadeh, Amir H. & Tamvakis, Michael, 2016. "Market conditions, trader types and price–volume relation in energy futures markets," Energy Economics, Elsevier, vol. 56(C), pages 134-149.
    11. Bernardi, Mauro & Costola, Michele, 2019. "High-dimensional sparse financial networks through a regularised regression model," SAFE Working Paper Series 244, Leibniz Institute for Financial Research SAFE.
    12. Buczyński Mateusz & Chlebus Marcin, 2018. "Comparison of Semi-Parametric and Benchmark Value-At-Risk Models in Several Time Periods with Different Volatility Levels," Financial Internet Quarterly (formerly e-Finanse), Sciendo, vol. 14(2), pages 67-82, June.
    13. M. Jiménez Gamero, 2014. "On the empirical characteristic function process of the residuals in GARCH models and applications," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 23(2), pages 409-432, June.
    14. Doyle, John R. & Chen, Catherine Huirong, 2009. "The wandering weekday effect in major stock markets," Journal of Banking & Finance, Elsevier, vol. 33(8), pages 1388-1399, August.
    15. Hartz, Christoph & Mittnik, Stefan & Paolella, Marc S., 2006. "Accurate Value-at-Risk forecast with the (good old) normal-GARCH model," CFS Working Paper Series 2006/23, Center for Financial Studies (CFS).
    16. Chen, Rongda & Xu, Jianjun, 2019. "Forecasting volatility and correlation between oil and gold prices using a novel multivariate GAS model," Energy Economics, Elsevier, vol. 78(C), pages 379-391.
    17. Meriem Rjiba & Michail Tsagris & Hedi Mhalla, 2015. "Bootstrap for Value at Risk Prediction," International Journal of Empirical Finance, Research Academy of Social Sciences, vol. 4(6), pages 362-371.
    18. Halkos, George E. & Tsirivis, Apostolos S., 2019. "Effective energy commodity risk management: Econometric modeling of price volatility," Economic Analysis and Policy, Elsevier, vol. 63(C), pages 234-250.
    19. Apergis, Nicholas & Payne, James E., 2017. "Volatility Modeling of U.S. Metropolitan Retail Gasoline Prices: An Empirical Note," Journal of Regional Analysis and Policy, Mid-Continent Regional Science Association, vol. 48(2), September.
    20. Matthias Bauer & Martin Zenker, 2012. "Market Discipline Under A Politicised Multilateral Fiscal Rule - Lessons from the Stability and Growth Pact Debate," Global Financial Markets Working Paper Series 2012-35, Friedrich-Schiller-University Jena.

    More about this item

    Keywords

    Algorithmic Investment Strategies; Markowitz framework; portfolio optimization; forecasting; ARIMA; GARCH; XGBoost; minimum variance;
    All these keywords.

    JEL classification:

    • C4 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics
    • C14 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Semiparametric and Nonparametric Methods: General
    • C45 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics - - - Neural Networks and Related Topics
    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • C58 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Financial Econometrics
    • G13 - Financial Economics - - General Financial Markets - - - Contingent Pricing; Futures Pricing

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    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:war:wpaper:2023-17. 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: Marcin Bąba (email available below). General contact details of provider: https://edirc.repec.org/data/fesuwpl.html .

    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.