IDEAS home Printed from https://ideas.repec.org/a/spr/jbuscr/v18y2022i2d10.1007_s41549-022-00066-w.html
   My bibliography  Save this article

Machine Learning Dynamic Switching Approach to Forecasting in the Presence of Structural Breaks

Author

Listed:
  • Jeronymo Marcondes Pinto

    (Secretariat of Labour Inspection
    Sao Paulo School of Economics - FGV EESP)

  • Jennifer L. Castle

    (University of Oxford)

Abstract

Forecasting economic indicators is an important task for analysts. However, many indicators suffer from structural breaks leading to forecast failure. Methods that are robust following a structural break have been proposed in the literature but they come at a cost: an increase in forecast error variance. We propose a method to select between a set of robust and non-robust forecasting models. Our method uses time-series clustering to identify possible structural breaks in a time series, and then switches between autoregressive forecasting models depending on the series dynamics. We perform a rigorous empirical evaluation with 400 simulated series with an artificial structural break and with real data economic series: Industrial Production and Consumer Prices for all Western European countries available from the OECD database. Our results show that the proposed method statistically outperforms benchmarks in forecast accuracy for most case scenarios, particularly at short horizons.

Suggested Citation

  • Jeronymo Marcondes Pinto & Jennifer L. Castle, 2022. "Machine Learning Dynamic Switching Approach to Forecasting in the Presence of Structural Breaks," Journal of Business Cycle Research, Springer;Centre for International Research on Economic Tendency Surveys (CIRET), vol. 18(2), pages 129-157, July.
  • Handle: RePEc:spr:jbuscr:v:18:y:2022:i:2:d:10.1007_s41549-022-00066-w
    DOI: 10.1007/s41549-022-00066-w
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s41549-022-00066-w
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s41549-022-00066-w?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. Smeekes, Stephan & Wijler, Etienne, 2018. "Macroeconomic forecasting using penalized regression methods," International Journal of Forecasting, Elsevier, vol. 34(3), pages 408-430.
    2. Jushan Bai & Pierre Perron, 1998. "Estimating and Testing Linear Models with Multiple Structural Changes," Econometrica, Econometric Society, vol. 66(1), pages 47-78, January.
    3. Diebold, Francis X. & Shin, Minchul, 2019. "Machine learning for regularized survey forecast combination: Partially-egalitarian LASSO and its derivatives," International Journal of Forecasting, Elsevier, vol. 35(4), pages 1679-1691.
    4. Yong Song, 2011. "Modelling Regime Switching and Structural Breaks with an Infinite Dimension Markov Switching Model," Working Papers tecipa-427, University of Toronto, Department of Economics.
    5. Chiu, Ching-Wai (Jeremy) & Hayes, Simon & Kapetanios, George & Theodoridis, Konstantinos, 2019. "A new approach for detecting shifts in forecast accuracy," International Journal of Forecasting, Elsevier, vol. 35(4), pages 1596-1612.
    6. Hyndman, Rob J. & Khandakar, Yeasmin, 2008. "Automatic Time Series Forecasting: The forecast Package for R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i03).
    7. Castle, Jennifer L. & Clements, Michael P. & Hendry, David F., 2015. "Robust approaches to forecasting," International Journal of Forecasting, Elsevier, vol. 31(1), pages 99-112.
    8. Panagiotelis, Anastasios & Athanasopoulos, George & Hyndman, Rob J. & Jiang, Bin & Vahid, Farshid, 2019. "Macroeconomic forecasting for Australia using a large number of predictors," International Journal of Forecasting, Elsevier, vol. 35(2), pages 616-633.
    9. Sami Ben Jabeur & Salma Mefteh-Wali & Jean-Laurent Viviani, 2021. "Forecasting gold price with the XGBoost algorithm and SHAP interaction values," Post-Print hal-03331805, HAL.
    10. Jennifer L. Castle & Jurgen A. Doornik & David F. Hendry & Felix Pretis, 2015. "Detecting Location Shifts during Model Selection by Step-Indicator Saturation," Econometrics, MDPI, vol. 3(2), pages 1-25, April.
    11. Perron, Pierre & Yabu, Tomoyoshi, 2009. "Estimating deterministic trends with an integrated or stationary noise component," Journal of Econometrics, Elsevier, vol. 151(1), pages 56-69, July.
    12. Capistrán, Carlos & Timmermann, Allan, 2009. "Forecast Combination With Entry and Exit of Experts," Journal of Business & Economic Statistics, American Statistical Association, vol. 27(4), pages 428-440.
    13. Hendry, David F., 2006. "Robustifying forecasts from equilibrium-correction systems," Journal of Econometrics, Elsevier, vol. 135(1-2), pages 399-426.
    14. Stock, James H & Watson, Mark W, 2002. "Macroeconomic Forecasting Using Diffusion Indexes," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(2), pages 147-162, April.
    15. Peter R. Hansen & Asger Lunde & James M. Nason, 2011. "The Model Confidence Set," Econometrica, Econometric Society, vol. 79(2), pages 453-497, March.
    16. Garcia, Márcio G.P. & Medeiros, Marcelo C. & Vasconcelos, Gabriel F.R., 2017. "Real-time inflation forecasting with high-dimensional models: The case of Brazil," International Journal of Forecasting, Elsevier, vol. 33(3), pages 679-693.
    17. 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.
    18. Timmermann, Allan, 2006. "Forecast Combinations," Handbook of Economic Forecasting, in: G. Elliott & C. Granger & A. Timmermann (ed.), Handbook of Economic Forecasting, edition 1, volume 1, chapter 4, pages 135-196, Elsevier.
    19. Jennifer L. Castle & Michael P. Clements & David F. Hendry, 2016. "An Overview of Forecasting Facing Breaks," Journal of Business Cycle Research, Springer;Centre for International Research on Economic Tendency Surveys (CIRET), vol. 12(1), pages 3-23, September.
    20. G. Elliott & C. Granger & A. Timmermann (ed.), 2006. "Handbook of Economic Forecasting," Handbook of Economic Forecasting, Elsevier, edition 1, volume 1, number 1.
    21. Philip Hans Franses & Thomas Wiemann, 2020. "Intertemporal Similarity of Economic Time Series: An Application of Dynamic Time Warping," Computational Economics, Springer;Society for Computational Economics, vol. 56(1), pages 59-75, June.
    22. Michael P. Clements & David F. Hendry, 2001. "Forecasting Non-Stationary Economic Time Series," MIT Press Books, The MIT Press, edition 1, volume 1, number 0262531895, December.
    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. Jeronymo Marcondes Pinto & Emerson Fernandes Marçal, 2023. "An artificial intelligence approach to forecasting when there are structural breaks: a reinforcement learning-based framework for fast switching," Empirical Economics, Springer, vol. 65(4), pages 1729-1759, October.

    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. Petropoulos, Fotios & Apiletti, Daniele & Assimakopoulos, Vassilios & Babai, Mohamed Zied & Barrow, Devon K. & Ben Taieb, Souhaib & Bergmeir, Christoph & Bessa, Ricardo J. & Bijak, Jakub & Boylan, Joh, 2022. "Forecasting: theory and practice," International Journal of Forecasting, Elsevier, vol. 38(3), pages 705-871.
      • Fotios Petropoulos & Daniele Apiletti & Vassilios Assimakopoulos & Mohamed Zied Babai & Devon K. Barrow & Souhaib Ben Taieb & Christoph Bergmeir & Ricardo J. Bessa & Jakub Bijak & John E. Boylan & Jet, 2020. "Forecasting: theory and practice," Papers 2012.03854, arXiv.org, revised Jan 2022.
    2. Andrew B. Martinez & Jennifer L. Castle & David F. Hendry, 2022. "Smooth Robust Multi-Horizon Forecasts," Advances in Econometrics, in: Essays in Honor of M. Hashem Pesaran: Prediction and Macro Modeling, volume 43, pages 143-165, Emerald Group Publishing Limited.
    3. Grimme, Christian & Lehmann, Robert & Noeller, Marvin, 2021. "Forecasting imports with information from abroad," Economic Modelling, Elsevier, vol. 98(C), pages 109-117.
    4. Jeronymo Marcondes Pinto & Emerson Fernandes Marçal, 2023. "An artificial intelligence approach to forecasting when there are structural breaks: a reinforcement learning-based framework for fast switching," Empirical Economics, Springer, vol. 65(4), pages 1729-1759, October.
    5. Terasvirta, Timo, 2006. "Forecasting economic variables with nonlinear models," Handbook of Economic Forecasting, in: G. Elliott & C. Granger & A. Timmermann (ed.), Handbook of Economic Forecasting, edition 1, volume 1, chapter 8, pages 413-457, Elsevier.
    6. Samuels, Jon D. & Sekkel, Rodrigo M., 2017. "Model Confidence Sets and forecast combination," International Journal of Forecasting, Elsevier, vol. 33(1), pages 48-60.
    7. Davide De Gaetano, 2016. "Forecast Combinations For Realized Volatility In Presence Of Structural Breaks," Departmental Working Papers of Economics - University 'Roma Tre' 0208, Department of Economics - University Roma Tre.
    8. Ricardo P. Masini & Marcelo C. Medeiros & Eduardo F. Mendes, 2023. "Machine learning advances for time series forecasting," Journal of Economic Surveys, Wiley Blackwell, vol. 37(1), pages 76-111, February.
    9. Nicoletta Pashourtidou & Christos Papamichael & Charalampos Karagiannakis, 2018. "Forecasting economic activity in sectors of the Cypriot economy," Cyprus Economic Policy Review, University of Cyprus, Economics Research Centre, vol. 12(2), pages 24-66, December.
    10. Jos Jansen & Jasper de Winter, 2016. "Improving model-based near-term GDP forecasts by subjective forecasts: A real-time exercise for the G7 countries," DNB Working Papers 507, Netherlands Central Bank, Research Department.
    11. Eckert, Florian & Hyndman, Rob J. & Panagiotelis, Anastasios, 2021. "Forecasting Swiss exports using Bayesian forecast reconciliation," European Journal of Operational Research, Elsevier, vol. 291(2), pages 693-710.
    12. Haase, Felix & Neuenkirch, Matthias, 2023. "Predictability of bull and bear markets: A new look at forecasting stock market regimes (and returns) in the US," International Journal of Forecasting, Elsevier, vol. 39(2), pages 587-605.
    13. Bonnier, Jean-Baptiste, 2022. "Forecasting crude oil volatility with exogenous predictors: As good as it GETS?," Energy Economics, Elsevier, vol. 111(C).
    14. Pinto, Jeronymo Marcondes & Marçal, Emerson Fernandes, 2019. "Cross-validation based forecasting method: a machine learning approach," Textos para discussão 498, FGV EESP - Escola de Economia de São Paulo, Fundação Getulio Vargas (Brazil).
    15. Till Weigt & Bernd Wilfling, 2021. "An approach to increasing forecast‐combination accuracy through VAR error modeling," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 40(4), pages 686-699, July.
    16. Groen, Jan J.J. & Kapetanios, George, 2016. "Revisiting useful approaches to data-rich macroeconomic forecasting," Computational Statistics & Data Analysis, Elsevier, vol. 100(C), pages 221-239.
    17. Foroni, Claudia & Marcellino, Massimiliano, 2014. "A comparison of mixed frequency approaches for nowcasting Euro area macroeconomic aggregates," International Journal of Forecasting, Elsevier, vol. 30(3), pages 554-568.
    18. Godahewa, Rakshitha & Bergmeir, Christoph & Webb, Geoffrey I. & Montero-Manso, Pablo, 2023. "An accurate and fully-automated ensemble model for weekly time series forecasting," International Journal of Forecasting, Elsevier, vol. 39(2), pages 641-658.
    19. Kim, Hyun Hak & Swanson, Norman R., 2018. "Mining big data using parsimonious factor, machine learning, variable selection and shrinkage methods," International Journal of Forecasting, Elsevier, vol. 34(2), pages 339-354.
    20. Bartosz Uniejewski & Katarzyna Maciejowska, 2022. "LASSO Principal Component Averaging -- a fully automated approach for point forecast pooling," Papers 2207.04794, arXiv.org.

    More about this item

    Keywords

    Machine learning; Forecasting; Structural breaks; Model selection; Cluster analysis;
    All these keywords.

    JEL classification:

    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • C52 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Model Evaluation, Validation, and Selection
    • C87 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Econometric Software

    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:spr:jbuscr:v:18:y:2022:i:2:d:10.1007_s41549-022-00066-w. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    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.