IDEAS home Printed from https://ideas.repec.org/p/jau/wpaper/2020-17.html
   My bibliography  Save this paper

Forecasting in a complex environment: Machine learning sales expectations in a Stock Flow Consistent Agent-Based simulation model

Author

Listed:
  • Ermanno Catullo

    (Research Department, Link Campus University, Rome, Italy)

  • Mauro Gallegati

    (Department of Management, Università Politecnica delle Marche, Acona, Italy)

  • Alberto Russo

    (Department of Management, Università Politecnica delle Marche, Ancona, Italy and Department of Economics, Universitat Jaume I, Castellón, Spain)

Abstract

The aim of this paper is to investigate how different degrees of sophistication in agents’ behavioural rules may affect individual and macroeconomic performances. In particular, we analyze the effects of introducing into an agentbased macro model firms that are able to formulate effective sales forecasts by using machine learning. These techniques are able to provide predictions that are unbiased and present a certain degree of accuracy, especially in the case of a genetic algorithm. We observe that machine learning allows firms to increase profits, though this result in a declining wage share and a smaller long-run growth rate. Moreover, the predictive methods are able to formulate expectations that remain unbiased when shocks are not massive, thus providing firms with forecasting capabilities that to a certain extent may be consistent with the Lucas Critique.

Suggested Citation

  • Ermanno Catullo & Mauro Gallegati & Alberto Russo, 2020. "Forecasting in a complex environment: Machine learning sales expectations in a Stock Flow Consistent Agent-Based simulation model," Working Papers 2020/17, Economics Department, Universitat Jaume I, Castellón (Spain).
  • Handle: RePEc:jau:wpaper:2020/17
    as

    Download full text from publisher

    File URL: http://www.doctreballeco.uji.es/wpficheros/Catullo_et_al_17_2020.pdf
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Giovanni Dosi & Mauro Napoletano & Andrea Roventini & Joseph E. Stiglitz & Tania Treibich, 2020. "Rational Heuristics? Expectations And Behaviors In Evolving Economies With Heterogeneous Interacting Agents," Economic Inquiry, Western Economic Association International, vol. 58(3), pages 1487-1516, July.
    2. Teglio, Andrea & Mazzocchetti, Andrea & Ponta, Linda & Raberto, Marco & Cincotti, Silvano, 2019. "Budgetary rigour with stimulus in lean times: Policy advices from an agent-based model," Journal of Economic Behavior & Organization, Elsevier, vol. 157(C), pages 59-83.
    3. Eugenio Caverzasi & Alberto Russo, 2018. "Toward a new microfounded macroeconomics in the wake of the crisis," Industrial and Corporate Change, Oxford University Press and the Associazione ICC, vol. 27(6), pages 999-1014.
    4. repec:hal:spmain:info:hdl:2441/3qv4spsglp8tmorvev1h0duo4p is not listed on IDEAS
    5. Dosi, G. & Pereira, M.C. & Roventini, A. & Virgillito, M.E., 2017. "When more flexibility yields more fragility: The microfoundations of Keynesian aggregate unemployment," Journal of Economic Dynamics and Control, Elsevier, vol. 81(C), pages 162-186.
    6. Caiani, Alessandro & Russo, Alberto & Gallegati, Mauro, 2020. "Are Higher Wages Good For Business? An Assessment Under Alternative Innovation And Investment Scenarios," Macroeconomic Dynamics, Cambridge University Press, vol. 24(1), pages 191-230, January.
    7. J. M. Keynes, 1937. "The General Theory of Employment," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 51(2), pages 209-223.
    8. Greer, Mark, 2003. "Directional accuracy tests of long-term interest rate forecasts," International Journal of Forecasting, Elsevier, vol. 19(2), pages 291-298.
    9. Michael Woodford, 2013. "Macroeconomic Analysis Without the Rational Expectations Hypothesis," Annual Review of Economics, Annual Reviews, vol. 5(1), pages 303-346, May.
    10. Delli Gatti, Domenico & Gallegati, Mauro & Greenwald, Bruce & Russo, Alberto & Stiglitz, Joseph E., 2010. "The financial accelerator in an evolving credit network," Journal of Economic Dynamics and Control, Elsevier, vol. 34(9), pages 1627-1650, September.
    11. Riccetti, Luca & Russo, Alberto & Gallegati, Mauro, 2016. "Financialisation and crisis in an agent based macroeconomic model," Economic Modelling, Elsevier, vol. 52(PA), pages 162-172.
    12. Arifovic, Jasmina & Petersen, Luba, 2017. "Stabilizing expectations at the zero lower bound: Experimental evidence," Journal of Economic Dynamics and Control, Elsevier, vol. 82(C), pages 21-43.
    13. Grazzini, Jakob & Richiardi, Matteo G. & Tsionas, Mike, 2017. "Bayesian estimation of agent-based models," Journal of Economic Dynamics and Control, Elsevier, vol. 77(C), pages 26-47.
    14. Mingyue Qiu & Yu Song, 2016. "Predicting the Direction of Stock Market Index Movement Using an Optimized Artificial Neural Network Model," PLOS ONE, Public Library of Science, vol. 11(5), pages 1-11, May.
    15. Russo, Alberto & Catalano, Michele & Gaffeo, Edoardo & Gallegati, Mauro & Napoletano, Mauro, 2007. "Industrial dynamics, fiscal policy and R&D: Evidence from a computational experiment," Journal of Economic Behavior & Organization, Elsevier, vol. 64(3-4), pages 426-447.
    16. Dosi, Giovanni & Fagiolo, Giorgio & Roventini, Andrea, 2010. "Schumpeter meeting Keynes: A policy-friendly model of endogenous growth and business cycles," Journal of Economic Dynamics and Control, Elsevier, vol. 34(9), pages 1748-1767, September.
    17. Hommes,Cars, 2015. "Behavioral Rationality and Heterogeneous Expectations in Complex Economic Systems," Cambridge Books, Cambridge University Press, number 9781107564978.
    18. Arifovic, Jasmina & Dawid, Herbert & Deissenberg, Christophe & Kostyshyna, Olena, 2010. "Learning benevolent leadership in a heterogenous agents economy," Journal of Economic Dynamics and Control, Elsevier, vol. 34(9), pages 1768-1790, September.
    19. Thomas A. Knetsch, 2007. "Forecasting the price of crude oil via convenience yield predictions," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 26(7), pages 527-549.
    20. Ozlem Onaran & Thomas Obst, 2016. "Wage-led growth in the EU15 member-states: the effects of income distribution on growth, investment, trade balance and inflation," Cambridge Journal of Economics, Cambridge Political Economy Society, vol. 40(6), pages 1517-1551.
    21. Dosi, Giovanni & Fagiolo, Giorgio & Napoletano, Mauro & Roventini, Andrea & Treibich, Tania, 2015. "Fiscal and monetary policies in complex evolving economies," Journal of Economic Dynamics and Control, Elsevier, vol. 52(C), pages 166-189.
    22. Hommes, Cars, 2011. "The heterogeneous expectations hypothesis: Some evidence from the lab," Journal of Economic Dynamics and Control, Elsevier, vol. 35(1), pages 1-24, January.
    23. Sims, Christopher A, 1980. "Macroeconomics and Reality," Econometrica, Econometric Society, vol. 48(1), pages 1-48, January.
    24. Dawid, H. & Harting, P. & Neugart, M., 2014. "Economic convergence: Policy implications from a heterogeneous agent model," Journal of Economic Dynamics and Control, Elsevier, vol. 44(C), pages 54-80.
    25. Steven C. Salop, 1979. "Monopolistic Competition with Outside Goods," Bell Journal of Economics, The RAND Corporation, vol. 10(1), pages 141-156, Spring.
    26. Marimon Ramon & Spear Stephen E. & Sunder Shyam, 1993. "Expectationally Driven Market Volatility: An Experimental Study," Journal of Economic Theory, Elsevier, vol. 61(1), pages 74-103, October.
    27. Giri, Federico & Riccetti, Luca & Russo, Alberto & Gallegati, Mauro, 2019. "Monetary policy and large crises in a financial accelerator agent-based model," Journal of Economic Behavior & Organization, Elsevier, vol. 157(C), pages 42-58.
    28. Caiani, Alessandro & Godin, Antoine & Caverzasi, Eugenio & Gallegati, Mauro & Kinsella, Stephen & Stiglitz, Joseph E., 2016. "Agent based-stock flow consistent macroeconomics: Towards a benchmark model," Journal of Economic Dynamics and Control, Elsevier, vol. 69(C), pages 375-408.
    29. Cars Hommes & Joep Sonnemans & Jan Tuinstra & Henk van de Velden, 2005. "Coordination of Expectations in Asset Pricing Experiments," The Review of Financial Studies, Society for Financial Studies, vol. 18(3), pages 955-980.
    30. Andrea Gerali & Stefano Neri & Luca Sessa & Federico M. Signoretti, 2010. "Credit and Banking in a DSGE Model of the Euro Area," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 42(s1), pages 107-141, September.
    31. Colasante, Annarita & Palestrini, Antonio & Russo, Alberto & Gallegati, Mauro, 2017. "Adaptive expectations versus rational expectations: Evidence from the lab," International Journal of Forecasting, Elsevier, vol. 33(4), pages 988-1006.
    32. Stanley, Michael H. R. & Buldyrev, Sergey V. & Havlin, Shlomo & Mantegna, Rosario N. & Salinger, Michael A. & Eugene Stanley, H., 1995. "Zipf plots and the size distribution of firms," Economics Letters, Elsevier, vol. 49(4), pages 453-457, October.
    33. Alberto Russo & Luca Riccetti & Mauro Gallegati, 2016. "Increasing inequality, consumer credit and financial fragility in an agent based macroeconomic model," Journal of Evolutionary Economics, Springer, vol. 26(1), pages 25-47, March.
    34. Qi, Min & Wu, Yangru, 2003. "Nonlinear prediction of exchange rates with monetary fundamentals," Journal of Empirical Finance, Elsevier, vol. 10(5), pages 623-640, December.
    35. Cincotti, Silvano & Raberto, Marco & Teglio, Andrea, 2010. "Credit money and macroeconomic instability in the agent-based model and simulator Eurace," Economics - The Open-Access, Open-Assessment E-Journal (2007-2020), Kiel Institute for the World Economy (IfW Kiel), vol. 4, pages 1-32.
    36. Engelbert Stockhammer & Dimitris P. Sotiropoulos, 2014. "Rebalancing the Euro Area: The Costs of Internal Devaluation," Review of Political Economy, Taylor & Francis Journals, vol. 26(2), pages 210-233, April.
    37. Sinitskaya, Ekaterina & Tesfatsion, Leigh, 2015. "Macroeconomies as constructively rational games," Journal of Economic Dynamics and Control, Elsevier, vol. 61(C), pages 152-182.
    38. Mikhail Anufriev & Cars Hommes, 2012. "Evolutionary Selection of Individual Expectations and Aggregate Outcomes in Asset Pricing Experiments," American Economic Journal: Microeconomics, American Economic Association, vol. 4(4), pages 35-64, November.
    39. Leung, Mark T. & Daouk, Hazem & Chen, An-Sing, 2000. "Forecasting stock indices: a comparison of classification and level estimation models," International Journal of Forecasting, Elsevier, vol. 16(2), pages 173-190.
    40. Luca Riccetti & Alberto Russo & Mauro Gallegati, 2015. "An agent based decentralized matching macroeconomic model," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 10(2), pages 305-332, October.
    41. Salle, Isabelle L., 2015. "Modeling expectations in agent-based models — An application to central bank's communication and monetary policy," Economic Modelling, Elsevier, vol. 46(C), pages 130-141.
    42. Engelbert Stockhammer & Özlem Onaran & Stefan Ederer, 2009. "Functional income distribution and aggregate demand in the Euro area," Cambridge Journal of Economics, Oxford University Press, vol. 33(1), pages 139-159, January.
    43. Alessandro Caiani & Alberto Russo & Mauro Gallegati, 2019. "Does inequality hamper innovation and growth? An AB-SFC analysis," Journal of Evolutionary Economics, Springer, vol. 29(1), pages 177-228, March.
    44. Leonardo Bargigli & Luca Riccetti & Alberto Russo & Mauro Gallegati, 2020. "Network calibration and metamodeling of a financial accelerator agent based model," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 15(2), pages 413-440, April.
    45. Frank Smets & Rafael Wouters, 2007. "Shocks and Frictions in US Business Cycles: A Bayesian DSGE Approach," American Economic Review, American Economic Association, vol. 97(3), pages 586-606, June.
    46. Gode, Dhananjay K & Sunder, Shyam, 1993. "Allocative Efficiency of Markets with Zero-Intelligence Traders: Market as a Partial Substitute for Individual Rationality," Journal of Political Economy, University of Chicago Press, vol. 101(1), pages 119-137, February.
    47. Carlo Bianchi & Pasquale Cirillo & Mauro Gallegati & Pietro Vagliasindi, 2007. "Validating and Calibrating Agent-Based Models: A Case Study," Computational Economics, Springer;Society for Computational Economics, vol. 30(3), pages 245-264, October.
    48. Alessandro Caiani & Ermanno Catullo & Mauro Gallegati, 2018. "The effects of fiscal targets in a monetary union: a multi-country agent-based stock flow consistent model," Industrial and Corporate Change, Oxford University Press and the Associazione ICC, vol. 27(6), pages 1123-1154.
    49. Engelbert Stockhammer & Robert Stehrer, 2011. "Goodwin or Kalecki in Demand? Functional Income Distribution and Aggregate Demand in the Short Run," Review of Radical Political Economics, Union for Radical Political Economics, vol. 43(4), pages 506-522, December.
    50. repec:ilo:ilowps:478623 is not listed on IDEAS
    51. David Hendry & Grayham E. Mizon, 2010. "On the Mathematical Basis of Inter-temporal Optimization," Economics Series Working Papers 497, University of Oxford, Department of Economics.
    52. Lucas, Robert Jr, 1976. "Econometric policy evaluation: A critique," Carnegie-Rochester Conference Series on Public Policy, Elsevier, vol. 1(1), pages 19-46, January.
    53. Turrell, Arthur, 2016. "Agent-based models: understanding the economy from the bottom up," Bank of England Quarterly Bulletin, Bank of England, vol. 56(4), pages 173-188.
    54. Onaran, Özlem. & Galanis, Giorgos., 2012. "Is aggregate demand wage-led or profit-led? National and global effects," ILO Working Papers 994786233402676, International Labour Organization.
    55. Leitch, Gordon & Tanner, J Ernest, 1991. "Economic Forecast Evaluation: Profits versus the Conventional Error Measures," American Economic Review, American Economic Association, vol. 81(3), pages 580-590, June.
    56. Riccetti, Luca & Russo, Alberto & Gallegati, Mauro, 2018. "Financial Regulation And Endogenous Macroeconomic Crises," Macroeconomic Dynamics, Cambridge University Press, vol. 22(4), pages 896-930, June.
    57. Taylor, John B., 1993. "Discretion versus policy rules in practice," Carnegie-Rochester Conference Series on Public Policy, Elsevier, vol. 39(1), pages 195-214, December.
    58. Frank Smets & Raf Wouters, 2003. "An Estimated Dynamic Stochastic General Equilibrium Model of the Euro Area," Journal of the European Economic Association, MIT Press, vol. 1(5), pages 1123-1175, September.
    59. Bargigli, Leonardo & Gallegati, Mauro & Riccetti, Luca & Russo, Alberto, 2014. "Network analysis and calibration of the “leveraged network-based financial accelerator”," Journal of Economic Behavior & Organization, Elsevier, vol. 99(C), pages 109-125.
    60. Caiani, Alessandro & Catullo, Ermanno & Gallegati, Mauro, 2019. "The effects of alternative wage regimes in a monetary union: A multi-country agent based-stock flow consistent model," Journal of Economic Behavior & Organization, Elsevier, vol. 162(C), pages 389-416.
    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. Severin Reissl, 2022. "Fiscal multipliers, expectations and learning in a macroeconomic agent‐based model," Economic Inquiry, Western Economic Association International, vol. 60(4), pages 1704-1729, October.
    2. Joseph E. Stiglitz, 2020. "The Pandemic Economic Crisis, Precautionary Behavior, and Mobility Constraints: An Application of the Dynamic Disequilibrium Model with Randomness," NBER Working Papers 27992, National Bureau of Economic Research, Inc.

    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. Eugenio Caverzasi & Alberto Russo, 2018. "Toward a new microfounded macroeconomics in the wake of the crisis," Industrial and Corporate Change, Oxford University Press and the Associazione ICC, vol. 27(6), pages 999-1014.
    2. Giorgio Fagiolo & Andrea Roventini, 2017. "Macroeconomic Policy in DSGE and Agent-Based Models Redux: New Developments and Challenges Ahead," Journal of Artificial Societies and Social Simulation, Journal of Artificial Societies and Social Simulation, vol. 20(1), pages 1-1.
    3. repec:hal:spmain:info:hdl:2441/dcditnq6282sbu1u151qe5p7f is not listed on IDEAS
    4. Giovanni Dosi & Andrea Roventini, 2019. "More is different ... and complex! the case for agent-based macroeconomics," Journal of Evolutionary Economics, Springer, vol. 29(1), pages 1-37, March.
    5. Caiani, Alessandro & Catullo, Ermanno & Gallegati, Mauro, 2019. "The effects of alternative wage regimes in a monetary union: A multi-country agent based-stock flow consistent model," Journal of Economic Behavior & Organization, Elsevier, vol. 162(C), pages 389-416.
    6. Emanuele Russo, 2021. "Harrodian instability in decentralized economies: an agent-based approach," Economia Politica: Journal of Analytical and Institutional Economics, Springer;Fondazione Edison, vol. 38(2), pages 539-567, July.
    7. Giovanni Dosi & Andrea Roventini, 2017. "Agent-Based Macroeconomics and Classical Political Economy: Some Italian Roots," Italian Economic Journal: A Continuation of Rivista Italiana degli Economisti and Giornale degli Economisti, Springer;Società Italiana degli Economisti (Italian Economic Association), vol. 3(3), pages 261-283, November.
    8. Alessandro Caiani & Ermanno Catullo, 2023. "Fiscal Transfers and Common Debt in a Monetary Union: A Multi-Country Agent Based-Stock Flow Consistent Model," LEM Papers Series 2023/19, Laboratory of Economics and Management (LEM), Sant'Anna School of Advanced Studies, Pisa, Italy.
    9. Mauro Napoletano, 2018. "A Short Walk on the Wild Side: Agent-Based Models and their Implications for Macroeconomic Analysis," Revue de l'OFCE, Presses de Sciences-Po, vol. 0(3), pages 257-281.
    10. repec:hal:spmain:info:hdl:2441/2qdhj5485p93jrnf08s1meeap9 is not listed on IDEAS
    11. Giorgio Fagiolo & Andrea Roventini, 2016. "Macroeconomic Policy in DGSE and Agent-Based Models Redux," Working Papers hal-03459348, HAL.
    12. Emiliano Brancaccio & Mauro Gallegati & Raffaele Giammetti, 2022. "Neoclassical influences in agent‐based literature: A systematic review," Journal of Economic Surveys, Wiley Blackwell, vol. 36(2), pages 350-385, April.
    13. Giovanni Dosi & Mauro Napoletano & Andrea Roventini & Joseph E. Stiglitz & Tania Treibich, 2020. "Rational Heuristics? Expectations And Behaviors In Evolving Economies With Heterogeneous Interacting Agents," Economic Inquiry, Western Economic Association International, vol. 58(3), pages 1487-1516, July.
    14. repec:hal:spmain:info:hdl:2441/31dhti786q9k0q2i04klh6no54 is not listed on IDEAS
    15. Giorgio Fagiolo & Mattia Guerini & Francesco Lamperti & Alessio Moneta & Andrea Roventini, 2017. "Validation of Agent-Based Models in Economics and Finance," LEM Papers Series 2017/23, Laboratory of Economics and Management (LEM), Sant'Anna School of Advanced Studies, Pisa, Italy.
    16. Alberto Russo, 2017. "An Agent Based Macroeconomic Model with Social Classes and Endogenous Crises," Italian Economic Journal: A Continuation of Rivista Italiana degli Economisti and Giornale degli Economisti, Springer;Società Italiana degli Economisti (Italian Economic Association), vol. 3(3), pages 285-306, November.
    17. Alessandro Caiani & Ermanno Catullo & Mauro Gallegati, 2018. "The effects of fiscal targets in a monetary union: a multi-country agent-based stock flow consistent model," Industrial and Corporate Change, Oxford University Press and the Associazione ICC, vol. 27(6), pages 1123-1154.
    18. Andrew G. Haldane & Arthur E. Turrell, 2019. "Drawing on different disciplines: macroeconomic agent-based models," Journal of Evolutionary Economics, Springer, vol. 29(1), pages 39-66, March.
    19. Taberna, Alessandro & Filatova, Tatiana & Roventini, Andrea & Lamperti, Francesco, 2022. "Coping with increasing tides: Evolving agglomeration dynamics and technological change under exacerbating hazards," Ecological Economics, Elsevier, vol. 202(C).
    20. Papadopoulos, Georgios, 2020. "Probing the mechanism: lending rate setting in a data-driven agent-based model," MPRA Paper 102749, University Library of Munich, Germany.
    21. Luca Riccetti & Alberto Russo & Mauro Gallegati, 2022. "Firm–bank credit network, business cycle and macroprudential policy," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 17(2), pages 475-499, April.
    22. Caiani, Alessandro & Russo, Alberto & Gallegati, Mauro, 2016. "Does Inequality Hamper Innovation and Growth?," MPRA Paper 71864, University Library of Munich, Germany.
    23. Caiani, Alessandro & Russo, Alberto & Gallegati, Mauro, 2020. "Are Higher Wages Good For Business? An Assessment Under Alternative Innovation And Investment Scenarios," Macroeconomic Dynamics, Cambridge University Press, vol. 24(1), pages 191-230, January.

    More about this item

    Keywords

    agent-based model; machine learning; genetic algorithm; forecasting; policy shocks;
    All these keywords.

    JEL classification:

    • C63 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Computational Techniques
    • D84 - Microeconomics - - Information, Knowledge, and Uncertainty - - - Expectations; Speculations
    • E32 - Macroeconomics and Monetary Economics - - Prices, Business Fluctuations, and Cycles - - - Business Fluctuations; Cycles
    • E37 - Macroeconomics and Monetary Economics - - Prices, Business Fluctuations, and Cycles - - - Forecasting and Simulation: Models and Applications

    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:jau:wpaper:2020/17. 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: María Aurora Garcia Gallego (email available below). General contact details of provider: https://edirc.repec.org/data/ueujies.html .

    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.