Skip to main content

Random graphs: The Erdös-Rényi model

When we talk about random graphs, we refer to graphs generated as an outcome of the following experiment. Let nn be the number of vertices. For each {i,j}([n]2)\{i,j\} \in {[n] \choose 2}, we toss an unbiased coin and if the coin turns up head, there is an edge connecting {i,j}\{i,j\}. This is how we define the probability space based on a random experiment.

Another way to define this probability space is based on a direct definition. Let Γn\Gamma_n be the set of all possible graphs on nn vertices (note that some of them are isomorphic). As we discussed in the counting chapter, we have Γn=2(n2)|\Gamma_n| = 2^{{n \choose 2}}. We can define a probability space where the sample space is Γn\Gamma_n, and each atomic event has probability 2(n2)2^{-{n \choose 2}}.

Exercise 89

Consider the previous probability space (Ω,P)(\Omega, {\mathbb P}). Let A(i,j)A(i,j) denote the event that ii and jj are adjacent (for iji \neq j). Notice that there are (n2){n \choose 2} such events. Prove that P[A(i,j)]=1/2{\mathbb P}[A(i,j)] = 1/2. (Do not use the coin-tossing definition. Only use the definition based on Γn\Gamma_n.)

Theorem (Informal)

Almost all graphs are not bipartite.

Proof:

For each U[n]:Un/2U \subseteq [n]:|U|\leq n/2, we consider the event EUΓnE_U \subseteq \Gamma_n containing all graphs that are bipartite and the smaller side of the partition is UU. Therefore, E=U[n]:Un/2EUE = \bigcup_{U \subseteq [n]:|U|\leq n/2} E_U is the event that the graph is bipartite. Note that a particular bipartite graph might belong to several different events EUE_U as it can have many different possible bipartitions. However, here we will only see an upper bound of the probability (not its exact value).

We count the size of EUE_U. Since the edges are only between UU and [n]U[n] \setminus U, we know that there are at most k(nk)k (n-k) edges (where k=Uk = |U|). Each graph GEUG \in E_U must be a spanning subgraph of Kk,nkK_{k,n-k}, and there are only 2k(nk)2^{k(n-k)} such subgraphs. By using AM-GM, we have that k(nk)n2/4k(n-k) \leq n^2/4 (do you see why?). Therefore,

P[EU]2n2/4Γn=2n2/4n(n1)/2=2n2/4+n/2{\mathbb P}[E_U] \leq \frac{2^{n^2/4}}{|\Gamma_n|} = 2^{n^2/4 - n(n-1)/2}= 2^{-n^2/4+n/2} Now, using the union bound, we have that

P[E]=P[UEU]UP[EU]2n2n2/4+n/2=2n2/4+3n/2{\mathbb P}[E] = {\mathbb P}[\bigcup_U E_U] \leq \sum_U {\mathbb P}[E_U] \leq 2^n \cdot 2^{-n^2/4+n/2} = 2^{-n^2/4 +3n/2}

The final remark is that this probability converges to 00. (do you see why this shows that most graphs are not bipartite?)