SlideShare uma empresa Scribd logo
1 de 33
Richárd O. Legéndi, László Gulyás, Yuri Mansury
      Eötvös Loránd University, AITIA International, Inc., Cornell University
                     rlegendi@aitia.ai, lgulyas@aitia.ai, ysm3@cornell.edu


This work was partially supported by the Hungarian Government (KMOP-1.1.2-08/1-2008-0002), the European Union
Seventh Framework Programme FP7/2007-2013 under grant agreement CRISIS-ICT-2011-288501 (CRISIS –
Complexity Research Initiative for Systemic InstabilitieS) and mOSAIC 2011-256910 (Open-Source API and Platform
for Multiple Clouds). These supports are gratefully acknowledged.



                                 1st European Conference on Political Attitude and Mentality
                                         ECPAM 2012, Bucharest, September 3-5, 2012
Layout
  Motivation and Background
     Replication? Why care?
  Case Studies and Results
     ABM approach for the New Economic Geography
     Replication of the Bottom-up Adaptive Macroeconomics
  Summary




2012.09.03.     ECPAM 2012 - Replication case studies        2
2012.09.03.   ECPAM 2012 - Replication case studies   3
Replication? Why care?
  Replication of experiments, validation of results are
   essential
  „Simulations as experiments”
        If cannot be reproduced, its scientific value is in
              question
  Models never replicated - except a few classical ones
  Helps us get a deeper understanding
    Of relevant properties, key issues
    Deploy simulation as a research tool


2012.09.03.              ECPAM 2012 - Replication case studies   4
Validation?
  Docking – alingment of different models
     Different computational models for the same
      phenomenon
  Replication
     W/o being able to replicate results of an artificial model,
      how to target real-world systems?
     Several problems, e.g. ambiguity
                 Different approaches exist (AgentUML, ODD, etc.)
                 But there’s no consensus on using them...



2012.09.03.                 ECPAM 2012 - Replication case studies    5
An Agent-Based Adaptation of the New Economic Geography




2012.09.03.     ECPAM 2012 - Replication case studies      6
New Economic Geography
                                             Paul Krugman’s city
                                              formation model
                                             Originally a numerical
                                              model
                                             Applied agent-based
                                              approach


                                            Masahisa Fujita, Paul Krugman, Anthony J.
                                            Venables: „The Spatial Economy.” MIT Press,
                                            Cambridge, MA, 1999.

2012.09.03.   ECPAM 2012 - Replication case studies                                       7
Model Structure




2012.09.03.   ECPAM 2012 - Replication case studies   8
Zipf’s Law in City Formation
        City     Population         Rank
                   (2010)
  New York           8,175,133                1
  Los Angeles       3,792,621                 2
  Chicago           2,695,598                 3
  Houston           2,099,451                 4
  Philadelphia      1,526,006                 5

  Phoenix           1,445,632                 6
  San Antonio       1,327,407                 7

  San Diego         1,307,402                 8
  Dallas             1,197,816                9
  San Jose, CA       945,942                 10

2012.09.03.           ECPAM 2012 - Replication case studies   9
Motivation
  Previous works explains Zipf’s law successfully
     But lacks micro-foundations
  We extended th FKV model
     General-equilibrium model
     Excellent micro-foundations
     But cannot generate a hierarchical system of cities




2012.09.03.      ECPAM 2012 - Replication case studies      10
Why the Agent-Based approach?
  Introduce heterogeneity
     Noise
     Agent-specific migration thresholds
  Enables migration to proceed in a non ad-hoc way
  Extensibility




2012.09.03.        ECPAM 2012 - Replication case studies   11
Results
  We proposed a spatial AB version of FKV
  Applied an inherently different approach
  Retains the key features of the original model
     Including consumers’ love for varieties
     Increasing returns in production
     Tension between centripetal (agglomeration) and
      centrifugal (dispersion) forces




2012.09.03.     ECPAM 2012 - Replication case studies   12
Tomahawk-diagram
                                             Population migration (λ)
                                              vs. „freeness” of trade (φ)
                                             Break and sustain point
                                                   φB and φS
                                                   Closed-form solution
                                                      and implicit function to
                                                      evaluate




2012.09.03.   ECPAM 2012 - Replication case studies                              13
Replication Results
                                             Simulations replicates
                                                expected results
                                                   t = 2000 / 5000 time
                                                    steps
                                                   φB and φS verified




2012.09.03.   ECPAM 2012 - Replication case studies                        14
Replication of the Macroeconomics from the Bottom-up




2012.09.03.      ECPAM 2012 - Replication case studies   15
Macroeconomics from the Bottom-up
                                             Agent-based macro model
                                             Empirical external
                                                validation
                                                   Using real-world data
                                             Replication of the same
                                                model
                                                   In a different environment

                                            Gatti, Domenico Delli, Saul Desiderio, Edoardo
                                            Gaffeo, Pasquale Cirillo, and Mauro Gallegati:
                                            Macroeconomics from the Bottom-up. 1st ed.
                                            Springer, 2011.



2012.09.03.   ECPAM 2012 - Replication case studies                                          16
Model Structure




              Source: Domenico Delli Gatti, personal communications

2012.09.03.        ECPAM 2012 - Replication case studies              17
Agents
  Households
     Supply labor
     Buy consumption goods
     Hold deposits
  Firms
     Demand labor
     Produce and sell consumption goods
  Bank
     Receive deposits from households
     Extend loans to firms

2012.09.03.     ECPAM 2012 - Replication case studies   18
Market Processes I
 1. Fims compute net worth, production/price and
    labour demand
 2. Credit market:
       1.          Bank decides credit conditions
       2.          Firms decide to whether take loan or not
 3. Job market:
   1. Firms redefine labour demand, publish vacancies:
              1.     Excess workforce: fire workers
              2.     Insufficient workforce: hire if possible


2012.09.03.                  ECPAM 2012 - Replication case studies   19
Market Processes II
 4. Consumption goods market:
   1. Workers get wages and compute consumption budget
   2. Firms post their price
   3. Consumers contact z firms randomly
                   Ordered by price
       4.         Unspent money  Involuntary savings
       5.         Unsold goods  Sold at zero cost (non-durable)
 5.         Accounting
       1.         Firms calculate profits
       2.         Earnings are retained profits
                   Used to update net worth.


2012.09.03.                 ECPAM 2012 - Replication case studies   20
Why to replicate? Parameter sweeps
 „[...] suppose that in a model there are just 10 relevant
 parameters, and that each parameter can assume 10
 different values (a rather simplifying assumption). As a
 result, one obtains that the constellation of the
 parameter space is given by 10^10 vectors. If we perform
 20 different runs for each one of them to take into
 account the possible effects of changing the random
 seeds, the total number of simulations would
 amount to 2*10^11!”
              Gatti, Domenico Delli, Saul Desiderio, Edoardo Gaffeo, Pasquale Cirillo, and Mauro Gallegati:
              Macroeconomics from the Bottom-up. 1st ed. Springer, 2011 (p. 76., section 3.10.1)

2012.09.03.                      ECPAM 2012 - Replication case studies                                        21
Why to replicate?
  In a different environment?
     Matlab  Java/Mason


  Efficiency
     Reduce required time for a single simulation run
  Tool support: MEME
     Parameter sweep exploration
     Being Strong
                 Exploiting Grid/Cloud systems
        Being Smart
          Design of Experiments



2012.09.03.                 ECPAM 2012 - Replication case studies   22
Background
 “The CRISIS project addresses building a next generation
 macroeconomic and financial system policymaking model: a
 bottom-up agent-based simulation that fully accounts for the
 heterogeneity of households, firms, and government actors. The
 model will incorporate the latest evidence from behavioral
 economics in portraying agent behavior, and the CRISIS team will
 also collect new data on agent decision making using
 experimental economics techniques. While any model must
 make simplifying assumptions about human behavior, the CRISIS
 model will be significantly more realistic in its portrayal of relevant
 agent behavior than the current generation of policymaking
 models.”

 Crisis project description: https://www.crisis-economics.eu/


2012.09.03.         ECPAM 2012 - Replication case studies                  23
Replicated
           Model
                 Modelling                                    Economic Simulator
                 Framework                                       (Cloud-Based
                                                               Parameter Sweep
                                                                  Execution)




                            Models                              Web-based Game
                                                                 (Participatory
                                                                 Experiments)




2012.09.03.           ECPAM 2012 - Replication case studies                        24
Results I - Benchmarking




2012.09.03.   ECPAM 2012 - Replication case studies   25
Result II – Verification
  Scaled agents (w/o changing overall ratio)
     Up to 7500 agents
  Avg’d 40 runs
  t = 1000 time steps
  Included initial state
     High oscillations
     Until spontaneous
      order emerges
      („equilibrium”)

2012.09.03.     ECPAM 2012 - Replication case studies   26
2012.09.03.   ECPAM 2012 - Replication case studies   27
2012.09.03.   ECPAM 2012 - Replication case studies   28
Summary: Case Study 1
  We created a replication of the FKV by using a
     different approach
        Retains hallmark of the original model


  Introduced heterogeneity at several levels
  Allows further studies
     With different activation regimes
     N-cities model



2012.09.03.         ECPAM 2012 - Replication case studies   29
Project Info                                          http://emergingcities.aitia.ai




2012.09.03.   ECPAM 2012 - Replication case studies                                    30
Summary: Case Study 2
  We created a replication of the MacroABM model in a
     different environment
        Identic output
        Results are platform, environment-independent
        Opens up the window of standardized simulation tools
          Extensive parameter space explorations (MEME)

  Performance speedup
     By the factor 5x-10x
     On the other hand, code length is increased similarly:
                 Matlab: ~300 LoC
                 Java: 1500 + 1000 LoC

2012.09.03.                 ECPAM 2012 - Replication case studies   31
Download!
              http://www.crisis-economics.eu/jmark-i-build-report




2012.09.03.       ECPAM 2012 - Replication case studies             32
Richard O. Legendi
                                    Mail: rlegendi@aitia.ai
                                   Twitter: @legendi_ELTE
                      Blog: http://xcafebabe.blogspot.com
                    Web: http://people.inf.elte.hu/legendi/

                                      September 3., 2012.

Emerging Cities Website: http://emergingcities.aitia.ai/
     Crsisis Website: http://www.crisis-economics.eu/

Mais conteúdo relacionado

Destaque

Plant reproduction
Plant reproductionPlant reproduction
Plant reproductionchduncan
 
DNA Replication in eukaryotes and prokaryotes
DNA Replication in eukaryotes and prokaryotesDNA Replication in eukaryotes and prokaryotes
DNA Replication in eukaryotes and prokaryotesMohammad Barshan
 
RNA- Structure, Types and Functions
RNA- Structure, Types and FunctionsRNA- Structure, Types and Functions
RNA- Structure, Types and FunctionsNamrata Chhabra
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksSlideShare
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShareSlideShare
 

Destaque (7)

Plant reproduction
Plant reproductionPlant reproduction
Plant reproduction
 
DNA Replication in eukaryotes and prokaryotes
DNA Replication in eukaryotes and prokaryotesDNA Replication in eukaryotes and prokaryotes
DNA Replication in eukaryotes and prokaryotes
 
DNA Replication
 DNA Replication DNA Replication
DNA Replication
 
RNA- Structure, Types and Functions
RNA- Structure, Types and FunctionsRNA- Structure, Types and Functions
RNA- Structure, Types and Functions
 
SlideShare 101
SlideShare 101SlideShare 101
SlideShare 101
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & Tricks
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShare
 

Semelhante a Model Replication in the Context of Agent-based Simulation

Replication of Macroeconomics from the Bottom-up
Replication of Macroeconomics from the Bottom-upReplication of Macroeconomics from the Bottom-up
Replication of Macroeconomics from the Bottom-upRichard Oliver Legendi
 
Performance, Energy Consumption and Costs: A Comparative Analysis of Automati...
Performance, Energy Consumption and Costs: A Comparative Analysis of Automati...Performance, Energy Consumption and Costs: A Comparative Analysis of Automati...
Performance, Energy Consumption and Costs: A Comparative Analysis of Automati...kevig
 
Performance, energy consumption and costs: a comparative analysis of automati...
Performance, energy consumption and costs: a comparative analysis of automati...Performance, energy consumption and costs: a comparative analysis of automati...
Performance, energy consumption and costs: a comparative analysis of automati...kevig
 
2011 Eclipse DemoCamp Budapest, Indigo Release
2011 Eclipse DemoCamp Budapest, Indigo Release2011 Eclipse DemoCamp Budapest, Indigo Release
2011 Eclipse DemoCamp Budapest, Indigo ReleaseRichard Oliver Legendi
 
Simulation
SimulationSimulation
Simulationmarzia
 
Aj Copulas V4
Aj Copulas V4Aj Copulas V4
Aj Copulas V4jainan33
 
Towards Scalable Model Views on Heterogeneous Model Resources - MODELS 2018 @...
Towards Scalable Model Views on Heterogeneous Model Resources - MODELS 2018 @...Towards Scalable Model Views on Heterogeneous Model Resources - MODELS 2018 @...
Towards Scalable Model Views on Heterogeneous Model Resources - MODELS 2018 @...Hugo Bruneliere
 
Scalable Model Views over Heterogeneous Modeling Technologies and Resources -...
Scalable Model Views over Heterogeneous Modeling Technologies and Resources -...Scalable Model Views over Heterogeneous Modeling Technologies and Resources -...
Scalable Model Views over Heterogeneous Modeling Technologies and Resources -...Hugo Bruneliere
 
Wondeland Of Modelling
Wondeland Of ModellingWondeland Of Modelling
Wondeland Of ModellingKaniska Mandal
 
Cheap assignment help USA
Cheap assignment help USACheap assignment help USA
Cheap assignment help USANicole Valerio
 
DOMAIN ENGINEERING FOR APPLIED MONOCULAR RECONSTRUCTION OF PARAMETRIC FACES
DOMAIN ENGINEERING FOR APPLIED MONOCULAR RECONSTRUCTION OF PARAMETRIC FACESDOMAIN ENGINEERING FOR APPLIED MONOCULAR RECONSTRUCTION OF PARAMETRIC FACES
DOMAIN ENGINEERING FOR APPLIED MONOCULAR RECONSTRUCTION OF PARAMETRIC FACESsipij
 
Domain Engineering for Applied Monocular Reconstruction of Parametric Faces
Domain Engineering for Applied Monocular Reconstruction of Parametric FacesDomain Engineering for Applied Monocular Reconstruction of Parametric Faces
Domain Engineering for Applied Monocular Reconstruction of Parametric Facessipij
 
ODSC West 2021 – Composition in ML
ODSC West 2021 – Composition in MLODSC West 2021 – Composition in ML
ODSC West 2021 – Composition in MLBryan Bischof
 
A Fusion Framework for Multimodal Interactive Applications
A Fusion Framework for Multimodal Interactive ApplicationsA Fusion Framework for Multimodal Interactive Applications
A Fusion Framework for Multimodal Interactive ApplicationsJean Vanderdonckt
 
Management of simulation studies in computational biology
Management of simulation studies in computational biologyManagement of simulation studies in computational biology
Management of simulation studies in computational biologyUniversity Medicine Greifswald
 
Model-driven Spreadsheets
Model-driven SpreadsheetsModel-driven Spreadsheets
Model-driven SpreadsheetsJácome Cunha
 

Semelhante a Model Replication in the Context of Agent-based Simulation (20)

Replication of Macroeconomics from the Bottom-up
Replication of Macroeconomics from the Bottom-upReplication of Macroeconomics from the Bottom-up
Replication of Macroeconomics from the Bottom-up
 
Performance, Energy Consumption and Costs: A Comparative Analysis of Automati...
Performance, Energy Consumption and Costs: A Comparative Analysis of Automati...Performance, Energy Consumption and Costs: A Comparative Analysis of Automati...
Performance, Energy Consumption and Costs: A Comparative Analysis of Automati...
 
Performance, energy consumption and costs: a comparative analysis of automati...
Performance, energy consumption and costs: a comparative analysis of automati...Performance, energy consumption and costs: a comparative analysis of automati...
Performance, energy consumption and costs: a comparative analysis of automati...
 
Sems project overview
Sems project overviewSems project overview
Sems project overview
 
2011 Eclipse DemoCamp Budapest, Indigo Release
2011 Eclipse DemoCamp Budapest, Indigo Release2011 Eclipse DemoCamp Budapest, Indigo Release
2011 Eclipse DemoCamp Budapest, Indigo Release
 
Simulation
SimulationSimulation
Simulation
 
Simulation experiment descriptions and management
Simulation experiment descriptions and managementSimulation experiment descriptions and management
Simulation experiment descriptions and management
 
Aj Copulas V4
Aj Copulas V4Aj Copulas V4
Aj Copulas V4
 
Presentation
PresentationPresentation
Presentation
 
Towards Scalable Model Views on Heterogeneous Model Resources - MODELS 2018 @...
Towards Scalable Model Views on Heterogeneous Model Resources - MODELS 2018 @...Towards Scalable Model Views on Heterogeneous Model Resources - MODELS 2018 @...
Towards Scalable Model Views on Heterogeneous Model Resources - MODELS 2018 @...
 
Scalable Model Views over Heterogeneous Modeling Technologies and Resources -...
Scalable Model Views over Heterogeneous Modeling Technologies and Resources -...Scalable Model Views over Heterogeneous Modeling Technologies and Resources -...
Scalable Model Views over Heterogeneous Modeling Technologies and Resources -...
 
Wondeland Of Modelling
Wondeland Of ModellingWondeland Of Modelling
Wondeland Of Modelling
 
Cheap assignment help USA
Cheap assignment help USACheap assignment help USA
Cheap assignment help USA
 
DOMAIN ENGINEERING FOR APPLIED MONOCULAR RECONSTRUCTION OF PARAMETRIC FACES
DOMAIN ENGINEERING FOR APPLIED MONOCULAR RECONSTRUCTION OF PARAMETRIC FACESDOMAIN ENGINEERING FOR APPLIED MONOCULAR RECONSTRUCTION OF PARAMETRIC FACES
DOMAIN ENGINEERING FOR APPLIED MONOCULAR RECONSTRUCTION OF PARAMETRIC FACES
 
Domain Engineering for Applied Monocular Reconstruction of Parametric Faces
Domain Engineering for Applied Monocular Reconstruction of Parametric FacesDomain Engineering for Applied Monocular Reconstruction of Parametric Faces
Domain Engineering for Applied Monocular Reconstruction of Parametric Faces
 
ODSC West 2021 – Composition in ML
ODSC West 2021 – Composition in MLODSC West 2021 – Composition in ML
ODSC West 2021 – Composition in ML
 
A Fusion Framework for Multimodal Interactive Applications
A Fusion Framework for Multimodal Interactive ApplicationsA Fusion Framework for Multimodal Interactive Applications
A Fusion Framework for Multimodal Interactive Applications
 
Management of simulation studies in computational biology
Management of simulation studies in computational biologyManagement of simulation studies in computational biology
Management of simulation studies in computational biology
 
Model-driven Spreadsheets
Model-driven SpreadsheetsModel-driven Spreadsheets
Model-driven Spreadsheets
 
Presentation
PresentationPresentation
Presentation
 

Mais de Richard Oliver Legendi

Tools For Statistical And Behavioral Analysis Of Mason Models
Tools For Statistical And Behavioral Analysis Of Mason ModelsTools For Statistical And Behavioral Analysis Of Mason Models
Tools For Statistical And Behavioral Analysis Of Mason ModelsRichard Oliver Legendi
 
When Experimental and Computational Research Meet: The Participatory Extensio...
When Experimental and Computational Research Meet: The Participatory Extensio...When Experimental and Computational Research Meet: The Participatory Extensio...
When Experimental and Computational Research Meet: The Participatory Extensio...Richard Oliver Legendi
 
Comparison of Elementary Dynamic Network Models Using Empirical Data
Comparison of Elementary Dynamic Network Models Using Empirical DataComparison of Elementary Dynamic Network Models Using Empirical Data
Comparison of Elementary Dynamic Network Models Using Empirical DataRichard Oliver Legendi
 
Szoftver tesztelés - Gyakorlati jó-ha-tudod
Szoftver tesztelés - Gyakorlati jó-ha-tudodSzoftver tesztelés - Gyakorlati jó-ha-tudod
Szoftver tesztelés - Gyakorlati jó-ha-tudodRichard Oliver Legendi
 
ELTE VI. féléves doktori beszámoló
ELTE VI. féléves doktori beszámolóELTE VI. féléves doktori beszámoló
ELTE VI. féléves doktori beszámolóRichard Oliver Legendi
 
Fables - Funkcionális programozási nyelv ágens-alapú szimulációkhoz
Fables - Funkcionális programozási nyelv ágens-alapú szimulációkhozFables - Funkcionális programozási nyelv ágens-alapú szimulációkhoz
Fables - Funkcionális programozási nyelv ágens-alapú szimulációkhozRichard Oliver Legendi
 
FABLES IME - Agent-Based Modeling environment
FABLES IME - Agent-Based Modeling environmentFABLES IME - Agent-Based Modeling environment
FABLES IME - Agent-Based Modeling environmentRichard Oliver Legendi
 
2010/04/28 IK Szakest, Ágens-alapú szimulációk
2010/04/28 IK Szakest, Ágens-alapú szimulációk2010/04/28 IK Szakest, Ágens-alapú szimulációk
2010/04/28 IK Szakest, Ágens-alapú szimulációkRichard Oliver Legendi
 

Mais de Richard Oliver Legendi (8)

Tools For Statistical And Behavioral Analysis Of Mason Models
Tools For Statistical And Behavioral Analysis Of Mason ModelsTools For Statistical And Behavioral Analysis Of Mason Models
Tools For Statistical And Behavioral Analysis Of Mason Models
 
When Experimental and Computational Research Meet: The Participatory Extensio...
When Experimental and Computational Research Meet: The Participatory Extensio...When Experimental and Computational Research Meet: The Participatory Extensio...
When Experimental and Computational Research Meet: The Participatory Extensio...
 
Comparison of Elementary Dynamic Network Models Using Empirical Data
Comparison of Elementary Dynamic Network Models Using Empirical DataComparison of Elementary Dynamic Network Models Using Empirical Data
Comparison of Elementary Dynamic Network Models Using Empirical Data
 
Szoftver tesztelés - Gyakorlati jó-ha-tudod
Szoftver tesztelés - Gyakorlati jó-ha-tudodSzoftver tesztelés - Gyakorlati jó-ha-tudod
Szoftver tesztelés - Gyakorlati jó-ha-tudod
 
ELTE VI. féléves doktori beszámoló
ELTE VI. féléves doktori beszámolóELTE VI. féléves doktori beszámoló
ELTE VI. féléves doktori beszámoló
 
Fables - Funkcionális programozási nyelv ágens-alapú szimulációkhoz
Fables - Funkcionális programozási nyelv ágens-alapú szimulációkhozFables - Funkcionális programozási nyelv ágens-alapú szimulációkhoz
Fables - Funkcionális programozási nyelv ágens-alapú szimulációkhoz
 
FABLES IME - Agent-Based Modeling environment
FABLES IME - Agent-Based Modeling environmentFABLES IME - Agent-Based Modeling environment
FABLES IME - Agent-Based Modeling environment
 
2010/04/28 IK Szakest, Ágens-alapú szimulációk
2010/04/28 IK Szakest, Ágens-alapú szimulációk2010/04/28 IK Szakest, Ágens-alapú szimulációk
2010/04/28 IK Szakest, Ágens-alapú szimulációk
 

Último

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Último (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

Model Replication in the Context of Agent-based Simulation

  • 1. Richárd O. Legéndi, László Gulyás, Yuri Mansury Eötvös Loránd University, AITIA International, Inc., Cornell University rlegendi@aitia.ai, lgulyas@aitia.ai, ysm3@cornell.edu This work was partially supported by the Hungarian Government (KMOP-1.1.2-08/1-2008-0002), the European Union Seventh Framework Programme FP7/2007-2013 under grant agreement CRISIS-ICT-2011-288501 (CRISIS – Complexity Research Initiative for Systemic InstabilitieS) and mOSAIC 2011-256910 (Open-Source API and Platform for Multiple Clouds). These supports are gratefully acknowledged. 1st European Conference on Political Attitude and Mentality ECPAM 2012, Bucharest, September 3-5, 2012
  • 2. Layout  Motivation and Background  Replication? Why care?  Case Studies and Results  ABM approach for the New Economic Geography  Replication of the Bottom-up Adaptive Macroeconomics  Summary 2012.09.03. ECPAM 2012 - Replication case studies 2
  • 3. 2012.09.03. ECPAM 2012 - Replication case studies 3
  • 4. Replication? Why care?  Replication of experiments, validation of results are essential  „Simulations as experiments”  If cannot be reproduced, its scientific value is in question  Models never replicated - except a few classical ones  Helps us get a deeper understanding  Of relevant properties, key issues  Deploy simulation as a research tool 2012.09.03. ECPAM 2012 - Replication case studies 4
  • 5. Validation?  Docking – alingment of different models  Different computational models for the same phenomenon  Replication  W/o being able to replicate results of an artificial model, how to target real-world systems?  Several problems, e.g. ambiguity  Different approaches exist (AgentUML, ODD, etc.)  But there’s no consensus on using them... 2012.09.03. ECPAM 2012 - Replication case studies 5
  • 6. An Agent-Based Adaptation of the New Economic Geography 2012.09.03. ECPAM 2012 - Replication case studies 6
  • 7. New Economic Geography  Paul Krugman’s city formation model  Originally a numerical model  Applied agent-based approach Masahisa Fujita, Paul Krugman, Anthony J. Venables: „The Spatial Economy.” MIT Press, Cambridge, MA, 1999. 2012.09.03. ECPAM 2012 - Replication case studies 7
  • 8. Model Structure 2012.09.03. ECPAM 2012 - Replication case studies 8
  • 9. Zipf’s Law in City Formation City Population Rank (2010) New York 8,175,133 1 Los Angeles 3,792,621 2 Chicago 2,695,598 3 Houston 2,099,451 4 Philadelphia 1,526,006 5 Phoenix 1,445,632 6 San Antonio 1,327,407 7 San Diego 1,307,402 8 Dallas 1,197,816 9 San Jose, CA 945,942 10 2012.09.03. ECPAM 2012 - Replication case studies 9
  • 10. Motivation  Previous works explains Zipf’s law successfully  But lacks micro-foundations  We extended th FKV model  General-equilibrium model  Excellent micro-foundations  But cannot generate a hierarchical system of cities 2012.09.03. ECPAM 2012 - Replication case studies 10
  • 11. Why the Agent-Based approach?  Introduce heterogeneity  Noise  Agent-specific migration thresholds  Enables migration to proceed in a non ad-hoc way  Extensibility 2012.09.03. ECPAM 2012 - Replication case studies 11
  • 12. Results  We proposed a spatial AB version of FKV  Applied an inherently different approach  Retains the key features of the original model  Including consumers’ love for varieties  Increasing returns in production  Tension between centripetal (agglomeration) and centrifugal (dispersion) forces 2012.09.03. ECPAM 2012 - Replication case studies 12
  • 13. Tomahawk-diagram  Population migration (λ) vs. „freeness” of trade (φ)  Break and sustain point  φB and φS  Closed-form solution and implicit function to evaluate 2012.09.03. ECPAM 2012 - Replication case studies 13
  • 14. Replication Results  Simulations replicates expected results  t = 2000 / 5000 time steps  φB and φS verified 2012.09.03. ECPAM 2012 - Replication case studies 14
  • 15. Replication of the Macroeconomics from the Bottom-up 2012.09.03. ECPAM 2012 - Replication case studies 15
  • 16. Macroeconomics from the Bottom-up  Agent-based macro model  Empirical external validation  Using real-world data  Replication of the same model  In a different environment Gatti, Domenico Delli, Saul Desiderio, Edoardo Gaffeo, Pasquale Cirillo, and Mauro Gallegati: Macroeconomics from the Bottom-up. 1st ed. Springer, 2011. 2012.09.03. ECPAM 2012 - Replication case studies 16
  • 17. Model Structure Source: Domenico Delli Gatti, personal communications 2012.09.03. ECPAM 2012 - Replication case studies 17
  • 18. Agents  Households  Supply labor  Buy consumption goods  Hold deposits  Firms  Demand labor  Produce and sell consumption goods  Bank  Receive deposits from households  Extend loans to firms 2012.09.03. ECPAM 2012 - Replication case studies 18
  • 19. Market Processes I 1. Fims compute net worth, production/price and labour demand 2. Credit market: 1. Bank decides credit conditions 2. Firms decide to whether take loan or not 3. Job market: 1. Firms redefine labour demand, publish vacancies: 1. Excess workforce: fire workers 2. Insufficient workforce: hire if possible 2012.09.03. ECPAM 2012 - Replication case studies 19
  • 20. Market Processes II 4. Consumption goods market: 1. Workers get wages and compute consumption budget 2. Firms post their price 3. Consumers contact z firms randomly  Ordered by price 4. Unspent money  Involuntary savings 5. Unsold goods  Sold at zero cost (non-durable) 5. Accounting 1. Firms calculate profits 2. Earnings are retained profits  Used to update net worth. 2012.09.03. ECPAM 2012 - Replication case studies 20
  • 21. Why to replicate? Parameter sweeps „[...] suppose that in a model there are just 10 relevant parameters, and that each parameter can assume 10 different values (a rather simplifying assumption). As a result, one obtains that the constellation of the parameter space is given by 10^10 vectors. If we perform 20 different runs for each one of them to take into account the possible effects of changing the random seeds, the total number of simulations would amount to 2*10^11!” Gatti, Domenico Delli, Saul Desiderio, Edoardo Gaffeo, Pasquale Cirillo, and Mauro Gallegati: Macroeconomics from the Bottom-up. 1st ed. Springer, 2011 (p. 76., section 3.10.1) 2012.09.03. ECPAM 2012 - Replication case studies 21
  • 22. Why to replicate?  In a different environment?  Matlab  Java/Mason  Efficiency  Reduce required time for a single simulation run  Tool support: MEME  Parameter sweep exploration  Being Strong  Exploiting Grid/Cloud systems  Being Smart  Design of Experiments 2012.09.03. ECPAM 2012 - Replication case studies 22
  • 23. Background “The CRISIS project addresses building a next generation macroeconomic and financial system policymaking model: a bottom-up agent-based simulation that fully accounts for the heterogeneity of households, firms, and government actors. The model will incorporate the latest evidence from behavioral economics in portraying agent behavior, and the CRISIS team will also collect new data on agent decision making using experimental economics techniques. While any model must make simplifying assumptions about human behavior, the CRISIS model will be significantly more realistic in its portrayal of relevant agent behavior than the current generation of policymaking models.” Crisis project description: https://www.crisis-economics.eu/ 2012.09.03. ECPAM 2012 - Replication case studies 23
  • 24. Replicated Model Modelling Economic Simulator Framework (Cloud-Based Parameter Sweep Execution) Models Web-based Game (Participatory Experiments) 2012.09.03. ECPAM 2012 - Replication case studies 24
  • 25. Results I - Benchmarking 2012.09.03. ECPAM 2012 - Replication case studies 25
  • 26. Result II – Verification  Scaled agents (w/o changing overall ratio)  Up to 7500 agents  Avg’d 40 runs  t = 1000 time steps  Included initial state  High oscillations  Until spontaneous order emerges („equilibrium”) 2012.09.03. ECPAM 2012 - Replication case studies 26
  • 27. 2012.09.03. ECPAM 2012 - Replication case studies 27
  • 28. 2012.09.03. ECPAM 2012 - Replication case studies 28
  • 29. Summary: Case Study 1  We created a replication of the FKV by using a different approach  Retains hallmark of the original model  Introduced heterogeneity at several levels  Allows further studies  With different activation regimes  N-cities model 2012.09.03. ECPAM 2012 - Replication case studies 29
  • 30. Project Info http://emergingcities.aitia.ai 2012.09.03. ECPAM 2012 - Replication case studies 30
  • 31. Summary: Case Study 2  We created a replication of the MacroABM model in a different environment  Identic output  Results are platform, environment-independent  Opens up the window of standardized simulation tools  Extensive parameter space explorations (MEME)  Performance speedup  By the factor 5x-10x  On the other hand, code length is increased similarly:  Matlab: ~300 LoC  Java: 1500 + 1000 LoC 2012.09.03. ECPAM 2012 - Replication case studies 31
  • 32. Download! http://www.crisis-economics.eu/jmark-i-build-report 2012.09.03. ECPAM 2012 - Replication case studies 32
  • 33. Richard O. Legendi Mail: rlegendi@aitia.ai Twitter: @legendi_ELTE Blog: http://xcafebabe.blogspot.com Web: http://people.inf.elte.hu/legendi/ September 3., 2012. Emerging Cities Website: http://emergingcities.aitia.ai/ Crsisis Website: http://www.crisis-economics.eu/

Notas do Editor

  1. Earnings after interest payments and dividends
  2. Harmonized library, Game,policymaking model
  3. The benefits we gained is on one hand, technical. Over 5 magnitudes (20 min. vs. 3 min.)
  4. Work in Progress