SlideShare a Scribd company logo
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/

More Related Content

Viewers also liked

Plant reproduction
Plant reproductionPlant reproduction
Plant reproduction
chduncan
 
DNA Replication in eukaryotes and prokaryotes
DNA Replication in eukaryotes and prokaryotesDNA Replication in eukaryotes and prokaryotes
DNA Replication in eukaryotes and prokaryotes
Mohammad Barshan
 
DNA Replication
 DNA Replication DNA Replication
DNA Replication
Namrata Chhabra
 
RNA- Structure, Types and Functions
RNA- Structure, Types and FunctionsRNA- Structure, Types and Functions
RNA- Structure, Types and Functions
Namrata Chhabra
 
SlideShare 101
SlideShare 101SlideShare 101
SlideShare 101
Amit Ranjan
 
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
SlideShare
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShare
SlideShare
 

Viewers also liked (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
 

Similar to 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-up
Richard 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
 
Sems project overview
Sems project overviewSems project overview
Sems project overview
University Medicine Greifswald
 
2011 Eclipse DemoCamp Budapest, Indigo Release
2011 Eclipse DemoCamp Budapest, Indigo Release2011 Eclipse DemoCamp Budapest, Indigo Release
2011 Eclipse DemoCamp Budapest, Indigo Release
Richard Oliver Legendi
 
Simulation
SimulationSimulation
Simulation
marzia
 
Simulation experiment descriptions and management
Simulation experiment descriptions and managementSimulation experiment descriptions and management
Simulation experiment descriptions and management
University Medicine Greifswald
 
Aj Copulas V4
Aj Copulas V4Aj Copulas V4
Aj Copulas V4
jainan33
 
Presentation
PresentationPresentation
Presentation
Amar Dhillon
 
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 Modelling
Kaniska Mandal
 
Cheap assignment help USA
Cheap assignment help USACheap assignment help USA
Cheap assignment help USA
Nicole 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 FACES
sipij
 
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
sipij
 
ODSC West 2021 – Composition in ML
ODSC West 2021 – Composition in MLODSC West 2021 – Composition in ML
ODSC West 2021 – Composition in ML
Bryan 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 Applications
Jean 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 biology
University Medicine Greifswald
 
Model-driven Spreadsheets
Model-driven SpreadsheetsModel-driven Spreadsheets
Model-driven Spreadsheets
Jácome Cunha
 
Presentation
PresentationPresentation
Presentation
Molla Deribie
 

Similar to 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
 

More from 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 Models
Richard 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 Data
Richard 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-tudod
Richard 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ókhoz
Richard Oliver Legendi
 
FABLES IME - Agent-Based Modeling environment
FABLES IME - Agent-Based Modeling environmentFABLES IME - Agent-Based Modeling environment
FABLES IME - Agent-Based Modeling environment
Richard 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ók
Richard Oliver Legendi
 

More from 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
 

Recently uploaded

How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
LucaBarbaro3
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
Hiike
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Operating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptxOperating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptx
Pravash Chandra Das
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 

Recently uploaded (20)

How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Operating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptxOperating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptx
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 

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/

Editor's Notes

  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