50
E PLURIBUS UNUM: MACROECONOMIC MODELLING FOR MULTI-AGENT ECONOMIES Documents de travail GREDEG GREDEG Working Papers Series Tiziana Assenza Domenico Delli Gatti GREDEG WP No. 2012-08 http://www.gredeg.cnrs.fr/working-papers.html Les opinions exprimées dans la série des Documents de travail GREDEG sont celles des auteurs et ne reflèlent pas nécessairement celles de l’institution. Les documents n’ont pas été soumis à un rapport formel et sont donc inclus dans cette série pour obtenir des commentaires et encourager la discussion. Les droits sur les documents appartiennent aux auteurs. The views expressed in the GREDEG Working Paper Series are those of the author(s) and do not necessarily reflect those of the institution. The Working Papers have not undergone formal review and approval. Such papers are included in this series to elicit feedback and to encourage debate. Copyright belongs to the author(s). Groupe de REcherche en Droit, Economie, Gestion UMR CNRS 7321

E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

E PLURIBUS UNUM: MACROECONOMIC MODELLING FOR MULTI-AGENT ECONOMIES

Documents de travail GREDEG GREDEG Working Papers Series

Tiziana AssenzaDomenico Delli Gatti

GREDEG WP No. 2012-08

http://www.gredeg.cnrs.fr/working-papers.html

Les opinions exprimées dans la série des Documents de travail GREDEG sont celles des auteurs et ne reflèlent pas nécessairement celles de l’institution. Les documents n’ont pas été soumis à un rapport formel et sont donc inclus dans cette série pour obtenir des commentaires et encourager la discussion. Les droits sur les documents appartiennent aux auteurs.

The views expressed in the GREDEG Working Paper Series are those of the author(s) and do not necessarily reflect those of the institution. The Working Papers have not undergone formal review and approval. Such papers are included in this series to elicit feedback and to encourage debate. Copyright belongs to the author(s).

Groupe de REcherche en Droit, Economie, GestionUMR CNRS 7321

Page 2: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

E Pluribus Unum: Macroeconomic Modellingfor Multi-agent Economies∗

Tiziana AssenzaUniversità Cattolica del Sacro Cuore and

CeNDEF, University of Amsterdam

Domenico Delli GattiUniversità Cattolica del Sacro Cuore

Abstract

From the macroeconomist’s viewpoint, agent based modelling hasan obvious drawback: It makes impossible to think in aggregate terms.The modeller, in fact, can reconstruct aggregate variables only "fromthe bottom up" by summing the levels of a myriad of individual vari-ables. We propose a modelling strategy which reduces the dimension-ality of an agent based framework by replacing the actual distributionwith the first and second moments of the distribution itself. We putthis strategy at work in a Macroeconomic and Agent Based Model(M&ABM) model of the financial accelerator in which firms’heteroge-neous degree of financial robustness affect investment in a bankruptcyrisk context à la Greenwald-Stiglitz.

JEL codes: E32, E43, E44, E52Keywords: Financial Fragility, Heterogeneity, Stochastic Aggrega-

tion, Business Fluctuations.

∗We thank for useful comments on previous versions of this paper the participants to theWorkshop on Economics with Heterogeneous Interacting Agents, university of Bologna,2006; Ph. D. Conference in Economics, Volterra, 2006; Annual conference on Computing inEconomics and Finance, HEC Montreal, 2007; Artificial Economics workshop, universityof Palermo, 2007; Complex Markets workshop, university of Warwick, 2008; GdR onMonetary Economics, university of Bordeaux, 2009; Conference on "Financial Constraints,Firm and Aggregate Dynamics", university of Nice, 2010. Financial support from theEuropean Commission (FP7 POLHIA research project) is gratefully acknowledged.

1

Page 3: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

1 Introduction

It is almost a commonplace that the Representative Agent (RA) assumptionis inadequate to deal with multi-agent economies characterized by persistentand relevant heterogeneity. Heterogeneity is persistent when agents’differ-ences —in the present paper heterogeneity of financial conditions across firms—is not bound to disappear "in the long run". Heterogeneity, even if persis-tent, can be irrelevant if the second and higher moments of the distributionof agents’ characteristics play an insignificant role in explaining aggregatebehaviour. In this case, in fact, the dynamics of the average agent capturesalmost all of the dynamics of the aggregate.1

If heterogeneity is both persistent and relevant, the RA assumption shouldbe dismissed and the analysis should identify and track the evolution of theentire distribution of agents’characteristics over time. Starting from hetero-geneous behavioural rules at the micro level, the aggregate (macroeconomic)variable — such as GDP —can be determined from the bottom up, i.e. byadding up the levels of a myriad of individual variables. The increasingavailability of computational power has allowed the implementation of thisprocedure in multi-agent (or agent based) models. 2

Multi-agent modelling therefore is the most straightforward way of tack-ling the heterogeneity issue. From the point of view of the macroeconomist,however, it has a destructive consequence. The dimension of the model ex-plodes. In an agent-based framework macroeconomic thinking —i.e. thinkingin terms of aggregate or macro-variables —is prima facie impossible.The main message of the present paper is that the diffi culty of thinking in

macroeconomic terms when dealing with multi-agent economies can be cir-cumvented by means of an appropriate aggregation procedure —which we labelthe Modified-Representative Agent (MRA) — that essentially approximatesthe evolution over time of the entire distribution of agents’characteristics bymeans of the dynamics of a finite set of moments of the distribution. In thefollowing we adopt the minimal version of the procedure which employs only

1In Krusell and Smith (1998), for example, aggregate behaviour is explained almostentirely by the dynamics of the first moment — i.e. the mean — of the distribution ofwealth. If heterogeneity is persistent but "does not matter", the modeller is entitled toignore higher moments of the distribution and rely comfortably again on the Representative(average) Agent as a reasonable approximation to reality.

2In the following we will use the expressions agent-based model or multi-agent model assynonimous. See Tesfatsion (2006) for a thorough introduction to agent based modelling.

2

Page 4: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

the first and second moments. The bottom line is that the mean and thevariance of the distribution play the role of macroeconomic variables. In thisway one can resume macroeconomic thinking in a multi-agent framework.As a benchmark for the application of this methodology, we build a

Macroeconomic and Agent Based Model (M&ABM) as follows. First we builda macroeconomic framework of the Greenwald-Stiglitz type starting from theassumption that firms differ from one another according to their financial ro-bustness, captured by the ratio of the equity base or net worth to the capitalstock (equity ratio for short). This framework can be characterized as an op-timizing IS-LM model in which the moments of the distribution of the equityratio —i.e. the cross-sectional mean and variance —determine the average oreconomywide external finance premium which is a shifter of the IS schedule.In the macroeconomic equilibrium, therefore, the interest rate and outputturn out to be functions of these moments.In order to determine the dynamics of the moments, we have to build

and calibrate a multi-agent model of the firms’equity ratio. From the syn-thetic data obtained through simulations we estimate a linear dynamic sys-tem which describes the evolution over time of the mean and the variance ofthe distribution of the equity ratio.In the "long run" — i.e. when the system settles in the steady state —

the distribution reaches a configuration which is summarized by the steadystate cross sectional mean and variance of the equity ratio. In other words,we extract from the simulated data an ergodic process such that the actualdistribution of the equity ratio converges over time to a long run stabledistribution.The long run moments determine the long run external finance premium,

which in turn determines the equilibrium interest rate and output gap.We put the model to work exploring the impact of macroeconomic shocks,

such as a financial shock —i.e. a sudden exogenous increase of the probabilityof bankruptcy —or a monetary shock, i.e. an increase of money supply.Following a negative financial shock the IS curve shifts down along the LM

curve on impact. This is the first round effect. The increase of the probabilityof bankruptcy then activates a second round effect which takes the form of afinancial amplification mechanism. The decrease of the average equity ratioand the increase of the variance make the external finance premium increase,pushing the IS curve further down. Heterogeneity contributes to amplificationbecause the increase in dispersion contributes to the increase of the externalfinance premium.

3

Page 5: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

As to the monetary shock, on impact the LM curve shifts down along theIS curve, reducing the interest rate. The first round effect on the interestrate activates a financial amplification mechanism. The increase of the aver-age equity ratio and the decrease of the variance make the external financepremium decrease. This second round effect pushes the IS curve up alongthe new LM schedule. Heterogeneity contributes to amplification becausethe decrease in dispersion contributes to the decrease of the external financepremium.We have performed some Montecarlo experiments to evaluate the robust-

ness of our results. While the results concerning a financial shock are robust,the results concerning the macroeconomic effects of the monetary shock areindeed not very robust. Our goal in the present paper, however, is essentialymethodological: We want to show how to restore the macroeconomic intu-ition and clarify the interpretation of the transmission mechanism of shocksin a multi-agent setting. The combined exploitation of the linear dynamicsystem obtained from the simulation and of the optimizing IS-LM frameworkallows to cope with heterogeneity in the simplest way at a purely macroeco-nomic level.The paper is organized as follows. In section 2 we develop the macroeco-

nomic framework. First of all we describe the behaviour of financially con-strained firms and apply the stochastic aggregation procedure to the invest-ment ratio (see subsection 2.1). In subsection 2.2 we analyze the behaviourof households. The macroeconomic equilibrium of the resulting optimizingIS-LM framework is derived in subsection 2.3.In section 3 we develop the agent based model. In subsection 3.1 we

define the law of motion of the equity ratio. Subsection 3.2 is devoted to thedynamical system which describes the evolution over time of the mean andthe variance of the distribution of the equity ratio. We examine the the longrun configuration of the distribution and of the interest rate and the outputgap in subsection 3.3.After a brief comparison with a representative agent framework (section

4) we put the model to test exploring the macroeconomic consequences of afinancial shock (section 5) and of a monetary shock (section 6). Section 7presents the results of our Montecarlo experiments. Finally, section 8 recapit-ulates the modelling strategy and concludes. Technical details and cumber-some computations concerning the probability of bankruptcy, the householdoptimization problem, the simulation code and the law of motion of the in-dividual equity ratio are confined to the appendix.

4

Page 6: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

2 The macroeconomic model

2.1 Firms

Financial conditions. Firms are heterogeneous with respect to their fi-nancial robustness captured by the equity ratio ait = Ait/Kit (i = 1, 2, .., z)where Ait is the firm’s equity base or net worth and Kit is the firm’s capitalstock. In the following we will keep the aggregate price level constant andnormalize it to unity (in other words all the variables are in real terms).3

The equity ratio ait falls in the interval (α, 1) where α is the bankruptcythreshold and 1 is the self-financing threshold.4 The distribution of the firms’equity ratio is characterized by the the average or cross-sectional mean of theequity ratio E (ait) = at and by the variance E(ait − at)2 = Vt.Firms cannot raise external finance on the Stock market (due to equity

rationing, see Myers and Majluf, 1984; Greenwald et al., 1984) so that theyhave to rely on bank loans to finance investment. Therefore they run therisk of bankruptcy. Banks extend credit to firms at an interest rate which isuniform across firms and equal to the interest rate on bonds.Technology. Each firm carries on production by means of a Leontief

technology Yit = min(λNit, νKit) where Yit, Nit and Kit represent output,employment and capital, ν and λ are positive parameters.Assuming that labour is always abundant, we can write Yit = νKit and

Nit = νλKit. 1/ν is the capital/output ratio; λ/ν is the the capital/labour

ratio or capital intensity.5

Market structure. Firms sell goods in a competitive market at a sto-chastic relative price uit. For the sake of simplicity, we assume that uit isuniformly distributed on the support (0, 2) so that E(uit) = 1. The rationalefor this assumption is the following. Suppose there is a large number of firms(so that firms are price taker). Households allocate their demand for goodsto different firms randomly. Let the demand that households allocate to the

3The equity ratio is the reciprocal of leverage. A word of caution is necessary at thispoint. As will be clear from equation (3.1) Ait are essentially cumulative past retainedearnings (cash savings). The notion of equity base or net worth in this paper, therefore, ismore restrictive than the usual one because we not account for expected discounted cashflows.

4More on this below, under the heading "Bankruptcy".5Since λ and ν are constant, output, capital and employment change at the same rate.

We will determine the rate of capital accumulation endogenously (see below) and willassume that output and employment change at the same rate of the capital stock.

5

Page 7: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

i-th firm at the end of period t be a fraction uit of total consumption ctLtwhere ct is consumption per household (to be determined in section 2.2) andLt is the number of households. uit is a stochastic demand shock specific tothe firm (a preference shock) with E (uit) = 1. Suppose, moreover, that thefirm takes production decisions at the beginning of period t. The firm doesnot know her selling price in advance so that she will equate the marginalcost MC (Yit) to the expected relative price E

(PitPt

)= 1. Production will

be Yit = MC−1 (1) . The relative price will change according to the followingprice adjustment rule:

PitPt− 1 = ζ

[uitctLt −MC−1 (1)

]This determines the relative price Pit

Ptat which the firm sells its predeter-

mined output Yit. Therefore the relative price turns out to be an increasingfunction of the demand disturbance, given the predetermined supply. In oursimplified framework we identify the relative price with the stochastic termuit. A high realization of uit characterizes a regime of high demand whichdrives up the relative price. In a regime of low demand, the realization ofuit is low and may push the firm out of the market if it is “too low”, i.e. ifit generates a loss so big as to deplete equity and make the equity ratio fallbelow the bankruptcy threshold α.Profit. Profit of the i-th firm (πit) is the difference between revenues

(uitYit) and total costs, which consist of production costs (wNit + rKit), ad-

justment costs(

12

I2itKt−1

)and organizational costs θKit:

πit = uitYit − wNit − rtKit −1

2

I2it

Kt−1

− θKit (2.1)

For simplicity we assume that the real wage w is given and constant. rt

is the real interest rate, Iit = Kit −Kit−1 is investment,6 Kt =z∑i=1

Kit is the

aggregate capital stock and Kt = Kt/z is the average capital stock.Adjustment costs are quadratic in investment (as usual in investment

theory) and decreasing in the average capital stock. We assume a positiveexternality in the accumulation of capital. The higher the economywide

6For simplicity we assume that there is no depreciation.

6

Page 8: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

capital stock, the lower adjustment costs will be for the individual firm.The firm incurs organizational costs to acquire the soft capital needed to

carry on production. The notion of soft or organizational capital has beenput forward, in a different context, by Gertler and Hubbard (1988).The assumptions on adjustment and organizational costs allow to simplify

the firm’s optimization problem and determine a simple interior solution.7

Bankruptcy. The firm goes bankrupt in t if Ait−1 ≤ αKit−1 i.e. if networth reaches a minimum admissible level, which in turn is proportional tototal assets. The bankruptcy condition can be rewritten as: ait−1 ≤ α.We assume that the probability of bankruptcy is increasing with leverage

and therefore decreasing with the equity ratio. For the sake of analyticaltractability we assume that the firm adopts the following definition of theprobability of bankruptcy:

Φit =

(1

ait−1

− 1

)α′ (2.2)

where 0 < α′ < 1. The firm goes bankrupt with probability one if ait−1 ≤α := α′/ (1 + α′). Therefore α represents the bankruptcy threshold.The bankruptcy threshold can be considered a "floor" for the range of

admissible equity ratios that the i-th firm can experience. Symmetricallythe "ceiling" is represented by an equity ratio equal to 1. If the equity ratioreaches unity the firm is completely self-financed so that she does not need toresort to external finance and therefore does not run the risk of bankruptcy.In other words, when ait−1 = 1 the probability of bankruptcy is 0. Henceait−1 is defined on the interval (α, 1) and Φit is defined on the interval (0, 1)as shown in figure 2.1.Definition (2.2) captures the main determinant of the probability of bank-

ruptcy, i.e. a measure of financial robustness, and can be thought of as a"reduced form" formulation. In appendix A we provide a microfoundationof the probability of bankruptcy along the lines of Greenwald and Stiglitz(1993). The adoption of the specific functional form of the probability ofbankruptcy that emerges from this microfoundation would have made themodel very diffi cult to manage without adding much in terms of insights.This is the reason why we preferred to adopt the simplified formulation (2.2).The probability of bankruptcy as defined in (2.2) has an appealing prop-

7See below, under the heading "Optimization".

7

Page 9: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Figure 2.1: The probability of bankruptcy

erty. Due to convexity, themarginal probability of bankruptcy∣∣∣ dΦitdait−1

∣∣∣ = α′

a2it−1is decreasing with financial robustness. In other words, the stronger the fi-nancial condition of the firm —the greater the equity ratio —the lower thedecrease of the probability of bankruptcy associated with a further strength-ening of the financial condition.In the following we will characterize a negative financial shock as an ex-

ogenous increase of the bankruptcy threshold. A negative financial shockmakes the probability of bankruptcy schedule shift to the right, as shownin figure 2.1 where α increases from α0 to α1. It is interesting to note thatthe convexity of the probability of bankruptcy makes the financial shock hitharder on the relatively fragile firms (those with a low equity ratio) who ex-perience an increase in the probability of bankruptcy higher than the increaseaffecting robust firms.Following Greenwald and Stiglitz (1993) we assume that bankruptcy is

costly for the borrower and the cost of bankruptcy is an increasing linearfunction of the scale of activity: CBit = βKit where β > 0.Optimization. The objective function of the firm Vit is the difference be-

tween expected profit E (πit) and bankruptcy cost in case bankruptcy occursCBitΦit:

8

Page 10: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Vit = Yit − wNit − (rt + θ)Kit −1

2

I2it

Kt−1

− βKit

(1

ait−1

− 1

)α′ (2.3)

In order to simplify the problem and without loss of generality, we assumethat θ = βα′.8 Since Yit = νKit and Nit = ν

λKit the problem of the firm boils

down to:

maxKit

(γ − r)Kit −1

2

(Kit −Kit−1)2

Kt−1

− βα′ Kit

ait−1

where γ ≡ ν(1− w

λ

)represents earnings before interest —i.e. revenue net of

labour costs —per unit of capital. In the following we will refer to γ as theprofit rate.9

From the FOC we obtain

τ it = γ − (rt + fit) (2.4)

The investment ratio τ it ≡ Iit/Kt−1 is the difference between the profitrate γ and the interest rate rt "augmented" by the external finance premiumβα′/ait−1 (EFP hereafter), i.e. an expected extra-cost due to the risk of bank-ruptcy. In the present context the EFP is due to the risk of insolvency asperceived by the borrower (borrower’s risk) while in the framework pioneeredby Bernanke and Gertler it is traced back to the the risk of default as per-ceived by the lender (lender’s risk) (see Bernanke and Gertler, 1989, 1990;Bernanke, Gertler and Gilchrist, 1999). As in the aforementioned literature,however, also in this context the EFP is increasing with the probability ofbankruptcy and therefore decreasing with the equity ratio.10

8The specification of the probability of bankruptcy (2.2) yields an expected cost ofbankruptcy CBitΦit = (βα′Kit/ait−1)− βα′Kit which has a negative part. This negativecomponent of cost plays the role of a component of revenues. By setting θ = βα′ weimplicitly assume that this component of marginal revenue is used to pay for the marginalcost of organizational capital.

9The control variable in the problem above is the individual capital stock. Due to theLeontief technology, once the stock of capital has been optimally determined, both outputand employment are determined because they are proportional to capital.10In principle τ it can be negative. In this case the capital stock is shrinking, a situation

which we could not rule out — due for instance to a process of “creative destruction”which requires the stripping of obsolete machinery. Of course the capital stock cannot benegative: therefore, in case τ it < 0 , we impose the following restriction: τ it > −sit−1

where sit−1 ≡ Kit−1/Kt−1 is the relative size of the firm in t− 1.

9

Page 11: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

As one could expect, the investment ratio is decreasing with input costs w,rt and increasing with the equity ratio.In the case of the representative agent we get:

τRt = γ −(rt + fRt

)(2.5)

where τRt ≡ It/Kt−1 and fRt = βα′/at−1.In the absence of bankruptcy costs (β = 0) we obtain the first best in-

vestment ratioτFt = γ − rt (2.6)

which is equal to the profit rate after interest payment and depends only oninput costs. Of course, in the first best financial robustness has no role toplay.

2.1.1 The average investment ratio

Using Taylor’s formula we can approximate the individual investment ratio(around the average equity ratio) as follows:

τ it = τRt +∂τ it∂ait−1

(ait−1 − at−1)+1

2

∂2τ it∂a2

it−1

(ait−1 − at−1)2+1

6

∂3τ it∂a3

it−1

(ait−1 − at−1)3+...

Taking the expected value of the expression above and recalling that, bydefinition, E (ait−1 − at−1) = 0 one gets:

τ t = E (τ it) = τRt +1

2

∂2τ it∂a2

it−1

E (ait−1 − at−1)2 +1

6

∂3τ it∂a3

it−1

E (ait−1 − at−1)3 + ...

(2.7)where E (ait−1 − at−1)2 = Vt−1 and E (ait−1 − at−1)3 is the third momentaround the mean, an indicator of skewness.From the equation above follows that the average investment ratio —i.e.

the investment ratio of the Modified Representative Agent (MRA) —is equalto the investment ratio of the Representative Agent augmented by a weightedsum of all the moments of the distribution of the equity ratio. The procedureto determine the policy function of the MRA in a general setting with het-erogeneous agents is thoroughly discussed in Gallegati et al. (2006) where itis labelled the Variant-Representative-Agent, with a somewhat paradoxical

10

Page 12: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

touch.11

In the following, in order to keep the analysis as simple as possible, wewill cut short the series above at the second term:

τ t ≈ τRt +1

2

∂2τ it∂a2

it−1

Vt−1 (2.8)

where∂2τ it∂a2

it−1

= −2βα′

a3t−1

< 0 (2.9)

Summing up, we have taken a second order approximation of the indi-vidual investment ratio (2.4) and computed the mean of the approximatedinvestment ratio, getting (2.8). The MRA approach to aggregation in anheterogeneous agents setting is similar to the second order approximation ofthe policy function proposed by Schmitt Grohé and Uribe (2004) in a RAsetting. The procedure they propose, however, does not aim at averagingheterogeneous policy functions but at approximating the non linear policyfunction of the representative agent.Recalling (2.5) and (2.9) equation (2.8) can be written as

τ t = γ − (rt + ft) (2.10)

where

ft ≡βα′

at−1

(1 +

Vt−1

a2t−1

)(2.11)

The investment ratio of the MRA τ t is equal to the difference between theprofit rate γ and the interest rate rt "augmented" by the average externalfinance premium ft which is decreasing with the average equity ratio andincreasing with the variance of the equity ratio. 12

Notice that the MRA investment ratio τ is smaller than the RA invest-ment ratio τRt which in turn is smaller than the first best τ

Ft . In other words

we have the following hierarchy of investment ratios τFt > τRt > τ t.

11The approach has already been used in Agliari et al. (2000).12In other words, the average EFP ft can be conceived of as a mark-up µt−1 :=

Vt−1

a2t−1

on the EFP of the representative agent fRt :=βα′

at−1where the mark-up coincides with the

square of the "coeffi cient of variation" i.e. the ratio of the standard deviation to the meanof the distribution.

11

Page 13: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Figure 2.2: Individual investment ratio

To illustrate this point, in figure 2.2 we represent equation (2.4). Theinvestment ratio of the i-th firm τ it is an increasing concave function of theindividual equity ratio ait−1 and tends asymptotically to the first best τFt .Concavity of the investment ratio can be traced back to convexity of the

bankruptcy probability function (2.2). In fact∂τ it∂ait−1

= β

∣∣∣∣ dΦit

dait−1

∣∣∣∣. The

stronger the financial condition of the firm —i.e. the greater the equity ratio—the smaller the reduction of the probability of bankruptcy associated withan increase of the equity ratio, and therefore the smaller the increase of theinvestment ratio.For the sake of discussion, consider the simplest case of a corporate sector

consisting of only two firms whose equity ratios are a1t−1 and a2t−1. Thanksto concavity, by Jensen’s inequality the average investment ratio τ t —i.e. theMRA investment ratio —will be smaller than the investment ratio associatedwith the average equity ratio τR —i.e. the RA investment ratio —which inturn will be smaller than first best. A mean preserving increase in dispersionwill bring about a decrease of the MRA investment ratio.

12

Page 14: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Average investment will be It = τ tKt−1 so that in the aggregate It =τ tKt−1 and Kt = (1 + τ t)Kt−1. Therefore the MRA investment ratio rep-resents also the rate of growth of the aggregate capital stock. Due to theLeontief technology, employment and output grow at the same rate as thecapital stock.

2.2 Households

There are Lt households that are homogeneous in every respect so that we cansafely adopt the representative agent assumption. Each household suppliesinelastically one unit of labour. The household has a measure 1 of members.Each member of the household has probability xt of being employed. There-fore xt coincides with the fraction of household members who are employedand with the employment rate economywide xt = Nt/Lt. Conversely 1− xtis the probability of being unemployed, the fraction of household memberswho are unemployed and the unemployment rate economywide.We assume that all the profits are retained within the firm. In the absence

of dividends, the only source of income for the household is the wage ratew if the member is employed, the unemployment subsidy σ if unemployed,with w > σ (both the real wage and the unemployment subsidy are constantby assumption). We assume that household members pool resources so thatthere is full insurance in consumption.The representative household has income wxt + σ (1− xt) and demands

goods, financial assets (bonds) and money balances.The lifetime utility function of the representative household is:

Ut =

∞∑s=0

ξs (ct+s)δ (mt+s)

1−δ (2.12)

where ct is consumption, mt are money balances, ξ is the discount factor,0 < δ < 1. In the following, for simplicity, we will set δ = 1/2The household’s budget constraint is:

ct+s +mt+s + bt+s = wxt+s + σ (1− xt+s) + (2.13)

+mt+s−1 + (1 + rt+s−1) bt+s−1

s = 0, 1, ...∞

According to the budget constraint, the sum of consumption ct and the

13

Page 15: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

demand for moneymt and bonds bt should be equal to income wxt+σ (1− xt)plus interest payments (1 + rt−1) bt−1 and money balances mt−1 carried overfrom the previous period.The problem of the representative household, therefore, consists in max-

imizing the expected value of (2.12) subject to a sequence of budget con-straints (2.13). From the FOCs 13 we obtain the following relation betweenoptimal consumption and money demand:

mt =1 + rtrt

ct (2.14)

We assume that changes in money balances can be implemented onlyby means of changes in bondholding in the opposite direction through openmarket transactions:

mt −mt−1 = − [bt − (1 + rt−1) bt−1] (2.15)

Substituting (2.14) and (2.15) into (2.13) we obtain the optimal consumptionfunction and money demand function for the representative household:

ct = wxt + σ (1− xt) (2.16)

mt =1 + rtrt

[wxt + σ (1− xt)] (2.17)

2.3 Equilibrium

In this economy there are markets for labor, goods, money and financial as-sets. Due to real wage rigidity, the labor market can be characterized byunderemployment even if both the money and goods markets are in equilib-rium.The goods market is in equilibrium (planned expenditure is equal to

actual expenditure) when Ct + It = Yt. Aggregate consumption is Ct =[wxt + σ (1− xt)]Lt. Aggregate investment is It = τ tKt−1. Therefore inequilibrium the following must hold true:

[wxt + σ (1− xt)]Lt + τ tKt−1 = Yt (2.18)

13See appendix B for details.

14

Page 16: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Dividing by total employment Nt, recalling thatNt

Lt= xt,

YtNt

= λ, τ tKt−1

Nt

=

τ tKt−1

Kt

Kt

Nt

=τ t

1 + τ t

λ

νwe can rewrite (2.18) as

w + σ

(1

xt− 1

)+

τ t1 + τ t

λ

ν= λ (2.19)

In the following we will refer to xt as the output gap.14 In order to simplifythe analysis, we linearize 1/xt around full capacity (i.e. x = 1) by means of

the usual Taylor procedure so that1

xt− 1 is approximately equal to 1− xt.

Analogously, linearizingτ t

1 + τ taround τ t = 0 we get

τ t1 + τ t

≈ τ t. Hence

(2.19) becomes w + σ (1− xt) + τ tλ

ν= λ. Recalling that τ t = γ − rt − ft in

the end we can write:

w + σ (1− xt) + (γ − rt − ft)λ

ν= λ

Notice that λ = w+γλ

ν. In fact γ

λ

νrepresents profits per worker, being the

product of the profit rate γ times the capital/labour ratioλ

ν. By definition,

the sum of labour income per worker —i.e. the wage rate —and profits perworker is equal to income per worker.Hence equation (2.19) becomes:

xt = 1− λ

σν(rt + ft) (2.20)

This relation between rt and xt represents the (optimizing) IS curve ofour model. The EFP ft is a shifter of the IS curve but the EFP is determined

by the moments of the distribution of the equity ratio ft =βα′

at−1

(1 +

Vt−1

a2t−1

).

A reduction of the EFP (due for instance to an increase of the mean or a

14Thanks to the linearity of technology, the employment rate xt can be thought of alsoas a measure of capacity utilization. In fact, Nt = Yt/λ and Lt = Yt/λ where Yt ispotential output so that xt = Nt/Lt = Yt/Yt. Properly speaking, the output gap is an

affi ne transformation of capacity utilization:(Y − Y

)/Y = x− 1.

15

Page 17: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

reduction of the variance) makes the IS curve shift up.We now turn to the money market. The demand for money is represented

by equation (2.17). Imposing the equilibrium condition mt = mt —where mt

is exogenous money supply —we get xt =1

w − σ

(rt

1 + rtmt − σ

).15 Lin-

earizingrt

1 + rtaround rt = 0 we get

rt1 + rt

≈ rt so that the equation above

becomes:xt =

1

w − σ (rtmt − σ) (2.21)

This relation between rt and xt represents the LM curve of our model.The system (2.20)(2.21) can be solved for the interest rate and the output

gap. After some algebra we get

rt = Γ0

[σν

λw − (w − σ) ft

](2.22)

xt =mt

w − σΓ0

[σν

λw − (w − σ) ft

]− σ

w − σ (2.23)

where Γ0 =(w − σ + σ

ν

λmt

)−1

is positive (since w > σ) and decreasing with

per capita money supply.16

Both rt and xt in the reduced form are decreasing with the EFP.17

15In the following we will assume that the rate of growth of money supply will be equalto the rate of growth of population so that per capita money supply will be constant overtime.16We assume σ νλw − (w − σ) ft >

σΓ0mt

in order to guarantee that both rt and xt arepositive.17Notice that the interest rate augmented by the EFP is:

rt + ft = Γ0σν

λw + [1− Γ0 (w − σ)] ft

Since the expression in brackets is positive, it turns out that the augmented interest rateis increasing in ft. Hence a reduction of the EFP makes the interest rate increase but theaugmented interest rate decrease (because the reduction of the EFP is greater in absolutevalue than the increase of the interest rate).Recalling that τ t = γ − (rt + ft) we can conclude that a reduction of the EFP unam-

biguously boosts capital accumulation.

16

Page 18: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

3 The agent based model

3.1 The individual equity ratio

In this section we build the agent based model of the equity ratio and showhow it is nested into the macroeconomic model developed so far. The startingpoint is the law of motion of the firms’net worth 18

Ait = Ait−1 + πit (3.1)

Recalling (2.1) and proceeding as described in appendix C we obtain thelaw of motion of the individual equity ratio

ait = ait−1

(sit−1

sit−1 + τ it

)+ uiν − w

ν

λ− rt −

1

2

τ 2it

sit−1 + τ it(3.2)

where τ it = γ −(rt +

βα′

ait−1

); sit−1 =

Kit−1

Kt−1

.

Equation (3.2) is the cornerstone of the agent based model. Given thereal wage and technological parameters, the equity ratio of the i-th firm isa function of (i) the investment ratio τ it which is determined by the equityratio, (ii) the relative size sit−1, (iii) a stochastic disturbance (uit) and (iv) theinterest rate rt which is defined as in (2.22). The cross-sectional mean andvariance of the equity ratio impact upon the individual law of motion throughthe interest rate. This is the source of a macroeconomic externality. Firms’financial conditions at the macroeconomic level, i.e. at−1, Vt−1 determine theEFP which in turn affects the interest rate rt and therefore the individualfirm’s financial condition.In a multi-agent setting, there is a large number of laws of motion of the

individual equity ratios which can be conceptualized as a multi-dimensionalsystem of non-linear coupled difference stochastic equations.19 Since it isimpossible to compute closed form solutions, we have to resort to computersimulations.We consider a virtual economy consisting of z = 1000 firms over a time

18As already pointed in section 2.1, in the present paper Ait are cumulative retainedearnings (cash savings). Properly speaking, the equity base or net worth is the sum ofexpected discounted cash flows and retained earnings. In this paper, therefore, the notionof net worth is more restrictive than the usual one.19Individual dynamics are coupled via the macroeconomic externality mentioned above.

17

Page 19: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Bankruptcy threshold α = 0.02Bankruptcy cost per unit of capital β = 0.002Average productivity of capital ν = 1/3Average productivity of labour λ = 1

Wage rate w = 0.7Unemployment subsidy σ = 0.2

Money supply m = 200

Table 3.1: Parameters setting

span of T = 1000 periods ("quarters"). We aim at assessing qualitativelythe dynamic properties of the economy under scrutiny. Therefore we buildthe model as sparingly as possible, abstracting from features which wouldcertainly enrich the model but would also increase the complexity of themechanisms at work. In fact, there are only 7 free parameters in the modelwhich are set as in table 3.1.The configuration of parameters we have chosen will yield dynamic pat-

terns of the main macroeconomic variables — i.e. the interest rate and theoutput gap —roughly in line with the empirical evidence.As shown in section 2.1, for modelling reasons the threshold level of the

equity ratio α below which the firm goes bankrupt cannot be exactly zero.The bankruptcy threshold we have chosen, however is close to zero.Bankruptcy costs too are assumed to be very small, amounting to 0.6%

of output.20 The empirical assessment of bankruptcy costs is controversialbecause the definition itself is elastic and, once defined, they are measurementsensitive. A survey by White (1989) gave a range of 3-21%. More recentlyBris, Nzhu and Welch (2006) suggest a range of 0-20%. Our modelling choiceis therefore close to the lower endpoint of available estimates of bankruptcycosts.The productivity of capital ν is set to 1/3 to capture the empirical stylized

fact according to which the capital/output ratio is close to 3. We do nothave strong priors concerning the other parameters. The real wage and the

20In our setting bankruptcy costs amount to 0.2% of the capital stock and the capi-tal/output ratio is 3.

18

Page 20: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

productivity of labour λ are set so that, together with the productivity ofcapital, they yield a profit rate (before interest) γ equal to 10%.The unemployment subsidy is substantially lower (less than 30%) than

the wage rate.The quantity of money per household is set to mt = 200.The code which governs the simulations follows the logical sequence spelled

out in appendix D.

3.2 The cross sectional mean and variance

The simulations described in appendix D generate the time series of the cross-sectional mean and variance of the equity ratio over 1000 periods. We discardthe transient consisting of the first 100 periods and run an OLS regressionon 900 simulated data to estimate the αij coeffi cients (i, j = 0, 1, 2) of thelinear system

at = α10 + α11at−1 + α12Vt−1 (3.3)

Vt = α20 + α21at−1 + α22Vt−1 (3.4)

We have run several simulations changing the random seed. The esti-mated coeffi cients in one of these simulations are

α10 = 0.32045;α11 = 0.47211;α12 = −0.30102

α20 = 0.05469;α21 = 0.03137;α22 = 0.22436

They are all statistically significant (at the 5% level). Notice that the autore-gressive coeffi cients α11 and α22 are positive and smaller than one (a robustfeature of the simulations) and that lagged variance has a negative impact onthe current mean equity ratio, i.e. α12 is negative. This last feature is typicalfor low values of the bankruptcy threshold α. For relatively high values of αthe lagged variance has a positive impact on the current mean equity ratio,i.e. α12 turns positive (see section 7 for details).In order to provide a macroeconomic interpretation of the system (3.3)(3.4),

it is convenient to consider the continuous time approximation:

da = α10 + (α11 − 1) a+ α12V

dV = α20 + α21a+ (α22 − 1)V

19

Page 21: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

It is easy to see that the trace of the Jacobian is always negative, thanksto the fact that autoregressive coeffi cients are smaller than one. Since α12

is negative, the determinant is unambiguously positive so that the resultingsteady state will be stable.21

Imposing da = 0 we determine the demarcation line AA, i.e the locus of(a, V ) pairs such that a is constant. It is easy to see that the line is downwardsloping.22 Points above (below) the line are characterized by a tendency ofa to decrease (increase) as shown by the horizontal arrows in figure 3.1.Imposing dV = 0 we determine the demarcation line VV, i.e the locus of

(a, V ) pairs such that V is constant. The line is upward sloping. Points above(below) the line are characterized by a tendency of V to decrease (increase)(as shown by the vertical arrows).The steady state is at the intersection of the two curves (point E0). From

the estimated linear system we get the coordinates of this point, namely:

a0 = 0.55405; V0 = 0.09292

We have extracted from the simulated data an ergodic process such thatthe actual distribution of the equity ratio converges over time to a long runstable distribution whose first and second moments are a0 and V0.Not surprisingly the steady state of the cross sectional mean (and of the

variance) almost coincide with the long run average of the same variableswhich can be computed directly from simulated data, as shown in the upperpanels of figure 3.2.

3.3 The macroeconomic equilibrium in the steady state

We are now able to compute the EFP in the "long run" i.e when the distri-bution of the equity ratio has reached her long run equilibrium captured bythe steady state cross sectional mean and variance:

f0 ≡βα′

a0

(1 +

V0

a20

)= 9. 404 9× 10−5

This is the crucial datum we have to retrieve from the agent based modeland plug into the reduced form (2.22)(2.23) of the macroeconomic model in

21This is confirmed by computing the eigenvalues of the system.22This is due to the fact that α is low so that α12 is negative. For relatively high values

of α the coeffi cient α12 turns positive and the AA line slopes up.

20

Page 22: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Figure 3.1: Phase diagram of (3.3)(3.4)

Figure 3.2: Simulated time series and long run average of a, V, r, x.

21

Page 23: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Figure 3.3: The macroeconomic equilibrium

order to compute the real interest rate and the output gap in equilibriumand in the long run. They are:

x0 = 0.94804

r0 = 0.003370

Therefore, in the long run the unemployment rate is approximately 5%while the annualized interest rate is around 1%. 23 The equilibrium values ofthe output gap and the interest rate are quite close to the long run averageof the same variables which can be computed directly from simulated data,as shown in the lower panels of figure 3.2.In figure 3.3, the equilibrium values of the interest rate and the output

gap (x0, r0) are the coordinates of the macroeconomic equilibrium E0. Byconstruction, the macroeconomic equilibrium is anchored to f0.

23These numbers are just satisfactory for our purposes. They are not too far from themacroeconomic scenario in the USA before the crisis. In this paper, however, we are notaiming at replicating accurately macroeconomic reality. Our aim consists in illustrating astrategy to build a fairly reasonable microfounded macroeconomic model with heteroge-nous agents.

22

Page 24: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

4 A comparison with the Representative Agent

Setting α12 = 0 in (3.3) we get at = α10 + α11at−1 with α10 = 0.32045;α11 =0.47211. This is the law of motion of the equity ratio of the representativeagent. The steady state of this AR(1) process is the steady state equity ratioof the representative agent

aR0 = 0.60704

This is represented by point R ≡(aR0 , 0

)in figure 3.1. The steady state is

stable.24 Notice that the long run mean of the equity ratio is higher in therepresentative agent case: a0 < aR0 .We can easily retrieve the output gap and interest rate in the represen-

tative agent case. The EFP in this case, in fact, is

fR0 ≡βα′

aR0= 6. 589 4× 10−5

so that the output gap and the interest rate are

xR0 = 0.94844

rR0 = 0.003371

(coordinates of point R in figure 3.3).25

Summing up: a0 < aR0 ; fR0 < f0; xR0 > x0; rR0 > r0.Heterogeneity (captured by the cross sectional variance) plays the role of

a dampening factor with respect to the accumulation of net worth. Wheredoes this dampening role comes from?Let’s consider the RA case first. Suppose the initial cross sectional mean

is low: at−1 < aR0 . The initial condition, for instance, can be visualized as theabscissa of point B in figure 3.1. The equity ratio increases (the system movesto the right along the x-axis). Hence the EFP goes down, boosting net worthand capital accumulation. The IS curve shifts up along the LM curve so thatboth the output gap and the interest rate go up. The system will settle in

24If, for instance, the initial condition of the equity ratio of the representative agent isa < aR0 (any point of the x-axis between the origin and point R are characterized by thisinequality), then a will increase and converge to aR0 .25In order to simplify the graphical representation we do not show the first best case,

which is characterized by τFt = γ − rt.The first best would be captured by an IS schedulecharacterized by f = 0. This schedule would be time invariant and located above the ISschedule in the representative agent case.

23

Page 25: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

the steady state and macroeconomic equilibrium points characterized by theletter R in figures 3.1 and 3.3.Let’s consider now the Heterogeneous Agents (HAs) case. Suppose the

initial condition is point B in figure 3.1. The system moves along the dashedtrajectory starting from B in figure 3.1. In this case therefore the mean equityratio increases but also the variance goes up. The reduction of the EFP dueto the increase of the cross-sectional mean is somehow offset by the increaseof the variance. Hence net worth and capital accumulation are somehowattenuated. In the end (i.e. in the steady state) the cross sectional equityratio go up less than in the RA case. The system will settle in the steadystate and macroeconomic equilibrium points characterized by the letter R infigures 3.1 and 3.3.

5 The effects of a financial shock

In this section and in the following one we put the M&ABM to the testexploring the consequences of a financial and a monetary shock respectively.A negative financial shock translates into an exogenous increase of the

bankrupticy threshold.26 The benchmark bankruptcy threshold (as in table3.1) is α0 = 0.02. In this section we will set the new threshold at α1 = 0.05,the other parameters in the table being equal. Estimating the αij coeffi cientsof the system (3.3)(3.4) on the new artificial dataset generated by one of thesimulations we get

α10 = 0.32727;α11 = 0.44562;α12 = −0.26421

α20 = 0.06264;α21 = 0.02380;α22 = 0.20623

The financial shock makes the AA curve shift down and the V V curveshift up. Moreover the AA curve become steeper while the V V curve becomesflatter. Figure 5.1 depits the situation in the proximity of the steady state.If the shock is permanent, the economy moves from the old steady state

E0 to the new one E1 whose coordinates are

a1 = 0.54494;V1 = 0.09525

with a1 < a0 and V1 > V0. Since the mean equity ratio is smaller and the

26See the discussion under the heading "Bankruptcy" in section 2.1.

24

Page 26: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Figure 5.1: Effects of an increase in α on demarcation lines. Solid lines:α0 = 0.02; dashed lines: α1 = 0.05.

variance is greater than in the old steady state, in the new steady state theequilibrium EFP

f1 ≡ βα′1a1

(1 + V1

a21

)= 2. 424× 10−4

will be higher than in the old one (in fact f0 =βα′0a1

(1 + V0

a20

)= 9. 404 9 ×

10−5).27 The real interest rate and the output gap can be computed fromthe reduced form (2.22)(2.23) using the value for f1 above. They are:

x1 = 0.94589

r1 = 0.003364

The increase in α makes both the output gap and the interest rate de-crease.The total effect of the shock can be decomposed into first round and

second round effects. The first round effect is the macroeconomic impact of

27The parameter α′0 is equal toα0

1−α0 = 0.020.98 = 0.0204 while α′1 is equal to

α11−α1 = 0.05

0.95 =0.0526.

25

Page 27: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Figure 5.2: Effects of an increase in α on the IS-LM apparatus. Solid lines:α0 = 0.02, dashed lines α1 = 0.05.

the shock measured at the initial distribution of the equity ratio (i.e.giventhe pre-shock steady state distribution). The second round or indirect effectmeasures the macroeconomic repercussion of the changes in the distributiontriggered by the shock. Heterogeneity contributes to the second round effectthrough changes in the variance of the distribution.The first round effect of the financial shock is the increase of the prob-

ability of bankruptcy for each firm, given the equity ratio of the firm in theoriginal steady state distribution. The EFP increases on impact by

∆f1st = (α′1 − α′0)[βa0

(1 + V0

a20

)]=

∆α′

α′0f0

making the IS curve shift down along the LM curve (from IS (α = 0.02) toIS (f 1

0 ) in figure 5.2) .Due to this initial shift also the interest rate and the output change on

impact. From the reduced form of the IS-LM model we get

∆r1st = −Γ0 (w − σ) ∆f1st

∆x1st =m

w − σΓ0∆r1st = −mΓ0∆f1st

The first round effect triggers a dynamic downward adjustment of the

26

Page 28: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

equity ratio for each and every firm. As a consequence the cross sectionalmean of the equity ratio goes down (pushing the EFP up) and the varianceincreases (as shown in figure 5.1) pushing the EFP further up. The secondround increase of the EFP is

∆f2nd = βα′1

[(1

a1

− 1

a0

)+

(V1

a31

− V0

a30

)]The second round effect, in turn, can be decomposed into two terms.

The first one depends only on the adjustment of the cross sectional mean

βα′1

(1

a1

− 1

a0

)while the second one depends on the variance βα′1

(V1

a31

− V0

a30

).

The latter measures the contribution of heterogeneity to the second roundeffect.The new increase of the EFP will push the IS curve further down along

the LM curve. Due to this second shift also the interest rate and the outputchange. From the reduced form of the IS-LM model we get

∆r2nd = −Γ0 (w − σ) ∆f2nd

∆x2nd =m

w − σΓ0∆r2nd = −mΓ0∆f2nd

At the end of the transition from the old to the new steady state theequilibrium moves from E0 to E1 as shown in figure 5.2.The initial shock (first round increase of the EFP) is amplified through

the financial accelerator mechanism (second round increase of the EFP).Heterogeneity contributes to the magnification of the initial shock. Due tothe non-linear specification of the probability of bankruptcy the financialshock hit the fragile firms (those with a low equity ratio) harder. Theywill experience an increase in the probability of bankruptcy higher than theincrease affecting robust firms. Hence the equity ratio of the fragile firms willfall more than the equity ratio of the robust firms, increasing the variance.In (5.1) we report the magnitude of the effects computed using the numer-

ical values of the steady state moments of the distribution and the parametersset in table 3.1

27

Page 29: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

1st round effect 2nd round effect∆f1st = 1.41× 10−4 ∆f2nd = 7.40× 10−6

∆r1st = −5.10× 10−6 ∆r2nd = −2.67× 10−7

∆x1st = −2.02× 10−3 ∆x2nd = −1.07× 10−4

(5.1)

Most of the effect of the shock must be traced back to the first roundimpact. The second round effect on the EFP is two orders of magnitudesmaller than the first round effect. This is due essentially to the negligiblesize of the bankruptcy cost which we set at 0.6% of output. Due to thisassumption, the impact of changes in the distribution on the EFP is limited.The contribution of heterogeneity on EFP (4.22× 10−6), however, is morethan half of the second round effect.The second round effect on the the interest rate is one order of magnitude

smaller than the first round effect. The same applies to the effect on theoutput gap.

6 The effects of a monetary policy shock

Let us now assess the effects of a monetary shock.Suppose money supply increases from m0 = 200 to m1 = 350, the other

parameters of table 3.1 being equal. We run a number of new simulationsand estimate the αij coeffi cients of the system (3.3)(3.4) on the new artificialdataset. In one of the simulations we get the following:

α10 = 0.33195;α11 = 0.46721;α12 = −0.38036

α20 = 0.05583;α21 = 0.02517;α22 = 0.24602

Following the shock the AA line shifts up while the VV line shifts down(slightly). Both lines become flatter. Figure 6.1 magnifies a small portion ofthe (a, V ) plane in the proximity of the steady state.The coordinates of the new steady state E1 are

a1 = 0.55691;V1 = 0.09263

with a1 > a0 and V1 < V0. The EFP in the new steady state will therefore

28

Page 30: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Figure 6.1: Effects of a positive monetary policy shock on the demarcationlines. Solid lines: m0 = 200; dashed lines: m1 = 350.

be lower than in the old steady state:

f1 ≡βα′

a1

(1 +

V1

a21

)= 9. 327 6× 10−5

The real interest rate and the output gap can be computed from thereduced form (2.22)(2.23) using the value for f1 above. They are:

x1 = 0.96926

r1 = 0.0019561

with x1 > x0 and r1 < r0.The first round effect of the monetary shock is the decrease of the interest

rate and the increase in output given the original steady state distribution ofthe equity ratio due to the shift of the LM curve down along the original IScurve as shown in figure 6.2.The interest rate and the output gap change on impact by

29

Page 31: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Figure 6.2: Effects of a positive monetary policy shock on the IS-LM appa-ratus. Solid lines: m0 = 200; dashed lines: m1 = 350.

∆r1st = (Γ1 − Γ0)[σν

λw − (w − σ) f0

]∆x1st = (m1Γ1 −m0Γ0)

σ νλw − (w − σ) f0

w − σ

where Γi =(w − σ + σ ν

λmi

)−1; i = 0, 1.Notice that Γ1−Γ0 < 0 whilem1Γ1−

m0Γ0 > 0.The first round effect triggers a dynamic upward adjustment of the equity

ratio for each and every firm. As a consequence the cross sectional meangoes up and the variance decreases (as shown in figure 6.1) pushing down theEFP. The reduction of the EFP is due to the change in the distribution andtherefore occurs only in the second round

∆f = βα′[(

1

a1

− 1

a0

)+

(V1

a31

− V0

a30

)]< 0

The contribution of heterogeneity is βα′(V1

a31

− V0

a30

).

30

Page 32: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

The decrease of the EFP pushes the IS curve up along the new LM curve.Due to this second shift also the interest rate and output change as follows

∆r2nd = −Γ1 (w − σ) ∆f

∆x2nd = −m1Γ1

w − σ∆f

Notice that the second round effect on the interest rate is positive andoffsets in part the first round negative effect. In fact in the second roundthe IS curve shifts up along the positively sloped LM curve (see the zoomon the area of interest in figure 6.2). For the same reason, the second roundeffect on the output gap is positive, magnifying the first round effect. 28

The initial shock (first round increase of the output gap due to first rounddecrease of the interest rate) is amplified through the financial acceleratormechanism (second round decrease of the EFP). Heterogeneity contributesto the magnification of the initial shock because the reduction of dispersionwill add to the decrease of the EFP.In (6.1) we report the magnitude of the effects using the numerical values

of the steady state moments of the distribution and the parameters set intable 3.1

1st round effect 2nd round effect∆f = −7.73× 10−7

∆r1st = −1.41× 10−3 ∆r2nd = 1.6× 10−8

∆x1st = 2.12× 10−2 ∆x2nd = 1.13× 10−5

(6.1)

Also in this case most of the effect of the shock must be traced back tothe first round impact. The second round effect on the interest rate is fiveorders of magnitude smaller than the absolute value of the first round effect.The second round effect on the output gap is three orders of magnitudesmaller than the absolute value of the first round effect.The contribution ofheterogeneity (−1.61× 10−7) is a quarter of the effect on the EFP.

28This result is reminiscent of a similar outcome in Bernanke and Blinder’s CC-LMmodel (Bernanke and Blinder, 1988). In their framework a monetary shock makes the LMcurve shift down and the CC curve shift up. There is therefore an amplification of theshock on output.

31

Page 33: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

The financial amplification is truly small, almost negligigle. This re-sult is prima facie surprising in the light of the magnitude of the monetaryshock. Money supply has almost doubled but the financial accelerator hascontributed relatively little to the increase of output. This is due to thelimited impact of changes in distribution on the EFP, which in turn can betraced back at least in part to the limited size of bankruptcy costs.

7 Montecarlo analysis

We have run Montecarlo simulations focusing on the parameters α and m inorder to check the robustness and sensitivity of the results discussed in theprevious sections to the specific configurations of the simulation procedure.First of all, we have simulated the model for six regularly spaced values of

the bankruptcy threshold α in the interval [0.02, 0.17] (the other parametersvalues are listed in table 3.1). For each value of α we have run 20 simulationswith different random seeds. Each simulation generates artificial data for thecross sectional mean and variance of the equity ratio. We have estimated thecoeffi cients αij (i, j = 0, 1, 2) of the dynamic system (3.3) (3.4) by means oflinear regression on the data generated by each simulation. Hence we havegot 20 estimates αsij, s = 1, 2, ..., 20 for each coeffi cient. Finally, we have

taken the mean (across simulations) of the 20 estimates αij = 120

20∑s=1

αsij.

For each of the six αij coeffi cients we have plot the mean estimate as afunction of α in figure 7.1. Visual inspection leads to conclude that α12, α20

and α21 are increasing with α while α11 and α22 are decreasing with α. Thecoeffi cient α10 has no clear tendency. It is worthnoting that the coeffi cientα12 turns from negative to positive with an increase in α.The changes in thecoeffi cients due to the increase of α impact upon the slope and the interceptof the AA and VV lines.29

The linear regression of the mean estimate of each coeffi cient on α returnsthe β parameters defined as follows:

αij = β1 + β2α i, j = 0, 1, 2

which are shown in table 7.1. The results of the regression confirm the

29When α becomes greater than 0.07, the AA line becomes upward sloping. The result-ing steady state may turn into a saddle point.

32

Page 34: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Figure 7.1: Coeffi cients α1j (first column) and α2j (second column) as func-tions of α

conclusion drawn from visual inspection. Coeffi cients which are increasing(decreasing) with α are characterized by a positive (negative) β2, statisticallysignificant (at the 5% level). In this case we replace the coeffi cient with alinear relationship. For example α12 = −0.3891 + 5.6192α. When β2 is sta-tistically not significant we approximate the coeffi cient with β1. For exampleα10 = 0.3227.Plugging the linear relationships estimated above into the equations that

define the steady state (as, Vs) of system (3.3) (3.4) we get the plots of thefirst row of figure 7.2. Since as is decreasing and Vs is increasing with α theexternal finance premium is unambiguosly increasing with α. The interestrate and output gap are therefore decreasing with α as shown by the secondrow and the first panel in the third row of figure 7.2.The last panel of the figure shows the AA and VV lines generated by

the mean estimated coeffi cients with α0 = 0.02 and α1 = 0.05. The finan-cial shock makes the AA line shift down and the VV curve shift up (albeitonly marginally) so that as goes down and Vs goes up. The values of thecoeffi cients and of the steady state values are reported in table 7.2. TheseIn figure 7.3 we have shown the shift of the IS curve as a consequence

of the financial shock. These results are consistent with the conclusions wehave drawn in section 5 on the basis of a run of simulations only.We have simulated the model also for regularly spaced values of the money

supply m in the interval [200, 450] (the other parameters values are in table3.1). For each value of m we have run 20 simulations with different random

33

Page 35: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

at = α10 + α11at−1 + α12Vt−1 β1 β2

α10 0.3227* -0.035α1j = β1 + β2α; j = 0, 1, 2 α11 0.5162* -1.7686*

α12 -0.3891* 5.6192*

Vt = α20 + α21at−1 + α22Vt−1 β1 β2

α20 0.0569* 0.0685*α2j = β1 + β2α; j = 0, 1, 2 α21 0.0133* 0.3025*

α22 0.2561* -0.9489*

Table 7.1: Effects of changes in α on the coeffi cients of the dynamical system(3.3) (3.4). Linear regressions on artificial data generated by the Montecarlosimulations.

α = 0.02 α = 0.05

α10 0.3227 α20 0.0583 α10 0.3227 α20 0.0603α11 0.4808 α21 0.0194 α11 0.4278 α21 0.0284α12 -0.2767 α22 0.2371 α12 -0.1081 α22 0.2087a 0.5730 V 0.091 a 0.5459 V 0.096r 0.003397 x 0.9483 r 0.003396 x 0.9461

Table 7.2: Steady state

34

Page 36: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Figure 7.2: Steady state values of a, V, f, r, x as functions of α

Figure 7.3: Shift of the IS curve as a consequence of the increase of α

35

Page 37: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Figure 7.4: Coeffi cients α1j (first column) and α2j (second column) as func-tions of m

seeds, we have got 20 estimates for each coeffi cient and we have taken themean (across simulations) of the 20 estimates.In figure 7.4 we plot the mean estimate of each αi,j coeffi cient as a function

of m.Only α10 and α12 show a clear tendency to increase and decrease respec-

tively with m. In all the other cases, the coeffi cients fluctuate around theirmean. We interpret this behaviour as a symptom of an unstable relationshipbetween money supply and the structure of the dynamic system.The linear regression of the mean estimate of each coeffi cient on m returns

the β parameters defined as follows:

αij = β1 + β2m i, j = 0, 1, 2

which are shown in the following table. The results of the regression confirmthe conclusion we can draw by visual inspection.In fact the β2 coeffi cients are not statistically significant in most of the

cases. Only α10 and α12 are related in a significant but weak way to m,namely α10 = 0.3212 + 0.00002m and α12 = −0.2882 − 0.00013m. In allthe other cases β2 is not statistically significant so that we approximate thecoeffi cient with β1 assuming away the inherent volatility of the coeffi cientrevealed by figure 7.4.Since the parameters that change with money supply affect only the AA

line, by construction the VV line is unaffected by monetary shocks.

36

Page 38: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

at = α10 + α11at−1 + α12Vt−1 β1 β2

α10 0.3212* 0.00002*α1j = β1 + β2m; j = 0, 1, 2 α11 0.4670* -0.00001

α12 -0.2882* -0.00013*

Vt = α20 + α21at−1 + α22Vt−1 β1 β2

α20 0.0585* -0.0000002α2j = β1 + β2m; j = 0, 1, 2 α21 0.0182* -0.000003

α22 0.2626* 0.00001

Table 7.3: Effects of changes in m on the coeffi cients of the dynamical system(3.3) (3.4. Linear regressions on artificial data generated by the Montecarlosimulations.

Plugging these estimates into the equations that define the steady state weget the relationship between (as, Vs) and m, plotted in the panels of the firstrow of figure 7.5. Both as and Vs are increasing with m. In principle thereforethe relationship between the EFP and money supply is unclear. It turns outhowever that the positive relationship between as and m is prevailing so thatthe EFP is decreasing with m. Therefore the interest rate is decreasing andthe output gap is increasing with m (see panels in the second row and firstpanel in the third row of the figure).The last panel of the figure shows the AA and VV lines generated by

the mean estimated coeffi cients when m = 200 and m = 350. The monetaryshock makes the AA line shift up along the upward sloping VV curve so thatboth as and Vs go up. In section 6 the AA line shift up and the VV curveshifts down so that Vs goes down. The values of the coeffi cients and of thesteady state values are reported in table 7.4.Comparing these results with those of 6, we conclude that the effect of

the monetary shock on the cross sectional mean is similar but the effect onthe variance is of opposite sign. Since the latter effect is negligible, the effectson the interest rate and the output gap is also broadly consistent with theprevious ones.

37

Page 39: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

m = 200 m = 350

α10 0.3252 α20 0.0585 α10 0.3282 α20 0.0585α11 0.4670 α21 0.0182 α11 0.4670 α21 0.0182α12 -0.3142 α22 0.2626 α12 -0.3337 α22 0.2626a 0.5553 V 0.093 a 0.5575 V 0.0931r 0.0034 x 0.9480 r 0.0020 x 0.9692

Table 7.4: Steady state

In figure 7.6 we have shown the shift of the IS and LM curves as a conse-quence of the monetary shock. The second round effect which shifts the IScurve up is negligible; we have to zoom in to appreciate it visually.

8 Conclusions

We illustrate a methodology to resume macroeconomic thinking in a settingcharacterized by heterogeneous agents building a M&ABM in two interlinkedparts.First of all we develop a macroeconomic model in the following steps:Step M1. We derive a microeconomic behavioural rule for investment.

The individual investment ratio is a function of the the interest rate and ofthe individual equity ratio (which determines the EFP at the micro level).Step M2. We apply a stochastic aggregation procedure (the "modified"

representative agent) to the individual investment ratio in order to derive theaverage investment ratio. The average investment ratio depends non linearlyupon the mean and the variance of the distribution of the equity ratio (whichdetermine the average EFP). The distribution of the equity ratio is changingover time and affects investment accordingly.Step M3. We model households’choice of the optimal consumption plan

and desired money balances in a fairly standard conceptual framework.Step M4. Equilibrium on the goods market yields a relationship be-

tween the interest rate and the output gap reminiscent of the IS curve. TheEFP (and therefore the moments of the distribution of the equity ratio) isa shifter of the IS curve. Equilibrium on the money market yields a rela-

38

Page 40: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Figure 7.5: Coeffi cients α1j (first column) and α2j (second column) as func-tions of m

Figure 7.6: Shifts of the IS and LM curves as a consequence of the monetaryshock

39

Page 41: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

tionship between the interest rate, the output gap and real money balancesreminiscent of the LM curve. In the end we obtain a simple optimizing IS-LM model, which can be solved for the equilibrium values of the interest rateand the output gap. In equilibrium rt and xt turn out to be functions of themoments of the distribution of the equity ratio at−1 and Vt−1.The difference between the traditional microfoundations based on the

representative agent and the new ones is the explicit consideration of themoments of the distribution of the equity ratio. By focusing on momentswe resume macroeconomic thinking in its purest form, i.e. at a general, nonmicroeconomic, level, in a setting with heterogeneous agents.So far we have treated the moments of the distribution as pre-determined

variables (at−1 and Vt−1). In order to endogenize the dynamics of the mo-ments, we have to go back to the micro level. We build an agent based modelin the following steps.Step A1. We define the law of motion of the individual equity ratio

ait which is a function, among other things, of the interest rate. We plugthe equilibrium value of the interest rate rt derived in step M4 into theindividual law of motion. Since in equilibrium the interest rate is a functionof the moments of the distribution, the current individual equity ratio turnsout to be a function of the lagged cross-sectional mean and variance of theequity ratio.Step A2. We run computer simulations to determine the evolution over

time of the individual equity ratios. The time series of the cross sectionalmoments (mean at and variance Vt) are computed directly from the individualtime series of simulated equity ratios.Step A3. We estimate a linear system of first order difference equations

in at, Vt by means of OLS regression on the time series of the cross sectionalmoments. Once we get numerical values for the parameters we can studythis system by standard analytical techniques. Given the initial condition(at−1, Vt−1) the system generates recursively (at, Vt) which determines newexternal finance premium ft+1 and —through the reduced form of the IS-LMmodel —the new interest rate rt+1 which in turn will impact upon ait+1 andso on, as shown in figure 8.1.The steady state of this system (a0, V0) are the numerical values of the

first and second moments of the "long run" distribution of the equity ratio.Moreover we can easily determine the long run external finance premium f0.Step A4. We plug the long run external finance premium into the equi-

librium values of the macroeconomic endogenous variables. Therefore we

40

Page 42: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

Figure 8.1: The structure of the M&ABM

41

Page 43: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

determine the long run output gap and interest rate x0 and r0.We have assessed the impact of a negative financial shock and of a mon-

etary expansion, showing that the financial amplification effect is captureddiagrammatically by shifts of the IS curve due to changes in the moments ofthe distribution of financial conditions. The financial amplification is small,expecially in the case of a monetary shock. This is due, at least in part, tothe small size of the bankruptcy cost that we have assumed in the parametersetting.The benchmark model lends itself to a wide range of possible extensions,

such as a different monetary policy setting in a flexprice environment, theexplicit consideration of income and wealth inequality among households,the role of fiscal policy and many others. We find the results reached so farencouraging. We hope the methodology we propose can open a path to thedevelopment of hybrid models which nest and ABM into a macroeconomicframework in such a way as to allow for a clear conceptual understanding ofmacroeconomic developments.

A The probability of bankruptcy

In this section we describe a microfoundation for the probability of bank-ruptcy along the lines of Greenwaldand Stiglitz (1993). In the text, for thesake of simplicity, we adopt a simplified "reduced form" specification (equa-tion (2.2)) of the probability of bankruptcy which focuses on only one of thedeterminants —namely the equity ratio —brought to the fore by the followingmicrofoundation,

Net wortht isAit = Ait−1+πit where πit = uiYit−wNit−rKit−1

2

I2it

Kt−1

. We

define total cost as TCi = wNi+rKi+1

2

I2it

Kt−1

. HenceAit = Ait−1+uiYit−TCi.A firm goes bankrupt if Ait < 0, i.e. if:

ui < ACi −Ait−1

Yit≡ ui

where ACi = TCi/Yit is average cost. In words: The firm goes bankrupt ifthe realization of the random shock is smaller than a threshold ui which inturn depends on equity, output, and the average cost. By assumption, theshock is a uniformly distributed random variable ui with support (0, 2), so

42

Page 44: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

that the probability of bankruptcy is:

Pr(ui < ui) =ui2

=1

2

(ACi −

Ait−1

Yit

)(A.1)

Let’s assume, as in the text of the paper, that the cost of bankruptcy isCBi = βKi.Plugging Yit = νKit and Nit =

ν

λKit into (A.1) and rearranging, the

probability of bankruptcy turns out to be:

Pr(ui < ui) =1

2

{w

λ+r

ν+

1

2

(Kit −Kit−1)2

νKt−1Kit

− ait−1

νKit

Kit−1

}(A.2)

The probability of bankruptcy depends on a large number of parameters andendogenous variables, the equity ratio being only one of them. Adopting thespecification (A.2) would have made the analysis very messy. In order tosimplify the argument, we adopt the approximation (2.2) of the text.

B Household’s optimization

The problem of the representative household is

maxct,mt,bt

Ut =∑∞

s=0 ξs (ct+s)

δ (mt+s)1−δ

s.t. ct +mt + bt = wxt + σ (1− xt) +mt−1 + (1 + rt−1) bt−1

(B.1)

From which we obtain the following Lagrangian:

L =

∞∑s=0

ξs{

(ct+s)δ (mt+s)

1−δ +

+λt+s [wxt+s + σ (1− xt+s) +mt+s−1+

+ (1 + rt+s−1) bt+s−1 − ct+s −mt+s − bt+s]}

The FOCs are:∂L∂ct

= δ (ct)δ−1 (mt)

1−δ = λt (B.2)

43

Page 45: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

∂L∂mt

= (1− δ) (ct)δ (mt)

−δ − λt + ξλt+1 = 0 (B.3)

∂L

∂bt= −λt + ξλt+1 (1 + rt) = 0 (B.4)

Solving (B.2) (B.3) (B.4) for ct,mt we obtain the following relation betweenoptimal consumption and money demand:

mt =1− δδ

1 + rtrt

ct

assuming, for the sake of simplicity, δ = 1/2 we get equation (2.14) in thetext.

C Law of motion of the equity ratio

Assuming that there are no dividends, the is defined as Ait = Ait−1 + πit.Recalling (2.1) we get:

Ait = Ait−1 + uitYit − wNit − rtKit −1

2

I2it

Kt−1

; i = 1, 2, ..., z

Dividing by Kit we obtain the law of motion of the equity ratio:

ait = ait−1Kit−1

Kit

+ uitν − wν

λ− rt −

1

2

I2it

KitKt−1

Recall now that git =Iit

Kit−1

=τ itsit−1

where sit−1 =Kit−1

Kt−1

. Therefore

Kit−1

Kit

=1

1 + git=

sit−1

sit−1 + τ it. Moreover

I2it

KitKt−1

=I2it

K2

t−1

Kt−1

Kit−1

Kit−1

Kit

=

τ 2it

sit−1 + τ it. Plugging these expressions into (??) we obtain:

ait = ait−1

(sit−1

sit−1 + τ it

)+ uiν − w

ν

λ− rt −

1

2

τ 2it

sit−1 + τ it

which is (3.2).

44

Page 46: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

D Coding the ABM

In this appendix, we detail the logical sequence of the code which governsthe simulations of the ABM. The parameter setting is defined in table 3.1.At the beginning of the time horizon considered, i.e. in quarter t=1, the

initial conditions are chosen as follows:

• the equity ratio ai1 of the i-th firm, i = 1, ...1000, is drawn from a uni-form distribution over the (α, 1) support. Therefore the cross-sectionalmean and variance of the initial equity ratios can be computed asa1 = mean

(i)(ai1) ;V1 = variance

(i)(ai1);

• the initial capital stock Ki1 is drawn from a uniform distribution.Therefore, the initial relative size can be computed as si1 = Ki1/K1

where K1 = mean(i)

(Ki1) ;

From t = 2 on:

• the external finance premium can be computed as f2 =βα′

a1

(1 +

V1

a21

).

• the interest rate can be computed from (2.22). For example in t = 2we have

r2 = Γ0

[σν

λw − (w − σ) f2

]where Γ0 =

(w − σ + σ

ν

λm)−1

• the output gap can be computed from (2.23). For example in t = 2 wehave

x2 = Γ0m

w − σ

[σν

λw − (w − σ) f2

]− σ

w − σ

• the individual investment ratio can be computed from (2.4). For ex-ample in t = 2

τ i2 = γ −(r2 +

βα′

ai1

)

45

Page 47: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

• plugging these data into (3.2) we can track the evolution over time ofthe individual equity ratio. For instance, in period 2 we get:

ai2 = ai1

(si1

si1 + τ i2

)+ ui2ν − w

ν

λ− r2 −

1

2

τ 2i2

si1 + τ i2

where si1, τ i2, r2 have already been determined as above and ui2 is anidiosyncratic shock drawn from a uniform distribution over the (0, 2)support;

• the individual capital stock can be determined according to the follow-ing law: Kit = Kit−1 + τ itKt−1 where Kt−1 = mean

(i)(Kit−1) because, by

definition, Iit = τ itKt−1. For instance

Ki2 = Ki1 + τ i2K1

so that the relative size will be si2 = Ki2/K2.

• the cross-sectional mean and variance of the equity ratios can be com-puted — for instance a2 = mean

(i)(ai2) ;V2 = variance

(i)(ai2) —and the

sequence can be iterated.

The i-th firm goes bankrupt and exits if the equity ratio hits the bank-ruptcy threshold. In this case, the exiting firm is replaced by a new firmwhose equity ratio is drawn from a uniform distribution over the (α, 1) sup-port.Symmetrically, if the equity ratio reaches unity, the firm is completely

self-financed, so that it does not need to resort to external finance to carryon production and therefore does not run the risk of bankruptcy. To keepthe analysis as simple as possible, we will imagine that when the equity ratiohits the ceiling, the firm will be restarted with an equity ratio drawn from auniform distribution over the (α, 1) support.In a sense, therefore, the i-th firm is a dynasty: every time the firm

goes bankrupt or becomes completely self-financed, the firm will be restartedwith a new stochastic equity ratio. This device allows to keep the equityratio within the admissible (α, 1) range.

46

Page 48: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

References

[1] Agliari, A., Delli Gatti, D., Gallegati, M. and Gardini, L. (2000), “GlobalDynamics in a Non-linear Model of the Equity Ratio”, Journal of Chaos,Solitons and Fractals.

[2] Bernanke, B. and Blinder, M. (1988), “Is it Money or Credit or Both orNeither”, American Economic Review, 78.

[3] Bernanke, B. and Gertler, M. (1989), “Agency Costs, Net Worth andBusiness Fluctuations”, American Economic Review, 79, pp. 14-31.

[4] Bernanke, B. and Gertler, M. (1990), “Financial Fragility and EconomicPerformance”,Quarterly Journal of Economics, 105, pp. 87-114.

[5] Bernanke, B., Gertler, M. and Gilchrist, S. (1999), “The Financial Ac-celerator in Quantitative Business Cycle Framework”, in Taylor, J. eWoodford, M. (eds), Handbook of Macroeconomics, vol 1C, North Hol-land, Amsterdam.

[6] Bris, A., Welch, I., Zhu, N. (2006), "The Costs of Bankruptcy:Chapter 7Liquidation vs. Chapter 11 Reorganization", Journal of Finance, vol.61,pp. 1253-1303.

[7] Gallegati, M., Palestrini, A., Delli Gatti, D. and Scalas, E. (2006) “Ag-gregation of Heterogeneous Interacting Agents: The Variant Represen-tative Agent”Journal of Economic Interaction and Coordination, vol. 1pp. 5-19.

[8] Gertler, M. and Hubbard, G. (1988), "Financial Factors in BusinessFluctuations", Proceedings, Federal Reserve Bank of Kansas City.

[9] Greenwald, B, Stiglitz, J. and Weiss, A. (1984) "Informational Imper-fections in the Capital Market and Macroeconomic Fluctuations" (withJ. Stiglitz and A. Weiss), American Economic Review.

[10] Greenwald, B. and Stiglitz, J.(1988), “Imperfect Information, FinanceConstraints and Business Fluctuations”, in Kohn, M. and Tsiang, S.(eds.)

47

Page 49: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

[11] Greenwald, B. and Stiglitz, J.(1990), “Macroeconomic Models with Eq-uity and Credit Rationing”, in Hubbard, R.G. (ed.) Asymmetric In-formation, Corporate Finance and Investment, Chicago: University ofChicago Press.

[12] Greenwald, B. and Stiglitz, J. (1993), “Financial Market Imperfectionsand Business Cycles”, Quarterly Journal Of Economics, vol. 108, pp.77-114.

[13] Greenwald, B. and Stiglitz, J.(2003), “Towards a New Paradigm in Mon-etary Economics”Cambridge University Press.

[14] Krusell, P. and Smith, A. (1998), “Income and Wealth Heterogeneity inthe Macroeconomy” Journal of Political Economy, vol. 106, no. 5 pp.867-896.

[15] Myers, S. andMajluf, N. S. (1984) "Corporate Financing and InvestmentDecisions when Firms have Information that Investors Do Not Have",Journal of Financial Economics, vol. 13, no. 2, pp. 187-221.

[16] Schmitt-Grohé, B. and Uribe, M. (2004), "Solving Dynamic GeneralEquilibrium Models Using a Second-order Approximation to the PolicyFunction", Journal of Economic Dynamics and Control, vol. 28, pp.755-775.

[17] Tesfatsion, L. (2006) “Handbook of Computational Economics: Volume2, Agent-Based Computational Economics”, Handbooks in EconomicsSeries, Elsevier, North-Holland Imprint, Amsterdam, The Netherlands.

[18] White, M.J. (1989), "The Corporate Bankruptcy Decision", Journal ofEconomic Perspectives, vol.3, pp.129-151

48

Page 50: E Pluribus Unum: Macroeconomic Modelling for …E Pluribus Unum: Macroeconomic Modelling for Multi-agent Economies Tiziana Assenza Università Cattolica del Sacro Cuore and CeNDEF,

DOCUMENTS DE TRAVAIL GREDEG PARUS EN 2012GREDEG Working Papers Released in 2012

2012-01 Frédéric Marty Les clauses environnementales dans les marchés publics : perspectives économiques2012-02 Christophe Charlier Distrust and Barriers to International Trade in Food Products: An Analysis of the US- Poultry Dispute2012-03 Gérard Mondello The Equivalence of Strict Liability and Negligence Rule: A Trompe-l’Œil Perspective2012-04 Agnès Festré & Pierre Garrouste Somebody May Scold You! A Dictator Experiment2012-05 Dorian Jullien & Nicolas Vallois A Probabilistic Ghost in the Experimental Machine2012-06 Gérard Mondello Ambiguity, Agency Relationships, and Adverse Selection2012-07 Flora Bellone, Kozo Kiyota, Toshiyuki Matsuura, Patrick Musso & Lionel Nesta International Productivity Gaps and the Export Status of Firms: Evidence from France and Japan2012-08 Tiziana Assenza & Domenico Delli Gatti E. Pluribus Unum: Macroeconomic Modelling for Multi-Agent Economies