Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling 28 th...

20
Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling www.cfpm.org 28 th March, 2007 – CAVES Bi-annual Meeting, IIASA, Laxenburg, Austria

Transcript of Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling 28 th...

Page 1: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

Shah Jamal Alam and Ruth MeyerCentre for Policy Modelling

www.cfpm.org28th March, 2007 – CAVES Bi-annual Meeting,

IIASA, Laxenburg, Austria

Page 2: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

A General Problem …

• Consider a simulated network S (N, E) at the start of a simulation run, i.e. at time t=0. N is the set of nodes and E is the set of edges through which the nodes of the graph are connected.

• The network could be of any structure, e.g. unconnected (E = {Φ}), a small-world network, or a scale-free network.

• At every time step, x: x (0,] new agents become a member of N, while y already present agents leave: y (0, |N|].

Page 3: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

Agent-based Social Networks (ABSN) – I

• The majority of social simulation models assume a fixed number of agents, usually for ‘simplicity sake’.

• Many agent-based social simulation models have shown that agents’ local interactions can lead to structures such as power-law and small-world networks, where the network’s configuration stabilizes after a sufficient number of simulation runs.

Page 4: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

Agent-based Social Networks (ABSN) – II

• It is usually the case, there are inherent local mechanisms that bias towards such structures.

• For models where the agent population is constrained by social processes and not on a fixed size, this might not be the case ...

• Even different networks with similar global properties such as clustering coefficient, can have varying local structures

Page 5: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

Example from two Agent-based Models

• The first is by Jin et al. (2001): Structure of growing social networks. Phys. Rev. E. The American Physical Society 64(4)

• Second is based on from the South African case study concerning the impact of HIV/AIDS.

• The two different models are different in terms of scale, context, purpose, granularity (level of abstraction)

• We are looking on the network signatures from the simulation

Page 6: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

The model for growing friendship networks by Jin et al. (2001)

• Assumes a fix number of agents (250) • Based on three rules:

– “meetings take place between pairs of individuals at a rate which is high if a pair has one or more mutual friends and low otherwise;

– acquaintances between pairs of individuals who rarely meet decay over time

– there is an upper limit on the number of friendships an individual can maintain.”

• Demonstrates the evolution of ‘small-world’ like structure from agents’ acting on the above rules.

Page 7: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

The model for growing friendship networks by Jin et al. (2001)

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

0 100 200 300 400 500 600 700 800 900 1000

Time steps

Clu

ste

rin

g C

oe

ffic

ien

t

Page 8: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

Comparing the network’s snapshots …

• We compare network snapshots,P= {P0, P0+, P0+2 ,…}, where each element Pi represents a distinct population of agents, P0 being the population at t=0. defines the time lag.

• A 2-population (independent) Kolmogorov-Smirnov (K-S) test is performed for the degree distribution each consecutive population pair (Pi, Pi+).

• The idea is to determine if two datasets from two population samples differ significantly.

Page 9: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

Comparing the network’s snapshots …

0

0.3

0.6

0.9

0 100 200 300 400 500 600 700 800 900 1000

0

0.3

0.6

0.9

0 100 200 300 400 500 600 700 800 900 1000

Y-axis: P-score of the K-S test for the degree distribution of the friendship network compared for consecutive snapshots taken at every (left) 100th tick and (right) 25th time step.

Page 10: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

• The agents’ network grew in the initial steps and the similarity in the network configuration continued to increase

• From the figures in the previous slide, we can see that the network structure stabilizes around 100th step

0

0.3

0.6

0.9

0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 105 110 115 120 125

Time steps

P-s

co

re f

or

the K

olm

og

oro

v-S

mir

no

v S

tati

sti

c

Page 11: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

A Model for Impact of HIV/AIDS – I

• The model focuses on the behaviour of individual agents as well as that of households and thus attempts to take into account both the individual interactions and the decisions taken by the households.

• Agents are born and die during the simulation … the population size depends upon social processes and not based on any fixed mechanism…

• the mode details have been presented already

Page 12: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

A Model for Impact of HIV/AIDS – II

• The simulations were initialized with 30 households at the start, with the number of adult and senior agents around 150 at the start.

• Every agent has an expected life … but may die due to malnutrition, AIDS…

• Birth of agents depends upon the marriages and the fertility of a mother infected from HIV/AIDS …

• In sum: The size and the network composition cannot be assumed in advance.

• The three rules from Jin et al. was plugged in the model for the agents’ friendship network.

Page 13: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

First suit of simulation: Three different settings:

• Case – I: we removed the random removal rule from Jin et al.

• Case – II: incorporated all the three rules.• Agents also developed friendship ties when they

join the same club for the above two cases.• Case – III: just the three rules from Jin et al. to

make friendship ties …

Page 14: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

First suit of simulation: Three different settings

0

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0.4

0.45

0 50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800

Time steps

Clu

ste

rin

g C

oe

ffic

ien

t

Case-I Case-II Case-III

0

0.2

0.4

0.6

0.8

1

1.2

0 50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800

Time steps

P-s

co

re o

f K

olm

og

oro

v-S

mir

no

v S

tati

sti

c

Case-I Case-II Case-III

Page 15: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

Second suit of simulation: Three different settings

• Case – I: no birth of an agent was possible, while all other processes continued in the model.

• Case – II: Case-II was set with only the new agents joining the simulation through marriages and birth processes but no agent was set to die during the simulation run.

• Case – III: was when the initial population of the agents continued throughout the run and no new agents joined or existing agents died at all.

Page 16: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

Second suit of simulation: Three different settings

0

0.1

0.2

0.3

0.4

0.5

0.6

0 50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800

Time steps

Clu

ste

rin

g C

oe

ffic

ien

t

Case-I Case-II Case-III

0

0.3

0.6

0.9

1.2

50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800

Time steps

P-s

co

re

of K

olm

og

oro

v-S

mir

no

v S

ta

tis

tic

Case-I Case-II Case-III

Page 17: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

Outlook – I …

• Without the birth and death of agents during the simulation, the agents’ friendship network shows the similar signature, in our context, the clustering coefficient as in the first model.

• This supports the conjecture that network signatures are affected when the agents’ population size is governed by the underlying social processes.

Page 18: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

Outlook – II

• The main motivation has been to look for techniques that can help keep track of the network structure over the course of a simulation run.

• Global measures aggregate the network characteristics … the snapshots are compared on the output number

• Other techniques, such as, use of the Kolmogorov-Smirnov statistic can give us more insight about the changes in the network structure…

Page 19: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

Outlook – III

• Networks sharing similar global properties can have significantly varying local structures.

Page 20: Comparing Snapshots of Networks Shah Jamal Alam and Ruth Meyer Centre for Policy Modelling  28 th March, 2007 – CAVES Bi-annual Meeting, IIASA,

‘motifs’ are subgraph structures that occur in them network far more often than in randomized network

‘complex networks’community

‘fragments’ are the building blocks of social ties … starting from dyads to simplest forms of social networks triads

social networkscommunity

Networks sharing similar global properties can have significantly varying local structures.