Complex Systems · 8/8 · Series index · Notation

Helpsheet: Six Core Formula Blocks

The same letter may have different meanings in different formulas; use its local definition and check the stated assumptions.

1. Probability, the CLT, and MGFs

Write Sn=i=1nXiS_n=\sum_{i=1}^nX_i and X=Sn/n\overline X=S_n/n. The second parameter of N(μ,σ2)N(\mu,\sigma^2) is the variance.

p(x)dx=1,μ=E[X],σ2=E[X2]μ2,pN(x)=e(xμ)2/(2σ2)σ2π.\begin{aligned} \int p(x)\,dx&=1,\\ \mu&=E[X],\\ \sigma^2&=E[X^2]-\mu^2,\\ p_N(x)&=\frac{e^{-(x-\mu)^2/(2\sigma^2)}}{\sigma\sqrt{2\pi}}. \end{aligned}

CLT: if the XiX_i are independent and identically distributed, with 0<σ2<0<\sigma^2<\infty, then

Zn=Snnμσn=n(Xμ)σ,ZndN(0,1),n,SnN(nμ,nσ2),XN(μ,σ2/n).\begin{aligned} Z_n&=\frac{S_n-n\mu}{\sigma\sqrt n} =\frac{\sqrt n(\overline X-\mu)}{\sigma},\\ Z_n&\xrightarrow{d}N(0,1),\qquad n\to\infty,\\ S_n&\approx N(n\mu,n\sigma^2),\\ \overline X&\approx N(\mu,\sigma^2/n). \end{aligned}

MGFs and raw moments:

MX(t)=E[etX],MX(r)(0)=E[Xr],MaX+b(t)=ebtMX(at),MiXi(t)=iMXi(t)if independent,MN(t)=eμt+σ2t2/2.\begin{aligned} M_X(t)&=E[e^{tX}],\\ M_X^{(r)}(0)&=E[X^r],\\ M_{aX+b}(t)&=e^{bt}M_X(at),\\ M_{\sum_iX_i}(t)&=\prod_iM_{X_i}(t)\qquad\text{if independent},\\ M_N(t)&=e^{\mu t+\sigma^2t^2/2}. \end{aligned}

The standard normal raw moments are (m0,m1,m2,m3,m4)=(1,0,1,0,3)(m_0,m_1,m_2,m_3,m_4)=(1,0,1,0,3). With Y=(Xμ)/σY=(X-\mu)/\sigma, the proof proceeds through

[MY ⁣(tn)]n=[1+t22n+o(n1)]net2/2.\begin{aligned} \left[M_Y\!\left(\frac{t}{\sqrt n}\right)\right]^n &=\left[1+\frac{t^2}{2n}+o(n^{-1})\right]^n\\ &\longrightarrow e^{t^2/2}. \end{aligned}

The MGF proof additionally requires the MGF to be finite in a neighborhood of 00; the Taylor derivatives are evaluated at 00. Independence is required to express the MGF of a sum as a product.

skewness=E[(Xμ)3]σ3,kurtosis=E[(Xμ)4]σ4,excess kurtosis=kurtosis3.\begin{aligned} \text{skewness}&=\frac{E[(X-\mu)^3]}{\sigma^3},\\ \text{kurtosis}&=\frac{E[(X-\mu)^4]}{\sigma^4},\\ \text{excess kurtosis}&=\text{kurtosis}-3. \end{aligned}

Symmetric random walk: P(X=1)=P(X=1)=1/2P(X=1)=P(X=-1)=1/2, with independent steps,

MX(t)=cosht,SnN(0,n),P(Sn=s)=2n(n(n+s)/2),s=n,n+2,,n.\begin{aligned} M_X(t)&=\cosh t,\\ S_n&\approx N(0,n),\\ P(S_n=s)&=2^{-n}\binom{n}{(n+s)/2},\\ s&=-n,-n+2,\ldots,n. \end{aligned}

2. Stable Distributions, Power Laws, and Pareto

Stability and characteristic functions: for a sum of i.i.d. variables, stability is written Sn=danX+bnS_n\overset{d}{=}a_nX+b_n. The characteristic function (CF), φX(q)=E[eiqX]\varphi_X(q)=E[e^{iqX}], always exists.

For the symmetric stable family centered at 00, take c>0c>0 and 0<α20<\alpha\le2:

φX(q)=ecqα,Sn=dn1/αX,X=dn1/α1X.\begin{aligned} \varphi_X(q)&=e^{-c|q|^\alpha},\\ S_n&\overset{d}{=}n^{1/\alpha}X,\\ \overline X&\overset{d}{=}n^{1/\alpha-1}X. \end{aligned}

At α=2\alpha=2, the distribution is Gaussian with variance 2c2c. At α=1\alpha=1, it is Cauchy:

pC(x)=cπ(x2+c2),φC(q)=ecq,X=dX.\begin{aligned} p_C(x)&=\frac{c}{\pi(x^2+c^2)},\\ \varphi_C(q)&=e^{-c|q|},\\ \overline X&\overset{d}{=}X. \end{aligned}

The Cauchy mean is undefined. A symmetric principal value of 00 does not establish the existence of an expectation. The sample mean does not become concentrated as sample size increases.

Power-law tails and moments:

p(x)xγ=x(1+α),F(x)xα,γ=1+α,EXr<    r<α    γ>r+1,r>0.\begin{aligned} p(x)&\propto x^{-\gamma}=x^{-(1+\alpha)},\\ \overline F(x)&\propto x^{-\alpha},\\ \gamma&=1+\alpha,\\ E|X|^r<\infty &\iff r<\alpha\iff\gamma>r+1,\qquad r>0. \end{aligned}

The PDF and CCDF have log-log slopes γ-\gamma and α-\alpha, respectively. Moments diverge at equality. A power-law tail with tail index α=2\alpha=2 still has a divergent second moment. Within the stable family, the power-law tail and this moment criterion apply only for 0<α<20<\alpha<2. Stability index α=2\alpha=2 is the Gaussian exception, with finite moments of every order.

Pareto: for xxm>0x\ge x_m>0 and α>0\alpha>0,

p(x)=αxmαx1+α,F(x)=(xm/x)α,E[Xr]=αxmrαr,r<α,E[X]=αxmα1,α>1,Med(X)=xm21/α,Var(X)=αxm2(α1)2(α2),α>2,G=12α1,α>1.\begin{aligned} p(x)&=\frac{\alpha x_m^\alpha}{x^{1+\alpha}},\\ \overline F(x)&=(x_m/x)^\alpha,\\ E[X^r]&=\frac{\alpha x_m^r}{\alpha-r},\qquad r<\alpha,\\ E[X]&=\frac{\alpha x_m}{\alpha-1},\qquad\alpha>1,\\ \operatorname{Med}(X)&=x_m2^{1/\alpha},\\ \operatorname{Var}(X)&=\frac{\alpha x_m^2}{(\alpha-1)^2(\alpha-2)},\qquad\alpha>2,\\ G&=\frac1{2\alpha-1},\qquad\alpha>1. \end{aligned}

Scale-free behavior is expressed by p(ax)/p(x)=aγp(ax)/p(x)=a^{-\gamma} within the range where the power law holds. A finite upper cutoff makes all positive-order moments finite.

3. Relaxing the CLT and Application Reminders

Lyapunov condition for independent, nonidentically distributed variables: let sn2=i=1nσi2s_n^2=\sum_{i=1}^n\sigma_i^2. If there is a δ>0\delta>0 such that

i=1nEXiμi2+δsn2+δ0,\frac{\sum_{i=1}^nE|X_i-\mu_i|^{2+\delta}}{s_n^{2+\delta}}\longrightarrow0,

then

i=1n(Xiμi)sndN(0,1).\frac{\sum_{i=1}^n(X_i-\mu_i)}{s_n}\xrightarrow{d}N(0,1).

Gutenberg–Richter law:

log10N(Mmagu)=abu.\log_{10}N(M_{\mathrm{mag}}\ge u)=a-bu.

Using Mmag=log10A+constM_{\mathrm{mag}}=\log_{10}A+\mathrm{const} gives

FA(A)Ab,pA(A)Ab1.\overline F_A(A)\propto A^{-b},\qquad p_A(A)\propto A^{-b-1}.

Omori's law: r(t)=K/(t+c)pr(t)=K/(t+c)^p describes an event rate; it cannot directly be treated as a probability density.

St Petersburg paradox:

P(N=j)=2j,W=2j1,j=1,2,,P(N=j)=2^{-j},\qquad W=2^{j-1},\qquad j=1,2,\ldots,

which gives E[W]=E[W]=\infty.

Complex-systems keywords: many-body, autonomous, nonlinear interaction, emergence. Observing a power law alone does not establish its generating mechanism.

4. BA and ER Networks

Let nn be the number of nodes, MM the total number of edges, and mm the number of edges introduced by each new node in the BA model.

BA: growth plus linear preferential attachment.

n=n0+t,M=M0+mt,Πi=kijkj,jkj2mt.\begin{aligned} n&=n_0+t,\\ M&=M_0+mt,\\ \Pi_i&=\frac{k_i}{\sum_jk_j},\\ \sum_jk_j&\simeq2mt. \end{aligned}

In the continuum approximation,

k˙i=mΠi=ki2t,ki(ti)=m,ki(t)=mt/ti.\begin{aligned} \dot k_i&=m\Pi_i=\frac{k_i}{2t},\\ k_i(t_i)&=m,\\ k_i(t)&=m\sqrt{t/t_i}. \end{aligned}

Birth times are approximately uniform. For kmk\ge m, inversion gives ti=t(m/k)2t_i=t(m/k)^2, hence

F(k)=1(m/k)2,pcont(k)=2m2k3,γ=3.\begin{aligned} F(k)&=1-(m/k)^2,\\ p_{\mathrm{cont}}(k)&=2m^2k^{-3},\\ \gamma&=3. \end{aligned}

Master equation: NkN_k is the expected number of nodes of degree kk, and δkm\delta_{km} is the new-node birth term.

ΔNk=(k1)Nk1kNk2t+δkm,Nktpk.\begin{aligned} \Delta N_k&=\frac{(k-1)N_{k-1}-kN_k}{2t}+\delta_{km},\\ N_k&\simeq tp_k. \end{aligned}

The boundary value, recurrence, and closed-form solution are

pm=2m+2,pk=k1k+2pk1,k>m,pk=2m(m+1)k(k+1)(k+2),km,P(Kq)=m(m+1)q(q+1),qZ, qm,k2m.\begin{aligned} p_m&=\frac2{m+2},\\ p_k&=\frac{k-1}{k+2}p_{k-1},\qquad k>m,\\ p_k&=\frac{2m(m+1)}{k(k+1)(k+2)},\qquad k\ge m,\\ P(K\ge q)&=\frac{m(m+1)}{q(q+1)},\qquad q\in\mathbb Z,\ q\ge m,\\ \langle k\rangle&\longrightarrow2m. \end{aligned}

ER random graph G(n,p)G(n,p): each pair of distinct nodes is connected independently with probability pp,

E[M]=pn(n1)2,P(K=k)=(n1k)pk(1p)n1k,c=(n1)p.\begin{aligned} E[M]&=\frac{pn(n-1)}2,\\ P(K=k)&=\binom{n-1}{k}p^k(1-p)^{n-1-k},\\ c&=(n-1)p. \end{aligned}

Keep cc fixed and let p=c/(n1)p=c/(n-1) and nn\to\infty to obtain the Poisson limit:

pkecckk!.p_k\longrightarrow\frac{e^{-c}c^k}{k!}.

For this limiting distribution, E[K]=Var(K)=cE[K]=\operatorname{Var}(K)=c. The Poisson limit is not the CLT. A normal approximation requires a further regime in which cc is large. ER tails decay rapidly, whereas BA networks develop prominent hubs.

5. Graph Theory, Matrices, and Components

Use Aij=1A_{ij}=1 to mean iji\to j. For an undirected graph, A=ATA=A^{\mathsf T}. For simple graphs without self-loops,

kiout=jAij,kiin=jAji.\begin{aligned} k_i^{\mathrm{out}}&=\sum_jA_{ij},\\ k_i^{\mathrm{in}}&=\sum_jA_{ji}. \end{aligned}

For undirected graphs, the degree sum and mean degree are

iki=2M,k=2M/n.\sum_i k_i=2M,\qquad \langle k\rangle=2M/n.

Directed graphs satisfy ikiin=ikiout=M\sum_i k_i^{\mathrm{in}}=\sum_i k_i^{\mathrm{out}}=M. Undirected and directed densities are, respectively,

ρu=2Mn(n1),ρd=Mn(n1).\rho_u=\frac{2M}{n(n-1)},\qquad \rho_d=\frac{M}{n(n-1)}.

Matrix powers and distance: (A)ij(A^\ell)_{ij} counts walks of length \ell. A node at shortest-path distance exactly 22 from ii must satisfy

(A2)ij>0,Aij=0,ji.(A^2)_{ij}>0,\qquad A_{ij}=0,\qquad j\ne i.

For an undirected simple graph, (A2)ii=ki(A^2)_{ii}=k_i.

Graph counts and structure:

  • A tree is connected and acyclic, with M=n1M=n-1.
  • A forest with CC components has M=nCM=n-C.
  • A kk-regular graph has M=nk/2M=nk/2.
  • A complete graph has M=n(n1)/2M=n(n-1)/2.
  • A bipartite graph has no odd cycle. Its adjacency matrix can be written as

Abip=(0BBT0).A_{\mathrm{bip}}=\begin{pmatrix}0&B\\B^{\mathsf T}&0\end{pmatrix}.

The matrices BBTBB^{\mathsf T} and BTBB^{\mathsf T}B count shared neighbors in the two respective projections. Remove the diagonal and replace positive entries by 11 to obtain unweighted projections.

Connectivity and other network types: an SCC requires mutual directed reachability; a WCC ignores edge directions. When each reachability set includes its starting node,

IN(v)OUT(v)=SCC(v).\mathrm{IN}(v)\cap\mathrm{OUT}(v)=\mathrm{SCC}(v).

A hyperedge can connect several objects simultaneously. A multiplex network represents different relations among the same set of nodes in multiple layers. A planar graph can be redrawn without edge crossings.

Storage and search complexity: a dense adjacency matrix requires O(n2)O(n^2) space, and an adjacency list requires O(n+M)O(n+M) space. One BFS takes O(n+M)O(n+M); running BFS separately from every node takes O(n(n+M))O(n(n+M)).

6. Network Metrics

For the distance formulas below, assume a connected, undirected, unweighted graph, with dijd_{ij} denoting shortest-path distance.

L=ijdijn(n1),εi=maxjdij,D=maxiεi,R=miniεi.\begin{aligned} L&=\frac{\sum_{i\ne j}d_{ij}}{n(n-1)},\\ \varepsilon_i&=\max_jd_{ij},\\ D&=\max_i\varepsilon_i,\\ R&=\min_i\varepsilon_i. \end{aligned}

Degree, closeness, and betweenness centrality:

CD(i)=kin1,CC(i)=n1jidij,CB(i)=2(n1)(n2)s<ts,tiσst(i)σst.\begin{aligned} C_D(i)&=\frac{k_i}{n-1},\\ C_C(i)&=\frac{n-1}{\sum_{j\ne i}d_{ij}},\\ C_B(i)&=\frac{2}{(n-1)(n-2)} \sum_{\substack{s<t\\s,t\ne i}}\frac{\sigma_{st}(i)}{\sigma_{st}}. \end{aligned}

Here σst\sigma_{st} is the number of shortest paths from ss to tt, and σst(i)\sigma_{st}(i) counts those passing through ii as an internal node. The betweenness formula requires n>2n>2.

Eigenvector centrality and Katz centrality: use B=ATB=A^{\mathsf T} for incoming-link importance and B=AB=A for undirected graphs.

Bx=ρ(B)x,x=aBx+β1,x=β(IaB)11,a0,aρ(B)<1,β>0.\begin{aligned} B\boldsymbol x&=\rho(B)\boldsymbol x,\\ \boldsymbol x&=aB\boldsymbol x+\beta\boldsymbol 1,\\ \boldsymbol x&=\beta(I-aB)^{-1}\boldsymbol 1,\\ a&\ge0,\qquad a\rho(B)<1,\qquad\beta>0. \end{aligned}

PageRank: let 0<d<10<d<1 and use the row-stochastic matrix Pij=Aij/kioutP_{ij}=A_{ij}/k_i^{\mathrm{out}}. For a node with no outgoing edges, replace its entire row by vT\boldsymbol v^{\mathsf T}.

p=dPTp+(1d)v,ipi=1,vi=1/n.\begin{aligned} \boldsymbol p&=dP^{\mathsf T}\boldsymbol p+(1-d)\boldsymbol v,\\ \sum_i p_i&=1,\qquad v_i=1/n. \end{aligned}

Clustering and transitivity: tit_i is the number of triangles containing node ii, and TT is the total number of triangles in the graph.

Ci=2tiki(ki1),ki2,Ci=0,ki<2,C=1niCi,Ctrans=3Ti(ki2).\begin{aligned} C_i&=\frac{2t_i}{k_i(k_i-1)},\qquad k_i\ge2,\\ C_i&=0,\qquad k_i<2,\\ \overline C&=\frac1n\sum_iC_i,\\ C_{\mathrm{trans}}&=\frac{3T}{\sum_i\binom{k_i}{2}}. \end{aligned}

When there are no connected triples, transitivity is defined to be 00. A kk-core is obtained by repeatedly removing nodes whose current degree is less than kk.

Assortativity: r=Corredge(ki,kj)r=\operatorname{Corr}_{\mathrm{edge}}(k_i,k_j). Positive values indicate assortativity, and negative values indicate disassortativity. Calculate the correlation across edge endpoints, counting each undirected edge in both directions.

Modularity and the largest-component fraction:

Q=C[lCM(KC2M)2],KC=iCki,S=Cmax/n.\begin{aligned} Q&=\sum_C\left[\frac{l_C}{M}-\left(\frac{K_C}{2M}\right)^2\right],\\ K_C&=\sum_{i\in C}k_i,\\ S&=|C_{\max}|/n. \end{aligned}

Here lCl_C is the number of edges internal to community CC, and KCK_C is the sum of its nodes' degrees in the original graph. Modularity requires M>0M>0. The quantity SS is the fraction of all nodes belonging to the largest component.


← Comprehensive practice · Series index