Agent Based Modelling CambridgeElements
Agent Based Modelling CambridgeElements
Agent-Based Modelling
Agent-Based
Modelling
About the Series Series Editors
Elements in Complexity and Giovanni Dosi
Agent‑Based Economics will present Sant’Anna School of
the state-of-the-art in complexity Advanced Studies
and agent-based economics with
the aim of offering a systematic
and easy-to-access thematic
Mauro Gallegati
Università Politecnica Mauro Gallegati,
Simone Landini and
delle Marche,
organization of both consolidated Ancona
results, and the latest developments
Simone Landini
in the fields. Contributions are
meant both as a support to scholarly
research and as teaching tools.
IRES Piemonte,
Torino
Giacomo Gallegati
Maria Enrica Virgillito
Sant’Anna School of
Advanced Studies
AGENT-BASED MODELLING
Mauro Gallegati
Università Politecnica delle Marche, Ancona
Simone Landini
IRES Piemonte, Torino
Giacomo Gallegati
Università degli Studi di Torino, Collegio Carlo
Alberto, Torino, and Université Paris
1 Panthéon-Sorbonne, Paris
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Shaftesbury Road, Cambridge CB2 8EA, United Kingdom
One Liberty Plaza, 20th Floor, New York, NY 10006, USA
477 Williamstown Road, Port Melbourne, VIC 3207, Australia
314–321, 3rd Floor, Plot 3, Splendor Forum, Jasola District Centre,
New Delhi – 110025, India
103 Penang Road, #05–06/07, Visioncrest Commercial, Singapore 238467
www.cambridge.org
Information on this title: www.cambridge.org/9781009547635
DOI: 10.1017/9781009547628
© Mauro Gallegati, Simone Landini and Giacomo Gallegati 2024
This publication is in copyright. Subject to statutory exception and to the provisions
of relevant collective licensing agreements, no reproduction of any part may take
place without the written permission of Cambridge University Press & Assessment.
When citing this work, please include a reference to the DOI 10.1017/9781009547628
First published 2024
A catalogue record for this publication is available from the British Library.
ISBN 978-1-009-54763-5 Hardback
ISBN 978-1-009-54761-1 Paperback
ISSN 2732-5067 (online)
ISSN 2732–5059 (print)
Cambridge University Press & Assessment has no responsibility for the persistence
or accuracy of URLs for external or third-party internet websites referred to in this
publication and does not guarantee that any content on such websites is, or will
remain, accurate or appropriate.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling
DOI: 10.1017/9781009547628
First published online: November 2024
Mauro Gallegati
Università Politecnica delle Marche, Ancona
Simone Landini
IRES Piemonte, Torino
Giacomo Gallegati
Università degli Studi di Torino, Collegio Carlo Alberto, Torino,
and Université Paris 1 Panthéon-Sorbonne, Paris
Author for correspondence: Simone Landini, [email protected]
JEL classifications: C15, C52, C63, D85, E17, E27, E37, E47, F17, F47, G17, H30,
L14
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Contents
Introduction 1
1 Agent-Based Modelling 2
3 Conclusion 37
References 40
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 1
Introduction
This Element is about Agent-Based Modelling (ABM) as a tool for the analysis of
socioeconomic complex systems. In this respect it can be considered as the
‘natural twin’ of Landini et al. (2024) about complexity in economics.
The main aim of this Element is to introduce students and scholars to the
ABM world, which is a growing stream of research with many applications in
different fields within the natural and the social sciences. After reading this
Element, the reader will not be able to specify a model based on agents but will
have a synthetic and overall view of the main notions and topics of ABM, and
how and why they are related to complex systems analysis.
One main point of this Element is to be an accessible guide to taking the first
steps in the field. Starting from the main notions and with some historical
background, without technicalities, the main tools of ABM, general characteris-
tics, and practices are discussed. A second point is to provide a rich and up-to-date
collection of references for further developments: students will largely benefit
from the references.
Working with ABM requires modelling, either formal or computational, and
computer programming skills. Not only that, but as in any kind of modelling
activity, it also requires abstraction capabilities without transforming the
research problem into a mathematical or computing problem, that is, without
falling into the formalist-computational trap into which mainstream economics
has fallen (Landini et al., 2020). Differently said, even though a model based on
agents consists of an artificial simulation of a real phenomenon, the goal is
reaching a deeper knowledge of facts, especially when these cannot be studied
with repeated experiments for events that cannot be replicated. To this end,
formalistic abstraction is useful for simplification, neglecting details that can be
considered in a second step, without losing touch with reality. In ABM one
studies a ‘behavioural phenomenology’ observable in the real world, to construct
virtual agents that simulate the behaviour of real agents by means of appropriate
algorithms.
Agent-based models are particularly suited for the study of complex systems
because they allow one to managing agents’ that realise network formation and
interaction.
Nevertheless, there are lights and shadows. Although the ABM approach is
promising, there are elements of concern. Agent-Based Modelling still lacks
a sufficiently structured theory, since it is at a level of maturity not yet compar-
able with that of the mainstream, at least to the extent of considering ABM not
just an approach or a technique but a discipline as well as econometrics that can
be applied in almost every field of science. In ABM there is no shortage of
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
2 Complexity and Agent-Based Economics
1 Agent-Based Modelling
Agent-based models potentially present a way to model the [. . .] economy as a complex
system, as Keynes attempted to do, while taking human adaptation and learning into
account, as Lucas advocated. Such models allow for the creation of a kind of virtual
universe in which many players can act in complex – and realistic – ways.
J. Doyne Farmer and Duncan Foley, ‘The economy needs agent-based modelling’.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 3
both related to their endowments and to their ways of acting and interacting,
very often only in a local network. Moreover, artificial agents have the possi-
bility of changing their behaviours by choosing among a set of rules of action, as
if trying to adapt to changes in the context.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
4 Complexity and Agent-Based Economics
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 5
As we will see, it is through interaction that the agent becomes a ‘social’ entity
open to the outside world. Moreover, as the economic agent can behave as it
considers more opportune in relation to its own rules of behaviour, that is, it is free
to follow its own will, so also the artificial agent of an ABM can be constructed in
such a way as to be able to choose how to behave when the context changes.1
The agent is therefore capable of adapting to the changing state of its environ-
ment and learning from its own or others’ experience. To be able to learn, the
agent must have memory and sociality. Sociality means that the agents make
a community and interact, sometimes competitively, and exchange information
and can change their behavioural rules.
The analogy between the notion of an agent and the human individual obvi-
ously is incomplete. Among many other features overlooked here, it is worth
mentioning that some properties are exclusively human, and therefore (almost)
impossible to be trained in an agent of a model; for example, the human capacity
of abstract thinking, of posing new problems in an autonomous way, and of
feeling and emotions. The human being is certainly rational, but rationality does
not consist in finding the optimal solution according to some calculation
scheme. Rationality is reasonableness, that is the ability to do the best we
can, even while giving up the theoretical optimum. The information available
1
In agent simulation, it is possible to construct agents who conceal important information from
others, attempt to extract confidential information from others, or mislead them to act to their
advantage. The so-called belief-desire-intention (BDI) scheme, inspired by Bratman’s (1987)
theory of practical reasoning, allows us to describe the mechanism by which the agent separates
the planning phase of its actions from the implementation, and allows us also to treat agents with
limited rationality.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
6 Complexity and Agent-Based Economics
is not only limited and unequally distributed, but each agent is endowed with
bounded rationality.2 The fact that an entity is endowed with limited rational-
ity means that its decision-making capabilities are limited even in the presence
of full information. It is with these resources that the agent faces any decision-
making problem. Consequently, the optimality of the solution to the agent’s
decision problem can at most be posed in terms of a relative or local optimum,
not an absolute or global optimum.
The arguments discussed so far sketch the notion of an agent based on
a ‘behavioural phenomenology’ observable in the real world. With these charac-
teristics in mind, we now consider how we can construct a virtual agent that
simulates a real agent. Initially, we can design the agent as an algorithm. An agent
of an ABM model is a software that considers at least two of the discussed
features: structural heterogeneity, which refers to the variables (or data) that
describe its internal state and endowments, and behavioural heterogeneity,
which refers to the decision and behaviour rules (or functions), and thus also
refers to the interaction with the outside world.
2
The notion of ‘bounded rationality’ is attributed to Herbert Simon (1957).
3
In terms of direct interaction, this can be local, if everyone communicates only with a small group
of counterparts, or global, if everyone communicates with everyone in the system. Local or
global, depending on the purpose, direct interaction can be voluntary – the individual chooses his
counterparts – or induced – the individual has no choice but to communicate only with given
counterparts. If the association between counterparts is governed by choice criteria, typically
based on expectations about the successful outcome of their encounter, the interaction is said to be
stochastic, that is, the interaction is interpretable as an event. The simplest, and most particular,
case of stochastic interaction is when individuals meet by chance, which is tractable with
a random communication framework (Kirman, 1983) or with ‘random matching’ procedures
(Ioannides, 1990; Bak et al., 1996). If the interacting individuals do not choose their counterparts,
nor do they meet them randomly, then the interaction is induced and thus we speak of determinis-
tic interaction, that is, conveyed by a predetermined relational infrastructure.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 7
response to the former. In all this what matters is that one speaks to the other and
that the speech is exclusive to each other, not to multiple different entities.
Interaction is an event, situated in space and time, that occurs as a reciprocal
action between entities enabled to communicate by their interfaces. The spatio-
temporal situation concerns the historicity of their relationships. That is, the two
agents may already be related for reasons other than those for which they now
interact, or it is precisely for interacting that they now establish a new relationship.
In fact, at the basis of interaction there is ‘sociality’, namely, connectivity (Casti,
1979) understood as belonging to a network structure (also multi-level) in which the
nodes represent the agents and the links represent the connections that support the
interactions.4 The network that supports the interaction is a relational infrastructure
in which two agents can recognise each other and decide whether to communicate
or not. The spatio-temporal situation is therefore defined by a relational infrastruc-
ture that can be a network in which the relationships among the nodes already exist,
but then the relationships are activated or deactivated in the time, or where the
number of nodes varies in the time and, with it, also the valence of the ties.
Each network as relational infrastructure that supports interaction can be
associated with a graph, where nodes/agents can be connected by oriented
links, that is, with an arrow uniquely oriented from A to B or from B to A, or
by simple links, that is, with a segment doubly oriented from A to B and also from
B to A. In the first case the matrix that represents the connections is said to be of
incidence, and in the second case the matrix that represents the connections is said
to be of adjacency: the last one is necessarily symmetrical, while the other may not
be. In both cases, the existence of the relationship can be indicated with the value 1,
while 0 indicates the absence of the relationship. That is, if, at the intersection of
the row of node A and the column of node B, 1 is written, then A and B interact,
and vice versa. Sometimes, instead of binary values, you can use ‘weighted’ values
that express the intensity of the relationships and are represented on the graph with
more or less marked traits depending on the intensity. A network as a relational
infrastructure can change in time – both with respect to the links that turn on (1) or
turn off (0) and with respect to the number of nodes that compose the oriented or
simple graph – depending on the state and behaviour of the agents.
Indirect interaction also admits a graphical representation. For example, firms
and consumers can be indirectly related by the fact of being customers of the same
bank, even if none of the consumers either works for any of these firms or is in any
way a customer of it: what agglomerates these agents into a network, typically
star-shaped, is only the fact of being customers of a bank. A bit more sophisticated
4
For an introduction to network theory and practice see, among others, Wasserman and Faust (2008),
Scott and Carrington (2011), Caldarelli and Catanzaro (2012), and Knoke and Yang (2019).
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
8 Complexity and Agent-Based Economics
and factually real is the following example. Suppose that the members a group of
consumers are all customers of bank A (A-consumers) and a group of firms are all
customers of bank B (B-firms), and that A and B in turn interact in the interbank
market. The A-consumers and the B-firms are related and interact indirectly to the
extent that the behaviours of the A-consumers and the B-firms change the type of
relationship between A and B, such that A changes its relationships with its
A-consumers and B changes its relationships with its B-firms. In this case the
overall graph is composed of two stars connected by a bridge between A and
B. The topology is further complicated if some A-consumers are customers of
some B-firms and if some B-firms have hired some A-consumers. In this case the
stars are melded into one single network that is said to be bipartite.5 On the first
level we place A and B between them, and on the second level we place all
A-consumers connecting them to each other and to A and all B-firms connecting
them to each other and to B, but then we also draw arcs between the subset C(A|B)
of A-consumers buying from B and the subset F(B|A) of B-firms that have hired
A-consumers. Also, the bipartite network can change through time.
In fact, a network as a relational infrastructure that supports interactions is an
emergent phenomenon of the system, due to the interactive behaviour of agents of
various species. Note that a network can also exist between agents of the same type,
at most heterogeneous with respect to their endowments – structural heterogeneity –
while it is not necessary that they are heterogeneous also with respect to their
behaviours – behavioural heterogeneity – or to their species. However, as men-
tioned earlier, heterogeneity and interaction are coupled categories of complexity
(Landini and Gallegati, 2014). If we interact in order to acquire information, as
stated earlier according to Rosen (1986), and information is typically asymmetric
and incomplete, it is also true that interaction can both contribute to diffuse part of
the information but also create new asymmetries, hence a new need to interact and
so on. So, in fact, what mainly counts in characterising a system as complex is the
interaction that is part of the behavioural heterogeneity of the agents. On the other
hand, although animated by the same goal, even if initially homogeneous in their
endowments, agents can interact in different ways, for example by cooperating or
competing. When we deal with complex human systems, we analyse relational
networks. These support the interactive behaviours from which phenomena emerge
that are proper to the system, and the same network is a representation of the
system and not of the single individuals that compose it. From a complex
system emerges a complex network (Reichardt, 2009; Caldarelli, 2010;
5
A bipartite network is a network in which there are at least two disjoint groups of nodes in which some
nodes of the first group, which can be among them in relation also for the simple belonging to the
group, connect to some nodes of the second group, which can be among them in relation also for the
simple belonging to the group. The two groups of nodes can be graphically represented on two levels.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 9
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
10 Complexity and Agent-Based Economics
6
Among a wider list of books, we recommend Billari et al. (2006), Tesfatsion and Judd (2006),
Wilensky and Rand (2015), Hamill and Gilbert (2016), Cioffi-Revilla (2017), and Railsback and
Grimm (2019).
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 11
modeled or represented, but only selected features. What is important is that the
model ‘behaves’ like the referent system . . . for what is essential is that
a simulation is a ‘dynamic’ model. As changes take place in the referent system,
they likewise take place in the model; functional as well as structural relation-
ships in the simulation are isomorphic with those of the referent system. (p. 161)
Both the simulation and the computation are based on the execution of a model by
means of a suitably instructed calculator but, differently from the simulation, the
computation does not need a model which is a formalised representation of a real
fact. These computational experiments return results, but of little practical value;
however, they are not entirely without value from an analytical and methodological
perspective. For example, the Shelling model of social segregation or Conway’s
Game of Life are computational experiments, and it is on this basis that Epstein and
Axtell’s (1996) Sugarscape model was developed. Similarly, it is from ‘toy models’
of the economy that actual simulation experiments were then developed, such as the
CATS model (Delli Gatti et al., 2011), the EURACE models (Cincotti et al., 2010;
Dawid et al., 2018) and, more recently, the CAN-ABM (Next-Generation Agent-
Based Model of Canada) model of Hommes et al. (2021) and the model of Poledna
et al. (2020) for predicting the macroeconomic effects of the COVID-related
lockdown in Austria.
Mainstream economics remains sceptical because it sees ABMS as black boxes
with too many degrees of freedom that would allow anything to be supported. Our
position, on the other hand, is that such models are fully transparent and micro-
founded by construction, the assumptions are explicit and so are the equations that
implement them. From a theoretical point of view, there is all the potential needed to
overcome the limitations of the mainstream method and orient research towards the
Economics of Complexity, and from an applicative point of view we have formal
bases, even if not yet consolidated and shared, that allow us to propose ABM as
a reference methodology even though validation is in the making, as we shall see in
Section 2.3.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
12 Complexity and Agent-Based Economics
The initial spur for developing agent-based models came in the 1930s when
physicist Enrico Fermi was trying to solve problems involving the transport
of neutrons, a sub-atomic particle, through matter. Neutron transport was
difficult to model as each step in a neutron’s journey is probabilistic: there is
a chance the particle will directly interact with, scatter off, or pass-by other
particles. Previous methods had tried to capture the aggregate behaviour of all
the neutrons at once, but the immense number of different possibilities for
neutron paths through matter made the problem very challenging.
Fermi developed a new method to solve these problems in which he treated the
neutrons individually, using a mechanical adding machine to perform the compu-
tations for each individual neutron in turn. The technique involved generating
random numbers and comparing them to the probabilities derived from theory. If
the probability of a neutron colliding were 0.8, and he generated a random number
smaller than 0.8, he allowed a ‘simulated’ neutron to collide. Similar techniques
were used to find the outgoing direction of the neutron after the collision. By doing
this repeatedly, and for a large number of simulated neutrons, Fermi could build
up a picture of the real way that neutrons would pass through matter. Fermi took
great delight in astonishing his colleagues with the accuracy of his predictions
without, initially, revealing his trick of treating the neutrons like agents.
The agent-based techniques Fermi and colleagues developed went on to play
an important role in the development of nuclear weapons and nuclear power. At
around the same time that Fermi was developing his technique, the first electronic
computers were becoming available at the world’s leading scientific institutions.
Computing power remains key to agent-based modelling today, with some of the
world’s supercomputers being harnessed for ever more detailed simulations.
By 1947 scientists had developed a name for this technique which reflected its
probabilistic nature: the Monte Carlo method. The story goes that the name was
inspired by Stanislaw Ulam’s uncle, who would often ask to borrow money by
saying he ‘just had to go to Monte Carlo’. In 1949, Metropolis and Ulam
published a paper together entitled ‘The Monte Carlo Method’ which explained
the many uses of the new technique of using random numbers to tackle problems.
Not all of these were agent-based models but all relied on using artificially
generated random numbers to solve problems. This more general Monte Carlo
technique has been applied very widely, for instance to calculating solutions to
equations with many parameters, to the management of risk and catastrophes, and
to investments in finance.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 13
The more general Monte Carlo method has the strength that it can very
efficiently explore a large number of possibilities. For instance, the usual way
for Fermi’s neutron problem to have been treated would have been to create a grid
of every single possibility and then fill in what happens for each of them. This
means that even implausibly unlikely scenarios are computed. Monte Carlo
instead focuses on the most likely outcomes. This property can make the differ-
ence to whether a particular problem is solvable or not. The Monte Carlo method
can also deal with distributions, for instance across income, which are not
described by a normal distribution.
The simulation to which Fermi refers is closer to the so-called Monte Carlo
method than to the ABM methodology.
Von Neumann proposed a theoretical machine capable of reproducing itself,
which is often remembered as the first example of a computational agent model.
The Polish mathematician suggested that the machine was described by a set of
cells on a grid, and based on this intuition (von Neumann, 1951) created what later
literature would call ‘cellular automata’. Another step forward is Conway’s Game
of Life (Gardner, 1970), which operates with simple rules of interaction between
agents that are identical except for their geographical location on a two-
dimensional chessboard. Conway can show that, depending on various initial
conditions, ‘regular’ aggregate structures emerge. One of the first models based
on interacting heterogeneous agents was Thomas Schelling’s (1971) segregation
model that produces an aggregate emergent result starting from individual dis-
order. In Figure 1 a simulation result of Schelling’s model is represented. Agents
are initially placed on a physical grid at random: 10 per cent of the cells are
maintained empty while the remaining 90 per cent of the cells are occupied by blue
and red agents in equal shares. The main behaviour is that each individual likes
living close to a given share of agents of the same colour, say 25 per cent. At any
iteration agents seek similar agents, and all of them move until this fraction is
satisfied for everyone: there is no guarantee that the simulation ends. If the
simulation ends, take this as an initial condition, increase the similarity required,
say up to 50 per cent, and run the model again. If this second simulation ends, that
is, the share is reached for every agent, some segregation is observable. Assume
this as an initial condition, increase the similarity up to 75 per cent, and run the
model again: if it ends, the artificial society appears more segregated.
A decade later, Robert Axelrod (1997) presented a model in the form of
a tournament of strategies of the prisoner’s dilemma to determine a winner. It
was Craig Reynolds (1987) who developed some of the first models based on
biological agents – later known as artificial life – that contain social features,
while a pioneering ABM paper was by Kim and Markowitz (1989) and the
follow-up research by Jacobs et al. (2004).
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
14 Complexity and Agent-Based Economics
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 15
primarily a US story, in 1999 Nigel Gilbert and Klaus Troitzsch published their
book Simulation for the Social Scientist (Gilbert and Troitzsch, 1999) and founded
the Journal of Artificial Societies and Social Simulation (JASSS). Shortly before
this, the international Workshop on Economics with Heterogeneous Interacting
Agents (WEHIA) was organised in Ancona in 1996 (Gallegati and Kirman, 2019).
Beyond this, the reading proposed by Squazzoni (2010; p. 200) seems
convincing to us. According to Squazzoni while the interdisciplinary Santa Fe
Institute (SFI) approach dominates in the US:
In Italy, at least four universities have developed ABM themes: Genoa with
EURACE, a large Stock-Flow Consistent (SFC) model with European data
(Cincotti et al., 2010, 2012); the Cattolica University in Milan with CATS that
integrates finance with production (Delli Gatti et al., 2005, 2011) and now
proposes ‘hybrid’ models (Assenza et al., 2013, 2015); the Sant’Anna in Pisa
with the K+S (Keynes+Schumpeter) model (Dosi et al., 2010, 2013), where the
introduction and diffusion of innovations and their effects on the structure of the
economy are masterfully modelled and heterogeneous capital goods adequately
considered, and has produced many other works where great attention is
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
16 Complexity and Agent-Based Economics
7
The K+S model can replicate the stylised facts of system behaviour at multiple levels (micro,
meso and macro; Delli Gatti et al., 2007). Since ABM models are multi-level, consistency
between empirical evidence and theoretical prescriptions is crucial. The ‘principle of unreality’
that Simon (1963) attributes to Friedman (1953), namely, that a model might be useful at the
aggregate level while being wrong at the level of the agents, does not apply.
8
Mathematica is a registered trademark of Wolfram Research Inc., www.wolfram.com. Some
examples of ABMS with Mathematica are available in the site https://demonstrations.wolfram
.com/topic.html?limit=20&topic=Multi-agent+Modeling. See also https://library.wolfram.com/
infocenter/Conferences/5767/#downloads. MATLAB is a registered trademark of The
MathWorks Inc., www.mathworks.com.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 17
Currently, no single platform meets all these requirements at the highest level. If
several programming languages are available, some at no or low cost, then far more
platforms are available for the ABMS. The solution of adopting a platform greatly
simplifies the work but imposes a difficult choice even before starting it. In fact, there
is no best platform, but it is possible to find the most suitable one according to our
goals. The choice depends on various factors. Some factors are, so to speak,
exogenous to the project. For example, if it seems that platform X is better than
platform Y for some reason, we must also consider whether and which of the two is
distributed under a commercial license, which implies costs, rather than open-
source, whether it is freeware or shareware, and for what purposes the software
we are going to produce is allowed and its possibility of distribution. This first aspect
is important but not the most difficult to address. In fact, since there is no best
platform, we must immediately keep in mind what is the purpose for which we
implement the model and its structure. That is, the scale, understood as the number of
agents we want to implement, the variety of agent species that populate the ecology
of the model, the degree of complexity of the agents, and the modelling of the
environment itself. Moreover, we must also consider that some platforms are
maintained, with continuous evolutions and developments, as the computer science
and the calculators evolve, while others are never updated and, therefore, they can
become obsolete or unusable on recent computers.
The typical elements one needs in ABMS are:
• a tool for implementing agents and building the environment in which they
operate,
• an event generation tool,
• a tool for setting parameters – or importing data if needed – and
• a tool for analysing and visualising results.
With few exceptions, almost all available platforms meet these requirements.
All platforms are based on a programming language, which facilitates code
control, reuse, and distribution. Almost all ABMS platforms owe a debt to the
progenitor, the Swarm platform built by Langton for the simulation of artificial
life as a complement to traditional biology (Langton, 1995).
An ABMS platform is therefore a computational environment, based on
a programming language, with which it is possible to encode a model written
‘pen and paper’ in a computer-executable program to study some phenomenon
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
18 Complexity and Agent-Based Economics
or the dynamics of a system, without having to deal too much with the computer
aspects, that is having few or no programming skills.
9
www.swarm.org.
10
https://en.wikipedia.org/wiki/Objective-C; https://en.wikipedia.org/wiki/C%2B%2B.
11
https://en.wikipedia.org/wiki/Java_(programming_language).
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 19
various ways, all platforms inherit from Swarm part of the basic philosophy and
several tools, even if they are developed with different languages. For example,
after Swarm many implement a ‘discrete event scheduler’, which allows agents
to trigger their behaviours at given times, and the ability to implement a physical
space, mapping it to a 2D grid, on which to place agents. A recent development
of this platform is SLAPP (Swarm-Like Agent Protocol in Python) which is
based on Python, and conceived and maintained by Pietro Terna (2019).12
The REPAST (Recursive Porous Agent Simulation Toolkit) platform was
introduced by Sallach, Collier, Howe, and Nelson (North et al., 2006).13
REPAST is a platform that owes a lot to Swarm, and it is proposed in three
variants: RepastJ is based on Java, Repast.Net is based on C#14 in the Microsoft
.Net environment, and RepastPy is the latest development in Python. Like
Swarm, REPAST also has a discrete event scheduler, a graphical interface
(GUI) to manage variables and parameters, an analysis and visualisation tool,
and a tool for spatial localisation of the agents in a simple way (2D grid) or
a realistic way (networks and GIS).15 It also has a tool to use genetic algorithms
and neural networks useful for parameter calibration. Although younger than
Swarm, REPAST is also extensively documented, making it particularly
attractive.
The MASON (Multi-Agent Simulator of Neighborhoods) platform was
introduced in 2003 (Luke et al., 2005) as an ABMS platform fully developed
in Java.16 More so than Swarm and REPAST, MASON is capable of handling
large-scale models and has 3D visualisation tools. Being younger, it is less
widely used, its documentation is reduced, and it also requires more learning
effort to use, making it less attractive than previous platforms, but the number of
its users is growing.
NetLogo is a platform conceived by Wilensky (1999) for ABMS; it is widely
diffused because mainly aimed for didactical purposes, and so it is very easy to
use.17 As its heir StarLogo is based on the Logo logic developed in the second
half of the 1960s.18 Its simplicity and its main educational goal do not make it an
ideal tool for realistic and large-scale simulation; however, it does not require
any computer or programming skills and, in any case, many research models
12
https://en.wikipedia.org/wiki/Python_(programming_language); https://terna.github.io/
SLAPP/.
13
https://repast.github.io/index.html.
14
https://en.wikipedia.org/wiki/C_Sharp_;(programming_language).
15
https://en.wikipedia.org/wiki/Geographic_information_system.
16
https://cs.gmu.edu/~eclab/projects/mason/.
17
https://ccl.northwestern.edu/netlogo/; http://ccl.northwestern.edu/netlogo-ccl.shtml.
18
https://education.mit.edu/project/starlogo-tng/; http://web.mit.edu/mitstep/starlogo/index.html;
https://en.wikipedia.org/wiki/Logo_(programming_language).
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
20 Complexity and Agent-Based Economics
19
http://ecolab.sourceforge.net/ecolab.html.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 21
Abar et al. (2017) describe 86 platforms, specifying, for each, the reference
language, the types of agents and interactive behavior, the language or
Application Programming Interface (API) for development and the possibility
of an Integrated Development Environment (IDE), the compiler, the operating
system that supports it and the type of computer on which it can be run, the
modelling capability and scalability of the models, and finally, providing a brief
description of the field of use. In this study, there is also a very important section
(section 4.1) devoted to the general criteria for comparing the platforms.
Leon et al. (2015) propose a review of the tools for ABMS by grouping them
into five broad categories: (1) 23 General Purpose Platforms, (2) 6 Modelling
and Simulation Platforms, (3) 8 Special Purpose Platforms, (4) 40 Platforms No
Longer Under Development, and finally (5) a list of 14 Methodologies for
Multiagent Systems Development. In each of the categories 1 through 4 they
identify projects in existence from those that have been suspended or whose
status is unclear. Compared to the reviews, for each of these categories it
provides less technical detail but proposes a broader description, including
additional references and information.
The review of Kravari and Bassiliades (2015) is different from those just
presented. In fact, although proposing a list of 24 platforms, this contribution
puts a lot of attention on a list of ‘universal criteria’ with which to classify them.
The authors explain that they installed all the platforms they analysed and for
each one they performed some experiments based on the available ‘tutorials’, to
evaluate the slope of the learning curve for each tool. Without going into details
we briefly report the five evaluation criteria adopted: (1) Platform Properties:
‘basic characteristics that are necessary for a potential user/developer in order to
understand the scope and the domain of the platform’; (2) Usability: ‘suitability
of the platform for the construction of agent applications’; (3) Operating Ability
(quality): ‘aspects that are taken into account during execution’; (4) Pragmatics:
‘external factors that are neither related to the construction nor to the operation
of the platform’; (5) Security Management: ‘security issues, indicating if the
platform is considered safe or not’. The 24 platforms analysed are described in
five synoptic tables, one for each of the preceding criteria. Finally, three
additional criteria are considered: the programming language required for use,
the FIPA (Foundation for Intelligent Physical Agents) Compliance,20 although
FIPA is now integrated into the IEEE (Institute of Electrical and Electronics
Engineers) Computer Society,21 the scope and possibility of using Semantic
Web Technologies.
20 21
www.fipa.org/. www.ieee.org/; www.computer.org/.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
22 Complexity and Agent-Based Economics
Bădică et al. (2011) propose a further alternative review because they also
focus on the languages used to build the platforms and not only on the platforms.
The authors provide a detailed description of 19 programming languages with
which it is possible to implement Agent-Oriented Programming (AOP) tools that
focus on the notion of ‘agent’ endowed with some characteristics such as ‘mental
qualities’, ‘communicative skills’ and the ‘notion of time’. In this regard, table 1
describes 37 ‘agent’s features’, of which in Sections 1.1 and 1.2 we have briefly
discussed only a part. Agent-Oriented Programming is a specialisation of the
OOP paradigm, and the authors highlight both the differences between ‘agents’
and ‘objects’ and how the AOP language
The languages covered are grouped into three major categories: eight Agent-
Oriented Programming Model, seven BDI based programming languages, and
four Other Agent Languages. Very important is table 3, placed at the bottom of
the text, which proposes a ‘Summary of Agent Languages’ for synoptic com-
parison according to seven criteria: the availability of a web site, the availability
of an IDE, the implementation language, the agent platform integration, the
field of application, the type of paradigm and, very important, the availability of
a textbook of which, in bibliography, they report the references. After this
description they also consider 13 platforms among the most popular at that
time, which can still be valid today.
Allan (2010) describes 31 software packages and 13 multi-agent systems, in
addition to collecting some applications in different fields. It also discusses the
ABMS in the HPC (High Performance Computing) area.
Bordini et al. (2006) discuss three arguments: the languages, the Integrated
Development Environments (IDEs), and the platforms. Languages are classified
in three categories: (1) declarative, ‘characterised by their strong formal nature,
normally grounded on logic’, (2) imperative, ‘in practice agent notions are often
implemented in an ad hoc manner’, (3) hybrid, ‘programming languages which
are declarative while at the same time providing some specific constructs allow-
ing for the use of code implemented in some external imperative language’. After
that, eight IDEs are described. Integrated Development Environments focus on
the programming language level and intend to enhance the productivity by
automating tedious coding tasks. The authors propose five criteria for classifying
IDEs based on functionality: project management, creating and editing source
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 23
files, refactoring, build and run processes, and testing. Finally, they propose the
description of five dedicated platforms.
A separate discourse deserves the review of Krešimir et al. (2020) because, to
our knowledge, it is the only one dedicated to teaching tools, which makes it
particularly interesting for the development of ABMS as a discipline. Because
of this peculiarity, this review is different from all the others discussed here
because it must also consider organisational aspects of teaching. In this contri-
bution 17 didactic tools are described, among which there are those of the so-
called Logo family, and a synoptic comparison is proposed based on six criteria:
the type of license, the language or API, the possibility of IDE, the operating
system, the type of computers on which it is possible to install them and the
degree of complexity on a learning curve.
22
Constructivism is a way of doing mathematics which is based on Brower’s intuitionist philoso-
phy, according to which in mathematics there exist only objects of which it is possible to specify
a mental construction. Thus, one cannot accept the existence of a mathematical object on
a logical basis alone, but one must define a procedure for constructing it, hence demonstration
by reductio ad absurdum cannot be accepted. This approach therefore leads to the rejection of
a large part of classical mathematics, but lays the foundations for recursivity and computability,
as an application of logic to computer science.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
24 Complexity and Agent-Based Economics
Palestrini et al., 2021) or learning methods (Sargent, 1993), see also Landini et al.
(2014, 2015). With ABMS it is also possible to simulate anticipatory behaviour
(Rosen, 1985), namely, of agents who, based on an expected scenario, prepare
today the conditions to act tomorrow to obtain the expected result the day after
tomorrow; see Di Guilmi et al. (2017) and the literature on evolutionary strategic
games.
As explained in Section 1.2, an essential aspect of human behaviour that can
be explicitly considered in ABMS is direct interaction (between agents). By
direct interaction we mean the case of (at least) two counterparts meeting to
interact. Not infrequently, the simulation of these relational processes follows
probabilistic rules to generalise these processes in a plausible way. For example,
given the units of the system one can assume that each one is randomly coupled
with a subset of counterparts to interact with. The interaction can be represented
in a network where the agents are the nodes, and the interactions are the links. In
the case of indirect interaction there are no links between agents, but only links
between them and the ‘market’. With interaction comes an essential component
of complexity, connectivity (Casti, 1979; Wassermann and Faust, 2008; Scott
and Carrington, 2011; Caldarelli and Catanzaro, 2012; Knoke and Yang, 2019).
Note that direct interaction is one of the holistic factors that inhibit reductionism
(see Box 2 in Landini et al., 2024), the other being feedbacks.
The agents of an ABM simulating a socio-economic system are autonomous,
heterogeneous, and interacting in a diversified multi-level network structure.
Under these conditions it is possible that some individuals change their prefer-
ence patterns, opinions or orient their decisions differently to such an extent that
a discontinuity is created. In an ABM it is possible to simulate the introduction
of innovations that create discontinuities, far beyond the idea of an exogenous
shock. These and other examples of discontinuities are explicitly simulated in
an AB-Model (Bellomo et al., 2020; Giordano et al., 2020; Pescarmona et al.,
2020). If we simulate individuals with differential equations the discontinuity
would be difficult to observe, except in the case of some chaotic models, and the
alternative would be to use stochastic jump processes, whose trajectories are
continuous at least to the right. Instead, with agent simulation, precisely because
it implements a structure of logic gates in the emulation of decision processes, it
is possible to explicitly take account of actual discontinuities right from the
micro level.
An ABM must be completely characterised by the discreteness of its
dimensions: the events it describes are discrete because they occur at
distinct times on a discrete and finite time horizon and in discrete and finite
space, if only because these are the limits imposed by the limited numerical
calculation capacity of computers. Thus, each agent is a discrete-event
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 25
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
26 Complexity and Agent-Based Economics
model to a higher level of complexity. Thus, from a basic model we can extend
its scale, make the behaviour of agents more sophisticated and make the system
more and more complex by extending its ‘ecology’ to capture and describe
emerging phenomena and find more and more correspondence to the stylised
facts. There is also another aspect of flexibility that is worth considering,
portability: any ABM can be specified with paper and pencil and can then be
implemented on the computer at low cost, both with many dedicated agent
simulation environments and with a wide range of programming languages,
both low- and high-level, thus being able to operate, overcoming the rigidities of
dedicated environments.
2.4 Validation
The social sciences study situated phenomena that happen under given conditions
in space and time. Many of these phenomena are not replicable, either because the
conditions change over time or because they are not found identically in space, or
because they emerge from below in an unpredictable way. Also, for these reasons,
the explanation of facts in the social sciences occurs through interpretive models,
not necessarily quantitative, that represent facts based on one or more theories. In
economics, but not only, a theoretical-conceptual model can have practical,
empirical use, especially when it is translated into a program executable by
a computer. In all cases, a model is always a partial representation of a situated
phenomenon and considers only the elements thought to be essential to explain
the facts, neglecting many details that can be treated in future developments. In
such a sense, every model is formulated for understanding a simplified represen-
tation of the reality, useful for understanding the principles at the bottom of it, and
this also applies to this theory.23
For a real fact several models can be specified, even based on the same
reference theory. In the social sciences, there is no ‘right’ theory to interpret
facts nor is there an ‘exact’ model to describe them. Moreover, different
methodologies can be adopted to specify different models even from the point
of view of the same theory. Not infrequently, one has several theories of
reference, sometimes complementary but also alternative. A problem then
arises. If for the same fact you can have different theories from which descend
models methodologically different, then the question is how to assess the
goodness of the theoretical implications and results of a model to establish the
best possible explanation, at least until proven otherwise.
23
Parisi (2006) invites us to reflect on the fact that even Descartes assumed the absence of friction
to describe the motion of bodies, although in a world without friction we could not be alive: we
could not move or feed ourselves; in fact, food would escape from our hands, assuming we were
able to get a hold on it.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 27
If among the various models available we can isolate the one we consider the
‘best’, then we also know its methodology and we can even go back to its theory
that, therefore, we can consider as the most appropriate. The issue is very
complex because to evaluate the goodness of the results of different models
that transcribe different theories sometimes different evaluation protocols are
needed.
We now narrow our focus to the class of agent-based models. In this area,
the evaluation practice is called validation because its purpose is to assess
whether the model can be considered a valid factual knowledge base. It is not
impossible that two different agent-based models, implementing two alterna-
tive theories, can be valid knowledge bases. However, if a model is validated
in the sense previously mentioned, and that we will elaborate in what follows,
then it can be considered a scientific tool. Consequently, with a validated
model we can do experiments and sometimes even extrapolate predictions to
further the knowledge we have. If a model is validated, then it provides
empirical support for the theory it implements and allows for further deve-
lopment. In any case, it is good to be aware, a theory supported by a validated
model will be a valid basis of knowledge until proven otherwise, both in the
natural and social sciences.
In the social sciences, but not only, the model does not have to be exhaustive of
reality, nor is it relevant that it is very sophisticated. What matters is the rigor with
which it has been specified and with which it is able to answer research questions
and explain a part of the mechanisms that the theory supposes are at the base of
the phenomena it deals with. Even a simple model with few goals can provide
a valid knowledge base if it passes validation. The specification of a model can be
considered as a moment along the path of (social) research with scientific method
and rigor. Furthermore, a (social) simulation model that is validated can be
a computational laboratory, and computer simulation can play the same role
that empirical experimentation plays for natural, life, or engineering sciences.
Validation is the crucial step that closes the development of an ABM model.
As important as it is, there is no standard validation protocol, no procedure
unanimously agreed upon by the scientific community, nor are all ABMS
validated. What we do have is an evolving but poorly standardised set of ‘best
practices’ or ‘guidelines’. In fact, validation is an area of research in continuous
development.24 There is no lack of procedures, nor of innovative ideas. What is
24
Beyond the books of Gilbert (2020) and Rand and Rust (2011), we consider particularly
important the contributions of Borgonovo et al. (2022), Platt (2020), Fagiolo and Richiardi
(2018), Richiardi (2018), Colasante (2017), Bargigli (2017), Stonedahl and Rand (2012), Borrill
and Tesfatsion (2010), Frank et al. (2009), Bianchi et al. (2008), Windrum et al. (2007), and
Leombruni et al. (2006).
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
28 Complexity and Agent-Based Economics
Consistency Correctness
Evaluation 1 VERIFICATION: 3 FALSIFICATION:
A. Programmatic C. Test cases:
testing C.1 Corner cases
A.1 Unit testing C.2 Sampled cases
A.2 Code C.3 Specific scenarios
walkthroughs D. Micro-face validation
E. Meso-face validation
F. Macro-face validation
G. Empirical output
validation
G.1 Stylised facts
G.2 Real-world data
G.3 Cross-validation
Conformation 2 CONTROL: 4 PARAMETRIZATION:
B. Programmatic testing H. Test cases:
B.1 Debugging H.1 Relative value
walkthroughs testing
B.2 Formal Testing I. Empirical input validation
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 29
as taking extreme care both in formalising and writing the code, avoiding
ambiguities to make everything as readable as possible even for those who do
not participate in the project. In the writing of the code, it is important to
accompany it with many comments that explain the various passages, that can
be very useful in the transfer of the code between the various groups of
development of the project, or in order to render it public, that is, ready to be
used by other researchers, or in order to remember quickly what is being
executed in given passages in the forecast to resume the model in the future.
Different ‘assertions’, that is, messages that alert the programmer during the
execution, as an example when some returned values are not admissible, can be
inserted. Besides, to quickly identify conceptual errors of programming it can
be useful to make intermediate outputs return to the program, especially for
those sections that will not have to return results.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
30 Complexity and Agent-Based Economics
Finally, the ‘empirical output validation’ is the phase considered most import-
ant because it consists in assessing whether the model’s results correspond to the
real world with regard to the reproduction of the ‘stylised facts’, especially if the
main objective of the model is that of a conceptual experiment or to evaluate
hypotheses or a theory, or of the ‘real-world data’, if the objective of the model is
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 31
The calibration of an ABM is carried out to achieve results that are as close as
possible to real data or known information, either empirically or automatically.
Empirical calibration consists of conducting a controlled experiment to deduce the
values of certain parameters from its outcome, or secondary data from similar
experiments can be used. Within the framework of empirical calibration, one can
also define the initial conditions of the quantities characterising the agents.
Empirical calibration is based on real data, so it seems to be the preferable one
because it is able to give a justification to the choice of parameters, but it has some
drawbacks because it is very expensive – rewarding individuals, recruiting them,
preparation and execution time – and it does not guarantee that the evolution of the
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
32 Complexity and Agent-Based Economics
model is valid because some parameters of the model could vary in time instead of
being constant.25 Automatic calibration is based on the use of calibration tools,
such as ‘genetic algorithms’ or ‘machine learning’ procedures. Typically, auto-
matic calibration considers a real training database, often smaller than the test
database used for validation purposes. The former is used to identify the values of
a set of parameters that make the simulated database as close as possible to the real
training database. For example, employing the genetic algorithms, one specifies
a ‘fitness function’ that must be optimised, usually minimised, with respect to
a margin of error between simulated and real data: once the fitness function is
established, the parametric setup that has generated the least error is adopted. The
advantage of this practice is that it is managed by the computer, also using
applications specifically designed for this purpose, so it is therefore particularly
efficient and low-cost, but it has the disadvantage of leaving the choice of which
measure to optimise to the researcher.26 Sometimes more than one measure is used
for different purposes, with the ex post evaluation of which solution is preferable.
In addition, the correlation criterion can also be used to assess the best parameter-
isation, thus choosing the set of parameters that makes the simulated data more
positively correlated with the real data. Another disadvantage of this practice is
that, if the real training database is not representative of the real test database, it
may not be possible to validate the conformity of the model with reality, even
though it has been calibrated with real data: the solution, in this case, can be found
by starting from an overall real database, extracting from it a statistically represen-
tative sample as the training database and using the remaining part in the test
phase. Finally, in contrast to empirical calibration, rather than a disadvantage,
automatic calibration has the not insignificant limitation of returning a valid
parameterisation without explaining why, leaving this burden to the researcher.
Like calibration, ABM estimation employs real data to make inferences about
model parameters.27 However, unlike calibration, estimation uses an inferential
structure, with given statistical properties, and does not take place at the same
time as the simulation but is based on one or more simulations characterised by
their parameters. Put another way, calibration runs the model to search for
parameter values, while estimation employs the simulation run with a given
set of parameters, perhaps those resulting from the calibration to improve them:
in this case the calibration may serve to narrow the value space for the
parameters. Again, the strategy is to optimise the parametric setup so that the
model is as close as possible to the actual data – in fact, the minimisation of an
error measure is still considered. The estimation can be based either on point
25
See Colasante (2017) and literature cited therein.
26
See, for instance, www.behaviorsearch.org.
27
See Richiardi (2018), Bargigli (2017), and the literature cited therein.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 33
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
34 Complexity and Agent-Based Economics
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 35
uncertainties related to the inputs, and (iii) those due to the degree of correctness
with which the underlying model represents reality.
There are several methods to sensitivity analysis, but all explore differ-
ences in outputs from changes in inputs. Depending on the method of
changing the inputs and descriptively summarising the outputs, there may
be different approaches to sensitivity analysis. However, regardless of the
approach to sensitivity analysis, a key aspect is to understand which inputs
are significant, that is, those that induce the most relevant changes in the
outputs. This is particularly relevant when subjecting a model for ‘problem-
solving’ or ‘decision-making’ to sensitivity analysis. In other words, we can
consider sensitivity analysis as the phase of studying the model to identify
the most ‘sensitive’ parts, so as to be able to control its behaviour and correct
its weaknesses.
Among the most accredited practices for sensitivity analysis, Morton and
Tejada (2013) propose a ten-step set of guidelines, which we merely list here,
referring to their text for more details:
Saltelli et al. (2019) propose a list of best practices for conducting an adequate
sensitivity analysis. First, they propose the global exploration of the input space,
especially useful for models in which inputs interact with each other or in which
many nonlinearities are found. Secondly, they propose conducting uncertainty
analysis first to assess robustness and then sensitivity analysis to understand the
major causes of variability. As a third piece of advice, they propose to focus the
sensitivity and uncertainty analysis on one or a few precise questions because,
typically, models have many outputs that can be used for different purposes, so
the relationships between the inputs and the individual outputs may be different;
therefore ‘it is essential to focus the sensitivity analysis on the question
addressed by the model rather than more generally on the model’. A fourth
aspect considered important is ‘reporting’, that is, the need to infer the relative
importance of inputs, and combinations thereof, through appropriate graphical
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
36 Complexity and Agent-Based Economics
methods and measurements. Finally, they point out that even the most rigorous
sensitivity and uncertainty analyses do not guarantee the absence of errors
because if the correctness of the model is poor, that is, if it is not a good
representation of reality, measuring the sensitivity of a parameter is of little
relevance.
In the more specific area of ABM models, ten Broecke et al. (2016) explain
that even the most accredited sensitivity analysis methodologies may not be
sufficient for an accurate analysis of ABM models precisely because of their
specificities such as multi-level structures, interactions, nonlinearities, emer-
gent phenomena, and self-organisation. These elements make it very difficult
to link input and output as proposed by classical methods because it is
a question of analysing complex adaptive systems. However, for an ABM to
be usable for practical purposes, it is essential to understand the effects of
different configurations on the overall results emerging from the system. The
authors, through a comparative study of several methodologies, focus on three
objectives of sensitivity analysis for ABMS: (i) to understand how emergent
properties are generated by the ABM, (ii) to examine the robustness of the
emergent properties and (iii) to quantify the variability of the results according
to the parameters.
Borgonovo et al. (2022) propose a systematic approach for the sensitivity
analysis of ABMS focusing on four purposes: (i) to assess the robustness of the
results, (ii) to identify the elements with the greatest impact on the results, (iii)
to understand how these elements interact, and (iv) in which direction the results
vary as the identified elements vary. The authors define a general conceptual
scheme to identify what they call ‘moving parts’, that is, the model components
that can be varied to assess the model’s sensitivity: parameters and procedures.
Furthermore, an important contribution is to propose a variant of the individual
conditional expectation (ICE) plots to take into account the stochastic nature of
ABMS (S-ICE plot). The protocol proposed in this contribution consists of six
steps, which we list here, referring to the text for further details:
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Agent-Based Modelling 37
3 Conclusion
This Element is complementary to Complexity in Economics (Landini et al.,
2024), where inconsistencies of mainstream economics have been discussed
that can be overcome in the frame of Complexity Economics (Arthur, 2021;
Rosser, 2021). There, we reinforced the purpose of the ABM simulation approach
as the main tool for studying socioeconomic complex systems, as well as for
specifying and implementing more general and realistic models. In this Element,
we propose an overall and non-technical presentation of the main topics in ABM
simulation. In Section 1 foundational notions are introduced with some historical
background. Section 2 presents the general characteristics and tools of ABM with
attention to advanced topics like validation and sensitivity analysis. The structure
of the Element’s sections includes a reasoned and selected set of bibliographical
references.
The existence of competition between hierarchical economic institutions
implies problems of computational complexity, which can be handled by the
ABM method. This is an increasingly widely adopted approach, which differs
from important precursors of computer simulation such as system dynamics,
cellular automata, and microsimulation. Unlike ABM, system dynamics does
not allow for the modelling of heterogeneous micro aspects, but only inter-
dependencies and feedbacks between macro variables; cellular automata reduce
the interaction of dispersed micro entities to a single homogeneous parameter;
while microsimulation does not include interaction.28
Also, as Landini et al. (2024) highlight, Hahn shows that the AD model, being
an axiomatic system, has no normative value – without even mentioning the SMD
‘theorem’. Solow and Hanh (1997) then argue that reducing economic analysis to
mathematical reasoning alone, as the Dynamic Stochastic General Equilibrium
(DSGE) does, does not make economic sense. Instead, ABM manages to analyse
the system of interrelationships between agents at several hierarchical levels
through the analysis of nodes and the study of the topology of networks.
With ABM the methodology is ‘bottom-up’: individual parameters are esti-
mated with experiments and econometric surveys, their statistical robustness –
such as distribution – is assessed at an intermediate level between the micro and
the macro, and finally it is evaluated whether aggregate regularities emerge in
the whole. In short, there is micro, meso, and macro empirical validation and
new economic policy applications and tools for both the meso sector level and
the networks with which interactions can be analysed. The difference between
microeconomics and macroeconomics is that the latter is the emergent result of
the interaction and behaviour of agents at the micro level.
28
Brancaccio et al. (2021) show that the ABM literature itself is not heterodox.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
38 Complexity and Agent-Based Economics
The ABM approach is growing fast and evidences of applicability and results
about representation of real-world phenomena are accumulating. What is still
missing is a unifying formal theory. Literature evolves fast to such an extent that
it appears an ‘uncultivated forest’, hence there is need of systematisation. In
economics, this is due to the fact that many scholars recognise the potentialities
and advantages of ABM such that they prefer investing resources in the
development of models to overcome dissatisfaction with the mainstream
approach in economics. This blossoming without a formal theory does not
come without consequences. For instance, many scholars are sceptical and
think that ABM is a practice without theory, something far from an autonomous
discipline, just like econometrics, that finds application in a wide spectrum of
research fields.
Along this direction of theoretical research there is a lot of work that is to be
done. In this Element, we hope to have at least posed the problem to stimulate
students and scholars, mainly those that are not already familiar with this approach,
to join the effort in the development of a formal ABM theory to upgrade the ABM
approach to the status of a discipline with more defined boundaries.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
List of Acronyms
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
References
Abar, S., Theodoropoulos, G. K., Lemarinier, P., and O’Hare, G. M., (2017),
Agent Based Modelling and Simulation Tools: A Review of the State-of-Art
Software, Computer Science Review, 24: 13–33.
Allan, R. J., (2010), Survey of Agent Based Modelling and Simulation Tools
(Technical report, ISSN 1362-0207), Science & Technology Facilities
Council, https://epubs.stfc.ac.uk/manifestation/5601/DLTR-2010-007.pdf.
Arrow, K. J., and Debreu, G., (1954), Existence of an Equilibrium for
a Competitive Economy, Econometrica, 22(3): 265–290.
Arthur, W. B., (2021), Foundations of Complexity Economics, Nature Reviews
Physics, 3: 136–145.
Assenza, T., and Delli Gatti, D., (2013), E Pluribus Unum: Macroeconomic
Modelling for Multi-agent Economies, Journal of Economic Dynamics and
Control, 37(8): 1659–1682.
Assenza, T., Delli Gatti, D., and Grazzini, J., (2015), Emergent Dynamics of
a Macroeconomic Agent-Based Model with Capital and Credit, Journal of
Economic Dynamics and Control, 50(C): 5–28.
Axelrod, R., (1997), The Complexity of Cooperation: Agent-Based Models of
Competition and Collaboration, Princeton University Press.
Axtell, R. L., and Farmer, J. (2023), Agent-Based Modelling in Economics and
Finance: Past, Present and Future, Journal of Economic Literature. www
.aeaweb.org/articles?id=10.1257/jel.20221319&from=f.
Bădică, C., Budimac, Z., Burkhard, H. D., and Ivanović, M. (2011). Software
Agents: Languages, Tools, Platforms, Computer Science and Information
Systems, 8(2): 255–298.
Bak, P., Paczuski, M., and Shubik, M., (1996), Price Variations in a Stock
Market with Many Agents, Physica A: Statistical Mechanics and its
Applications, 246(3–4): 430–453.
Ballot, G., Mandel, A., and Vignes, A., (2015), Agent-Based Modeling and
Economic Theory: Where Do We Stand?, Introduction to the Special Issue of
the 17th WEHIA Conference, Journal of Economic Interaction and
Coordination, 10: 199–220.
Bargigli, L., (2017), Econometric Methods or Agent-Based Model, in
Gallegati, M., Palestrini, A., and Russo, A., et al., (eds.), Introduction to
Agent-Based Economics, Academic Press: 163–189.
Bellomo, N., Bingham, R., Chaplain, M. A. J., Dosi, G., Forni, G.,
Knopoff, D. A., Lowengrub, J., Twarock, R. and Virgillito, M. E., (2020),
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
References 41
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
42 References
Caiani, A., Godin, A., Caverzasi, E., Gallegati, M., Kinsella, S., and
Stiglitz, J. E., (2016), Agent-Based Stock-Flow Consistent Macroeconomics:
Towards a Benchmark Model, Journal of Economic Dynamics and Control,
69: 375–408.
Caldarelli, G. (2010), Complex Networks, UNESCO-EOLSS. www.eolss.net/
ebooklib/bookinfo/complex-networks.aspx.
Caldarelli, G., and Catanzaro, M., (2012), Networks: A Very Short Introduction,
Oxford University Press.
Caldarelli, G., and Chesa, A., (2016), Data Science and Complex Networks:
Real Case Studies with Python, Oxford University Press.
Casti, J., (1979), Connectivity, Complexity and Catastrophes in Large-Scale
Systems, John Wiley & Sons.
Cincotti, S., Raberto, M., and Teglio, A., (2010), Credit Money and
Macroeconomic Instability in the Agent-Based Model and Simulator
Economics, Economics: The Open Access, Open Assessment E-Journal, 4.
www.economics-ejournal.org/economics/discussionpapers/2010-4.
Cincotti, S., Raberto, M., and Teglio, A., (2012), The EURACE
Macroeconomics Model and Simulator, in Agent-based Dynamics, Norms,
and Corporate Governance, The Proceedings of the 16th World Congress of
the International Economic Association, Palgrave Macmillan.
Cioffi-Revilla, C., (2017), Introduction to Computational Social Science:
Principles and Applications, Springer.
Colasante, A., (2017), Experimental Economics for ABM Validation, in
Gallegati, M., Palestrini, A., and Russo, A., et al., (eds.), Introduction to
Agent-Based Economics, Academic Press.
Dawid, H., Gemkow, S., Harting, P., van der Hoog, S., and Neugart, M., (2018),
Agent-Based Macroeconomic Modeling and Policy Analysis: The
Eurace@Unibi Model, in Chen, S.-H., Kaboudan, M., Du, Y.-R., (eds.),
The Oxford Handbook of Computational Economics and Finance, Oxford
University Press: 490–519.
Delli Gatti, D., Desiderio, S., Gaffeo, E., Cirillo, P., and Gallegati, M., (2011),
Macroeconomics From the Bottom-Up, Springer.
Delli Gatti, D., Di Guilmi, C., Gaffeo, E., Giulioni, G., Gallegati, M., and
Palestrini, A., (2005), A New Approach to Business Fluctuations:
Heterogeneous Interacting Agents, Scaling Laws and Financial Fragility,
Journal of Economic Behavior and Organization, 56(4): 489–512.
Delli Gatti, D., Fagiolo, G., Gallegati, M., Richiardi, M., and Russo, A.,
(2018), Agent-Based Models in Economics: A Toolkit, Cambridge
University Press.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
References 43
Delli Gatti D., Gaffeo, E., and Gallegati, M., (2010). Complex Agent-Based
Macroeconomics: A Manifesto for a New Paradigm, Journal of Economic
Interaction and Coordination, 5(2): 111–135.
Delli Gatti, D., Gaffeo, E., Gallegati, M., Giulioni, G., Kirman, A. P.,
Palestrini, A., and Russo, A., (2007), Complexity Dynamics and Empirical
Evidence, Information Science, 177(5): 1204–1221.
Di Guilmi, C., Landini, S., and Gallegati, M., (2017), Interactive
Macroeconomics: Stochastic Aggregate Dynamics with Heterogeneous and
Interacting Agents, Cambridge University Press.
Dosi, G. (2023). The Foundations of Complex Evolving Economies. Oxford
University Press.
Dosi, G., Fagiolo, G., and Roventini, A., (2010), Schumpeter Meeting Keynes:
A Policy-Friendly Model of Endogenous Growth and Business Cycle,
Journal of Economic Dynamics and Control, 34(9): 1748–1767.
Dosi, G., Fagiolo, G., Napoletano, M., and Roventini, A., (2013), Income
Distribution, Credit and Fiscal Policies in an Agent-Based Keynesian
Model, Journal of Economic Dynamics and Control, 37(8): 1598–1625.
Epstein, J. M., and Axtell, R. L., (1996), Growing Artificial Societies:
Social Science from the Bottom Up. Massachusetts Institute of
Technology Press.
Fagiolo, G., and Richiardi, M., (2018), Empirical Validation of Agent-Based
Models, in Delli Gatti, D., Fagiolo, G., Gallegati, M., Richiardi, M., and
Russo, A., (eds.), Agent-Based Models in Economics: A Toolkit, Cambridge
University Press.
Farmer, D. J., and Foley, D. K., (2009), The Economy Needs Agent-Based
Modeling, Nature, 460(7256): 685–686.
Frank, U., Squazzoni, F., and Troitzsch, K. G., (2009), EPOS-Epistemological
Perspectives on Simulation: An Introduction, in Squazzoni, F. (ed.),
Epistemological Aspects of Computer Simulation in the Social Sciences.
EPOS 2006. Lecture Notes in Computer Science, vol. 5466. Springer. DOI:
https://doi.org/10.1007/978-3-642-01109-2_1.
Friedman, M., (1953), Essays in Positive Economics, University of Chicago
Press.
Gallegati, M., and Kirman, A. P., (2019), 20 Years of WEHIA: A Journey in
Search of a Safer Road, Journal of Economic Behavior and Organization,
157(C): 5–14.
Gardner, M., (1970), The Fantastic Combinations of John Conway’s New
Solitaire Game ‘life’, Mathematical Games, Scientific American, 223(4):
120–123.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
44 References
Ghanem, M., Higdon, D., and Owhadi, H., (2017), Handbook of Uncertainty
Quantification, Springer.
Gilbert, N., (2020), Agent-Based Models, SAGE Publications Series,
n. 153,
Gilbert, N., and Troitzsch, K. G., (1999), Simulation for the Social Scientist,
Open University Press.
Giordano, G., Blanchini, F., Bruno, R., Colaneri, P., Di Filippo, A., Di
Matteo, A., and Colaneri, M., (2020), Modelling the COVID-19 Epidemic
and Implementation of Population-wide Interventions in Italy, Nature
Medicine Letters, www.nature.com/articles/s41591-020-0883-7.
Granato, B., and Li-Jessen, N. Y. K., (2020), Sensitivity Analysis for
Dimensionality Reduction in Agent-Based Modeling, Proceedings of the
24th European Conference on AI – ECAI 2020 At: Santiago de
Compostela, Spain. https://ecai2020.eu/papers/1396_paper.pdf.
Grazzini, J., and Richiardi, M., (2015), Estimation of Agent-Based Models by
Simulated Minimum Distance, Journal of Economic Dynamics and Control,
51: 148–165.
Greenblat, C. S., (1971), Simulation, Games, and the Sociologist, The American
Sociologist, 6: 161–164.
Hamil, L., and Gilbert, N., (2016), Agent-Based Modelling in Economics, John
Wiley & Sons, Ltd.
Holland, J., and Miller, J. H., (1991), Artificial Adaptive Agents in Economic
Theory, The American Economic Review, Papers and Proceedings of the
Hundred and Third Annual Meeting of the American Economic
Association (May), 81(2): 365–370.
Hommes, C., (2013), Behavioral Rationality and Heterogeneous Expectations
in Complex Economic Systems, Cambridge University Press.
Hommes, C., Poledna, S., and Zahng, Y., (2021), Next-Generation Agent-Based
Model of Canada (CAN-ABM). www.bankofcanada.ca/wp-content/uploads/
2021/11/agent-based-model-canada-yang-zhang.pdf.
Ioannides, Y. M. (1990), Trading Uncertainty and Market Form, International
Economic Review, 31(3): 619–638.
Jacobs, B. I., Levy, K. N., and Markowitz, H. M., (2004), Financial Market
Simulation. Journal of Portfolio Management, 30th Anniversary Issue:
142–151.
Kim, G., and Markowitz, H. M., (1989), Investment Rules, Margin and Market
Volatility, Journal of Portfolio Management, 16(1): 45–52.
Kirman, A. P., (1983), Communication in Markets: A Suggested Approach,
Economics Letters, 12: 1–5.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
References 45
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
46 References
Luke, S., Cioffi-Revilla, C., Panait, L., Sullivan, K., and Balan, G., (2005),
MASON: A Multi-Agent Simulation Environment. Simulation: Transactions
of the Society for Modeling and Simulation International, 82(7): 517–527.
Macal, C. M., (2004), Agent-Based Modeling and Social Simulation with
Mathematica and MATLAB, in Proceedings of the Agent 2004 Conference
on Social Dynamics: Interaction, Reflexivity and Emergence, ANL/DIS-05–
6, C. M. Macal, D. Sallach, and M. J. North (eds.), co-sponsored by Argonne
National Laboratory and The University of Chicago, October 7–9.
Minar, N., Burkat, R., Langton, G., and Sakenzi, M., (1996), The Swarm
Simulation System: A Toolkit for Building Multi-Agent Simulations, Tech.
Rep., WP96-06–042, Santa Fe Institute.
Morton, D., and Tejada, J., (2013), A Practical Guide to Sensitivity Analysis of
a Large-Scale Computer Simulation Model, South Texas Project Risk-
Informed GSI-191 Evaluation, https://jjtejada.files.wordpress.com/2014/01/
sensitivity_analysis_with_appendix.pdf.
North, M. J., (2014), A Theoretical Formalism for Analyzing Agent-Based
Models, Complex Adaptive Systems, 2: 3.
North, M. J., Collier, N. T., and Vos, J. R., (2006), Experiences Creating Three
Implementations of the Repast Agent Modeling Toolkit, ACM Transactions
on Modeling and Computer Simulation, 16(1): 1–25.
Orcutt, G. H., (1957), A New Type of Socio-Economic System, The Review of
Economics and Statistics, 39(2): 116–123.
Pal, C. V., Leon, F., Paprzycki, M., and Ganzha, M., (2020), A Review of
Platforms for the Development of Agent Systems. arXiv: https://arxiv.org/
ftp/arxiv/papers/2007/2007.08961.pdf.
Palestrini, A., Gallegati, M., and Delli Gatti, D., (2021), Adaptive Agents May
Be Smarter Than You Think: Unbiasedness in Adaptive Expectations, CESifo
Working Paper No. 9205.
Parisi, G., (2006), La Chiave, la Luce e l’Ubriaco, Di Renzo Editore; second
edition, 2021.
Pescarmona, G., Terna, P., Acquadro, A., Pescarmona, P., Russo, G., and
Terna, S. (2020), How Can ABM Models Become Part of the Policy-
Making Process in Times of Emergencies: The S.I.S.A.R. Epidemic Model,
https://rofasss.org/2020/10/20/sisar/.
Platt, D., (2020), A Comparison of Economic Agent-Based Model Calibration
Methods, Journal of Economic Dynamic and Control, 113(C): 103859.
Poledna, S., Miess, M. G., and Hommes, C. H., (2020), Economic Forecasting
with an Agent-Based Model (February 24, 2020). SSRN: https://ssrn.com/
abstract=3484768 or http://dx.doi.org/10.2139/ssrn.3484768.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
References 47
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
48 References
Scott, J., and Carrington, P. J., (2011), The SAGE Handbook of Social Network
Analysis, SAGE Publications.
Simon, H., (1957), A Behavioral Model of Rational Choice, in Models of Man,
Social and Rational: Mathematical Essays on Rational Human Behavior in
a Social Setting, Wiley.
Simon, H., (1963), Testability and Approximation, in Hausman, D., (ed.), The
Philosophy of Economics, Cambridge University Press: 179–182.
Sobol, I. M., (2001), Global Sensitivity Indices for Nonlinear Mathematical
Models and Their Monte Carlo Estimates, Mathematics and Computers in
Simulation, 55(1–3): 271–280.
Solow, R., and Hanh, F., (1997), A Critical Essay on Modern Macroeconomic
Theory, Massachusetts Institute of Technology Press.
Squazzoni, F., (2010), The Impact of Agent-Based Models in the Social
Sciences: After 15 Years of Incursion, History of Economic Ideas, 18(2):
197–233.
Standish, R. K., and Leow, R. (2003), EcoLab: Agent Based Modeling for C++
Programmers, in Proceedings SwarmFest 2003. arXiv:cs.MA/0401026.
ten Broecke, G., van Voorn, G., and Ligtenberg, A., (2016), Which Sensitivity
Analysis Method Should I Use for My Agent-Based Model? Journal of
Artificial Science and Social Simulation, 19(1): 5; www.jasss.org/19/1/5.html.
Terna, P., (2019), SLAPP (Swarm-Like Protocol in Python) Reference
Handbook; https://terna.github.io/SLAPP3/SLAPP_Reference_Handbook
.pdf.
Tesfatsion, L., (2021), Agent-Based Computational Economics: Overview and
Brief History; https://dr.lib.iastate.edu/entities/publication/0e69f7c9-ad39-
45b1-bcd7-3ba2023d6192.
Tesfatsion, L., and Judd, K., (2006), Handbook of Computational Economics:
Agent-Based Computational Economics: 2, North-Holland.
Turrell, A., (2013), Agent-Based Models: Understanding the Economy from the
Bottom Up, Quarterly Bulletin 2016 Q4, Bank of England, https://www
.bankofengland.co.uk/quarterly-bulletin/2016/q4/agent-based-models-under
standing-the-economy-from-the-bottom-up.
von Neumann, J., (1951), The General and Logical Theory of Automata, in
Jeffress, L. A., (ed.), Cerebral Mechanisms in Behavior – The Hixon
Symposium, John Wiley & Sons, pp. 1–31.
Wasserman, S., and Faust, K., (2008), Social Network Analysis: Methods and
Applications, Cambridge University Press.
Wilensky, U., and Rand, W., (2015), An Introduction to Agent-Based Modeling:
Modeling Natural, Social, and Engineered Complex Systems with NetLogo,
Massachusetts Institute of Technology Press.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
References 49
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Acknowledgements
For all the comments and constructive criticism, we are indebted to Silvano
Cincotti, Domenico Delli Gatti, Tiziana Di Matteo, Giovanni Dosi, Magda
Fontana, Alan Kirman, Fabrizio Lillo, Valerio Lucarini, Rosario Mantegna,
Salvatore Micciché, Luciano Pietronero, Flaminio Squazzoni, Francesco Sylos
Labini and, in particular, to Robert Axtell, Pietro Terna and Leigh Tesfatstion.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Complexity and Agent-Based Economics
Giovanni Dosi
Sant’Anna School of Advanced Studies
Giovanni Dosi is Professor Emeritus of Economics at Sant’Anna School of Advanced
Studies, Pisa (Italy) and Editor for the Americas of the journal Industrial and Corporate
Change. He is included in the ISI Highly Cited Research list, denoting those who made
fundamental contributions to the advancement of science and technology, and is a
corresponding member of the Accademia Nazionale dei Lincei, the first academy of
sciences in Italy. He received, in 2016, the Wiley TIM Distinguished Scholar Award by the
Technology and Innovation Management Division of the American Academy of
Management, in 2022 the Penrose Prize of the European Academy of Management, and,
in 2024, the Schumpeter Prize. His major research areas – where he is author and editor
of several works – include economics of innovation and technological change, industrial
economics, evolutionary theory, economic growth and development, organizational
studies.
Mauro Gallegati
Università Politecnica delle Marche, Ancona
Mauro Gallegati is full Professor of Advanced Economics at the Università Politecnica delle
Marche, Ancona. His research concerns interdisciplinary applications of
complex systems with heterogeneous interacting agents and econophysics. He is one of
the pioneers of agent-based models and economic complexity. He published several
papers and books. His methods of asymmetric information settings are widely used by
academicians. His research interests range from ABM economics to economic history, to
mathematics, to complexity and networks.
Simone Landini
IRES Piemonte, Torino
Simone Landini is Senior Researcher at the Socioeconomic Research Institute of
Piedmont (IRES Piemonte), Turin, Italy. He holds a PhD in Mathematics for the Analysis of
Financial Markets, had been awarded the INET Grant and had been a Visiting Fellow in
the University of Technology of Sydney. His research interests include applied
mathematics, quantitative methods for economics, finance, regional and social sciences,
agent-based modelling and computability theory. He published articles in international
peer-reviewed journals.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Maria Enrica Virgillito
Sant’Anna School of Advanced Studies
Maria Enrica Virgillito is Associate Professor in Economics at the Institute of Economics,
Sant’Anna School of Advanced Studies, Pisa, Italy where she coordinates the Seasonal
School in “Agent-Based models in Economics”. Her publications have been hosted in a
number of international scientific peer-reviewed journals in the realms of complexity
economics, institutional labour economics, evolutionary economics. She
is Global Labour Organization Fellow and serves as Editor for the Macro and
Development yearly issue of Industrial and Corporate Change, as Associate Editor
for Structural Change and Economic Dynamics and for the Review of Evolutionary
Political Economy.
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Complexity and Agent-Based Economics
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628
Downloaded from https://www.cambridge.org/core. IP address: 185.199.102.51, on 02 Dec 2024 at 02:26:14, subject to the Cambridge Core terms of
use, available at https://www.cambridge.org/core/terms. https://doi.org/10.1017/9781009547628