Top Banner
Agent-Based Models: What are models for? Peter McBurney Department of Informatics King’s College London London WC2R 2LS UK EWG-DSS 2012 Liverpool, UK April 2012
37

Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Apr 02, 2018

Download

Documents

hahanh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Agent-Based Models: What are models for?

Peter McBurneyDepartment of InformaticsKing’s College LondonLondon WC2R 2LS UK

EWG-DSS 2012Liverpool, UKApril 2012

Page 2: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Models of complex adaptive systems

� Economies, financial markets

– eg, CAT Market Design Game

� Infectious diseases (eg, malaria)

� Diffusion of attitudes to medical treatments � Diffusion of attitudes to medical treatments

� Consumer purchase attitudes and intentions

– eg, fast-moving consumer goods (fmcg), consumer durables,

new technologies, mobile services

� Telecommunications network operations

– Satellite networks, mobile networks

Page 3: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

What are models for?

Answer: To represent some reality (a real phenomenon or system)

Real EconomyReal EconomyReal EconomyReal EconomyModel ofModel ofModel ofModel ofEconomyEconomyEconomyEconomy

Modeling or Modeling or Modeling or Modeling or RepresentationRepresentationRepresentationRepresentation

Page 4: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Reality

� Natural systems

– physical, chemical, biological, ecological

� Human social and technical systems

– economic, social, traffic, etc

� Man-made artefacts, such as computer systems

Why do we want to represent such real phenomena?

� Perhaps to forecast or predict the future state of the real system.

Page 5: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

First, we calibrate the model

We set parameters and/or model inputs so as to align the model with appropriate variables measured in the real system.

Real EconomyReal EconomyReal EconomyReal EconomyModel ofModel ofModel ofModel ofEconomyEconomyEconomyEconomy

AAAA

CalibrationCalibrationCalibrationCalibration

BBBB

AAAA

θθθθ

Page 6: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Then we run the calibrated model

Real EconomyReal EconomyReal EconomyReal EconomyModel ofModel ofModel ofModel ofEconomyEconomyEconomyEconomy

Simulationof time

Model Model Model Model ForecastForecastForecastForecast

DevelopmentDevelopmentDevelopmentDevelopmentof Economyof Economyof Economyof EconomyForecast

Progression of time

(Meta(Meta(Meta(Meta----model due to Robert Rosen)model due to Robert Rosen)model due to Robert Rosen)model due to Robert Rosen)

Page 7: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Issue 1: Continuity

y

� Prediction only accurate if the real system is continuously dependent on its initial conditions

� Reminder: A non-continuous function

y

xa

y = f(x)

Page 8: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Issue 2: Need to observe reality

� We may not be observing reality, but artefacts

– eg, national accounts statistics in economics

� We may be unable to observe reality directly

– eg, theories of multiple universes or additional dimensions in physics

– eg, future consumer purchase intentions– eg, future consumer purchase intentions

� Our only means to apprehend reality may be the model itself

– eg, String theory & M-theory in physics

– Models of opponent decision-making in conflicts

– Computer models of computer systems.

Page 9: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Issue 3: Calibration may not be against reality

� Economics, Physics: Stylized facts

– Generalizations from widely-held theories

– eg, When prices rise, demand falls.

� We are thus calibrating our model not against reality, but against a theory about reality (another model).against a theory about reality (another model).

ModelModelModelModel Theory of RealityTheory of RealityTheory of RealityTheory of Reality RealityRealityRealityReality

Page 10: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Forecasting the weather forecast

� Each day, the US National Oceanic and Atmospheric Administration (NOAA) publishes a forecast of world weather

� Each day, one hour before, WSI publishes a forecast of the NOAA forecast (MarketFirst).

WSI ModelWSI ModelWSI ModelWSI Model NOAA ModelNOAA ModelNOAA ModelNOAA Model The WeatherThe WeatherThe WeatherThe Weather

ForecastForecastForecastForecast

Page 11: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Issue 4: Intelligent Entities

� Domains may contain intelligent entities

– eg, Natural ecosystems, social and economic domains, technical systems, etc

� In Biology: Anticipatory Systems (Rosen)

� This is a key reason for interest in Agent-Based Models from � This is a key reason for interest in Agent-Based Models from ecology and the social sciences.

Page 12: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Intelligent Entities may have . . .

their own models!

Perhaps even state-of-the-art models!

Page 13: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Rational Expectations (RE) Theory

� RE theory in Economics assumes

– Economic agents in the model all have the same model

– THIS very model !

– As well as perfect foresight, infinite processing powers, memory, etcmemory, etc

� Due to John Muth 1961

– Muth’s ideas won a Nobel Memorial Prize in Economics in 1995 for Robert Lucas.

Page 14: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Even without assuming RE . . .

Our models may influence what agents do

� A model may not represent or describe some reality, but may create that reality

– Called Performative in Philosophy of Language.

Page 15: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Examples: Finance

� Black-Scholes theory of options pricing

– Assumed options traders would behave in a certain way, and gave a formula to calculate the prices of options

– Options traders adopted this formula and behaved in the assumed way

� Global Financial Crisis 2008: � Global Financial Crisis 2008:

Pricing theory for Credit Default Swaps and other complex derivatives

– Assumed default risks were iid Normal

– Traders adopted these models and made the same assumptions

– But, risks not Normal (fatter tails) and not independent!

– Meltdown in 2008!

Page 16: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Example: Military Strategy

� After WW II: Game theorists modeled the Cold War as 2-person game

– eg, Prisoners Dilemma

� US Defense Department then viewed the Cold War in this way

� USA needed to ensure that the USSR also adopted GT model

� Hence: Public announcements by senior people that the USA did NOT use game theory for military strategy.

Philip Mirowski [2002]:

Machine Dreams:

Economics Becomes a Cyborg Science.

Page 17: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Problems for prediction

� Model Forecasts may be

– Self-fulfilling, or

– Self-denying

� For instance: Public panics

– Disease epidemics– Disease epidemics

– Confidence in financial institutions

• eg, Initial problems at Enron

� The problems arise because the model influences the entities being modeled.

Page 18: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

The fall of communism in the DDR in 1988-89

“I once saw a note on a Stasi file from early 1989 that I would never forget. In it a young lieutenant alerted his superiors to the fact that there were so many informers in church opposition groups at demonstrations that they were making these groups appear stronger than they really were. In one of the most beautiful ironies I have ever seen, he dutifully noted that it appeared that, by having swelled the ranks of the opposition, the Stasi was giving the people heart to keep demonstrating the Stasi was giving the people heart to keep demonstrating against them.”

Anna Funder [2003]:

Stasiland:

True Stories from Behind the Berlin Wall.

Granta Books, pp. 197-198.

Page 19: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Again: What are models for?

Ariel Rubinstein (1998): Four purposes of economic modeling:

� To predict behavior

� To guide decision-making by economic agents or policy-makers

� To sharpen the intuition of economists when studying complex � To sharpen the intuition of economists when studying complex phenomena

� To establish linkages between theoretical economic concepts and everyday thinking.

Note that model calibration not necessary for any of these.

Page 20: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

What are models for?

Models are created to:

� Represent & understand

� Predict some real or artificial system.

� Manage or control}

� Manage or control

AND

� To train people in understanding/prediction/control.

}

Page 21: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Models as exchanges

Often, models are also a locus for discussion and decision

� To identify stakeholders (compare Web2.0)

� To elicit beliefs, desires, goals, preferences from stakeholders

� To support trade-offs and policy/strategy determination� To support trade-offs and policy/strategy determination

� To support consensus-building.

Models are used to bring people

to the table!

Page 22: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Example: Malaria

� Malaria kills around 2 million people pa

– Mostly in sub-Saharan Africa

– Mostly young children

– Completely curable disease.

� Why do people still die?

– Not treated, treated too late, treatment not completed, or – Not treated, treated too late, treatment not completed, or treatment ineffective.

� Various interventions possible, eg

– Different anti-malarial drugs

– Bednets

– Insecticide spray campaigns.

Page 23: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Diffusion of treatments

� We have here a complex adaptive system

– Biological entities evolve resistance to drugs and insecticides

• Not all the biology is known yet

– Human beliefs and behaviours are dynamic

• There may be many reasons for certain behaviours

– Cultural, social, religious– Cultural, social, religious

– Economic

– Logistical.

� Effective treatment

requires adoption of

appropriate behaviours.

Page 24: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Thus, models are often used

� To bring the policy stakeholders together

– Minister and Department of Health

– Medical personnel

– Local government personnel

– Pharmaceutical and treatment personnel

– Religious and cultural organizations

– Foreign aid donors.– Foreign aid donors.

� To identify differences and policy trade-offs

� To forge consensus on policy and on interventions

� To plan interventions.

Page 25: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Po-Mo purposes of models� An epideictic function

– eg, Business models in start-ups

– Investors judge managerial competence not by the substance of the Biz Plan, but by the form of its presentation.

� As play or for the intellectual challenges involved

– To challenge and to demonstrate our intellectual capabilities – To challenge and to demonstrate our intellectual capabilities as modelers

– As a form of conceptual art!

Page 26: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Why do the purposes matter?

� They matter for design

� They matter for stakeholder input to the modeling process

� They matter for assessment and evaluation of the model

� They matter for assessment and evaluation of the modeling task� They matter for assessment and evaluation of the modeling task

� If the goal is control of a system, then we need also to design and assess the interventions in the system.

Page 27: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

For example: Surely, shome mishtake!

� Assumptions of Rational Expectations are absurdly unrealistic

� Milton Friedman (1953) argued that economic models should be judged on their predictive capability only

– Not on the match between their assumptions and reality

� Billiard players can play well

without knowing Newton’s

Laws of Motion

Page 28: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Newton’s Theory of Gravity

Likewise,

� Newton’s theory of gravity accurately predicted planetary motions

� But provided no explanation of how gravity worked.

Page 29: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

How much should we modelers tell?

� Standard wisdom in Economics is that more information is better for all

– So, the Bank of England publishes minutes of the Monetary Policy Committee.

Page 30: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

But elsewhere . . .

In epidemiology and in national security

� Governments are scared of public panics

� So they carefully limit the amount of information they release and manage its timing and distribution.

� We just saw an

example of this in UK,

with petrol panic.

Page 31: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Go meta!

� For each domain, we need a meta-model

– A meta-model aims to capture the relationships between our model and the real system containing intelligent entities.

� We need this

– To understand the influences from our model to the real – To understand the influences from our model to the real entities

– To assess the impacts of interventions

– To deal with anticipatory and reactive effects (in both directions)

� Agent-oriented approaches are key here.

Page 32: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Meta-models

Real SystemReal SystemReal SystemReal SystemModelModelModelModel

MetaMetaMetaMeta----ModelModelModelModel

Model ofModel ofModel ofModel ofReal SystemReal SystemReal SystemReal System

ModelModelModelModel

Page 33: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Models-in-use

� To develop an effective meta-model for a domain, we need to understand how the model is used by stakeholders

– eg, What decisions does it guide? How? When? Etc.

� The locus of decision-making is usually the decision-making stakeholders and the model together

– Example: hedge fund decision-making.

Iain Hardie & Donald MacKenzie [2007]:

“Assembling an economic actor: the agencement of a hedge fund.” Sociological Review, 55 (1): 57-80.

Page 34: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Class-of-models approach

� Economic modeling often involves creating a collection of models, parametrized by key variables.

– Abstract away from specific instances

– Because calibration is usually immensely difficult

John Sutton [2000]: John Sutton [2000]:

Marshall’s Tendencies: What Can Economists Know?

� The class-of-models approach useful for developing meta-models

– Multi-disciplinary: MAS, computer science, simulation, application domain, public policy or strategy.

Page 35: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Meta-models are the next Meta-models are the next challenge for agent-based

modeling!

Page 36: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Thank you!

I have learnt much about these topics from talking with:

Rob Bartels, Neill Haine, Ben Herd, Robert Marks, David Midgley, Simon Parsons, Ray Paton, Steve Phelps, Edd Robinson, Elizabeth Sklar, and Robert Stratton.

An earlier version of this talk was presented at EUMAS 2011.

Meta Detergent image due to Ryan Schenk.

Page 37: Agent-Based Models: What are models for? - …€¦ ·  · 2012-05-04Agent-Based Models: What are models for? Peter McBurney ... When prices rise, demand falls. We are thus calibrating

Further readingJoshua M Epstein [2008]: Why model? Keynote address to the Second World Congress on Social Simulation, George Mason University, USA.

Milton Friedman [1953]: The methodology of positive economics, pp. 3-43, Essays in Positive Economics. University of Chicago Press.

Robert E Marks [2007]: Validating simulation models: a general framework and four applied examples. Computational Economics, 30 (3): 265-290.

David F Midgley, Robert E Marks and D Kunchamwar [2007]: The building and assurance of agent-based models: an example and challenge to the field. Journal of Business Research, 60 (8): 884-893.

Robert Rosen [1985]: Anticipatory Systems. Pergamon Press.

Ariel Rubinstein [1998]: Modeling Bounded Rationality. MIT Press.

John Sutton [2000]: Marshall's Tendencies: What can economists know? MIT Press