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

Deep Learning Macroeconomics

Author

Listed:
  • Rafael R. S. Guimaraes

Abstract

Limited datasets and complex nonlinear relationships are among the challenges that may emerge when applying econometrics to macroeconomic problems. This research proposes deep learning as an approach to transfer learning in the former case and to map relationships between variables in the latter case. Although macroeconomists already apply transfer learning when assuming a given a priori distribution in a Bayesian context, estimating a structural VAR with signal restriction and calibrating parameters based on results observed in other models, to name a few examples, advance in a more systematic transfer learning strategy in applied macroeconomics is the innovation we are introducing. We explore the proposed strategy empirically, showing that data from different but related domains, a type of transfer learning, helps identify the business cycle phases when there is no business cycle dating committee and to quick estimate a economic-based output gap. Next, since deep learning methods are a way of learning representations, those that are formed by the composition of multiple non-linear transformations, to yield more abstract representations, we apply deep learning for mapping low-frequency from high-frequency variables. The results obtained show the suitability of deep learning models applied to macroeconomic problems. First, models learned to classify United States business cycles correctly. Then, applying transfer learning, they were able to identify the business cycles of out-of-sample Brazilian and European data. Along the same lines, the models learned to estimate the output gap based on the U.S. data and obtained good performance when faced with Brazilian data. Additionally, deep learning proved adequate for mapping low-frequency variables from high-frequency data to interpolate, distribute, and extrapolate time series by related series.

Suggested Citation

  • Rafael R. S. Guimaraes, 2022. "Deep Learning Macroeconomics," Papers 2201.13380, arXiv.org.
  • Handle: RePEc:arx:papers:2201.13380
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Blanchard, Olivier Jean & Quah, Danny, 1989. "The Dynamic Effects of Aggregate Demand and Supply Disturbances," American Economic Review, American Economic Association, vol. 79(4), pages 655-673, September.
    2. Kuttner, Kenneth N, 1994. "Estimating Potential Output as a Latent Variable," Journal of Business & Economic Statistics, American Statistical Association, vol. 12(3), pages 361-368, July.
    3. Heikki Kauppi & Pentti Saikkonen, 2008. "Predicting U.S. Recessions with Dynamic Binary Response Models," The Review of Economics and Statistics, MIT Press, vol. 90(4), pages 777-791, November.
    4. Beveridge, Stephen & Nelson, Charles R., 1981. "A new approach to decomposition of economic time series into permanent and transitory components with particular attention to measurement of the `business cycle'," Journal of Monetary Economics, Elsevier, vol. 7(2), pages 151-174.
    5. Stock, James H. & Watson, Mark W., 2014. "Estimating turning points using large data sets," Journal of Econometrics, Elsevier, vol. 178(P2), pages 368-381.
    6. Camacho, Maximo & Perez-Quiros, Gabriel & Poncela, Pilar, 2018. "Markov-switching dynamic factor models in real time," International Journal of Forecasting, Elsevier, vol. 34(4), pages 598-611.
    7. Marcelle Chauvet & James D. Hamilton, 2006. "Dating Business Cycle Turning Points," Contributions to Economic Analysis, in: Nonlinear Time Series Analysis of Business Cycles, pages 1-54, Emerald Group Publishing Limited.
    8. Mr. Andrew J Tiffin, 2016. "Seeing in the Dark: A Machine-Learning Approach to Nowcasting in Lebanon," IMF Working Papers 2016/056, International Monetary Fund.
    9. Lawrence J. Christiano, 2012. "Christopher A. Sims and Vector Autoregressions," Scandinavian Journal of Economics, Wiley Blackwell, vol. 114(4), pages 1082-1104, December.
    10. Gerlach, Stefan & Smets, Frank, 1999. "Output gaps and monetary policy in the EMU area1," European Economic Review, Elsevier, vol. 43(4-6), pages 801-812, April.
    11. Arturo Estrella & Frederic S. Mishkin, 1998. "Predicting U.S. Recessions: Financial Variables As Leading Indicators," The Review of Economics and Statistics, MIT Press, vol. 80(1), pages 45-61, February.
    12. Giusto, Andrea & Piger, Jeremy, 2017. "Identifying business cycle turning points in real time with vector quantization," International Journal of Forecasting, Elsevier, vol. 33(1), pages 174-184.
    13. Adrian Pagan & Don Harding, 2005. "A suggested framework for classifying the modes of cycle research," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 20(2), pages 151-159.
    14. Issler, Joao Victor & Vahid, Farshid, 2006. "The missing link: using the NBER recession indicator to construct coincident and leading indices of economic activity," Journal of Econometrics, Elsevier, vol. 132(1), pages 281-303, May.
    15. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," The Review of Financial Studies, Society for Financial Studies, vol. 33(5), pages 2223-2273.
    16. Yan Carrière‐Swallow & Felipe Labbé, 2013. "Nowcasting with Google Trends in an Emerging Market," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 32(4), pages 289-298, July.
    17. Michael J. Keiser & Vincent Setola & John J. Irwin & Christian Laggner & Atheir I. Abbas & Sandra J. Hufeisen & Niels H. Jensen & Michael B. Kuijer & Roberto C. Matos & Thuy B. Tran & Ryan Whaley & Ri, 2009. "Predicting new molecular targets for known drugs," Nature, Nature, vol. 462(7270), pages 175-181, November.
    18. Apel, Mikael & Jansson, Per, 1999. "A theory-consistent system approach for estimating potential output and the NAIRU," Economics Letters, Elsevier, vol. 64(3), pages 271-275, September.
    19. Chauvet, Marcelle & Piger, Jeremy, 2008. "A Comparison of the Real-Time Performance of Business Cycle Dating Methods," Journal of Business & Economic Statistics, American Statistical Association, vol. 26, pages 42-49, January.
    20. Issler, João Victor & Notini, Hilton Hostalacio, 2016. "Estimating Brazilian Monthly GDP: a State-Space Approach," Revista Brasileira de Economia - RBE, EPGE Brazilian School of Economics and Finance - FGV EPGE (Brazil), vol. 70(1), March.
    21. Spyros Makridakis & Evangelos Spiliotis & Vassilios Assimakopoulos, 2018. "Statistical and Machine Learning forecasting methods: Concerns and ways forward," PLOS ONE, Public Library of Science, vol. 13(3), pages 1-26, March.
    22. James D. Hamilton, 2018. "Why You Should Never Use the Hodrick-Prescott Filter," The Review of Economics and Statistics, MIT Press, vol. 100(5), pages 831-843, December.
    23. Qi, Min, 2001. "Predicting US recessions with leading indicators via neural network models," International Journal of Forecasting, Elsevier, vol. 17(3), pages 383-401.
    24. Soybilgen, Baris, 2018. "Identifying US business cycle regimes using dynamic factors and neural network models," MPRA Paper 94715, University Library of Munich, Germany.
    25. Milton Friedman, 1962. "Introduction to "The Interpolation of Time Series by Related Series"," NBER Chapters, in: The Interpolation of Time Series by Related Series, pages 1-3, National Bureau of Economic Research, Inc.
    26. Fossati Sebastian, 2016. "Dating US business cycles with macro factors," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 20(5), pages 529-547, December.
    27. Tommaso Proietti & Alberto Musso & Thomas Westermann, 2007. "Estimating potential output and the output gap for the euro area: a model-based production function approach," Empirical Economics, Springer, vol. 33(1), pages 85-113, July.
    28. Thomas Raffinot & Sylvain Benoît, 2019. "Investing Through Economic Cycles with Ensemble Machine Learning Algorithms," Working Papers hal-02292317, HAL.
    29. Marcelle Chauvet & Chengxuan Yu, 2006. "International business cycles: G7 and OECD countries," Economic Review, Federal Reserve Bank of Atlanta, vol. 91(Q 1), pages 43-54.
    30. Pierre St-Amant & Simon van Norden, 1997. "Measurement of the Output Gap: A Discussion of Recent Research at the Bank of Canada," Technical Reports 79, Bank of Canada.
    31. Robert Shackleton, 2018. "Estimating and Projecting Potential Output Using CBO’s Forecasting Growth Model: Working Paper 2018-03," Working Papers 53558, Congressional Budget Office.
    32. Milton Friedman, 1962. "The Interpolation of Time Series by Related Series," NBER Books, National Bureau of Economic Research, Inc, number frie62-1, May.
    33. Swanson, Norman R. & White, Halbert, 1997. "Forecasting economic time series using flexible versus fixed specification and linear versus nonlinear econometric models," International Journal of Forecasting, Elsevier, vol. 13(4), pages 439-461, December.
    34. Rudebusch, Glenn D. & Williams, John C., 2009. "Forecasting Recessions: The Puzzle of the Enduring Power of the Yield Curve," Journal of Business & Economic Statistics, American Statistical Association, vol. 27(4), pages 492-503.
    35. Chow, Gregory C & Lin, An-loh, 1971. "Best Linear Unbiased Interpolation, Distribution, and Extrapolation of Time Series by Related Series," The Review of Economics and Statistics, MIT Press, vol. 53(4), pages 372-375, November.
    36. Sims, Christopher A, 1980. "Macroeconomics and Reality," Econometrica, Econometric Society, vol. 48(1), pages 1-48, January.
    37. Angelini, Elena & Henry, Jerome & Marcellino, Massimiliano, 2006. "Interpolation and backdating with a large information set," Journal of Economic Dynamics and Control, Elsevier, vol. 30(12), pages 2693-2724, December.
    38. Emanuele Taufer & Sudip Bose & Aldo Tagliani, 2009. "Optimal predictive densities and fractional moments," Applied Stochastic Models in Business and Industry, John Wiley & Sons, vol. 25(1), pages 57-71, January.
    39. Klaus Abberger & Michael Graff & Jan-Egbert Sturm & Oliver Müller & Aloisio Campelo Jr & Anna Carolina Lemos Gouveia, 2020. "The Global Economic Barometers: Composite indicators for the world economy," KOF Working papers 20-471, KOF Swiss Economic Institute, ETH Zurich.
    40. Harvey, A C & Jaeger, A, 1993. "Detrending, Stylized Facts and the Business Cycle," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 8(3), pages 231-247, July-Sept.
    41. Pablo A. Cuba-Borda & Alexander Mechanick & Andrea Raffo, 2018. "Monitoring the World Economy: A Global Conditions Index," IFDP Notes 2018-06-15, Board of Governors of the Federal Reserve System (U.S.).
    42. 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.
    43. Thomas R. Cook & Aaron Smalter Hall, 2017. "Macroeconomic Indicator Forecasting with Deep Neural Networks," Research Working Paper RWP 17-11, Federal Reserve Bank of Kansas City.
    44. Olivier Blanchard, 2018. "On the future of macroeconomic models," Oxford Review of Economic Policy, Oxford University Press and Oxford Review of Economic Policy Limited, vol. 34(1-2), pages 43-54.
    45. Watson, Mark W. & Stock, James H., 2014. "Estimating turning points using large data sets," Scholarly Articles 33192198, Harvard University Department of Economics.
    46. Arthur F. Burns & Wesley C. Mitchell, 1946. "Measuring Business Cycles," NBER Books, National Bureau of Economic Research, Inc, number burn46-1, May.
    47. Greg Tkacz & Sarah Hu, 1999. "Forecasting GDP Growth Using Artificial Neural Networks," Staff Working Papers 99-3, Bank of Canada.
    48. Issler, Joao Victor & Vahid, Farshid, 2006. "The missing link: using the NBER recession indicator to construct coincident and leading indices of economic activity," Journal of Econometrics, Elsevier, vol. 132(1), pages 281-303, May.
    49. Hal R. Varian, 2014. "Big Data: New Tricks for Econometrics," Journal of Economic Perspectives, American Economic Association, vol. 28(2), pages 3-28, Spring.
    50. Marcelle Chauvet & Rafael R. S. Guimaraes, 2021. "Transfer Learning for Business Cycle Identification," Working Papers Series 545, Central Bank of Brazil, Research Department.
    51. Travis J. Berge, 2015. "Predicting Recessions with Leading Indicators: Model Averaging and Selection over the Business Cycle," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 34(6), pages 455-471, September.
    52. Portugal, Marcelo S., 1995. "Neural networks versus time series methods: a forecasting exercise," Revista Brasileira de Economia - RBE, EPGE Brazilian School of Economics and Finance - FGV EPGE (Brazil), vol. 49(4), October.
    53. Stock, James H. & Watson, Mark, 2011. "Dynamic Factor Models," Scholarly Articles 28469541, Harvard University Department of Economics.
    54. Hamilton, James D, 1989. "A New Approach to the Economic Analysis of Nonstationary Time Series and the Business Cycle," Econometrica, Econometric Society, vol. 57(2), pages 357-384, March.
    55. Chauvet, Marcelle, 1998. "An Econometric Characterization of Business Cycle Dynamics with Factor Structure and Regime Switching," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 39(4), pages 969-996, November.
    56. Rickard Nyman & Paul Ormerod, 2017. "Predicting Economic Recessions Using Machine Learning Algorithms," Papers 1701.01428, arXiv.org.
    57. Chauvet, Marcelle, 2001. "A Monthly Indicator of Brazilian GDP," Brazilian Review of Econometrics, Sociedade Brasileira de Econometria - SBE, vol. 21(1), May.
    58. Isabell Koske & Nigel Pain, 2008. "The Usefulness of Output Gaps for Policy Analysis," OECD Economics Department Working Papers 621, OECD Publishing.
    59. Nowrouz Kohzadi & Milton S. Boyd & Iebeling Kaastra & Bahman S. Kermanshahi & David Scuse, 1995. "Neural Networks for Forecasting: An Introduction," Canadian Journal of Agricultural Economics/Revue canadienne d'agroeconomie, Canadian Agricultural Economics Society/Societe canadienne d'agroeconomie, vol. 43(3), pages 463-474, November.
    60. David Vines & Samuel Wills, 2018. "The rebuilding macroeconomic theory project: an analytical assessment," Oxford Review of Economic Policy, Oxford University Press and Oxford Review of Economic Policy Limited, vol. 34(1-2), pages 1-42.
    61. Hoelzl, Erik & Pollai, Maria & Kamleitner, Bernadette, 2009. "Experience, prediction and recollection of loan burden," Journal of Economic Psychology, Elsevier, vol. 30(3), pages 446-454, 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. Helmi, Mohamad Husam & Çatık, Abdurrahman Nazif & Akdeniz, Coşkun, 2023. "The impact of central bank digital currency news on the stock and cryptocurrency markets: Evidence from the TVP-VAR model," Research in International Business and Finance, Elsevier, vol. 65(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. Marcelle Chauvet & Rafael R. S. Guimaraes, 2021. "Transfer Learning for Business Cycle Identification," Working Papers Series 545, Central Bank of Brazil, Research Department.
    2. Giusto, Andrea & Piger, Jeremy, 2017. "Identifying business cycle turning points in real time with vector quantization," International Journal of Forecasting, Elsevier, vol. 33(1), pages 174-184.
    3. Li, Haixi & Sheng, Xuguang Simon & Yang, Jingyun, 2021. "Monitoring recessions: A Bayesian sequential quickest detection method," International Journal of Forecasting, Elsevier, vol. 37(2), pages 500-510.
    4. Chauvet, Marcelle & Potter, Simon, 2013. "Forecasting Output," Handbook of Economic Forecasting, in: G. Elliott & C. Granger & A. Timmermann (ed.), Handbook of Economic Forecasting, edition 1, volume 2, chapter 0, pages 141-194, Elsevier.
    5. Alexandre Bonnet R. Costa & Pedro Cavalcanti G. Ferreira & Wagner Piazza Gaglianone & Osmani Teixeira C. Guillén & João Victor Issler & Artur Brasil Fialho Rodrigues, 2023. "Predicting Recessions in (almost) Real Time in a Big-data Setting," Working Papers Series 587, Central Bank of Brazil, Research Department.
    6. Álvarez, Luis J. & Gómez-Loscos, Ana, 2018. "A menu on output gap estimation methods," Journal of Policy Modeling, Elsevier, vol. 40(4), pages 827-850.
    7. Aastveit, Knut Are & Jore, Anne Sofie & Ravazzolo, Francesco, 2016. "Identification and real-time forecasting of Norwegian business cycles," International Journal of Forecasting, Elsevier, vol. 32(2), pages 283-292.
    8. Dalibor Stevanovic & Rachidi Kotchoni, 2016. "Forecasting U.S. Recessions and Economic Activity," CIRANO Working Papers 2016s-36, CIRANO.
    9. Aastveit, Knut Are & Anundsen, André K. & Herstad, Eyo I., 2019. "Residential investment and recession predictability," International Journal of Forecasting, Elsevier, vol. 35(4), pages 1790-1799.
    10. Juan Laborda & Sonia Ruano & Ignacio Zamanillo, 2023. "Multi-Country and Multi-Horizon GDP Forecasting Using Temporal Fusion Transformers," Mathematics, MDPI, vol. 11(12), pages 1-26, June.
    11. Dalibor Stevanovic, 2013. "Probability and Severity of Recessions," CIRANO Working Papers 2013s-43, CIRANO.
    12. Basistha, Arabinda & Nelson, Charles R., 2007. "New measures of the output gap based on the forward-looking new Keynesian Phillips curve," Journal of Monetary Economics, Elsevier, vol. 54(2), pages 498-511, March.
    13. Nissilä, Wilma, 2020. "Probit based time series models in recession forecasting – A survey with an empirical illustration for Finland," BoF Economics Review 7/2020, Bank of Finland.
    14. Issler, Joao Victor & Notini, Hilton & Rodrigues, Claudia & Soares, Ana Flávia, 2013. "Constructing coincident indices of economic activity for the Latin American economy," Revista Brasileira de Economia - RBE, EPGE Brazilian School of Economics and Finance - FGV EPGE (Brazil), vol. 67(1), April.
    15. Rachidi Kotchoni & Dalibor Stevanovic, 2020. "GDP Forecast Accuracy During Recessions," Working Papers 20-06, Chair in macroeconomics and forecasting, University of Quebec in Montreal's School of Management.
    16. repec:fgv:epgrbe:v:67:n:1:a:4 is not listed on IDEAS
    17. Ángel Guillén & Gabriel Rodríguez, 2014. "Trend-cycle decomposition for Peruvian GDP: application of an alternative method," Latin American Economic Review, Springer;Centro de Investigaciòn y Docencia Económica (CIDE), vol. 23(1), pages 1-44, December.
    18. Hamilton, James D., 2011. "Calling recessions in real time," International Journal of Forecasting, Elsevier, vol. 27(4), pages 1006-1026, October.
    19. Eraslan, Sercan & Nöller, Marvin, 2020. "Recession probabilities falling from the STARs," Discussion Papers 08/2020, Deutsche Bundesbank.
    20. Sergey V. Smirnov & Nikolay V. Kondrashov & Anna V. Petronevich, 2017. "Dating Cyclical Turning Points for Russia: Formal Methods and Informal Choices," Journal of Business Cycle Research, Springer;Centre for International Research on Economic Tendency Surveys (CIRET), vol. 13(1), pages 53-73, May.
    21. Hwang, Youngjin, 2019. "Forecasting recessions with time-varying models," Journal of Macroeconomics, Elsevier, vol. 62(C).

    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:2201.13380. 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.