Professional Documents
Culture Documents
SNA Lecture2CGrowthModels
SNA Lecture2CGrowthModels
Lada Adamic
Uneven participation
10
0
! = 1.87 t, R 2 = 0.9730
cumulative probability
10
-1
!! answer people may reply to thousands of others !! question people are also uneven in the number of repliers to their posts, but to a lesser extent
10
-2
number of people one replied to number of people one received replies from
10
-3
10
-4
10
10
10 degree (k)
10
!!Sexual networks
Power-law distribution
0.00005 0.00500 0.50000
0.6
!! linear scale
P(x)
!! log-log
P(x)
0.0
0.2
0.4
scale
20
40 x
60
80
100
10 x
20
50
Poisson distribution
0.12
1e-08
0.08
!! linear scale
P(x)
!! log-log
scale
P(x)
0.04
20
40 x
60
80
100
1e-64
0.00
1e-36
10 x
20
50
p(k ) = Ck
normalization constant (probabilities over all k must sum to 1)
!!
Quiz Q:
!! As the exponent ! increases, the downward slope of the line on a log-log plot
!! stays the same !! becomes milder !! becomes steeper
m=2
dk i (t ) m = dt t
dk i (t ) m = dt t
to get
t ki (t ) = m + m log( ) i
born with m edges
ki (t ) > k j (t )
i< j
Quiz Q:
!! How could one make the growth model more realistic for social networks?
!! old nodes die !! some nodes are more sociable !! friendships vane over time !! all of the above
k! (t ) = m + m log( )
k !m log( ) = " m
"
t
=e
k !m m
exponential distribution in degree
P( k < k ) = 1 ! e
'
k ' !m ! m
Quiz Q:
!! The degree distribution for a growth model where new nodes attach to old nodes at random will be
!! a curved line on a log-log plot !! a straight line on a log-log plot
Preferential attachment
Barabasi-Albert model
!! First used to describe skewed degree distribution of the World Wide Web !! Each node connects to other nodes with probability proportional to their degree
!! the process starts with some initial subgraph !! each new node comes in with m edges !! probability of connecting to node i
ki " (i ) = m !kj
j
Basic BA-model
!! Very simple algorithm to implement
!! start with an initial set of m0 fully connected nodes
!! e.g. m0 = 3
!! now add new vertices one by one, each one with exactly m edges !! each new edge connects to an existing vertex in proportion to the number of edges that vertex already has " preferential attachment !! easiest if you keep track of edge endpoints in one large array and select an element from this array at random
!! the probability of selecting any one vertex will be proportional to the number of times it appears in the array which corresponds to its degree
1 1 2 2 2 3 3 4 5 6 6 7 8 .
112233 1
2 3 4
!! We add a new vertex, and it will have m edges, here take m=2
!! draw 2 random elements from the array suppose they are 2 and 3
1122233344 1 2 5 3
!! Now the probabilities of selecting 1,2,3,or 4 are 1/5, 3/10, 3/10, 1/5
!! Add a new vertex, draw a vertex for it to connect from the array
!! etc.
11222333344455
after a while...
random
preferential
dki (t ) ki ki =m = dt 2tm 2t
with
ki (i) = m
t 1/ 2 ki (t ) = m( ) i
'
try it yourself
http://www.ladamic.com/netlearn/NetLogo501/RAndPrefAttachment.html
Quiz Q:
!! Relative to the random growth model, the degree distribution in the preferential attachment model
!! resembles a power-law distribution less !! resembles a power-law distribution more