examples of agent-based models in the social · pdf filetraffic simulation netlogo 3. aids...

18
Prof. Lars-Erik Cederman Center for Comparative and International Studies (CIS) Seilergraben 49, Room G.2, [email protected] Nils Weidmann, Room E.3, [email protected] http://www.icr.ethz.ch/teaching/compmodels Lecture, October 26, 2004 Introduction to Computational Modeling of Social Systems Examples of agent-based models in the social sciences

Upload: trinhhanh

Post on 13-Mar-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

Prof. Lars-Erik CedermanCenter for Comparative and International Studies (CIS)

Seilergraben 49, Room G.2, [email protected] Weidmann, Room E.3, [email protected]

http://www.icr.ethz.ch/teaching/compmodelsLecture, October 26, 2004

Introduction to Computational Modeling of Social Systems

Examples of agent-based modelsin the social sciences

Page 2: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

2Today’s agenda

• Sample runs of simple models• More complex models• Where to find more models• Gearing up

Page 3: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

3Simple sample models

1. Schelling’s segregation model RePast2. Traffic simulation NetLogo3. AIDS NetLogo4. Sugerscape Ascape5. Labour Market Simulation RePast

Page 4: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

4

Example 1: Neighborhood segregation

Move to random location otherwise

Micro-level rules of the game

Stay if at least a third of neighbors are “kin”

< 1/3

Thomas C. SchellingMicromotives and

Macrobehavior

Page 5: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

5

Example 2: Traffic simulation (NetLogo)

• Model of the movement of cars on a highway • Each car follows a simple set of rules:

– if there’s car close ahead, it slows down– if there’s no car ahead, it speeds up

• The project demonstrates how traffic jams form spontaneously without obstacles

Page 6: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

6Example 3: AIDS (NetLogo)

• Simulate the spread of the human immunodeficiency virus (HIV), via sexual transmission

• Control of the– population's tendency to practice

abstinence– amount of time an average "couple"

in the population will stay together– population's tendency to use

condoms– population's tendency to get tested

for HIV

Page 7: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

7Example 4: Sugarscape (Ascape)

• Series of models introduced by Epstein and Axtell 1996 Growing Artificial Societies MIT Press

• Emergent features:– wealth distributions– social networks– migration– population dynamics– conflict patterns– price formation– credit networks

• Programmed in Ascape

Page 8: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

8Example 5: Labour Market

• Agents represent workers in an international labourmarket

• Agents’ main goal is to have a job and friends

• Jobs are available according to a country’s economic situation

• If the agent has been unhappy for a certain time period, it moves to another country

(Model developed by Pedro Thomi as SS04 CompModels term project)

Page 9: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

9Complex sample models

1. Anasazi village formation2. Nationalist insurgencies in Geosim3. UrbanSim4. ILUTE

Page 10: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

10

Example 1: Anasazi Village Formation

• Gumerman et al. 2002 SFI Working Paper 02-16-067 (among others)

• Reconstruction of settlement patterns and demographics of pueblo Indians in the American Southwest

• The main puzzle pertains to the group’s sudden disappearance

• Based on the Sugarscape model, and thus also programmed in Ascape

Page 11: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

11Example 2: Geosim

• Geopolitical simulation system• Cederman 2004 “Articulating

the Mechanisms of Nationalist Insurgencies”

• Based on RePast

32144421

3##44#2# • National identities

• Cultural map

• State system

• Territorial obstacles

Page 12: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

12Example 3: UrbanSim

• UrbanSim is a simulation model for integrated planning and analysis

• Developed at the Univ. of Washington, Seattle

• Features decision-making by households, businesses, developers and governments

• http://www.urbansim.org/

Page 13: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

13Example 4: ILUTE

• Integrated Land Use Transportation Modeling from Toronto

http://www.civ.utoronto.ca/sect/traeng/ilute/

Page 14: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

14ILUTE continued

Page 15: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

15ILUTE continued

Page 16: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

16Where to find more models: Links

• See “Resources” under class home page• Santa Fe Institute: http://www.santafe.edu/

• Center for the Study of Complex Systems at the University of Michigan: http://www.pscs.umich.edu/

• European web sites on Computer simulation of societies http://www.soc.surrey.ac.uk/research/simsoc/ and “European Social Simulation Association” http://essa.eu.org/

• For the US counterpart, see http://www.dis.anl.gov/naacsos

• Leigh Tesfatsions’s site on computational economics:http://www.econ.iastate.edu/tesfatsi/ace.htm

• See also the Journal of Artificial Societies and Social Simulation: http://jasss.soc.surrey.ac.uk/JASSS.html

Page 17: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

17Gearing up

• Installing the Java 2 SDK• Installing IntelliJ IDEA• Create the main project definition• Create and run a simple test program• Adding the RePast module (and optionally

Ascape and NetLogo) • Setting up Schelling’s segregation model

(depends on RePast)

Page 18: Examples of agent-based models in the social · PDF fileTraffic simulation NetLogo 3. AIDS NetLogo 4. ... – price formation – credit networks ... • The main puzzle pertains to

18Development Environment

int a = 12;if (a == b)

b++;else

a++;

Java source code

EditorJava

compiler

Integrated Development Environmente.g. IDEA

JVM

Java libs Repast libs