discussion paper

Forecasting commodity prices using long-short-term memory neural networks

by Racine Ly,
Fousseini Traore and
Khadim Dia
Open Access
Citation
Ly, Racine; Traore, Fousseini; and Dia, Khadim. 2021. Forecasting commodity prices using long-short-term memory neural networks. IFPRI Discussion Paper 2000. Washington, DC: International Food Policy Research Institute. https://doi.org/10.2499/p15738coll2.134265

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 with the data but do not outperform systematically classical methods such as Autoregressive Integrated Moving Average (ARIMA) or the naïve 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.