SlideShare a Scribd company logo
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 1
An Introduction to Agent-Based Modelling
Bruce Edmonds
Centre for Policy Modelling
Manchester Metropolitan University
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 2
Society is Complex!
• This may not be a surprise to many of you..
• …but in the sense of complexity science it means
that significant global outcomes can be caused by
the interactions of networks of individuals
• In other words, the outcomes are not modellable if
you do not model interactions between individuals
or model only the interaction of global variables…
• …and if you try to model it in these ways, you will
often be caught out be surprises
• Agent-based simulation allows the exploration of
such surprises but it is still a maturing field
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 3Social influence and the domestic demand for water, Aberdeen 2002, http://cfpm.org/~bruce slide-3
Equation-based or statistical modelling
Real World Equation-based Model
Actual Outcomes
Aggregated
Actual Outcomes
Aggregated
Model Outcomes
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 4
Individual- or Agent-based simulation
Real World Individual-based Model
Actual Outcomes Model Outcomes
Aggregated
Actual Outcomes
Aggregated
Model Outcomes
Agent-
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 5
What happens in ABSS
• Entities in simulation are decided on
• Behavioural Rules for each agent specified (e.g. sets of
rules like: if this has happened then do this)
• Repeatedly evaluated in parallel to see what happens
• Outcomes are inspected, graphed, pictured, measured
and interpreted in different ways
Simulation
Representations of OutcomesSpecification (incl. rules)
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 6
Example 1: Schelling’s Segregation
Model
Schelling, Thomas C.
1971. Dynamic Models of
Segregation. Journal of
Mathematical Sociology
1:143-186.
Rule: each iteration, each
dot looks at its 8
neighbours and if less than
30% are the same colour
as itself, it moves to a
random empty square
Segregation can result
from wanting only a few
neighbours of a like colour
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 7
Characteristics of agent-based
modelling
• Computational description of process
• Not usually analytically tractable
• More specific…
• … but assumptions are less ‘brave’
• Detail of unfolding processes accessible
– more criticisable (including by non-experts)
– but can be more convincing that is warrented
• Used to explore inherent possibilities
• Validatable by a variety of data kinds…
– but needs LOTS of data to do this
• Often very complex themselves
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 8
Micro-Macro Relationships
Micro/
Individual data Qualitative, behavioural, social psychological data
Theory,
narrative
accounts
Social, economic surveys; Census
Macro/
Social data
Simulation
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 9
Choosing Simulation Techniques
• Every simulation technique has pros and cons
• The hardest decision is when to use which approach
(or how to combine approaches)
• Analytic approaches rely on their formulation being
simple enough to be solvable (or, in practice, they use
simulation anyway)
• Statistical approaches rely (in different and subtle
ways) on the representation of noise as random –
they will miss surprises in their projections
• Agent-based approaches are complex, require lots of
data and do not give probability forecasts
• Simplicity is no guarantee of truth or generality
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 10
Meaning from intermediate
abstraction (often implicit)
target system
mental model
formal model
(Meaning)
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 11
In Vitro vs In Vivo
• In biology there is a well established distinction
between what happens in the test tube (in vitro) and
what happens in the cell (in vivo)
• In vitro is an artificially constrained situation where
some of the complex interactions can be worked
out…
• ..but that does not mean that what happens in vitro
will occur in vivo, since processes not present in vitro
can overwhelm or simply change those worked out in
vitro
• One can (weakly) detect clues to what factors might
be influencing others in vivo but the processes are too
complex to be distinguished without in vitro
experiments
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 12
Some modelling trade-offs
simplicity
generality
Lack of error (accuracy of results)
realism
(design reflects
observations)
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 13
Example 2: A model of social
influence and water demand
• Part of a 2004 study for EA/DEFRA, lead by the
Stockholm Environment Institute (Oxford branch)
• Investigate the possible impact of social influence
between households on patterns of water
consumption
• Design and detailed behaviour from simulation
validated against expert and stakeholder opinion
at each stage
• Some of the inputs are real data
• Characteristics of resulting aggregate time series
validated against similar real data
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 14
Simulation structure
•Activity
•Frequency
•Volume Households
Policy
Agent
•Temperature
•Rainfall
•Daylight
Ground
Aggregate Demand
•Activity
•Frequency
•Volume Households
Policy
Agent
•Temperature
•Rainfall
•
Ground
Aggregate Demand
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 15
Some of the household influence structure
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 16
Example results: relative aggregate
domestic demand for water (1973 = 100)Aggregate dem and series scaled so 1973=100
0
20
40
60
80
100
120
140
160
180
200
J-
73
J-
74
J-
75
J-
76
J-
77
J-
78
J-
79
J-
80
J-
81
J-
82
J-
83
J-
84
J-
85
J-
86
J-
87
J-
88
J-
89
J-
90
J-
91
J-
92
J-
93
J-
94
J-
95
J-
96
J-
97
Sim ulation Date
RelativeDemand
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 17
Conclusions from Example 2
• The use of a concrete descriptive simulation
model allowed the detailed criticism and, hence,
improvement of the model
• The inclusion of social influence resulted in
aggregate water demand patterns with many of
the characteristics of observed demand patterns
• The model established how:
– processes of mutual social influence could result in
differing patterns of consumption that were self-
reinforcing
– shocks can shift these patterns, but not always in the
obvious directions
– the importance of introduction of new technologies
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 18
Example 3: Developing Work
• Institute for Social Change &
Theoretical Physics Group,
University of Manchester
• Centre for Policy Modelling,
Manchester Metropolitan University
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 19
the SCID Modelling Approach
Data-Integration Simulation Model
Micro-Evidence Macro-Data
Abstract Simulation
Model 1
Abstract Simulation
Model 2
SNA Model Analytic Model
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 20
Overall Structure of Model
Underlying data about
population composition
Demographics of people in
households
Social network formation and
maintenance (homophily)
Influence via social networks
• Political discussions
Voting Behaviour
Input
Output
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 21
Discuss-politics-with person-23 blue expert=false
neighbour-network year=10 month=3
Lots-family-discussions year=10 month=2
Etc.
Memory
Level-of-Political-Interest
Age
Ethnicity
Class
Activities
AHousehold
An Agent’s Memory of Events
Etc.
Changing personal
networks over which
social influence occurs
Composed of households of
individuals initialised from
detailed survey data
Each agent has a rich variety of
individual (heterogeneous)
characteristics
Including a (fallible) memory of
events and influences
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 22
Example Output: why do people vote (if
they do)
Intervention: voter
mobilisation
Effect: on civic
duty norms Effect: on habit-
based behaviour
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 23
Simulated Social Network at 1950
Established
immigrants: Irish,
WWII Polish etc.
Majority: longstanding
ethnicities
Newer
immigrants
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 24
Simulated Social Network at 2010
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 25
Possibilistic vs Probibilistic
• The idea is to map out some of the possible social
processes that may happen
• Including ones one would not have thought of or
ones that have already happened
• The global coupling of context-dependent
behaviours in society make projecting
probabilities problematic
• Increases understanding of why processes (such
as the spread of a new racket) might happen and
the conditions that foster them
• Complementary to statistical models
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 26
Role of ABM in Policy Assessment
• ABMs are good for analysing risk – how a more
standard model/prediction might go/be wrong
• That is, testing the assumptions behind simpler
models (statistical, discrete event, system dynamic,
etc.)…
• …so exploring the possible deviations from their
forecasts
• In other words, showing some of the possible
surprises that could occur (but not all of them)
• To inform a risk analysis that goes with a forecast
• Can be used for designing early-warning indicators of
newly emergent trends
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 27
ABSS Advantges
• ABSS allows the production and examination of
possible complex outcomes that might emerge
• It does not need such strong assumptions (that
analytic approaches require) to obtain results
• It allows the indefinite experimentation and
examination of outcomes (in vitro)
• It aids the integration and use of a wider set of
evidence, e.g. very open to stakeholder critique
• It suggests hypotheses about the complex
interactions in observed (in vivo) social phenomena
• So allowing those ‘driving’ policy to be prepared, e.g.
by implementing ‘early warning systems’
• Can be complementary to other techniques
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 28
ABSS Disadvantages
• It does not magically tell you what will happen
• Are relatively time-consuming to construct
• It can look more convincing that is warranted
• Understanding of the model itself is weaker
• It needs truck loads of data for its validation
• It gives possibilities rather than probabilities
• Fewer good practitioners around
• Not such a mature field
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 29
To Learn More
• Simulation for the Social Scientist, 2nd Edition.
Nigel Gilbert and Klaus Troitzsch (2005) Open University
Press. http://cress.soc.surrey.ac.uk/s4ss/
• Simulating Social Comlexity – a handbook.
Edmonds & Meyer (eds.) (2013), Springer.
• Journal of Artificial Societies and Social
Simulation, http://jasss.soc.surrey.ac.uk
• European Social Simulation Association,
http://essa.eu.org
• NetLogo, a relatively accessible system for doing ABM
http://ccl.northwestern.edu/netlogo
• OpenABM.org, an open archive of ABMs, including
code and documentation
An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 30
Thanks!
Bruce Edmonds
http://bruce.edmonds.name
Centre for Policy Modelling
http://cfpm.org
I will make these slides available at:
http://www.slideshare.net/BruceEdmonds

More Related Content

PPTX
Introduction to Agent-based Modelling
PDF
Agent based modeling-presentation
PDF
Introduction of abm
PPTX
Agent Based Models
PPTX
AI in Talent Acquisition - Talent Connect 2017
PPTX
Big Data Helsinki v 3 | "Federated Learning and Privacy-preserving AI" - Oguz...
PDF
Exploring Generating AI with Diffusion Models
PDF
Managing-the-Risks-of-LLMs-in-FS-Industry-Roundtable-TruEra-QuantU.pdf
Introduction to Agent-based Modelling
Agent based modeling-presentation
Introduction of abm
Agent Based Models
AI in Talent Acquisition - Talent Connect 2017
Big Data Helsinki v 3 | "Federated Learning and Privacy-preserving AI" - Oguz...
Exploring Generating AI with Diffusion Models
Managing-the-Risks-of-LLMs-in-FS-Industry-Roundtable-TruEra-QuantU.pdf

What's hot (20)

PPTX
Artificial intelligence in research - an introduction
PDF
Automated Machine Learning
PDF
Apply MLOps at Scale by H&M
PDF
Adversarial Attacks on A.I. Systems — NextCon, Jan 2019
PPTX
AWS big-data-demystified #1.1 | Big Data Architecture Lessons Learned | English
PDF
[Apache Kafka® Meetup by Confluent] Graph-based stream processing
PPTX
AI Agents and their implications for Enterprise AI Use-cases
PPTX
Automated Machine Learning (Auto ML)
PPTX
Managing your ML lifecycle with Azure Databricks and Azure ML
PPTX
Deep learning health care
PPTX
AWS Elastic Compute Cloud (EC2)
PPTX
Generative models
PDF
An introduction to machine learning in biomedical research: Key concepts, pr...
PPTX
machine learning a a tool for disease detection and diagnosis
PDF
What is MLOps
PDF
Fairness and Bias in Machine Learning
PDF
Collaboration in Context: AI and Human Interaction
PDF
Bias in AI-systems: A multi-step approach
PDF
Fairness in Machine Learning and AI
PPTX
Introduction-to-Generative-AI.pptx
Artificial intelligence in research - an introduction
Automated Machine Learning
Apply MLOps at Scale by H&M
Adversarial Attacks on A.I. Systems — NextCon, Jan 2019
AWS big-data-demystified #1.1 | Big Data Architecture Lessons Learned | English
[Apache Kafka® Meetup by Confluent] Graph-based stream processing
AI Agents and their implications for Enterprise AI Use-cases
Automated Machine Learning (Auto ML)
Managing your ML lifecycle with Azure Databricks and Azure ML
Deep learning health care
AWS Elastic Compute Cloud (EC2)
Generative models
An introduction to machine learning in biomedical research: Key concepts, pr...
machine learning a a tool for disease detection and diagnosis
What is MLOps
Fairness and Bias in Machine Learning
Collaboration in Context: AI and Human Interaction
Bias in AI-systems: A multi-step approach
Fairness in Machine Learning and AI
Introduction-to-Generative-AI.pptx
Ad

Viewers also liked (19)

PPTX
Cloud Computing
PPT
Rzevsky agent models of large systems
PDF
Extending the Gillespie's Stochastic Simulation Algorithm for Integrating Dis...
PPT
Introduction of abm
PPTX
A Manifesto for 21st-Century IT
DOCX
Dynamic resource allocation using virtual machines for cloud computing enviro...
PDF
Risk-aware policy evaluation using agent-based simulation
PPT
Chapter 6 complexity science and complex adaptive systems
PPT
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
PDF
Simulating Superdiversity
PDF
Organizational network analysis and agent-based modeling
PPT
A Survey on Resource Allocation & Monitoring in Cloud Computing
PDF
Agent-Based Modeling & Python @ PyData DC 2016
ODP
Intro to Agent-based System
PDF
Agent-based System - Introduction
PDF
Introduction of Agent Based Modeling (ABM) for Customer Behavior Model
PPTX
Agent Based Modeling and Simulation - Overview and Tools
PDF
SMART Seminar Series: ‘Agent-Based Simulation of Socio-Technical Processes: M...
PPT
Dynamic Resource Allocation Using Virtual Machines for Cloud Computing Enviro...
Cloud Computing
Rzevsky agent models of large systems
Extending the Gillespie's Stochastic Simulation Algorithm for Integrating Dis...
Introduction of abm
A Manifesto for 21st-Century IT
Dynamic resource allocation using virtual machines for cloud computing enviro...
Risk-aware policy evaluation using agent-based simulation
Chapter 6 complexity science and complex adaptive systems
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
Simulating Superdiversity
Organizational network analysis and agent-based modeling
A Survey on Resource Allocation & Monitoring in Cloud Computing
Agent-Based Modeling & Python @ PyData DC 2016
Intro to Agent-based System
Agent-based System - Introduction
Introduction of Agent Based Modeling (ABM) for Customer Behavior Model
Agent Based Modeling and Simulation - Overview and Tools
SMART Seminar Series: ‘Agent-Based Simulation of Socio-Technical Processes: M...
Dynamic Resource Allocation Using Virtual Machines for Cloud Computing Enviro...
Ad

Similar to "A 30min Introduction to Agent-Based Modelling" for GORS (20)

PPT
An Introduction to Agent-Based Modelling
PDF
Multi agent paradigm for cognitive parameter based feature similarity for soc...
PDF
Multi agent paradigm for cognitive parameter based feature similarity for soc...
PDF
Lec 1 computational modeling - Introduction.pdf
PDF
Introduction to Agent Based Modeling Using NetLogo
PPTX
Using Agent-Based Simulation to integrate micro/qualitative evidence, macro-q...
PPTX
A Brief Introduction to Agent-Based Modelling
PDF
Agent-based modelling, the London riots, and Python
PPT
Agent-Based Modelling: Social Science Meets Computer Science?
PDF
Introduction of abm
PPTX
Analysing a Complex Agent-Based Model Using Data-Mining Techniques
PPT
A (Very Short) Guide to ABM (and Qualitative Data)
PPT
Ammar malik urbanab-mspakistan-may2012-v2
PDF
Agentbased Modelling In Economics Gilbert G Nigel Hamill Lynne
PPTX
Introduction to Computational Social Science
PPTX
Using Data Integration Models for Understanding Complex Social Systems
PPTX
How to conduct Agent Based Modelling In Economics for your PhD Dissertation -...
PPTX
ABM intro talk
PPTX
Agent-based modelling, laboratory experiments, and observation in the wild
PPT
Social Science Applications of Agent Based Modelling
An Introduction to Agent-Based Modelling
Multi agent paradigm for cognitive parameter based feature similarity for soc...
Multi agent paradigm for cognitive parameter based feature similarity for soc...
Lec 1 computational modeling - Introduction.pdf
Introduction to Agent Based Modeling Using NetLogo
Using Agent-Based Simulation to integrate micro/qualitative evidence, macro-q...
A Brief Introduction to Agent-Based Modelling
Agent-based modelling, the London riots, and Python
Agent-Based Modelling: Social Science Meets Computer Science?
Introduction of abm
Analysing a Complex Agent-Based Model Using Data-Mining Techniques
A (Very Short) Guide to ABM (and Qualitative Data)
Ammar malik urbanab-mspakistan-may2012-v2
Agentbased Modelling In Economics Gilbert G Nigel Hamill Lynne
Introduction to Computational Social Science
Using Data Integration Models for Understanding Complex Social Systems
How to conduct Agent Based Modelling In Economics for your PhD Dissertation -...
ABM intro talk
Agent-based modelling, laboratory experiments, and observation in the wild
Social Science Applications of Agent Based Modelling

More from Bruce Edmonds (20)

PPTX
Staging Model Abstraction – an example about political participation
PPTX
Modelling Pitfalls - extra resources
PPTX
Modelling Pitfalls - introduction and some cases
PPTX
The evolution of empirical ABMs
PPTX
Mixing fat data, simulation and policy - what could possibly go wrong?
PPTX
Social Context
PPTX
Using agent-based simulation for socio-ecological uncertainty analysis
PPTX
Finding out what could go wrong before it does – Modelling Risk and Uncertainty
PPTX
How social simulation could help social science deal with context
PPTX
Culture trumps ethnicity! – Intra-generational cultural evolution and ethnoce...
PDF
Mixing ABM and policy...what could possibly go wrong?
PPTX
Different Modelling Purposes - an 'anit-theoretical' approach
PPTX
Socio-Ecological Simulation - a risk-assessment approach
PPTX
A Simple Model of Group Commoning
PPTX
6 Modelling Purposes
PPTX
Are Mixed-Methods Just a Fudge? The Dangers and Prospects for Integrating Qu...
PPTX
The Post-Truth Drift in Social Simulation
PPTX
Drilling down below opinions: how co-evolving beliefs and social structure mi...
PPTX
Model Purpose and Complexity
PDF
Modelling Innovation – some options from probabilistic to radical
Staging Model Abstraction – an example about political participation
Modelling Pitfalls - extra resources
Modelling Pitfalls - introduction and some cases
The evolution of empirical ABMs
Mixing fat data, simulation and policy - what could possibly go wrong?
Social Context
Using agent-based simulation for socio-ecological uncertainty analysis
Finding out what could go wrong before it does – Modelling Risk and Uncertainty
How social simulation could help social science deal with context
Culture trumps ethnicity! – Intra-generational cultural evolution and ethnoce...
Mixing ABM and policy...what could possibly go wrong?
Different Modelling Purposes - an 'anit-theoretical' approach
Socio-Ecological Simulation - a risk-assessment approach
A Simple Model of Group Commoning
6 Modelling Purposes
Are Mixed-Methods Just a Fudge? The Dangers and Prospects for Integrating Qu...
The Post-Truth Drift in Social Simulation
Drilling down below opinions: how co-evolving beliefs and social structure mi...
Model Purpose and Complexity
Modelling Innovation – some options from probabilistic to radical

Recently uploaded (20)

PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Classroom Observation Tools for Teachers
PDF
Trump Administration's workforce development strategy
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
RMMM.pdf make it easy to upload and study
PPTX
Lesson notes of climatology university.
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Pharma ospi slides which help in ospi learning
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
Microbial diseases, their pathogenesis and prophylaxis
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
O7-L3 Supply Chain Operations - ICLT Program
Classroom Observation Tools for Teachers
Trump Administration's workforce development strategy
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Supply Chain Operations Speaking Notes -ICLT Program
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
RMMM.pdf make it easy to upload and study
Lesson notes of climatology university.
Chinmaya Tiranga quiz Grand Finale.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Pharma ospi slides which help in ospi learning
GDM (1) (1).pptx small presentation for students
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Microbial diseases, their pathogenesis and prophylaxis
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
O5-L3 Freight Transport Ops (International) V1.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf

"A 30min Introduction to Agent-Based Modelling" for GORS

  • 1. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 1 An Introduction to Agent-Based Modelling Bruce Edmonds Centre for Policy Modelling Manchester Metropolitan University
  • 2. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 2 Society is Complex! • This may not be a surprise to many of you.. • …but in the sense of complexity science it means that significant global outcomes can be caused by the interactions of networks of individuals • In other words, the outcomes are not modellable if you do not model interactions between individuals or model only the interaction of global variables… • …and if you try to model it in these ways, you will often be caught out be surprises • Agent-based simulation allows the exploration of such surprises but it is still a maturing field
  • 3. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 3Social influence and the domestic demand for water, Aberdeen 2002, http://cfpm.org/~bruce slide-3 Equation-based or statistical modelling Real World Equation-based Model Actual Outcomes Aggregated Actual Outcomes Aggregated Model Outcomes
  • 4. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 4 Individual- or Agent-based simulation Real World Individual-based Model Actual Outcomes Model Outcomes Aggregated Actual Outcomes Aggregated Model Outcomes Agent-
  • 5. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 5 What happens in ABSS • Entities in simulation are decided on • Behavioural Rules for each agent specified (e.g. sets of rules like: if this has happened then do this) • Repeatedly evaluated in parallel to see what happens • Outcomes are inspected, graphed, pictured, measured and interpreted in different ways Simulation Representations of OutcomesSpecification (incl. rules)
  • 6. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 6 Example 1: Schelling’s Segregation Model Schelling, Thomas C. 1971. Dynamic Models of Segregation. Journal of Mathematical Sociology 1:143-186. Rule: each iteration, each dot looks at its 8 neighbours and if less than 30% are the same colour as itself, it moves to a random empty square Segregation can result from wanting only a few neighbours of a like colour
  • 7. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 7 Characteristics of agent-based modelling • Computational description of process • Not usually analytically tractable • More specific… • … but assumptions are less ‘brave’ • Detail of unfolding processes accessible – more criticisable (including by non-experts) – but can be more convincing that is warrented • Used to explore inherent possibilities • Validatable by a variety of data kinds… – but needs LOTS of data to do this • Often very complex themselves
  • 8. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 8 Micro-Macro Relationships Micro/ Individual data Qualitative, behavioural, social psychological data Theory, narrative accounts Social, economic surveys; Census Macro/ Social data Simulation
  • 9. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 9 Choosing Simulation Techniques • Every simulation technique has pros and cons • The hardest decision is when to use which approach (or how to combine approaches) • Analytic approaches rely on their formulation being simple enough to be solvable (or, in practice, they use simulation anyway) • Statistical approaches rely (in different and subtle ways) on the representation of noise as random – they will miss surprises in their projections • Agent-based approaches are complex, require lots of data and do not give probability forecasts • Simplicity is no guarantee of truth or generality
  • 10. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 10 Meaning from intermediate abstraction (often implicit) target system mental model formal model (Meaning)
  • 11. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 11 In Vitro vs In Vivo • In biology there is a well established distinction between what happens in the test tube (in vitro) and what happens in the cell (in vivo) • In vitro is an artificially constrained situation where some of the complex interactions can be worked out… • ..but that does not mean that what happens in vitro will occur in vivo, since processes not present in vitro can overwhelm or simply change those worked out in vitro • One can (weakly) detect clues to what factors might be influencing others in vivo but the processes are too complex to be distinguished without in vitro experiments
  • 12. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 12 Some modelling trade-offs simplicity generality Lack of error (accuracy of results) realism (design reflects observations)
  • 13. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 13 Example 2: A model of social influence and water demand • Part of a 2004 study for EA/DEFRA, lead by the Stockholm Environment Institute (Oxford branch) • Investigate the possible impact of social influence between households on patterns of water consumption • Design and detailed behaviour from simulation validated against expert and stakeholder opinion at each stage • Some of the inputs are real data • Characteristics of resulting aggregate time series validated against similar real data
  • 14. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 14 Simulation structure •Activity •Frequency •Volume Households Policy Agent •Temperature •Rainfall •Daylight Ground Aggregate Demand •Activity •Frequency •Volume Households Policy Agent •Temperature •Rainfall • Ground Aggregate Demand
  • 15. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 15 Some of the household influence structure
  • 16. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 16 Example results: relative aggregate domestic demand for water (1973 = 100)Aggregate dem and series scaled so 1973=100 0 20 40 60 80 100 120 140 160 180 200 J- 73 J- 74 J- 75 J- 76 J- 77 J- 78 J- 79 J- 80 J- 81 J- 82 J- 83 J- 84 J- 85 J- 86 J- 87 J- 88 J- 89 J- 90 J- 91 J- 92 J- 93 J- 94 J- 95 J- 96 J- 97 Sim ulation Date RelativeDemand
  • 17. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 17 Conclusions from Example 2 • The use of a concrete descriptive simulation model allowed the detailed criticism and, hence, improvement of the model • The inclusion of social influence resulted in aggregate water demand patterns with many of the characteristics of observed demand patterns • The model established how: – processes of mutual social influence could result in differing patterns of consumption that were self- reinforcing – shocks can shift these patterns, but not always in the obvious directions – the importance of introduction of new technologies
  • 18. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 18 Example 3: Developing Work • Institute for Social Change & Theoretical Physics Group, University of Manchester • Centre for Policy Modelling, Manchester Metropolitan University
  • 19. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 19 the SCID Modelling Approach Data-Integration Simulation Model Micro-Evidence Macro-Data Abstract Simulation Model 1 Abstract Simulation Model 2 SNA Model Analytic Model
  • 20. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 20 Overall Structure of Model Underlying data about population composition Demographics of people in households Social network formation and maintenance (homophily) Influence via social networks • Political discussions Voting Behaviour Input Output
  • 21. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 21 Discuss-politics-with person-23 blue expert=false neighbour-network year=10 month=3 Lots-family-discussions year=10 month=2 Etc. Memory Level-of-Political-Interest Age Ethnicity Class Activities AHousehold An Agent’s Memory of Events Etc. Changing personal networks over which social influence occurs Composed of households of individuals initialised from detailed survey data Each agent has a rich variety of individual (heterogeneous) characteristics Including a (fallible) memory of events and influences
  • 22. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 22 Example Output: why do people vote (if they do) Intervention: voter mobilisation Effect: on civic duty norms Effect: on habit- based behaviour
  • 23. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 23 Simulated Social Network at 1950 Established immigrants: Irish, WWII Polish etc. Majority: longstanding ethnicities Newer immigrants
  • 24. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 24 Simulated Social Network at 2010
  • 25. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 25 Possibilistic vs Probibilistic • The idea is to map out some of the possible social processes that may happen • Including ones one would not have thought of or ones that have already happened • The global coupling of context-dependent behaviours in society make projecting probabilities problematic • Increases understanding of why processes (such as the spread of a new racket) might happen and the conditions that foster them • Complementary to statistical models
  • 26. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 26 Role of ABM in Policy Assessment • ABMs are good for analysing risk – how a more standard model/prediction might go/be wrong • That is, testing the assumptions behind simpler models (statistical, discrete event, system dynamic, etc.)… • …so exploring the possible deviations from their forecasts • In other words, showing some of the possible surprises that could occur (but not all of them) • To inform a risk analysis that goes with a forecast • Can be used for designing early-warning indicators of newly emergent trends
  • 27. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 27 ABSS Advantges • ABSS allows the production and examination of possible complex outcomes that might emerge • It does not need such strong assumptions (that analytic approaches require) to obtain results • It allows the indefinite experimentation and examination of outcomes (in vitro) • It aids the integration and use of a wider set of evidence, e.g. very open to stakeholder critique • It suggests hypotheses about the complex interactions in observed (in vivo) social phenomena • So allowing those ‘driving’ policy to be prepared, e.g. by implementing ‘early warning systems’ • Can be complementary to other techniques
  • 28. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 28 ABSS Disadvantages • It does not magically tell you what will happen • Are relatively time-consuming to construct • It can look more convincing that is warranted • Understanding of the model itself is weaker • It needs truck loads of data for its validation • It gives possibilities rather than probabilities • Fewer good practitioners around • Not such a mature field
  • 29. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 29 To Learn More • Simulation for the Social Scientist, 2nd Edition. Nigel Gilbert and Klaus Troitzsch (2005) Open University Press. http://cress.soc.surrey.ac.uk/s4ss/ • Simulating Social Comlexity – a handbook. Edmonds & Meyer (eds.) (2013), Springer. • Journal of Artificial Societies and Social Simulation, http://jasss.soc.surrey.ac.uk • European Social Simulation Association, http://essa.eu.org • NetLogo, a relatively accessible system for doing ABM http://ccl.northwestern.edu/netlogo • OpenABM.org, an open archive of ABMs, including code and documentation
  • 30. An Introduction to Agent-Based Modelling, GORS, London, 24th Sept. 2013. slide 30 Thanks! Bruce Edmonds http://bruce.edmonds.name Centre for Policy Modelling http://cfpm.org I will make these slides available at: http://www.slideshare.net/BruceEdmonds