Introduction to Computational Modeling of Social Systems Prof. Lars-Erik Cederman Center for Comparative and International Studies (CIS) Seilergraben 49,

Slides:



Advertisements
Similar presentations
Peer-to-Peer and Social Networks Power law graphs Small world graphs.
Advertisements

Complex Networks Advanced Computer Networks: Part1.
Algorithmic and Economic Aspects of Networks Nicole Immorlica.
Emergence of Scaling in Random Networks Albert-Laszlo Barabsi & Reka Albert.
Analysis and Modeling of Social Networks Foudalis Ilias.
VL Netzwerke, WS 2007/08 Edda Klipp 1 Max Planck Institute Molecular Genetics Humboldt University Berlin Theoretical Biophysics Networks in Metabolism.
Advanced Topics in Data Mining Special focus: Social Networks.
Weighted networks: analysis, modeling A. Barrat, LPT, Université Paris-Sud, France M. Barthélemy (CEA, France) R. Pastor-Satorras (Barcelona, Spain) A.
1 Evolution of Networks Notes from Lectures of J.Mendes CNR, Pisa, Italy, December 2007 Eva Jaho Advanced Networking Research Group National and Kapodistrian.
Complex Networks Third Lecture TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA TexPoint fonts used in EMF. Read the.
CS728 Lecture 5 Generative Graph Models and the Web.
Emergence of Scaling in Random Networks Barabasi & Albert Science, 1999 Routing map of the internet
Networks. Graphs (undirected, unweighted) has a set of vertices V has a set of undirected, unweighted edges E graph G = (V, E), where.
Scale-free networks Péter Kómár Statistical physics seminar 07/10/2008.
Scale Free Networks Robin Coope April Abert-László Barabási, Linked (Perseus, Cambridge, 2002). Réka Albert and AL Barabási,Statistical Mechanics.
CS 728 Lecture 4 It’s a Small World on the Web. Small World Networks It is a ‘small world’ after all –Billions of people on Earth, yet every pair separated.
Web as Graph – Empirical Studies The Structure and Dynamics of Networks.
Peer-to-Peer and Grid Computing Exercise Session 3 (TUD Student Use Only) ‏
CS Lecture 6 Generative Graph Models Part II.
Advanced Topics in Data Mining Special focus: Social Networks.
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 7 May 14, 2006
On Distinguishing between Internet Power Law B Bu and Towsley Infocom 2002 Presented by.
(Social) Networks Analysis III Prof. Dr. Daning Hu Department of Informatics University of Zurich Oct 16th, 2012.
Topic 13 Network Models Credits: C. Faloutsos and J. Leskovec Tutorial
Graph Theory in 50 minutes. This Graph has 6 nodes (also called vertices) and 7 edges (also called links)
Introduction to SPSS Edward A. Greenberg, PhD
Section 8 – Ec1818 Jeremy Barofsky March 31 st and April 1 st, 2010.
Prof. Lars-Erik Cederman Center for Comparative and International Studies (CIS) Seilergraben 49, Room G.2, Nils Weidmann,
Small World Social Networks With slides from Jon Kleinberg, David Liben-Nowell, and Daniel Bilar.
Introduction to Computational Modeling of Social Systems Prof. Lars-Erik Cederman Center for Comparative and International Studies (CIS) Seilergraben 49,
Lars-Erik Cederman and Luc Girardin Center for Comparative and International Studies (CIS) Swiss Federal Institute of Technology Zurich (ETH)
Complex Networks First Lecture TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA TexPoint fonts used in EMF. Read the.
Prof. Lars-Erik Cederman ETH - Center for Comparative and International Studies (CIS) Seilergraben 49, Room G.2, Nils.
Introduction to Computational Modeling of Social Systems Prof. Lars-Erik Cederman Center for Comparative and International Studies (CIS) Seilergraben 49,
Social Network Analysis Prof. Dr. Daning Hu Department of Informatics University of Zurich Mar 5th, 2013.
Prof. Dr. Lars-Erik Cederman Swiss Federal Institute of Technology (ETH) Center for Comparative and International Studies (CIS) Seilergraben 49, Room G.2.
Professor Yashar Ganjali Department of Computer Science University of Toronto
Lars-Erik Cederman and Luc Girardin
Introduction to Computational Modeling of Social Systems Prof. Lars-Erik Cederman Center for Comparative and International Studies (CIS) Seilergraben 49,
Prof. Lars-Erik Cederman ETH - Center for Comparative and International Studies (CIS) Seilergraben 49, Room G.2, Nils.
Complex Network Theory – An Introduction Niloy Ganguly.
Class 9: Barabasi-Albert Model-Part I
Lecture 10: Network models CS 765: Complex Networks Slides are modified from Networks: Theory and Application by Lada Adamic.
Complex Network Theory – An Introduction Niloy Ganguly.
Most of contents are provided by the website Network Models TJTSD66: Advanced Topics in Social Media (Social.
Introduction to Computational Modeling of Social Systems Prof. Lars-Erik Cederman Center for Comparative and International Studies (CIS) Seilergraben 49,
Social Networking: Large scale Networks
Prof. Dr. Lars-Erik Cederman ETH - Center for Comparative and International Studies (CIS) Seilergraben 49, Room G.2,
Introduction to Computational Modeling of Social Systems Prof. Lars-Erik Cederman Center for Comparative and International Studies (CIS) Seilergraben 49,
March 3, 2009 Network Analysis Valerie Cardenas Nicolson Assistant Adjunct Professor Department of Radiology and Biomedical Imaging.
Small World Social Networks With slides from Jon Kleinberg, David Liben-Nowell, and Daniel Bilar.
Topical Analysis and Visualization of (Network) Data Using Sci2 Ted Polley Research & Editorial Assistant Cyberinfrastructure for Network Science Center.
Introduction to Computational Modeling of Social Systems Prof. Lars-Erik Cederman Center for Comparative and International Studies (CIS) Seilergraben 49,
Netlogo demo. Complexity and Networks Melanie Mitchell Portland State University and Santa Fe Institute.
Topics In Social Computing (67810) Module 1 Introduction & The Structure of Social Networks.
Network (graph) Models
Structures of Networks
Link-Level Internet Structures
Hiroki Sayama NECSI Summer School 2008 Week 2: Complex Systems Modeling and Networks Network Models Hiroki Sayama
Lecture 1: Complex Networks
Topics In Social Computing (67810)
Learning to Generate Networks
Empirical analysis of Chinese airport network as a complex weighted network Methodology Section Presented by Di Li.
Models of Network Formation
Models of Network Formation
Models of Network Formation
Lecture 9: Network models CS 765: Complex Networks
Network Models Michael Goodrich Some slides adapted from:
Advanced Topics in Data Mining Special focus: Social Networks
Advanced Topics in Data Mining Special focus: Social Networks
Presentation transcript:

Introduction to Computational Modeling of Social Systems Prof. Lars-Erik Cederman Center for Comparative and International Studies (CIS) Seilergraben 49, Room G.2, Nils Weidmann, CIS Room E.3, Lecture, January 18, 2005 Emergent Network Models

2 Today’s agenda Overview: Emergent social forms Emergent-network models Graph theory Small Worlds Scale-Free Networks Repast’s network support NetIPD and Homework D

3 Emergent social forms 1.Interaction patterns 2.Property configurations 3.Dynamic networks 4.Actor structures

4 1. Emergent interaction patterns actor Models of “emergent order” producing configurations Axelrod (1984, chap. 8): “The structure of cooperation”

5 2. Emergent property configurations Models of “emergent structure” constituted as property configruations Example: Schelling’s segregation model; Carley 1991; Axelrod 1997 See Macy 2002 for further references actor

6 3. Emergent dynamic networks Most computational models treat networks as exogenous Recent exceptions: –Albert and Barabási’s scale-free networks –Economics and evolutionary game theory: e.g. Skyrms and Pemantle frequency degree d d-d-

7 4. Emergent actor structures Computational models normally assume the actors to be given Exceptions: –Axelrod’s model of new political actors –Axtell’s firm-size model –Geopolitical models in the Bremer & Mihalka tradition Emergence?

8 Elementary graph theory Links (edges) and nodes (vertices), G=(E, V) –Uni/Bidirectional graphs –(In/Out) Degree of a node, degree distribution –Weighted edges B A C K J D I HG F E

9 Phase shift in random graphs 01 Fraction of nodes in largest component Average number of links per node 1 Erdös and Rényi 1959

10 The small-world experiment Stanley Milgram Sharon, MA Omaha, NE “Six degrees of separation”

11 Between order and randomness Watts and Strogatz’s Beta Model

12 Two degree distributions p(k) k k Normal distributionPower law log p(k) log k log p(k) log k

13 Scale-free networks Barabási and Albert’s 1999 model of the Internet: Constantly growing network Preferential attachments: –p(k) = k /  i k i

14 Creating nodes and edges Nodes Node nodeA = new DefaultNode(“A”); Node nodeB = new DefaultNode(“B”); Edge (hand coding) Edge edge = new DefaultEdge(nodeA, nodeB); nodeA.addOutEdge(edgeAB); nodeB.addInEdge(edgeAB); Edge (simplified way) Edge edge = EdgeFactory.createEdge(nodeA, nodeB); Edges can also labeled and given a strength Node and Edge are interfaces and specialized (agent) classes can easily be implemented A B Edge Node Direction

15 Node accessors addInEdge(Edge) and addOutEdge(Edge) Add an in or out edge to the node removeInEdge(Edge), removeOutEdge(Edge) Removes the specified edge from the list of in or out edges getInEdges() and getOutEdges() Gets an ArrayList of edges going in or out from the node hasEdgeFrom(Node) and hasEdgeTo(Node) Returns true if the node has an edge from or to the specified node, false otherwise getNodeLabel() and setNodeLabel(String)

16 Edge accessors getFrom() and getTo() Gets the node that this edge comes from or goes to setFrom(Node) and setTo(Node) Sets the from or to node getStrength() and setStrength(double) Gets/sets the strength of this edge getType() and setType(String) Gets the type of this edge getLabel() and setLabel(String) Gets/sets the label for this edge Typically distance or similarity To encode the type of relationship, e.g. a marriage

17 NetUtilities Contains some useful static methods for computing statistics or rearranging a network, e.g. calcDensity(List) Calculates density (ratio of arcs in network to maximum possible number of arcs) of passed network hasSelfLoops(List) Returns a boolean indicating whether the network contains self-loops (links from i -> i) randomRewire(ArrayList, double prob) Returns a network of the same size and density as the passed network, but randomly "rewires" a fraction of the edges to randomly chosen target nodes.

18 Displaying networks Network2DDisplay : similar to any other display: public void buildModel() { GraphLayout layout = new DefaultGraphLayout(agentList, 500, 500); Network2DDisplay display = new Network2DDisplay(layout); dsurf.addDisplayableProbeable(display, "Display"); addSimEventListener(dsurf); dsurf.display(); } public void step() { dsurf.updateDisplay(); } Contains the list of nodes

19 Displaying nodes and edges Every node and edge must implement the Drawable2DNode and DrawableEdge interfaces Default implementations: –DefaultDrawableNode –DefaultDrawableEdge Can be parameterized with customized drawing code: NetworkDrawable (e.g. RectNetworkItem, OvalNetworkItem )

20 Graph layout By default ( DefaultGraphLayout ), nodes are positioned according to the x/y coordinates CircularGraphLayout position them on a circle Need to call layout.updateLayout() in step method.

21 Graph layout (cont.) FruchGraphLayout attempts to minimize the overall length of the edges according to their strength (spring-based simulation) Can be slow graphLayout = new FruchGraphLayout(...); Controller c = (Controller)getController(); c.addStopListener(graphLayout); c.addPauseListener(graphLayout); c.addExitListener(graphLayout)

22 Charting As usual, but using NetSequenceGraph Contains predefined statistics:

23 Data importing and exporting Import: NetworkFactory List list = NetworkFactory.getNetwork( “network.dl”, NetworkFactory.DL, MyNode.class, MyEdge.class, NetworkFactory.BINARY); Export: NetworkRecorder NetworkRecroder recorder = new NetworkRecorder( NetworkRecroder.BINARY, “network.dl”, this); recorder.record(nodeList, "tick: " + getTickCount(),NetworkRecorder.BINARY); recorder.write();

24 Homework D Download and install the NetIPD model from the course website ( The model extends the IPD introduced in the RePast tutorial to a network topology. It has three topologies implemented, with the first two (FRN and FRNE) described in (Cohen et al., 1999). The third topology (PN) is a parametrized network and uses the „Beta“-parameter. D1) Perform simulation runs with the PN topology for different values of beta (at least 10), ranging from 0 to 1. For each value, perform 50 runs of the model with different random seeds. Plot the percentage of runs where there is a TFT majority at the end of the 200th step against the value of beta. D2) Look at the implementation of the parametrized network. What topology described in the (Cohen et al., 1999) paper does it resemble (a) for beta=0 and (b) for beta=1? D3) What is your explanation for the results‘ variation with beta?

25 Submission format Exercise D1 One file plot. (graphics or PDF) with your plot Exercise D2 One file called d2. (text or PDF) with your answer Exercise D3 One file called d3. (text or PDF) with your answer Solutions should be sent by to with only the required files attached. Please do not put your answers directly in the text of your message.