This page was automatically generated by NetLogo 4.0. Questions, problems? Contact

The applet requires Java 1.4.1 or higher. It will not run on Windows 95 or Mac OS 8 or 9. Mac users must have OS X 10.2.6 or higher and use a browser that supports Java 1.4. (Safari works, IE does not. Mac OS X comes with Safari. Open Safari and set it as your default web browser under Safari/Preferences/General.) On other operating systems, you may obtain the latest Java plugin from Sun's Java site.

created with NetLogo

view/download model file: financial.nlogo


The model shows how idiosyncratic shocks on the firms can propagate in the whole economy through the credit sector producing macroeconomic fluctuations.


In this model there are 2000 firms. They sell and decide to invest. They finance the investment with the profits and by borrowing money from the bank system. The bank system lend money at each firms at different interest rates depending on the soundness of the firms. The firms sales heterogeneous goods and in each period the price of the goods change due to demand side shocks. If the shock is strong enough the firm can go bankrupt, the debt cannot be repaid to the bank system, the credit supply reduces and the interest rate increases for all the remaining firms. This mechanism possibly leads to other bankrupts for the effect of the increase in the interest rate.
New firm can enter in the economy depending on the average rate on interest in the economy.


"K medio" is the mean capital in the economy
"falliti" is the number of bankrupts

"Prodotto" is the log of the total product.
"bad debr" is the amount of lost credits by the bank system.
"tasso d'interesse" is the mean interest rate in the economy
"crescita" is the rate of growth of the total product.


Delli Gatti, Domenico, Corrado Di Guilmi, Edoardo Gaffeo, Gianfranco
Giulioni, Mauro Gallegati, Antonio Palestrini 2005, A New Approach to
Business Fluctuations: Heterogeneous Interacting Agents, Scaling Laws and
Financial Fragility, Journal of Economic Behavior and Organization, vol. 56,

Delli Gatti, Domenico, Edoardo Gaffeo, Mauro Gallegati, Gianfranco Giulioni,
Antonio Palestrini 2006, Emergent Macroecomics. An Agent Based Approach
to Business Fluctuation. Avaible in internet: