IDEAS home Printed from https://ideas.repec.org/a/eee/intfor/v37y2021i4p1442-1462.html
   My bibliography  Save this article

Mixed random forest, cointegration, and forecasting gasoline prices

Author

Listed:
  • Escribano, Álvaro
  • Wang, Dandan

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.

Suggested Citation

  • Escribano, Álvaro & Wang, Dandan, 2021. "Mixed random forest, cointegration, and forecasting gasoline prices," International Journal of Forecasting, Elsevier, vol. 37(4), pages 1442-1462.
  • Handle: RePEc:eee:intfor:v:37:y:2021:i:4:p:1442-1462
    DOI: 10.1016/j.ijforecast.2020.12.008
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.ijforecast.2020.12.008?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. Raffaella Giacomini & Halbert White, 2006. "Tests of Conditional Predictive Ability," Econometrica, Econometric Society, vol. 74(6), pages 1545-1578, November.
    2. Escribano Alvaro & Torrado María, 2018. "Nonlinear and asymmetric pricing behaviour in the Spanish gasoline market," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 22(5), pages 1-19, December.
    3. Robinson, Peter M, 1988. "Root- N-Consistent Semiparametric Regression," Econometrica, Econometric Society, vol. 56(4), pages 931-954, July.
    4. Escribano, Alvaro & Pfann, Gerard A., 1998. "Non-linear error correction, asymmetric adjustment and cointegration," Economic Modelling, Elsevier, vol. 15(2), pages 197-216, April.
    5. Felipe Balmaceda & Paula Soruco, 2008. "Asymmetric Dynamic Pricing In A Local Gasoline Retail Market," Journal of Industrial Economics, Wiley Blackwell, vol. 56(3), pages 629-653, September.
    6. Granger, C W J & Lee, T H, 1989. "Investigation of Production, Sales and Inventory Relationships Using Multicointegration and Non-symmetric Error Correction Models," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 4(S), pages 145-159, Supplemen.
    7. Peter R. Hansen & Asger Lunde & James M. Nason, 2011. "The Model Confidence Set," Econometrica, Econometric Society, vol. 79(2), pages 453-497, March.
    8. Hendry, David F & Ericsson, Neil R, 1991. "An Econometric Analysis of U.K. Money Demand in 'Monetary Trends in the United States and the United Kingdom' by Milton Friedman and Anna Schwartz," American Economic Review, American Economic Association, vol. 81(1), pages 8-38, March.
    9. Stefan Wager & Susan Athey, 2018. "Estimation and Inference of Heterogeneous Treatment Effects using Random Forests," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 113(523), pages 1228-1242, July.
    10. Whitney K. Newey, 2009. "Two-step series estimation of sample selection models," Econometrics Journal, Royal Economic Society, vol. 12(s1), pages 217-229, January.
    11. María Torrado & Álvaro Escribano, 2020. "European gasoline markets: price transmission asymmetries in mean and variance," Applied Economics, Taylor & Francis Journals, vol. 52(42), pages 4621-4638, September.
    12. Gérard Biau & Erwan Scornet, 2016. "A random forest guided tour," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 25(2), pages 197-227, June.
    13. Ronald Johnson, 2002. "Search Costs, Lags and Prices at the Pump," Review of Industrial Organization, Springer;The Industrial Organization Society, vol. 20(1), pages 33-50, February.
    14. Terasvirta, Timo & Tjostheim, Dag & Granger, Clive W. J., 2010. "Modelling Nonlinear Economic Time Series," OUP Catalogue, Oxford University Press, number 9780199587155.
    15. Bacon, Robert W., 1991. "Rockets and feathers: the asymmetric speed of adjustment of UK retail gasoline prices to cost changes," Energy Economics, Elsevier, vol. 13(3), pages 211-218, July.
    16. Álvaro Escribano & Oscar Jordá, 2001. "Testing nonlinearity: Decision rules for selecting between logistic and exponential STAR models," Spanish Economic Review, Springer;Spanish Economic Association, vol. 3(3), pages 193-209.
    17. Timo Teräsvirta & Ann-Charlotte Eliasson, 2001. "Non-linear error correction and the UK demand for broad money, 1878-1993," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 16(3), pages 277-288.
    18. Lance J. Bachmeier & James M. Griffin, 2003. "New Evidence on Asymmetric Gasoline Price Responses," The Review of Economics and Statistics, MIT Press, vol. 85(3), pages 772-776, August.
    19. Severin Borenstein & A. Colin Cameron & Richard Gilbert, 1997. "Do Gasoline Prices Respond Asymmetrically to Crude Oil Price Changes?," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 112(1), pages 305-339.
    20. Galeotti, Marzio & Lanza, Alessandro & Manera, Matteo, 2003. "Rockets and feathers revisited: an international comparison on European gasoline markets," Energy Economics, Elsevier, vol. 25(2), pages 175-190, March.
    21. Engle, Robert & Granger, Clive, 2015. "Co-integration and error correction: Representation, estimation, and testing," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 39(3), pages 106-135.
    22. Marcelo C. Medeiros & Gabriel F. R. Vasconcelos & Álvaro Veiga & Eduardo Zilberman, 2021. "Forecasting Inflation in a Data-Rich Environment: The Benefits of Machine Learning Methods," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 39(1), pages 98-119, January.
    23. Gérard Biau & Erwan Scornet, 2016. "Rejoinder on: A random forest guided tour," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 25(2), pages 264-268, June.
    24. George Deltas, 2008. "Retail Gasoline Price Dynamics And Local Market Power," Journal of Industrial Economics, Wiley Blackwell, vol. 56(3), pages 613-628, September.
    25. Escribano, Alvaro, 2004. "Nonlinear Error Correction: The Case Of Money Demand In The United Kingdom (1878–2000)," Macroeconomic Dynamics, Cambridge University Press, vol. 8(1), pages 76-116, February.
    26. Enders, Walter & Granger, Clive W J, 1998. "Unit-Root Tests and Asymmetric Adjustment with an Example Using the Term Structure of Interest Rates," Journal of Business & Economic Statistics, American Statistical Association, vol. 16(3), pages 304-311, July.
    27. Nathan S. Balke & Stephen P. A. Brown & Mine K. Yücel, 1998. "Crude oil and gasoline prices: an asymmetric relationship?," Economic and Financial Policy Review, Federal Reserve Bank of Dallas, issue Q 1, pages 2-11.
    28. Perdiguero García, Jordi, 2010. "Dynamic pricing in the spanish gasoline market: A tacit collusion equilibrium," Energy Policy, Elsevier, vol. 38(4), pages 1931-1937, April.
    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. 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).
    2. Asit Kumar Das & Debahuti Mishra & Kaberi Das & Pradeep Kumar Mallick & Sachin Kumar & Mikhail Zymbler & Hesham El-Sayed, 2022. "Prophesying the Short-Term Dynamics of the Crude Oil Future Price by Adopting the Survival of the Fittest Principle of Improved Grey Optimization and Extreme Learning Machine," Mathematics, MDPI, vol. 10(7), pages 1-33, March.
    3. Liu, Ying & Wen, Long & Liu, Han & Song, Haiyan, 2024. "Predicting tourism recovery from COVID-19: A time-varying perspective," Economic Modelling, Elsevier, vol. 135(C).
    4. Wang, Xuerui & Li, Xiangyu & Li, Shaoting, 2022. "Point and interval forecasting system for crude oil price based on complete ensemble extreme-point symmetric mode decomposition with adaptive noise and intelligent optimization algorithm," Applied Energy, Elsevier, vol. 328(C).
    5. 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).

    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. Escribano Alvaro & Torrado María, 2018. "Nonlinear and asymmetric pricing behaviour in the Spanish gasoline market," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 22(5), pages 1-19, December.
    2. Kristoufek, Ladislav & Lunackova, Petra, 2015. "Rockets and feathers meet Joseph: Reinvestigating the oil–gasoline asymmetry on the international markets," Energy Economics, Elsevier, vol. 49(C), pages 1-8.
    3. Ederington, Louis H. & Fernando, Chitru S. & Hoelscher, Seth A. & Lee, Thomas K. & Linn, Scott C., 2019. "A review of the evidence on the relation between crude oil prices and petroleum product prices," Journal of Commodity Markets, Elsevier, vol. 13(C), pages 1-15.
    4. Pal, Debdatta & Mitra, Subrata K., 2016. "Asymmetric oil product pricing in India: Evidence from a multiple threshold nonlinear ARDL model," Economic Modelling, Elsevier, vol. 59(C), pages 314-328.
    5. María Torrado & Álvaro Escribano, 2020. "European gasoline markets: price transmission asymmetries in mean and variance," Applied Economics, Taylor & Francis Journals, vol. 52(42), pages 4621-4638, September.
    6. da Silva, André Suriane & Vasconcelos, Cláudio Roberto Fóffano & Vasconcelos, Silvinha Pinto & de Mattos, Rogério Silva, 2014. "Symmetric transmission of prices in the retail gasoline market in Brazil," Energy Economics, Elsevier, vol. 43(C), pages 11-21.
    7. Perdiguero-García, Jordi, 2013. "Symmetric or asymmetric oil prices? A meta-analysis approach," Energy Policy, Elsevier, vol. 57(C), pages 389-397.
    8. Woo-Hyung Hong & Daeyong Lee, 2020. "Asymmetric pricing dynamics with market power: investigating island data of the retail gasoline market," Empirical Economics, Springer, vol. 58(5), pages 2181-2221, May.
    9. Asane-Otoo, Emmanuel & Schneider, Jan, 2015. "Retail fuel price adjustment in Germany: A threshold cointegration approach," Energy Policy, Elsevier, vol. 78(C), pages 1-10.
    10. Grasso, Margherita & Manera, Matteo, 2007. "Asymmetric error correction models for the oil-gasoline price relationship," Energy Policy, Elsevier, vol. 35(1), pages 156-177, January.
    11. Fasoula, Evanthia & Schweikert, Karsten, 2018. "Price regulations and price adjustment dynamics: Evidence from the Austrian retail fuel market," Hohenheim Discussion Papers in Business, Economics and Social Sciences 08-2018, University of Hohenheim, Faculty of Business, Economics and Social Sciences.
    12. Karagiannis, Stelios & Panagopoulos, Yannis & Vlamis, Prodromos, 2015. "Are unleaded gasoline and diesel price adjustments symmetric? A comparison of the four largest EU retail fuel markets," Economic Modelling, Elsevier, vol. 48(C), pages 281-291.
    13. Giliola Frey & Matteo Manera, 2007. "Econometric Models Of Asymmetric Price Transmission," Journal of Economic Surveys, Wiley Blackwell, vol. 21(2), pages 349-415, April.
    14. Contín-Pilart, Ignacio & Correljé, Aad F. & Blanca Palacios, M., 2009. "Competition, regulation, and pricing behaviour in the Spanish retail gasoline market," Energy Policy, Elsevier, vol. 37(1), pages 219-228, January.
    15. Bremmer, Dale S. & Kesselring, Randall G., 2016. "The relationship between U.S. retail gasoline and crude oil prices during the Great Recession: “Rockets and feathers” or “balloons and rocks” behavior?," Energy Economics, Elsevier, vol. 55(C), pages 200-210.
    16. Polemis, Michael L. & Fotis, Panagiotis N., 2014. "The taxation effect on gasoline price asymmetry nexus: Evidence from both sides of the Atlantic," Energy Policy, Elsevier, vol. 73(C), pages 225-233.
    17. Valadkhani, Abbas, 2009. "Do Retail Petrol Prices Rise More Rapidly Than They Fall in Australia’s Capital Cities?," Economics Working Papers wp09-08, School of Economics, University of Wollongong, NSW, Australia.
    18. Katarzyna Leszkiewicz-Kędzior & Aleksander Welfe, 2014. "Asymmetric Price Adjustments in the Fuel Market," Central European Journal of Economic Modelling and Econometrics, Central European Journal of Economic Modelling and Econometrics, vol. 6(2), pages 105-127, June.
    19. Sylwester Bejger, 2019. "Wholesale fuel price adjustment in Poland: examination of competi-tive performance," Ekonomia i Prawo, Uniwersytet Mikolaja Kopernika, vol. 18(4), pages 385-412, December.
    20. Bastianin, Andrea & Galeotti, Marzio & Manera, Matteo, 2014. "Forecasting the oil–gasoline price relationship: Do asymmetries help?," Energy Economics, Elsevier, vol. 46(S1), pages 44-56.

    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:intfor:v:37:y:2021:i:4:p:1442-1462. 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/ijforecast .

    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.