Oct 20141Project ModelMMORPG _______________________________________ Project ModelMMORPG Agent-based models for exploring.

Slides:



Advertisements
Similar presentations
Heuristic Search techniques
Advertisements

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.
1 Modeling and Simulation: Exploring Dynamic System Behaviour Chapter9 Optimization.
ARCHITECTURES FOR ARTIFICIAL INTELLIGENCE SYSTEMS
An Introduction to Physics
Neural Networks  A neural network is a network of simulated neurons that can be used to recognize instances of patterns. NNs learn by searching through.
Strategies for solving scientific problems using computers.
INTRODUCTION TO MODELING
Intelligent Agents Russell and Norvig: 2
Social Research Methods
Participatory Simulation & Emergent Behavior Author : Uri Wilensky Presenter : Krunal Doshi.
Planning under Uncertainty
September 25th, 2007Real Collegio Carlo Alberto1 Agent based simulation and electricity market Pietro TERNA, Department of Economic and Financial Science,
Chapter 4 DECISION SUPPORT AND ARTIFICIAL INTELLIGENCE
April 13-15, 2003SwarmFest, Notre Dame1 jES Pietro Terna Department of Economics and Finance “G.Prato” University of Torino - Italy.
Simulation Models as a Research Method Professor Alexander Settles.
Basic Scientific Writing in English Lecture 3 Professor Ralph Kirby Faculty of Life Sciences Extension 7323 Room B322.
Developing Ideas for Research and Evaluating Theories of Behavior
Research Methodology Lecture 1.
ACOS 2010 Standards of Mathematical Practice
Society: the Basics Chapter 1.
By Saparila Worokinasih
Reconciling institutional theory with organizational theories How neoinstitutionalism resolves five paradoxes? Ms.Chanatip Dansirisanti ( 陳美清 ) MA2N0204.
SCIENTIFIC INVESTIGATION
MAKING COMPLEX DEClSlONS
Lecture 1 What is Modeling? What is Modeling? Creating a simplified version of reality Working with this version to understand or control some.
“Knowing Revisited” And that’s how we can move toward really knowing something: Richard Feynman on the Scientific Method.
Integrating Neural Network and Genetic Algorithm to Solve Function Approximation Combined with Optimization Problem Term presentation for CSC7333 Machine.
Role of Statistics in Geography
Fundamentals of Political Science Dr. Sujian Guo Professor of Political Science San Francisco State Unversity
November 22-23, 20121ENS, Paris _______________________________________ CERES-ERTI Coupled Climate – Economic Modelling and Data Analysis Agent-based models.
24 Maggio 20121CIPESS - Alessandria _______________________________________ CIPESS Centro Interuniversitario di Psicologia ed Economia Sperimentali e Simulative.
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.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
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.
September Bound Computation for Adaptive Systems V&V Giampiero Campa September 2008 West Virginia University.
1 The Theoretical Framework. A theoretical framework is similar to the frame of the house. Just as the foundation supports a house, a theoretical framework.
Michael A. Hitt C. Chet Miller Adrienne Colella Slides by R. Dennis Middlemist Michael A. Hitt C. Chet Miller Adrienne Colella Chapter 4 Learning and Perception.
Question paper 1997.
Chapter 4 Decision Support System & Artificial Intelligence.
Javier Junquera Introduction to atomistic simulation methods in condensed matter Alberto García Pablo Ordejón.
CS851 – Biological Computing February 6, 2003 Nathanael Paul Randomness in Cellular Automata.
Lecture №1 Role of science in modern society. Role of science in modern society.
Artificial Intelligence: Research and Collaborative Possibilities a presentation by: Dr. Ernest L. McDuffie, Assistant Professor Department of Computer.
The World of Life Science
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.
What is Research?. Intro.  Research- “Any honest attempt to study a problem systematically or to add to man’s knowledge of a problem may be regarded.
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.
1 Prepared by: Laila al-Hasan. 1. Definition of research 2. Characteristics of research 3. Types of research 4. Objectives 5. Inquiry mode 2 Prepared.
Pattern Recognition. What is Pattern Recognition? Pattern recognition is a sub-topic of machine learning. PR is the science that concerns the description.
Assistant Instructor Nian K. Ghafoor Feb Definition of Proposal Proposal is a plan for master’s thesis or doctoral dissertation which provides the.
December 3, 2014AISC-CODISCO 2014, revised Nov From Agent-based models to network analysis (and return): the policy-making perspective Magda Fontana.
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.
RESEARCH METHODOLOGY Research and Development Research Approach Research Methodology Research Objectives Engr. Hassan Mehmood Khan.
WHAT IS THE NATURE OF SCIENCE?
Chapter 33 Introduction to the Nursing Process
Bias.
Object-Oriented Software Engineering Using UML, Patterns, and Java,
Learning and Perception
Unified Modeling Language
Magda Fontana Pietro Terna
Dynamical Models - Purposes and Limits
The Nature of Qualitative Research
Introduction to science
CASE − Cognitive Agents for Social Environments
Presentation transcript:

Oct 20141Project ModelMMORPG _______________________________________ Project ModelMMORPG Agent-based models for exploring social complexity Pietro Terna Department of Economics, Sociology, Mathematics and Statistics – University of Torino, Italia web.econ.unito.it/terna This work has been supported in part by the Croatian Science Foundation under the project no _______________________________________

Oct 2014Project ModelMMORPG2 Accompanying material: -P. Terna (2013), A Complex Lens for Economics, or: About Ants and their Anthill, in “Spazio filosofico”, 7, pp English.pdf -P. Terna (2013), Learning agents and decisions: new perspectives, in ”Informatica e diritto”, special issue on “Law and Computational Social Science", 1, -M.Fontana and P.Terna (2014), From Agent-based models to network analysis (and return): the policy-making perspective, forthcoming,

Oct 20143Project ModelMMORPG _______________________________________ Basics _______________________________________ A note: the slides contain several references; you can find them in a draft paper, on line at

Oct 2014Project ModelMMORPG4 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.

Oct 2014Project ModelMMORPG5 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.

Oct 2014Project ModelMMORPG6 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. 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. 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”.

Oct 20147Project ModelMMORPG _______________________________________ In a historical perspective _______________________________________

Oct 2014Project ModelMMORPG8 Keynes [1924], Collected Writings, X, 1972, 158n (I owe this wonderful quotation from Keynes to a Marchionatti's paper reported in the 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 trial and errors processes and the “simple” theoretical one.

Oct 2014Project ModelMMORPG9 Finally, quoting another paper 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.

Oct Project ModelMMORPG _______________________________________ Moving to models _______________________________________

Oct 2014Project ModelMMORPG11 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, excluding material (analogue) models, we traditionally build models as simplified representations of reality in two ways: i.verbal argumentation and ii.mathematical equations, typically with statistics and econometrics. Now we have: 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.

Oct 2014Project ModelMMORPG12 From Bruce Edmonds, Agent-based social simulation

Oct 2014Project ModelMMORPG13 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.

Oct 2014Project ModelMMORPG14 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 their 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.

Oct 2014Project ModelMMORPG15 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.

Oct 2014Project ModelMMORPG16 Some replies: Swarm ( a project that started within the Santa Fe Institute (first release 1994) 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.

Oct Project ModelMMORPG _______________________________________ Moving to computation _______________________________________

Oct 2014Project ModelMMORPG18 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,

Oct 2014Project ModelMMORPG19 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).

Oct 2014Project ModelMMORPG20 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

Oct 2014Project ModelMMORPG21 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.

Oct Project ModelMMORPG _______________________________________ Learning _______________________________________

Oct 2014Project ModelMMORPG23 As we have seen, complexity, as a lens to understand reality in economics, comes from a strong theoretical path of epistemological development. To be widely accepted, complexity lens 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 …

Oct 2014Project ModelMMORPG24 Fixed rules ANN (CS) (GA) Avatar Microstructures, mainly related to time and parallelism Reinforcement learning

Oct 2014Project ModelMMORPG25 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

Oct y = g(x,z) = f(B f(A (x',z')') (1) (n+m) or, if z = {z 1, z 2, …, z m } y = g(x,z) = f(B f(A (x)) (m) (n) action/s information an effect for each possible action effect Project ModelMMORPG

Oct A - Learning from actual data, coming from experiments or observations Rule master Xα,Zα Yα Xα,1;Zα,1 Yα,1 … Xα,m;Zα,1 Yα,m Different agents (α and β), with NN built on different set of data (i.e. data from real world or from trial and errors experiments), so with different matrixes A and B of parameters Xβ,Zβ Yβ Xβ,1;Zβ,1 Yβ,1 … Xβ,m;Zβ,1 Yβ,m Project ModelMMORPG

Oct B1- Artificial learning, via a trial and errors process, while acting y = g([x,z]) = f(B f(A (x',z')')) (p) (n+m) effects information actions Different agent, generating and using different sets, A and B, of parameters (or using the same set of parameters, as collective learning) Coming from the simulation the agents will choose y maximizing: (i) individual U, with norms (ii) societal wellbeing Rule master Project ModelMMORPG or p NNs as above

Oct B2- Artificial learning, via a trial and errors process, while acting y = g([x,z]) = f(B f(A (x',z')')) (p) (n+m) effects information actions Different agent, generating and using different sets, A and B, of parameters (or using the same set of parameters, as collective learning) Coming from the simulation the agents will choose y maximizing: (i) individual U, with norms (ii) societal wellbeing Rule master Project ModelMMORPG or p NNs as above accounting for social norms Emergence of new norms [modifying U=f(z), as new norms do] and laws [modifying the set y, as new laws do]

Oct Learning of A and B matrixes of parameters, to determine y, scalar of vector, in the two previous slides (learning while acting), can be: continuous, with the actual values, while each agent is acting; in batch, with the actual values after the action of all the agents (as presently done). Project ModelMMORPG

Oct 2014Project ModelMMORPG31 Data generation (trial and errors process) ANN training Agents behaving nnet in R batch

Oct 2014Project ModelMMORPG32 nnet {nnet} R Documentation Fit Neural Networks Description Fit single-hidden-layer neural network, possibly with skip-layer connections. Usage nnet(x, …) Optimization is done via the BFGS method of optim. Method "BFGS" is a quasi-Newton method (also known as a variable metric algorithm), specifically that published simultaneously in 1970 by Broyden, Fletcher, Goldfarb and Shanno. This uses function values and gradients to build up a picture of the surface to be optimized. References Ripley, B. D. (1996) Pattern Recognition and Neural Networks. Cambridge. Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.

Oct Project ModelMMORPG

Oct 2014Project ModelMMORPG34 agents going closer to other people

Oct 2014Project ModelMMORPG35 agents searching for empty spaces

Oct Project ModelMMORPG _______________________________________ Why the agents act in that way? _______________________________________

Oct 2014Project ModelMMORPG37 The crucial question now is: why they do that? Apparently, it is an irrelevant question: they do that because we asked them to learn how to behave to accomplish that kind of action, but we are considering a tiny problem. In a highly complex one, with different types of agents, acting in very distinctive ways, to have the capability of tracing, in our simulator, with precision the kind of behavior that the agents are following and the explanation of their choice is extremely important.

Oct 2014Project ModelMMORPG38 We have to add, in our model, a layer dealing with the so-called Beliefs Desires Intentions (BDI) agent definition. In SLAPP that layer presently does not exist. We can quite easily refer to an extension of NetLogo, adding BDI capabilities, with a few simplifications, as a project of the University of Macedonia, in Greece, at Have a look to the their Taxi_scenario_Cooperative_Streets.nlogo example

Oct Project ModelMMORPG _______________________________________ … and networks? _______________________________________

Oct 2014Project ModelMMORPG40 We have to use networks - as systems that have individuals as nodes (agents), and social and economic relationships as edges - within the agent- based framework. In networks, we have to take into considerations: the time dimension; the event probability.

Oct Project ModelMMORPG _______________________________________ A never ending research project _______________________________________

Oct 2014Project ModelMMORPG42 agents agents + learning agents + BDI agents + learning + BDI agents + networks agents + networks + learning + BDI

Oct Project ModelMMORPG _______________________________________ My current research _______________________________________

Oct 2014Project ModelMMORPG44 ____________________________ How to generate emerging networks to experiment with them ____________________________

Oct 2014Project ModelMMORPG45 recipeWorld is an agent-based model that simulates the emergence of network out of decentralized autonomous interactions. The rationale behind it is to offer a few hints to find a framework and a grammar that are flexible and straightforward enough to encompass the widest possible range of purposeful and socially meaningful individual and organizational behavior.

Oct 2014Project ModelMMORPG46 The metaphor is that of a recipe, i.e. a set of directions with a list of ingredients for making or preparing something, especially food (as defined in the American Heritage dictionary). Technically, recipes are sequences of numerical or alphanumerical codes, reported in vectors, moving from an agent to another, (i) determining the events and (ii) generating the edges of an emerging networks.

Oct 2014Project ModelMMORPG47 Recipes are coded as strings of numbers – their components. Each number (or, if you want, each label), is related to an act, a sub-routine, of the modeled action. For instance: [ ] means: execute step 3, then execute step 1, then …

Oct 2014Project ModelMMORPG48 Recipes can be of any length and can contain subpart with specific structural characteristics, such as: [1 4 (3 4 5) 8] where the instructions in round brackets have to be run in a parallel way; or [7 4 {10} 9 2] where the part in curly brackets has to be run putting together a batch of different recipes to be executed in the same time.

Oct 2014Project ModelMMORPG49 Examples in different fields can be suggested: production, health-care scenarios, scientific cooperation (explicit or implicit), opinion spreading (intended or unintended), etc.

Oct 2014Project ModelMMORPG50

Oct 2014Project ModelMMORPG51

Oct 2014Project ModelMMORPG52

Oct 2014Project ModelMMORPG53 Calculations are made using the new NW NetLogo extension

Oct 2014Project ModelMMORPG54 Calculations are made using the new NW NetLogo extension

Oct 2014Project ModelMMORPG55 What is making “special” this result is that, in this context, agents are activated (following their internal rules and capabilities) by the events. The network emerges as a side effect, as in the real world.

Oct 2014Project ModelMMORPG56 recipeWorld is currently a prototipe in NetLogo A previous implementation of the recipe idea (without the network side) already exists in Java Swarm; it is at A new version in under development in SLAPP (Swarm-Like Agent Protocol in Python); SLAPP is at

Oct 2014Project ModelMMORPG57 Thanks Pietro Terna,