24 Maggio 20121CIPESS - Alessandria _______________________________________ CIPESS Centro Interuniversitario di Psicologia ed Economia Sperimentali e Simulative.

Slides:



Advertisements
Similar presentations
Mathematics in Engineering Education 1. The Meaning of Mathematics 2. Why Math Education Have to Be Reformed and How It Can Be Done 3. WebCT: Some Possibilities.
Advertisements

An Introduction to Physics
WHAT IS THE NATURE OF SCIENCE?
INTRODUCTION TO MODELING
Chapter 1 Introduction to Modeling DECISION MODELING WITH MICROSOFT EXCEL Copyright 2001 Prentice Hall.
Participatory Simulation & Emergent Behavior Author : Uri Wilensky Presenter : Krunal Doshi.
September 25th, 2007Real Collegio Carlo Alberto1 Agent based simulation and electricity market Pietro TERNA, Department of Economic and Financial Science,
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
Simulation Models as a Research Method Professor Alexander Settles.
Developing Ideas for Research and Evaluating Theories of Behavior
Engineering Systems Analysis for Design Richard de Neufville © Massachusetts Institute of Technology Flaw of Averages Slide 1 of 29 Richard de Neufville.
Science and Engineering Practices
Oct 20141Project ModelMMORPG _______________________________________ Project ModelMMORPG Agent-based models for exploring.
Research Methodology Lecture 1.
ACOS 2010 Standards of Mathematical Practice
CHAPTER 3 RESEARCH TRADITIONS.
RESEARCH DESIGN.
Welcome! Econ A494 Math Econ & Advanced Micro Theory Spring 2013 Prof. Jim Murphy.
Society: the Basics Chapter 1.
By Saparila Worokinasih
Scientific Methods Bellringer Section 2
RESEARCH A systematic quest for undiscovered truth A way of thinking
Lecture 1 What is Modeling? What is Modeling? Creating a simplified version of reality Working with this version to understand or control some.
Introduction to Operation Research
“Knowing Revisited” And that’s how we can move toward really knowing something: Richard Feynman on the Scientific Method.
Role of Statistics in Geography
Learning Progressions: Some Thoughts About What we do With and About Them Jim Pellegrino University of Illinois at Chicago.
November 22-23, 20121ENS, Paris _______________________________________ CERES-ERTI Coupled Climate – Economic Modelling and Data Analysis Agent-based models.
Introduction to Research
1 Derivatives & Risk Management: Part II Models, valuation and risk management.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 10, Slide 1 Chapter 10 Understanding Randomness.
Standards for Mathematical Practice
ENM 503 Lesson 1 – Methods and Models The why’s, how’s, and what’s of mathematical modeling A model is a representation in mathematical terms of some real.
Virtual Models English 197 Jennifer Yang. Reality Bytes - Casti To what degree can we employ electronic surrogates for the reality that they represent?
Emily Wilkins and David Courard-Hauri, Environmental Science and Policy Program, Drake University Introduction References 1.Doran, P. T. & Zimmerman, M.
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
© 2008 McGraw-Hill Higher Education The Statistical Imagination Chapter 1. The Statistical Imagination.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Developing and Evaluating Theories of Behavior.
Gile Sampling1 Sampling. Fundamental principles. Daniel Gile
The Next Generation Science Standards: 4. Science and Engineering Practices Professor Michael Wysession Department of Earth and Planetary Sciences Washington.
WHAT IS THE NATURE OF SCIENCE?. SCIENTIFIC WORLD VIEW 1.The Universe Is Understandable. 2.The Universe Is a Vast Single System In Which the Basic Rules.
Introduction to Earth Science Section 2 Section 2: Science as a Process Preview Key Ideas Behavior of Natural Systems Scientific Methods Scientific Measurements.
Question paper 1997.
Theories and Hypotheses. Assumptions of science A true physical universe exists Order through cause and effect, the connections can be discovered Knowledge.
Thinking like a Scientist
Javier Junquera Introduction to atomistic simulation methods in condensed matter Alberto García Pablo Ordejón.
Chapter 1 Introduction McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All Rights Reserved.
The World of Life Science
Bits don’t have error bars Russ Abbott Department of Computer Science California State University, Los Angeles.
Research Word has a broad spectrum of meanings –“Research this topic on ….” –“Years of research has produced a new ….”
Scientific Methodology Vodcast 1.1 Unit 1: Introduction to Biology.
Introduction to Earth Science Section 1 SECTION 1: WHAT IS EARTH SCIENCE? Preview  Key Ideas Key Ideas  The Scientific Study of Earth The Scientific.
The inference and accuracy We learned how to estimate the probability that the percentage of some subjects in the sample would be in a given interval by.
The accuracy of averages We learned how to make inference from the sample to the population: Counting the percentages. Here we begin to learn how to make.
The expected value The value of a variable one would “expect” to get. It is also called the (mathematical) expectation, or the mean.
December 3, 2014AISC-CODISCO 2014, revised Nov From Agent-based models to network analysis (and return): the policy-making perspective Magda Fontana.
Understanding AI of 2 Player Games. Motivation Not much experience in AI (first AI project) and no specific interests/passion that I wanted to explore.
WHAT MODELS DO THAT THEORIES CAN’T Lilia Gurova Department of Cognitive Science and Psychology New Bulgarian University.
Done by Fazlun Satya Saradhi. INTRODUCTION The main concept is to use different types of agent models which would help create a better dynamic and adaptive.
WHAT IS THE NATURE OF SCIENCE?
Agent-Based Models - Introductory notes Complexity Economics and
Bias.
Classification of Research
Magda Fontana Pietro Terna
Section 2: Science as a Process
Introduction to science
Scientific Inquiry Unit 0.3.
Developing and Evaluating Theories of Behavior
Chapter 02 Lecture Outline
Managerial Decision Making and Evaluating Research
Presentation transcript:

24 Maggio 20121CIPESS - Alessandria _______________________________________ CIPESS Centro Interuniversitario di Psicologia ed Economia Sperimentali e Simulative Modelli di simulazione: l'importanza dell'apprendimento negli agenti Pietro Terna Dipartimento di Scienze economico-sociali e matematico-statistiche web.econ.unito.it/terna or goo.gl/y0zbx These slides at goo.gl/X3kGf _______________________________________

24 Maggio 20122CIPESS - Alessandria _______________________________________ Basics _______________________________________ A note: the slides contain several references; you can find them fully reported in a draft paper, on line at

24 Maggio 2012CIPESS - Alessandria3 Anderson 's 1972 paper “More is different” as a manifesto. (p.393) The reductionist hypothesis may still be a topic for controversy among philosophers, but among the great majority of active scientists I think it is accepted without questions. The workings of our minds and bodies, and of all the animate or inanimate matter of which we have any detailed knowledge, are assumed to be controlled by the same set of fundamental laws, which except under certain extreme conditions we feel we know pretty well. (…)The main fallacy in this kind of thinking is that the reductionist hypothesis does not by any means imply a "constructionist" one: The ability to reduce everything to simple fundamental laws does not imply the ability to start from those laws and reconstruct the universe.

24 Maggio 2012CIPESS - Alessandria4 Anderson 's 1972 paper “More is different” as a manifesto. The constructionist hypothesis breaks down when confronted with the twin difficulties of scale and complexity. The behavior of large and complex aggregates of elementary particles, it turns out, is not to be understood in terms of a simple extrapolation of the properties of a few particles. Instead, at each level of complexity entirely new properties appear, and the understanding of the new behaviors requires research which I think is as fundamental in its nature as any other. (p.396) In closing, I offer two examples from economics of what I hope to have said. Marx said that quantitative differences become qualitative ones, but a dialogue in Paris in the 1920's sums it up even more clearly: FITZGERALD: The rich are different from us. HEMINGWAY: Yes, they have more money.

24 Maggio 2012CIPESS - Alessandria5 Rosenblueth and Wiener's 1945 paper, “The Role of Models in Science”, as a “manual” from the founders of cybernetics. (p. 317) A distinction has already been made between material and formal or intellectual models. A material model is the representation of a complex system by a system which is assumed simpler and which is also assumed to have some properties similar to those selected for study in the original complex system. A formal model is a symbolic assertion in logical terms of an idealized relatively simple situation sharing the structural properties of the original factual system. Material models are useful in the following cases. a) They may assist the scientist in replacing a phenomenon in an unfamiliar field by one in a field in which he is more at home. (…) b) A material model may enable the carrying out of experiments under more favorable conditions than would be available in the original system.

24 Maggio 2012CIPESS - Alessandria6 Rosenblueth and Wiener's 1945 paper, “The Role of Models in Science”, as a “manual” from the founders of cybernetics. (p. 319) It is obvious, therefore, that the difference between open-box and closed-box problems, although significant, is one of degree rather than of kind. All scientific problems begin as closed-box problems, i.e., only a few of the significant variables are recognized. Scientific progress consists in a progressive opening of those boxes. The successive addition of terminals or variables, leads to gradually more elaborate theoretical models: hence to a hierarchy in these models, from relatively simple, highly abstract ones, to more complex, more concrete theoretical structures. A comment: this is the main role of simulation models in the complexity perspective, building material models as artifacts running into a computer, having always in mind to go toward “more elaborate theoretical models”.

24 Maggio 20127CIPESS - Alessandria _______________________________________ In a historical perspective _______________________________________

24 Maggio 2012CIPESS - Alessandria8 Keynes [1924], Collected Writings, X, 1972, 158n (I owe this wonderful quotation of Keynes to a Marchionatti's paper reported in special issue of History of Economic Ideas about complexity and economics, 2010/2 ) Professor Planck, of Berlin, the famous originator of the Quantum Theory, once remarked to me that in early life he had thought of studying economics, but had found it too difficult! Professor Planck could easily master the whole corpus of mathematical economics in a few days. He did not mean that! But the amalgam of logic and intuition and the wide knowledge of facts, most of which are not precise, which is required for economic interpretation in its highest form is, quite truly, overwhelmingly difficult for those whose gift mainly consists in the power to imagine and pursue to their furthest points the implications and prior conditions of comparatively simple facts which are known with a high degree of precision. A comment: Again, the confrontation between the material model (the artifact of the system) that we need to build taking in account randomness, heterogeneity, continuous learning in repeated trials and errors processes and the “simple” theoretical one.

24 Maggio 2012CIPESS - Alessandria9 Finally, quoting another of the special issue referred above, that of prof.W. Brian Arthur (…) a second theme that emerged was that of making models based on more realistic cognitive behavior. Neoclassical economic theory treats economic agents as perfectly rational optimizers. This means among other things that agents perfectly understand the choices they have, and perfectly assess the benefits they will receive from these. (…) Our approach, by contrast, saw agents not as having perfect information about the problems they faced, or as generally knowing enough about other agents' options and payoffs to form probability distributions over these. This meant that agents need to cognitively structure their problems—as having to 'make sense' of their problems, as much as solve them. A comment: So we need to include learning abilities into our agents.

24 Maggio 2012CIPESS - Alessandria10 In contemporary terms, following Holt, Barkley Rosser and Colander (2010), we go close to material models also if we take into account the details of complexity: (p. 5) Since the term complexity has been overused and over hyped, we want to point out that our vision is not of a grand complexity theory that pulls everything together. It is a vision that sees the economy as so complicated that simple analytical models of the aggregate economy— models that can be specified in a set of analytically solvable equations— are not likely to be helpful in understanding many of the issues that economists want to address.

24 Maggio CIPESS - Alessandria _______________________________________ Moving to models _______________________________________

24 Maggio 2012CIPESS - Alessandria12 We can now move to models, the material models of cybernetics founders, or the computational artifacts of the agent based simulation perspective. Following Ostrom (1988), and to some extent, Gilbert and Terna (2000), in social science, we traditionally build models as simplified representations of reality in two ways: (i)verbal argumentation and (ii)mathematical equations, typically with statistics and econometrics. (iii)computer simulation, mainly if agent-based. Computer simulation can combine the extreme flexibility of a computer code – where we can create agents who act, make choices, and react to the choices of other agents and to modification of their environment – and its intrinsic computability.

24 Maggio 2012CIPESS - Alessandria13 However, reality is intrinsically agent-based, not equation-based. At first glance, this is a strong criticism. Why reproduce social structures in an agent-based way, following (iii), when science applies (ii) to describe, explain, and forecast reality, which is, per se, too complicated to be understood? The first reply is again that we can, with agent-based models and simulation, produce artifacts (the 'material model') of actual systems and “play” with them, i.e., showing consequences of perfectly known ex- ante hypotheses and agent behavioral designs and interactions; then we can apply statistics and econometrics to the outcomes of the simulation and compare the results with those obtained by applying the same tests to actual data. In this view, simulation models act as a sort of magnifying glass that may be used to better understand reality.

24 Maggio 2012CIPESS - Alessandria14 The second reply is that, relying again on Anderson (1972), we know that complexity arises when agents or parts of a whole act and interact and the quantity of involved agent is relevant. Furthermore, following Villani (2006, p.51), “Complex systems are systems whose complete characterization involves more than one level of description.” To manage complexity, one mainly needs to build models of agents. As a stylized example, consider ants and an ant-hill: Two levels need to be studied simultaneously to understand the (emergent) dynamic of the ant- hill based on the (simple) behaviors of the ants.

24 Maggio 2012CIPESS - Alessandria15 However, agent-based simulation models have severe weaknesses, primarily arising from: The difficulty of fully understand them without studying the program used to run the simulation; The necessity of carefully checking computer code to prevent generation of inaccurate results from mere coding errors; The difficulty of systematically exploring the entire set of possible hypotheses in order to infer the best explanation. This is mainly due to the inclusion of behavioral rules for the agents within the hypotheses, which produces a space of possibilities that is difficult if not impossible to explore completely.

24 Maggio 2012CIPESS - Alessandria16 Some replies: Swarm ( a project that started within the Santa Fe Institute and that represents a milestone in simulation; Swarm has been highly successful, being its protocol intrinsically the basis of several recent tools; for an application of the Swarm protocol to Python, see my SLAPP, Swarm Like Agent Protocol in Python at Many other tools have been built upon the Swarm legacy, such as Repast, Ascape, JAS and also by simple but important tools, such as NetLogo and StarLogoTNG.

24 Maggio CIPESS - Alessandria _______________________________________ Moving to computation _______________________________________

24 Maggio 2012CIPESS - Alessandria18 Finally, the importance of calculating: our complex system models live mainly in their computational phase and require calculating facilities more and more powerful. Schelling model and random mutations The well known segregation model from prof.Schelling has been initially solved moving dimes and pennies on a board. These pictures are from a presentation of Eileen Kraemer,

24 Maggio 2012CIPESS - Alessandria19 However, if you want to check the survival of the color islands in the presence of random mutations in agents (from an idea of prof.Nigel Gilbert), you need to use a computer and a simulation tool (NetLogo in this case, see above).

24 Maggio 2012CIPESS - Alessandria20 In the case of the test model of Swarm, the so called heatBugs model, you can have agents (i) with a preference with high temperature or with a part of them being adverse to it.; they generate warmth moving; when they are comfortable, they reduce movement; you have to make a lot of computations to obtain the first and the second emergent results below. h. t. preference mixed preferences

24 Maggio 2012CIPESS - Alessandria21 Learning chameleons In a work of mine you can find, finally, agents requiring a lot of computational capability to learn and behave. They are chameleons changing color when getting in touch with other ones; they can learn strategies, via trials and errors procedures, to avoid that event.

24 Maggio CIPESS - Alessandria _______________________________________ Learning _______________________________________

24 Maggio 2012CIPESS - Alessandria23 Complexity, as a tool to understand reality in economics, is coming from a strong theoretical path of epistemological development. To be widely accepted, it requires a significant step ahead of the instruments we use to make computations about this class of models, with sound protocols, simple interfaces, powerful learning tools, cheap computational facilities …

24 Maggio 2012CIPESS - Alessandria24 X X X X X X X X X X X X X X X ANN bland and tasty agents can contain an ANN Networks of ANNs, built upon agent interaction

24 Maggio 2012CIPESS - Alessandria25 y = g(x) = f(B f(A x)) (m) (n) or y 1 = g 1 (x) = f(B 1 f(A 1 x)) (1) (n) … y m = g m (x) = f(B m f(A m x)) (1) (n) actionsinformation

24 Maggio 2012CIPESS - Alessandria26 Fixed rules ANN (CS) (GA) Avatar Microstructures, mainly related to time and parallelism Reinforceme nt learning

24 Maggio 2012CIPESS - Alessandria27 a - Static ex-ante learning (on examples) Rule master X a Y a X a,1 Y a,1 … X a,m-1 Y a,m a -1 X a,m Y a,m a X b Y b X b,1 Y b,1 … X b,m-1 Y b,m b -1 X b,m Y b,m b Different agents, with different set of examples, estimating and using different sets A and B of parameters

24 Maggio 2012CIPESS - Alessandria28 b - Continuous learning (trials and errors) z = g([x,y]) = f(B f(A [x,y])) (p) (n+m) effects information actions Different agent, generating and using different set A and B of parameters (or using the same set of parameters) Coming from simulation the agents will choose Z maximizing: (i)individual U, with norms (ii)societal wellbeing Emergence of new norms [modifying U=f(z), as new norms do] and laws [modifying the set y, as new laws do] at t=0 or at given t=k steps, all or a few agents act randomly Rule master accounting for social norms Also U=f(z) can be a NN accounting for laws

24 Maggio 2012CIPESS - Alessandria29 c - Continuous learning (cross-targets) Developing internal consistence EO EP A few ideas at era/ct-era.html Rule master

24 Maggio CIPESS - Alessandria _______________________________________ A new learning agent environment: nnet&reinforcementLearning look at the file z_learningAgents_v.?.?.zip at goo.gl/SBmyv You need Rserve running; instruction at goo.gl/zPwUN _______________________________________

24 Maggio CIPESS - Alessandria

24 Maggio 2012CIPESS - Alessandria agents, going closer to other people, hard parallelism

24 Maggio 2012CIPESS - Alessandria agents, searching for empty spaces, hard parallelism

24 Maggio 2012CIPESS - Alessandria agents, going closer to other people, soft parallelism

24 Maggio 2012CIPESS - Alessandria agents, searching for empty spaces, soft parallelism

24 Maggio 2012CIPESS - Alessandria36 Thanks Pietro Terna,