IDEAS home Printed from https://ideas.repec.org/a/eee/jrpoli/v86y2023ipas0301420723009595.html
   My bibliography  Save this article

Forecasting rare earth stock prices with machine learning

Author

Listed:
  • Henriques, Irene
  • Sadorsky, Perry

Abstract

Rare earth elements (REEs) are indispensable for producing green technologies and electronics. Demand for REEs in clean energy technologies in 2040 are projected to be three to seven times higher than today and will be critical to the clean technology transition needed to stave off catastrophic climate change. Forecasting rare earth stock prices is critical for making well informed investment decisions concerning this important asset class. Despite the latter, the literature on forecasting rare earth stock prices is scarce. We use machine learning techniques to forecast daily rare earth stock price direction. The analysis reveals that random forests, extremely randomized trees, RNN, and support vector machine have higher prediction accuracy than Lasso or Naïve Bayes. We find that the 10- to 20-day forecasts using random forests, extremely randomized trees, and support vector machine achieve prediction accuracies greater than 85% with some prediction accuracy reaching 90%. Lasso prediction accuracy is higher than Naïve Bayes but never greater than 67%. The MA200, MA50, on balance volume, VIX, and WAD are the most important predictive features of rare earth stock price direction. A switching portfolio that uses trading signals from an Extra Trees model impressively outperforms a buy and hold portfolio. Our results reveal the high prediction accuracy of using machine learning methods in forecasting rare earth stock price direction which should be useful to investors, policy makers and venture capitalists.

Suggested Citation

  • Henriques, Irene & Sadorsky, Perry, 2023. "Forecasting rare earth stock prices with machine learning," Resources Policy, Elsevier, vol. 86(PA).
  • Handle: RePEc:eee:jrpoli:v:86:y:2023:i:pa:s0301420723009595
    DOI: 10.1016/j.resourpol.2023.104248
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0301420723009595
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.resourpol.2023.104248?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. Shuai, Jing & Zhao, Yujia & Shuai, Chuanmin & Wang, Jingjin & Yi, Tian & Cheng, Jinhua, 2023. "Assessing the international co-opetition dynamics of rare earth resources between China, USA, Japan and the EU: An ecological niche approach," Resources Policy, Elsevier, vol. 82(C).
    2. Pönkä, Harri, 2016. "Real oil prices and the international sign predictability of stock returns," Finance Research Letters, Elsevier, vol. 17(C), pages 79-87.
    3. Stelios Bekiros & Dimitris Georgoutsos, 2008. "Non-linear dynamics in financial asset returns: the predictive power of the CBOE volatility index," The European Journal of Finance, Taylor & Francis Journals, vol. 14(5), pages 397-408.
    4. Leung, Mark T. & Daouk, Hazem & Chen, An-Sing, 2000. "Forecasting stock indices: a comparison of classification and level estimation models," International Journal of Forecasting, Elsevier, vol. 16(2), pages 173-190.
    5. Nyberg, Henri & Pönkä, Harri, 2016. "International sign predictability of stock returns: The role of the United States," Economic Modelling, Elsevier, vol. 58(C), pages 323-338.
    6. Bergmeir, Christoph & Hyndman, Rob J. & Koo, Bonsoo, 2018. "A note on the validity of cross-validation for evaluating autoregressive time series prediction," Computational Statistics & Data Analysis, Elsevier, vol. 120(C), pages 70-83.
    7. Díaz, Juan D. & Hansen, Erwin & Cabrera, Gabriel, 2020. "A random walk through the trees: Forecasting copper prices using decision learning methods," Resources Policy, Elsevier, vol. 69(C).
    8. Song, Ying & Bouri, Elie & Ghosh, Sajal & Kanjilal, Kakali, 2021. "Rare earth and financial markets: Dynamics of return and volatility connectedness around the COVID-19 outbreak," Resources Policy, Elsevier, vol. 74(C).
    9. Reboredo, Juan C. & Ugolini, Andrea, 2020. "Price spillovers between rare earth stocks and financial markets," Resources Policy, Elsevier, vol. 66(C).
    10. Fernandez, Viviana, 2017. "Rare-earth elements market: A historical and financial perspective," Resources Policy, Elsevier, vol. 53(C), pages 26-45.
    11. Dooley, Gillian & Lenihan, Helena, 2005. "An assessment of time series methods in metal price forecasting," Resources Policy, Elsevier, vol. 30(3), pages 208-217, September.
    12. He, Kaijian & Lu, Xingjing & Zou, Yingchao & Keung Lai, Kin, 2015. "Forecasting metal prices with a curvelet based multiscale methodology," Resources Policy, Elsevier, vol. 45(C), pages 144-150.
    13. Nyberg, Henri, 2011. "Forecasting the direction of the US stock market with dynamic binary probit models," International Journal of Forecasting, Elsevier, vol. 27(2), pages 561-578.
    14. Nyberg, Henri, 2011. "Forecasting the direction of the US stock market with dynamic binary probit models," International Journal of Forecasting, Elsevier, vol. 27(2), pages 561-578, April.
    15. Yin, Libo & Yang, Qingyuan, 2016. "Predicting the oil prices: Do technical indicators help?," Energy Economics, Elsevier, vol. 56(C), pages 338-350.
    16. Chen, Yufeng & Zheng, Biao & Qu, Fang, 2020. "Modeling the nexus of crude oil, new energy and rare earth in China: An asymmetric VAR-BEKK (DCC)-GARCH approach," Resources Policy, Elsevier, vol. 65(C).
    17. Yu-Chin Chen & Kenneth S. Rogoff & Barbara Rossi, 2010. "Can Exchange Rates Forecast Commodity Prices?," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 125(3), pages 1145-1194.
    18. Christopher J. Neely & David E. Rapach & Jun Tu & Guofu Zhou, 2014. "Forecasting the Equity Risk Premium: The Role of Technical Indicators," Management Science, INFORMS, vol. 60(7), pages 1772-1791, July.
    19. Peter F. Christoffersen & Francis X. Diebold, 2006. "Financial Asset Returns, Direction-of-Change Forecasting, and Volatility Dynamics," Management Science, INFORMS, vol. 52(8), pages 1273-1287, August.
    20. Chen, Yanhui & He, Kaijian & Zhang, Chuan, 2016. "A novel grey wave forecasting method for predicting metal prices," Resources Policy, Elsevier, vol. 49(C), pages 323-331.
    21. Pincheira Brown, Pablo & Hardy, Nicolás, 2019. "Forecasting base metal prices with the Chilean exchange rate," Resources Policy, Elsevier, vol. 62(C), pages 256-281.
    22. Liu, Chang & Hu, Zhenhua & Li, Yan & Liu, Shaojun, 2017. "Forecasting copper prices by decision tree learning," Resources Policy, Elsevier, vol. 52(C), pages 427-434.
    23. Sánchez Lasheras, Fernando & de Cos Juez, Francisco Javier & Suárez Sánchez, Ana & Krzemień, Alicja & Riesgo Fernández, Pedro, 2015. "Forecasting the COMEX copper spot price by means of neural networks and ARIMA models," Resources Policy, Elsevier, vol. 45(C), pages 37-43.
    24. Kwas, Marek & Paccagnini, Alessia & Rubaszek, Michał, 2021. "Common factors and the dynamics of industrial metal prices. A forecasting perspective," Resources Policy, Elsevier, vol. 74(C).
    25. Kriechbaumer, Thomas & Angus, Andrew & Parsons, David & Rivas Casado, Monica, 2014. "An improved wavelet–ARIMA approach for forecasting metal prices," Resources Policy, Elsevier, vol. 39(C), pages 32-41.
    26. Rubaszek, Michał & Karolak, Zuzanna & Kwas, Marek, 2020. "Mean-reversion, non-linearities and the dynamics of industrial metal prices. A forecasting perspective," Resources Policy, Elsevier, vol. 65(C).
    27. Pesaran, M. Hashem & Timmermann, Allan, 2002. "Market timing and return prediction under model instability," Journal of Empirical Finance, Elsevier, vol. 9(5), pages 495-510, December.
    28. Shi, Tao & Li, Chongyang & Zhang, Wei & Zhang, Yi, 2023. "Forecasting on metal resource spot settlement price: New evidence from the machine learning model," Resources Policy, Elsevier, vol. 81(C).
    29. Lohrmann, Christoph & Luukka, Pasi, 2019. "Classification of intraday S&P500 returns with a Random Forest," International Journal of Forecasting, Elsevier, vol. 35(1), pages 390-407.
    30. Fernandez, Viviana, 2017. "A historical perspective of the informational content of commodity futures," Resources Policy, Elsevier, vol. 51(C), pages 135-150.
    31. Zhang, Hong & Nguyen, Hoang & Vu, Diep-Anh & Bui, Xuan-Nam & Pradhan, Biswajeet, 2021. "Forecasting monthly copper price: A comparative study of various machine learning-based methods," Resources Policy, Elsevier, vol. 73(C).
    32. Fernandez, Viviana, 2020. "The predictive power of convenience yields," Resources Policy, Elsevier, vol. 65(C).
    33. Wang, Yudong & Liu, Li & Wu, Chongfeng, 2020. "Forecasting commodity prices out-of-sample: Can technical indicators help?," International Journal of Forecasting, Elsevier, vol. 36(2), pages 666-683.
    34. Khoshalan, Hasel Amini & Shakeri, Jamshid & Najmoddini, Iraj & Asadizadeh, Mostafa, 2021. "Forecasting copper price by application of robust artificial intelligence techniques," Resources Policy, Elsevier, vol. 73(C).
    35. Banerjee, Prithviraj S. & Doran, James S. & Peterson, David R., 2007. "Implied volatility and future portfolio returns," Journal of Banking & Finance, Elsevier, vol. 31(10), pages 3183-3199, October.
    36. Libo Yin & Qingyuan Yang & Zhi Su, 2017. "Predictability of structural co-movement in commodity prices: the role of technical indicators," Quantitative Finance, Taylor & Francis Journals, vol. 17(5), pages 795-812, May.
    37. 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.
    38. Apergis, Emmanuel & Apergis, Nicholas, 2017. "The role of rare earth prices in renewable energy consumption: The actual driver for a renewable energy world," Energy Economics, Elsevier, vol. 62(C), pages 33-42.
    39. Salim, Hengky & Sahin, Oz & Elsawah, Sondoss & Turan, Hasan & Stewart, Rodney A., 2022. "A critical review on tackling complex rare earth supply security problem," Resources Policy, Elsevier, vol. 77(C).
    40. Scott Cederburg & Travis L Johnson & Michael S O’Doherty, 2023. "On the Economic Significance of Stock Return Predictability," Review of Finance, European Finance Association, vol. 27(2), pages 619-657.
    41. Xia, Qifan & Du, Debin & Cao, Wanpeng & Li, Xiya, 2023. "Who is the core? Reveal the heterogeneity of global rare earth trade structure from the perspective of industrial chain," Resources Policy, Elsevier, vol. 82(C).
    42. Baldi, Lucia & Peri, Massimo & Vandone, Daniela, 2014. "Clean energy industries and rare earth materials: Economic and financial issues," Energy Policy, Elsevier, vol. 66(C), pages 53-61.
    43. Elie Bouri & Kakali Kanjilal & Sajal Ghosh & David Roubaud & Tareq Saeed, 2021. "Rare earth and allied sectors in stock markets: extreme dependence of return and volatility," Applied Economics, Taylor & Francis Journals, vol. 53(49), pages 5710-5730, October.
    44. Brandt, Michael W. & Kang, Qiang, 2004. "On the relationship between the conditional mean and volatility of stock returns: A latent VAR approach," Journal of Financial Economics, Elsevier, vol. 72(2), pages 217-257, May.
    45. Sadorsky, Perry, 2022. "Forecasting solar stock prices using tree-based machine learning classification: How important are silver prices?," The North American Journal of Economics and Finance, Elsevier, vol. 61(C).
    46. Wang, Jianliang & Guo, Meiyu & Liu, Mingming & Wei, Xinqiang, 2020. "Long-term outlook for global rare earth production," Resources Policy, Elsevier, vol. 65(C).
    47. Perry Sadorsky, 2021. "Predicting Gold and Silver Price Direction Using Tree-Based Classifiers," JRFM, MDPI, vol. 14(5), pages 1-21, April.
    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. Syed Abul, Basher & Perry, Sadorsky, 2022. "Forecasting Bitcoin price direction with random forests: How important are interest rates, inflation, and market volatility?," MPRA Paper 113293, University Library of Munich, Germany.
    2. Sadorsky, Perry, 2022. "Forecasting solar stock prices using tree-based machine learning classification: How important are silver prices?," The North American Journal of Economics and Finance, Elsevier, vol. 61(C).
    3. Kwas, Marek & Paccagnini, Alessia & Rubaszek, Michał, 2021. "Common factors and the dynamics of industrial metal prices. A forecasting perspective," Resources Policy, Elsevier, vol. 74(C).
    4. Perry Sadorsky, 2021. "Predicting Gold and Silver Price Direction Using Tree-Based Classifiers," JRFM, MDPI, vol. 14(5), pages 1-21, April.
    5. Perry Sadorsky, 2021. "A Random Forests Approach to Predicting Clean Energy Stock Prices," JRFM, MDPI, vol. 14(2), pages 1-20, January.
    6. Rubaszek, Michał & Karolak, Zuzanna & Kwas, Marek, 2020. "Mean-reversion, non-linearities and the dynamics of industrial metal prices. A forecasting perspective," Resources Policy, Elsevier, vol. 65(C).
    7. Li, Zheng-Zheng & Meng, Qin & Zhang, Linling & Lobont, Oana-Ramona & Shen, Yijuan, 2023. "How do rare earth prices respond to economic and geopolitical factors?," Resources Policy, Elsevier, vol. 85(PA).
    8. Madaleno, Mara & Taskin, Dilvin & Dogan, Eyup & Tzeremes, Panayiotis, 2023. "A dynamic connectedness analysis between rare earth prices and renewable energy," Resources Policy, Elsevier, vol. 85(PB).
    9. Fernandez, Viviana & Pastén-Henríquez, Boris & Tapia-Griñen, Pablo & Wagner, Rodrigo, 2023. "Commodity prices under the threat of operational disruptions: Labor strikes at copper mines," Journal of Commodity Markets, Elsevier, vol. 32(C).
    10. Hanif, Waqas & Mensi, Walid & Gubareva, Mariya & Teplova, Tamara, 2023. "Impacts of COVID-19 on dynamic return and volatility spillovers between rare earth metals and renewable energy stock markets," Resources Policy, Elsevier, vol. 80(C).
    11. Kamal, Elham & Bouri, Elie, 2023. "Dependence structure among rare earth and financial markets: A multiscale-vine copula approach," Resources Policy, Elsevier, vol. 83(C).
    12. Hardy, Nicolás & Ferreira, Tiago & Quinteros, Maria J. & Magner, Nicolás S., 2023. "“Watch your tone!”: Forecasting mining industry commodity prices with financial report tone," Resources Policy, Elsevier, vol. 86(PA).
    13. Song, Ying & Bouri, Elie & Ghosh, Sajal & Kanjilal, Kakali, 2021. "Rare earth and financial markets: Dynamics of return and volatility connectedness around the COVID-19 outbreak," Resources Policy, Elsevier, vol. 74(C).
    14. Du, Pei & Wang, Jianzhou & Yang, Wendong & Niu, Tong, 2020. "Point and interval forecasting for metal prices based on variational mode decomposition and an optimized outlier-robust extreme learning machine," Resources Policy, Elsevier, vol. 69(C).
    15. Pönkä, Harri, 2016. "Real oil prices and the international sign predictability of stock returns," Finance Research Letters, Elsevier, vol. 17(C), pages 79-87.
    16. Nyberg, Henri & Pönkä, Harri, 2016. "International sign predictability of stock returns: The role of the United States," Economic Modelling, Elsevier, vol. 58(C), pages 323-338.
    17. Liu, Kailei & Cheng, Jinhua & Yi, Jiahui, 2022. "Copper price forecasted by hybrid neural network with Bayesian Optimization and wavelet transform," Resources Policy, Elsevier, vol. 75(C).
    18. Luo, Hongyuan & Wang, Deyun & Cheng, Jinhua & Wu, Qiaosheng, 2022. "Multi-step-ahead copper price forecasting using a two-phase architecture based on an improved LSTM with novel input strategy and error correction," Resources Policy, Elsevier, vol. 79(C).
    19. Ozdemir, Ali Can & Buluş, Kurtuluş & Zor, Kasım, 2022. "Medium- to long-term nickel price forecasting using LSTM and GRU networks," Resources Policy, Elsevier, vol. 78(C).
    20. Alameer, Zakaria & Elaziz, Mohamed Abd & Ewees, Ahmed A. & Ye, Haiwang & Jianhua, Zhang, 2019. "Forecasting gold price fluctuations using improved multilayer perceptron neural network and whale optimization algorithm," Resources Policy, Elsevier, vol. 61(C), pages 250-260.

    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:eee:jrpoli:v:86:y:2023:i:pa:s0301420723009595. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/inca/30467 .

    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.