IDEAS home Printed from https://ideas.repec.org/a/eco/journ1/2024-02-2.html
   My bibliography  Save this article

Forecasting Stock Market Realized Volatility using Random Forest and Artificial Neural Network in South Africa

Author

Listed:
  • Lamine Diane

    (Commerce Faculty, University of Cape Town, South Africa)

  • Pradeep Brijlal

    (Commerce Faculty, University of Cape Town, South Africa)

Abstract

Volatility is often used as a key input into several financial models, yet there is still no consensus on the best-performing model in forecasting stock market returns volatility. Conventional time series models such as GARCH are the preferred models in the literature. However, this project aims to first adopt two novel non-linear machine learning algorithms, namely the Random Forest and Artificial Neural Network (ANN). The project then compares the performance of these two models in predicting stock market realized volatility for the JSE Basic Material Index (JBIND) and the JSE Financials Index (JFIN) over a period of five years. Based on the results of the project, the Random Forest model outperformed the ANN model for both the JFIN and JBIND index. Lastly, the COVID effect on the model’s performance was also considered and the results show that the negative impact of COVID on the model’s performance is ambiguous.

Suggested Citation

  • Lamine Diane & Pradeep Brijlal, 2024. "Forecasting Stock Market Realized Volatility using Random Forest and Artificial Neural Network in South Africa," International Journal of Economics and Financial Issues, Econjournals, vol. 14(2), pages 5-14, March.
  • Handle: RePEc:eco:journ1:2024-02-2
    as

    Download full text from publisher

    File URL: https://www.econjournals.com/index.php/ijefi/article/download/15431/7781
    Download Restriction: no

    File URL: https://www.econjournals.com/index.php/ijefi/article/view/15431
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Cifter, Atilla, 2012. "Volatility Forecasting with Asymmetric Normal Mixture Garch Model: Evidence from South Africa," Journal for Economic Forecasting, Institute for Economic Forecasting, vol. 0(2), pages 127-142, June.
    2. Basak, Suryoday & Kar, Saibal & Saha, Snehanshu & Khaidem, Luckyson & Dey, Sudeepa Roy, 2019. "Predicting the direction of stock market prices using tree-based classifiers," The North American Journal of Economics and Finance, Elsevier, vol. 47(C), pages 552-567.
    3. Bollerslev, Tim, 1986. "Generalized autoregressive conditional heteroskedasticity," Journal of Econometrics, Elsevier, vol. 31(3), pages 307-327, April.
    4. Pratap Chandra Pati & Parama Barai & Prabina Rajib, 2018. "Forecasting stock market volatility and information content of implied volatility index," Applied Economics, Taylor & Francis Journals, vol. 50(23), pages 2552-2568, May.
    5. Babikir, Ali & Gupta, Rangan & Mwabutwa, Chance & Owusu-Sekyere, Emmanuel, 2012. "Structural breaks and GARCH models of stock return volatility: The case of South Africa," Economic Modelling, Elsevier, vol. 29(6), pages 2435-2443.
    6. 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.
    7. Riza Demirer & Rangan Gupta & Christian Pierdzioch, 2020. "Forecasting Realized Stock-Market Volatility: Do Industry Returns have Predictive Value?," Working Papers 2020107, University of Pretoria, Department of Economics.
    8. Bollerslev, Tim & Ole Mikkelsen, Hans, 1996. "Modeling and pricing long memory in stock market volatility," Journal of Econometrics, Elsevier, vol. 73(1), pages 151-184, July.
    9. Rita Laura D’Ecclesia & Daniele Clementi, 2021. "Volatility in the stock market: ANN versus parametric models," Annals of Operations Research, Springer, vol. 299(1), pages 1101-1127, April.
    10. Hamid, Shaikh A. & Iqbal, Zahid, 2004. "Using neural networks for forecasting volatility of S&P 500 Index futures prices," Journal of Business Research, Elsevier, vol. 57(10), pages 1116-1125, October.
    11. Dima Alberg & Haim Shalit & Rami Yosef, 2008. "Estimating stock market volatility using asymmetric GARCH models," Applied Financial Economics, Taylor & Francis Journals, vol. 18(15), pages 1201-1208.
    12. Ser-Huang Poon & Clive W.J. Granger, 2003. "Forecasting Volatility in Financial Markets: A Review," Journal of Economic Literature, American Economic Association, vol. 41(2), pages 478-539, June.
    13. Chuong Luong & Nikolai Dokuchaev, 2018. "Forecasting of Realised Volatility with the Random Forests Algorithm," JRFM, MDPI, vol. 11(4), pages 1-15, October.
    14. Pramod Kumar Naik & Rangan Gupta & Puja Padhi, 2018. "The Relationship Between Stock Market Volatility And Trading Volume: Evidence From South Africa," Journal of Developing Areas, Tennessee State University, College of Business, vol. 52(1), pages 99-114, January-M.
    15. Emenike, Kalu O., 2010. "Modelling Stock Returns Volatility In Nigeria Using GARCH Models," MPRA Paper 22723, University Library of Munich, Germany.
    16. Morema, Kgotso & Bonga-Bonga, Lumengo, 2020. "The impact of oil and gold price fluctuations on the South African equity market: Volatility spillovers and financial policy implications," Resources Policy, Elsevier, vol. 68(C).
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Selamet Herman Cipto & Endri Endri & Yono Haryono & Dhanang Hartanto, 2024. "Islamic Stock Indices and COVID-19: Evidence from Indonesia," International Journal of Economics and Financial Issues, Econjournals, vol. 14(3), pages 83-88, May.

    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. Mehmet Sahiner, 2022. "Forecasting volatility in Asian financial markets: evidence from recursive and rolling window methods," SN Business & Economics, Springer, vol. 2(10), pages 1-74, October.
    2. Milton Abdul Thorlie & Lixin Song & Muhammad Amin & Xiaoguang Wang, 2015. "Modeling and forecasting of stock index volatility with APARCH models under ordered restriction," Statistica Neerlandica, Netherlands Society for Statistics and Operations Research, vol. 69(3), pages 329-356, August.
    3. Athanasia Gavala & Nikolay Gospodinov & Deming Jiang, 2006. "Forecasting volatility," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 25(6), pages 381-400.
    4. Stentoft, Lars, 2005. "Pricing American options when the underlying asset follows GARCH processes," Journal of Empirical Finance, Elsevier, vol. 12(4), pages 576-611, September.
    5. CHIA-LIN CHANG & MICHAEL McALEER & ROENGCHAI TANSUCHAT, 2012. "Modelling Long Memory Volatility In Agricultural Commodity Futures Returns," Annals of Financial Economics (AFE), World Scientific Publishing Co. Pte. Ltd., vol. 7(02), pages 1-27.
    6. Gavriilidis, Konstantinos & Kambouroudis, Dimos S. & Tsakou, Katerina & Tsouknidis, Dimitris A., 2018. "Volatility forecasting across tanker freight rates: The role of oil price shocks," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 118(C), pages 376-391.
    7. Antonakakis, Nikolaos & Darby, Julia, 2012. "Forecasting Volatility in Developing Countries' Nominal Exchange Returns," MPRA Paper 40875, University Library of Munich, Germany.
    8. Long H. Vo, 2017. "Estimating Financial Volatility with High-Frequency Returns," Journal of Finance and Economics Research, Geist Science, Iqra University, Faculty of Business Administration, vol. 2(2), pages 84-114, October.
    9. Tae-Hwy Lee & Yong Bao & Burak Saltoğlu, 2007. "Comparing density forecast models Previous versions of this paper have been circulated with the title, 'A Test for Density Forecast Comparison with Applications to Risk Management' since October 2003;," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 26(3), pages 203-225.
    10. Benlagha, Noureddine & Chargui, Sana, 2017. "Range-based and GARCH volatility estimation: Evidence from the French asset market," Global Finance Journal, Elsevier, vol. 32(C), pages 149-165.
    11. Takuo Higashide & Katsuyuki Tanaka & Takuji Kinkyo & Shigeyuki Hamori, 2021. "New Dataset for Forecasting Realized Volatility: Is the Tokyo Stock Exchange Co-Location Dataset Helpful for Expansion of the Heterogeneous Autoregressive Model in the Japanese Stock Market?," JRFM, MDPI, vol. 14(5), pages 1-18, May.
    12. Borgsen, Sina & Glaser, Markus, 2005. "Diversifikationseffekte durch small und mid caps? : Eine empirische Untersuchung basierend auf europäischen Aktienindizes," Papers 05-10, Sonderforschungsbreich 504.
    13. David McMillan & Raquel Quiroga Garcia, 2009. "Intra-day volatility forecasts," Applied Financial Economics, Taylor & Francis Journals, vol. 19(8), pages 611-623.
    14. Lakshmi Padmakumari & S Maheswaran, 2016. "A Regression Based Approach to Capturing the Level Dependence in the Volatility of Stock Returns," Asian Economic and Financial Review, Asian Economic and Social Society, vol. 6(12), pages 706-718, December.
    15. Borgsen, Sina & Glaser, Markus, 2005. "Diversifikationseffekte durch Small und Mid Caps?," Sonderforschungsbereich 504 Publications 05-10, Sonderforschungsbereich 504, Universität Mannheim;Sonderforschungsbereich 504, University of Mannheim.
    16. Igor LEBRUN & Ludovic DOBBELAERE, 2010. "A Macro-econometric Model for the Economy of Lesotho," EcoMod2010 259600102, EcoMod.
    17. Arouri, Mohamed El Hédi & Lahiani, Amine & Lévy, Aldo & Nguyen, Duc Khuong, 2012. "Forecasting the conditional volatility of oil spot and futures prices with structural breaks and long memory models," Energy Economics, Elsevier, vol. 34(1), pages 283-293.
    18. Pınar Kaya Soylu & Mustafa Okur & Özgür Çatıkkaş & Z. Ayca Altintig, 2020. "Long Memory in the Volatility of Selected Cryptocurrencies: Bitcoin, Ethereum and Ripple," JRFM, MDPI, vol. 13(6), pages 1-21, May.
    19. Chu, Carlin C.F. & Lam, K.P., 2011. "Modeling intraday volatility: A new consideration," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 21(3), pages 388-418, July.
    20. Kejin Wu & Sayar Karmakar & Rangan Gupta & Christian Pierdzioch, 2023. "Climate Risks and Stock Market Volatility Over a Century in an Emerging Market Economy: The Case of South Africa," Working Papers 202326, University of Pretoria, Department of Economics.

    More about this item

    Keywords

    Forecasting; Realized Volatility; Random Forest; Artificial Neural Network;
    All these keywords.

    JEL classification:

    • G11 - Financial Economics - - General Financial Markets - - - Portfolio Choice; Investment Decisions
    • G17 - Financial Economics - - General Financial Markets - - - Financial Forecasting and Simulation

    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:eco:journ1:2024-02-2. 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: Ilhan Ozturk (email available below). General contact details of provider: http://www.econjournals.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.