IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2101.03087.html
   My bibliography  Save this paper

Forecasting Commodity Prices Using Long Short-Term Memory Neural Networks

Author

Listed:
  • Racine Ly
  • Fousseini Traore
  • Khadim Dia

Abstract

This paper applies a recurrent neural network (RNN) method to forecast cotton and oil prices. We show how these new tools from machine learning, particularly Long-Short Term Memory (LSTM) models, complement traditional methods. Our results show that machine learning methods fit reasonably well the data but do not outperform systematically classical methods such as Autoregressive Integrated Moving Average (ARIMA) models in terms of out of sample forecasts. However, averaging the forecasts from the two type of models provide better results compared to either method. Compared to the ARIMA and the LSTM, the Root Mean Squared Error (RMSE) of the average forecast was 0.21 and 21.49 percent lower respectively for cotton. For oil, the forecast averaging does not provide improvements in terms of RMSE. We suggest using a forecast averaging method and extending our analysis to a wide range of commodity prices.

Suggested Citation

  • Racine Ly & Fousseini Traore & Khadim Dia, 2021. "Forecasting Commodity Prices Using Long Short-Term Memory Neural Networks," Papers 2101.03087, arXiv.org, revised Jan 2021.
  • Handle: RePEc:arx:papers:2101.03087
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2101.03087
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Frances Antonovitz & Richard Green, 1990. "Alternative Estimates of Fed Beef Supply Response to Risk," American Journal of Agricultural Economics, Agricultural and Applied Economics Association, vol. 72(2), pages 475-487.
    2. Zivot, Eric & Andrews, Donald W K, 2002. "Further Evidence on the Great Crash, the Oil-Price Shock, and the Unit-Root Hypothesis," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 25-44, January.
    3. Vogelsang, Timothy J & Perron, Pierre, 1998. "Additional Tests for a Unit Root Allowing for a Break in the Trend Function at an Unknown Time," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 39(4), pages 1073-1100, November.
    4. David F. Hendry & Michael P. Clements, 2004. "Pooling of forecasts," Econometrics Journal, Royal Economic Society, vol. 7(1), pages 1-31, June.
    5. Pai, Ping-Feng & Lin, Chih-Sheng, 2005. "A hybrid ARIMA and support vector machines model in stock price forecasting," Omega, Elsevier, vol. 33(6), pages 497-505, December.
    6. Perron, Pierre, 1989. "The Great Crash, the Oil Price Shock, and the Unit Root Hypothesis," Econometrica, Econometric Society, vol. 57(6), pages 1361-1401, November.
    7. Harvey, David & Leybourne, Stephen & Newbold, Paul, 1997. "Testing the equality of prediction mean squared errors," International Journal of Forecasting, Elsevier, vol. 13(2), pages 281-291, June.
    8. Jeremy Smith & Kenneth F. Wallis, 2009. "A Simple Explanation of the Forecast Combination Puzzle," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 71(3), pages 331-355, June.
    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. Min Hu & Zhizhong Tan & Bin Liu & Guosheng Yin, 2023. "Futures Quantitative Investment with Heterogeneous Continual Graph Neural Network," Papers 2303.16532, arXiv.org, revised Dec 2023.

    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. Mariam Camarero & Juan Sapena & Cecilio Tamarit, 2020. "Modelling Time-Varying Parameters in Panel Data State-Space Frameworks: An Application to the Feldstein–Horioka Puzzle," Computational Economics, Springer;Society for Computational Economics, vol. 56(1), pages 87-114, June.
    2. John Dawson & Amit Sen, 2007. "New evidence on the convergence of international income from a group of 29 countries," Empirical Economics, Springer, vol. 33(2), pages 199-230, September.
    3. Marcus Box & Karl Gratzer & Xiang Lin, 2020. "Destructive entrepreneurship in the small business sector: bankruptcy fraud in Sweden, 1830–2010," Small Business Economics, Springer, vol. 54(2), pages 437-457, February.
    4. Mariam Camarero & Josep Lluís Carrion-i-Silvestre & Cecilio Tamarit, 2004. "Testing for hysteresis in unemployment in OECD countries. New evidence using stationarity panel tests with breaks†," Economic Working Papers at Centro de Estudios Andaluces 2004/40, Centro de Estudios Andaluces.
    5. Cavaliere, Giuseppe & Harvey, David I. & Leybourne, Stephen J. & Taylor, A.M. Robert, 2011. "Testing For Unit Roots In The Presence Of A Possible Break In Trend And Nonstationary Volatility," Econometric Theory, Cambridge University Press, vol. 27(5), pages 957-991, October.
    6. Popp, Stephan, 2007. "Identification of the true break date in innovational outlier unit root tests," IBES Diskussionsbeiträge 152, University of Duisburg-Essen, Institute of Business and Economic Studie (IBES).
    7. Alvaro Pereira & João Jalles & Martin Andresen, 2012. "Structural change and foreign direct investment: globalization and regional economic integration," Portuguese Economic Journal, Springer;Instituto Superior de Economia e Gestao, vol. 11(1), pages 35-82, April.
    8. Akhsyim Afandi, 2009. "An ardl approach to identify bank landing channel in Indonesia," Economic Journal of Emerging Markets, Universitas Islam Indonesia, vol. 1(1), pages 46-59, April.
    9. Naser, Hanan, 2016. "Estimating and forecasting the real prices of crude oil: A data rich model using a dynamic model averaging (DMA) approach," Energy Economics, Elsevier, vol. 56(C), pages 75-87.
    10. Marriott, John & Newbold, Paul, 2000. "The strength of evidence for unit autoregressive roots and structural breaks: A Bayesian perspective," Journal of Econometrics, Elsevier, vol. 98(1), pages 1-25, September.
    11. Ventosa-Santaulària Daniel & Gómez-Zaldívar Manuel, 2011. "Testing for a Deterministic Trend When There is Evidence of Unit Root," Journal of Time Series Econometrics, De Gruyter, vol. 2(2), pages 1-26, January.
    12. Lay Lian Chuah & Wai Ching Poon & Balachandher Krishnan Guru, 2018. "Uncertainty and Private Investment Decision in Malaysia," Modern Applied Science, Canadian Center of Science and Education, vol. 12(9), pages 1-71, September.
    13. Salah Eddine Sari Hassoun & Khayereddine Salim Adda & Asma Hadjira Sebbane, 2021. "Examining the connection among national tourism expenditure and economic growth in Algeria," Future Business Journal, Springer, vol. 7(1), pages 1-9, December.
    14. Junsoo Lee & Mark C. Strazicich, 2013. "Minimum LM unit root test with one structural break," Economics Bulletin, AccessEcon, vol. 33(4), pages 2483-2492.
    15. Dimitrios Dadakas & Christos Karpetis & Athanasios Fassas & Erotokritos Varelas, 2016. "Sectoral Differences in the Choice of the Time Horizon during Estimation of the Unconditional Stock Beta," IJFS, MDPI, vol. 4(4), pages 1-13, December.
    16. Uäžur Sivri, 2017. "Is Inflation Rate Of Turkey Stationary? Evidence From Unit Root Tests With And Without Structural Breaks," Review of Economic and Business Studies, Alexandru Ioan Cuza University, Faculty of Economics and Business Administration, issue 20, pages 29-52, December.
    17. Nasir, Muhammad Ali & Al-Emadi, Ahmed Abdulsalam & Shahbaz, Muhammad & Hammoudeh, Shawkat, 2019. "Importance of oil shocks and the GCC macroeconomy: A structural VAR analysis," Resources Policy, Elsevier, vol. 61(C), pages 166-179.
    18. Mohitosh Kejriwal & Claude Lopez, 2013. "Unit Roots, Level Shifts, and Trend Breaks in Per Capita Output: A Robust Evaluation," Econometric Reviews, Taylor & Francis Journals, vol. 32(8), pages 892-927, November.
    19. Fakhri J. Hasanov & Jeyhun I. Mikayilov & Sabuhi Yusifov & Khatai Aliyev & Samra Talishinskaya, 2019. "The role of social and physical infrastructure spending in tradable and non-tradable growth," Contemporary Economics, University of Economics and Human Sciences in Warsaw., vol. 13(1), March.
    20. Kim, Dukpa & Perron, Pierre, 2009. "Unit root tests allowing for a break in the trend function at an unknown time under both the null and alternative hypotheses," Journal of Econometrics, Elsevier, vol. 148(1), pages 1-13, January.

    More about this item

    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:arx:papers:2101.03087. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.