NETWORK SCIENCE
Random Networks
Prof. Marcello Pelillo Ca’ Foscari University of Venice
a.y. 2016/17 Section 3.2
The random network model RANDOM NETWORK MODEL
Pál Erdös Alfréd Rényi (1913-1996) (1921-1970)
Erdös-Rényi model (1960)
Connect with probability p
p=1/6 N=10
BOX 3.1
DEFINING RANDOM NETWORKS RANDOM NETWORK MODEL Network science aims to build models that reproduce the properties of There are two equivalent defini- real networks. Most networks we encounter do not have the comforting tions of a random network: Definition: regularity of a crystal lattice or the predictable radial architecture of a spi- der web. Rather, at first inspection they look as if they were spun randomly G(N, L) Model A random graph is a graph of N nodes where each pair (Figure 2.4). Random network theoryof nodes embraces is connected this byapparent probability randomness p. N labeled nodes are connect- by constructing networks that are truly random. ed with L randomly placed links. Erd s and Rényi used
From a modeling perspectiveTo a construct network isa arandom relatively network simple G(N, object, p): this definition in their string consisting of only nodes and links. The real challenge, however, is to decide of papers on random net- where to place the links between1) the Start nodes with so thatN isolated we reproduce nodes the com- works [2-9]. plexity of a real system. In this 2)respect Select the a philosophynode pair, behindand generate a random a network is simple: We assume thatrandom this goal number is best betweenachieved by0 and placing 1. If the G(N, p) Model random number exceeds p, connect the the links randomly between the nodes.selected That takes node us pair to the with definition a link, otherwise of a Each pair of N labeled nodes random network (BOX 3.1): leave them disconnected is connected with probability 3) Repeat step (2) for each of the N(N-1)/2 p, a model introduced by Gil- A random network consists of N nodesnode wherepairs. each node pair is connect- bert [10]. ed with probability p. Network Science: Random Hence, the G(N, p) model fixes To construct a random network we follow these steps: the probability p that two nodes are connected and the G(N, L) 1) Start with N isolated nodes. model fixes the total number of links L. While in the G(N, L) 2) Select a node pair and generate a random number between 0 and 1. model the average degree of a If the number exceeds p, connect the selected node pair with a link, node is simply
RANDOM NETWORKS 4 Hence
Using (3.2) we obtain the average degree of a random network
2 L k ==pN(1− ). (3.3) N
Hence
L=8 L=10 L=7
Figure 3.3 Random Networks are Truly Random
Top Row Three realizations of a random network gen- erated with the same parameters p =1/6 and N = 12. Despite the identical parameters, the net- works not only look different, but they have a different number of links as well (L = 8, 10, 7).
Bottom Row Three realizations of a random network with p = 1/6 and N = 100.
RANDOM NETWORKS 7 THE NUMBER OF LINKS IS VARIABLE RANDOM NETWORK MODEL
p=0.03 N=100
MATH TUTORIAL Binomial Distribution: The bottom line
Network Science: Random Graphs Number of links in a random network
P(L): the probability to have exactly L links in a network of N nodes and probability p:
The maximum number of links in a network of N nodes = number of pairs of distinct nodes.
⎛ ⎞ ⎛ ⎞ ⎛ N ⎞ ⎜ N ⎟ ⎜ ⎟−L Binomial distribution... ⎜ ⎟ L ⎝ 2 ⎠ P(L) = ⎜ ⎝ 2 ⎠ ⎟ p (1− p) ⎜ ⎟ ⎝ L ⎠
Number of different ways we can choose L links among all potential links. ⎛ N ⎞ N(N −1) ⎜ ⎟ = ⎝ 2 ⎠ 2
Network Science: Random Graphs RANDOM NETWORK MODEL
P(L): the probability to have a network of exactly L links ⎛ ⎞ ⎛ ⎞ ⎛ N ⎞ ⎜ N ⎟ ⎜ ⎟−L ⎜ ⎟ L ⎝ 2 ⎠ P(L) = ⎜ ⎝ 2 ⎠ ⎟ p (1− p) ⎜ ⎟ ⎝ L ⎠
• The average number of links
N(N−1) 2 N(N −1) < L > < L >= ∑ LP(L) = p < k >= 2 = p(N −1) L= 0 2 N
• The standard deviation N(N −1) σ2 = p(1− p) 2 Network Science: Random Graphs