Mixed random forest, cointegration, and forecasting gasoline prices Articles uri icon

publication date

  • October 2021

start page

  • 1442

end page

  • 1462

issue

  • 4

volume

  • 37

International Standard Serial Number (ISSN)

  • 0169-2070

Electronic International Standard Serial Number (EISSN)

  • 1872-8200

abstract

  • One of the most successful forecasting machine learning (ML) procedures is random forest (RF). In this paper, we propose a new mixed RF approach for modeling departures from linearity that helps identify (i) explanatory variables with nonlinear impacts, (ii) threshold values, and (iii) the closest parametric approximation. The methodology is applied to weekly forecasts of gasoline prices, cointegrated with international oil prices and exchange rates. Recent specifications for nonlinear error correction (NEC) models include threshold autoregressive models (TAR) and double-threshold smooth transition autoregressive (STAR) models. We propose a new mixed RF model specification strategy and apply it to the determinants of weekly prices of the Spanish gasoline market from 2010 to 2019. In particular, the mixed RF is able to identify nonlinearities in both the error correction term and the rate of change of oil prices. It provides the best weekly gasoline price forecasting performance and supports the logistic error correction model (ECM) approximation.

subjects

  • Economics
  • Statistics

keywords

  • oil prices; rockets and feathers; cointegration; nonlinear error correction; machine learning; random forest; mixed random forest