Alessandro Palliccia

Stochastic Dynamical Models

Random walks on Zd\mathbb{Z}^d

649 words,

Theorem 3.5 of the previous post tells recurrent and transient states apart through the series of the probabilities pii(n).p^{(n)}_{ii}. It is applied here to the study of random walks on Zd.\mathbb{Z}^d.

Random walk on Z\mathbb{Z}

Let (Xn)n≥0(X_n)_{n \ge 0} be a Markov chain with set of states Z\mathbb{Z} and transition matrix

P=(⋯⋯⋯⋯⋯⋯⋯⋯q0p00⋯⋯0q0p0⋯⋯⋯⋯⋯⋯⋯⋯),P = \begin{pmatrix} \cdots & \cdots & \cdots & \cdots & \cdots & \cdots & \cdots \\ \cdots & q & 0 & p & 0 & 0 & \cdots \\ \cdots & 0 & q & 0 & p & 0 & \cdots \\ \cdots & \cdots & \cdots & \cdots & \cdots & \cdots & \cdots \end{pmatrix},

where p,q∈(0,1){p, q \in (0, 1)} and p+q=1,{p + q = 1,} as in Figure 1. The chain (Xn)n≥0(X_n)_{n \ge 0} is irreducible and all its states have period 2.

i − 1qpiqpi + 1qpi + 2……

Figure 1. The random walk on Z:{\mathbb{Z}{:}} from each state the walk jumps to the right with probability pp and to the left with probability q.q.

We want to establish whether the states are recurrent or transient. For all n≥0{n \ge 0} we compute

p00(2n)=(2nn)(pq)n.p^{(2n)}_{00} = \binom{2n}{n} (pq)^n.

Indeed, a path from 0 back to 0 in 2n2n steps makes nn steps to the right and nn to the left, in one of (2nn)\binom{2n}{n} orders, and each such path has probability (pq)n.{(pq)^n.} By Stirling’s formula

lim⁡n→∞nnexp⁡(−n)2πnn!=1\lim_{n \to \infty} \frac{n^n \exp(-n) \sqrt{2\pi n}}{n!} = 1

we find the asymptotic behaviour, as in Figure 2,

p00(2n)≈(4pq)nπn,p^{(2n)}_{00} \approx \frac{(4pq)^n}{\sqrt{\pi n}},

where an≈bn{a_n \approx b_n} means that an/bn→1.{a_n / b_n \to 1.} Since 0≤4pq=4p(1−p)≤1,{0 \le 4pq = 4p(1 - p) \le 1,} with 4pq=1{4pq = 1} if and only if p=q=1/2,{p = q = 1/2,} and 4pq<1{4pq < 1} otherwise, by Theorem 3.5 we deduce Proposition 4.1. Indeed, p00(n)=0{p^{(n)}_{00} = 0} for odd n,{n,} so the series of Theorem 3.5 for the state 0 is the series of the p00(2n),{p^{(2n)}_{00},} which diverges when 4pq=1{4pq = 1} and converges when 4pq<1;{4pq < 1;} the chain is irreducible, so Corollary 3.6 extends the conclusion to all states.

Proposition 4.1. The following hold.
(i) Symmetric random walk, p=q=1/2:{p = q = 1/2{:}} all states are recurrent.
(ii) Asymmetric random walk, p≠q:{p \neq q{:}} all states are transient.

11020304000.20.40.6n4pq = 1.000

Figure 2. The return probabilities p00(2n)p^{(2n)}_{00} of the walk on Z\mathbb{Z} for n=1,…,40,{n = 1, \dots, 40,} dots, and their asymptotic value (4pq)n/πn,{(4pq)^n/\sqrt{\pi n},} line. The slider sets p,{p,} and q=1−p.{q = 1 - p.}

In the case p=q=1/2{p = q = 1/2} the first return times TiT_i to a state ii are almost surely finite. However, by means of the generating functions F00F_{00} and P00P_{00} introduced in the proof of Theorem 3.5, we can show that their expectation Ei[Ti]\mathbb{E}_i[T_i] is infinite. In other words, the return to ii is almost sure, but on average it occurs after a very long time.

Let us begin by recalling the Taylor series expansion

(1−4x)−12=∑n≥0(2nn)xn,∣x∣<14,(1 - 4x)^{-\frac12} = \sum_{n \ge 0} \binom{2n}{n} x^n, \qquad |x| < \frac14,

which gives an explicit formula for the generating function P00:{P_{00}{:}}

P00(s)=11−4pqs2,∣s∣<1.P_{00}(s) = \frac{1}{\sqrt{1 - 4pqs^2}}, \qquad |s| < 1.

The generating function F00F_{00} is

F00(s)=1−(P00(s))−1=1−1−4pqs2,∣s∣<1.F_{00}(s) = 1 - \big( P_{00}(s) \big)^{-1} = 1 - \sqrt{1 - 4pqs^2}, \qquad |s| < 1.

By Abel’s lemma, since 4pq=1,{4pq = 1,} we finally find

E0[T0]=∑n≥1nf00(n)=lim⁡s→1−∑n≥1nf00(n)sn−1=lim⁡s→1−dF00(s)ds=lim⁡s→1−4pqs1−4pqs2=+∞.\begin{aligned} \mathbb{E}_0[T_0] &= \sum_{n \ge 1} n f^{(n)}_{00} = \lim_{s \to 1^-} \sum_{n \ge 1} n f^{(n)}_{00} s^{n-1} \\ &= \lim_{s \to 1^-} \frac{dF_{00}(s)}{ds} = \lim_{s \to 1^-} \frac{4pqs}{\sqrt{1 - 4pqs^2}} = +\infty. \end{aligned}

Indeed, the first equality holds because T0T_0 is almost surely finite and P0{T0=n}=f00(n).{\mathbb{P}_0\{ T_0 = n \} = f^{(n)}_{00}.} Lemma 3.4 applies to the power series with coefficients nf00(n)≤n,{n f^{(n)}_{00} \le n,} whose radius of convergence is at least 1 and which is the derivative of F00F_{00} for ∣s∣<1.{|s| < 1.}

Random walk on Z2\mathbb{Z}^2

The return probabilities p00(2n)p^{(2n)}_{00} of the walk on the plane are computed as those of the walk on Z.\mathbb{Z}.

Consider a Markov chain (Xn)n≥0(X_n)_{n \ge 0} with set of states Z2\mathbb{Z}^2 and transition probabilities

P{Xn+1=(i,j)∣Xn=(h,k)}={1/4if ∣i−h∣+∣j−k∣=1,0otherwise.\mathbb{P}\{ X_{n+1} = (i, j) \mid X_n = (h, k) \} = \begin{cases} 1/4 & \text{if } |i - h| + |j - k| = 1, \\ 0 & \text{otherwise.} \end{cases}

The chain (Xn)n≥0(X_n)_{n \ge 0} is irreducible and has period 2. Let PP be the transition matrix; then

p00(2n)=∑h+k=n(2n)!(h!)2(k!)2(14)2n,p^{(2n)}_{00} = \sum_{h + k = n} \frac{(2n)!}{(h!)^2 (k!)^2} \Big( \frac14 \Big)^{2n},

where 0 denotes (0,0)∈Z2.{(0, 0) \in \mathbb{Z}^2.} Simple computations yield

p00(2n)=∑k=0n(2n)!(k!)2((n−k)!)2(14)2n=(2nn)(14)2n∑k=0n(nk)(nn−k).\begin{aligned} p^{(2n)}_{00} &= \sum_{k=0}^{n} \frac{(2n)!}{(k!)^2 ((n-k)!)^2} \Big( \frac14 \Big)^{2n} \\ &= \binom{2n}{n} \Big( \frac14 \Big)^{2n} \sum_{k=0}^{n} \binom{n}{k} \binom{n}{n-k}. \end{aligned}

Comparing the terms anbna^n b^n in the binomial expansion of (a+b)2n(a + b)^{2n} and in the square of the binomial expansion of (a+b)n,{(a + b)^n,} we find the formula

(2nn)=∑k=0n(nk)(nn−k).\binom{2n}{n} = \sum_{k=0}^{n} \binom{n}{k} \binom{n}{n-k}.

Summing up,

p00(2n)=((2nn)(14)n)2,p^{(2n)}_{00} = \Big( \binom{2n}{n} \Big( \frac14 \Big)^n \Big)^2,

and, by Stirling’s formula, as in Figure 3,

p00(2n)≈1πn,p^{(2n)}_{00} \approx \frac{1}{\pi n},

which proves, by Theorem 3.5 and Corollary 3.6, that all states are recurrent.

11020304000.20.40.6ndots: exact values; line: 1/(πn)

Figure 3. The return probabilities p00(2n)p^{(2n)}_{00} of the walk on Z2\mathbb{Z}^2 for n=1,…,40,{n = 1, \dots, 40,} dots, and their asymptotic value 1/(πn),{1/(\pi n),} line.

Random walk on Zd\mathbb{Z}^d in dimension three or more

The computation of p00(2n)p^{(2n)}_{00} on Z2\mathbb{Z}^2 extends to Zd\mathbb{Z}^d with d≥3.{d \ge 3.} The transition probabilities of the Markov chain (Xn)n≥0(X_n)_{n \ge 0} are now

P{Xn+1=(j1,…,jd)∣Xn=(i1,…,id)}={(2d)−1if ∑k=1d∣ik−jk∣=1,0otherwise.\mathbb{P}\{ X_{n+1} = (j_1, \dots, j_d) \mid X_n = (i_1, \dots, i_d) \} = \begin{cases} (2d)^{-1} & \text{if } \sum_{k=1}^{d} |i_k - j_k| = 1, \\ 0 & \text{otherwise.} \end{cases}

In analogy with the random walks on Z\mathbb{Z} and Z2\mathbb{Z}^2 we have

p00(2n)=∑k1+⋯+kd=n(2n)!(k1!)2⋯(kd!)2(12d)2n=(2nn)(12d)2n∑k1+⋯+kd=n(n!)2(k1!)2⋯(kd!)2.\begin{aligned} p^{(2n)}_{00} &= \sum_{k_1 + \dots + k_d = n} \frac{(2n)!}{(k_1!)^2 \cdots (k_d!)^2} \Big( \frac{1}{2d} \Big)^{2n} \\ &= \binom{2n}{n} \Big( \frac{1}{2d} \Big)^{2n} \sum_{k_1 + \dots + k_d = n} \frac{(n!)^2}{(k_1!)^2 \cdots (k_d!)^2}. \end{aligned}

The last sum is dominated by

max⁡k1+⋯+kd=n{n!k1!⋯kd!}∑k1+⋯+kd=nn!k1!⋯kd!=dnmax⁡k1+⋯+kd=n{n!k1!⋯kd!},\max_{k_1 + \dots + k_d = n} \Big\{ \frac{n!}{k_1! \cdots k_d!} \Big\} \sum_{k_1 + \dots + k_d = n} \frac{n!}{k_1! \cdots k_d!} = d^n \max_{k_1 + \dots + k_d = n} \Big\{ \frac{n!}{k_1! \cdots k_d!} \Big\},

where we used an extension of the binomial formula, with x1=⋯=xd=1,{x_1 = \dots = x_d = 1,}

∑k1+⋯+kd=nn!k1!⋯kd! x1k1⋯xdkd=(x1+⋯+xd)n.\sum_{k_1 + \dots + k_d = n} \frac{n!}{k_1! \cdots k_d!} \, x_1^{k_1} \cdots x_d^{k_d} = (x_1 + \dots + x_d)^n.

Elementary computations show that, when dd divides n,{n,} the maximum value is attained for

k1=k2=⋯=kd=nd.k_1 = k_2 = \dots = k_d = \frac{n}{d}.

In detail, if ka≥kb+2{k_a \ge k_b + 2} for some aa and b,{b,} moving one unit from kak_a to kbk_b multiplies n!/(k1!⋯kd!){n!/(k_1! \cdots k_d!)} by ka/(kb+1)>1,{k_a/(k_b + 1) > 1,} so at the maximum the kik_i differ by at most 1, as in Figure 4. For the other nn the bound below holds with (n/d)!(n/d)! read as Γ(n/d+1),{\Gamma(n/d + 1),} since log⁡Γ\log \Gamma is convex and so k1!⋯kd!≥Γ(n/d+1)d{k_1! \cdots k_d! \ge \Gamma(n/d + 1)^d} by Jensen’s inequality.

largest: (3, 3, 3), value 1,680

Figure 4. An instance with d=3:{d = 3{:}} the numbers n!/(k1! k2! k3!){n!/(k_1! \, k_2! \, k_3!)} over the triples with k1+k2+k3=n,{k_1 + k_2 + k_3 = n,} one hexagon each, darker for larger values, and the largest ones outlined. The slider sets n.n.

By Stirling’s formula we find that (p00(2n))n≥0(p^{(2n)}_{00})_{n \ge 0} is asymptotically smaller than a constant times

(2nn)(12d)2nn! dn((n/d)!)d≈dd/2πd/22(d−1)/21nd/2.\binom{2n}{n} \Big( \frac{1}{2d} \Big)^{2n} \frac{n! \, d^n}{((n/d)!)^d} \approx \frac{d^{d/2}}{\pi^{d/2} 2^{(d-1)/2}} \frac{1}{n^{d/2}}.

Since d≥3,{d \ge 3,} the states are transient, because ∑n≥0p00(2n)<+∞.{\sum_{n \ge 0} p^{(2n)}_{00} < +\infty.} Figure 5 draws p00(2n)p^{(2n)}_{00} for d=1,2,3.{d = 1, 2, 3.}

110100110-110-210-310-410-5d = 1d = 2d = 3n

Figure 5. The return probabilities p00(2n)p^{(2n)}_{00} of the symmetric walks on Z,{\mathbb{Z},} Z2\mathbb{Z}^2 and Z3\mathbb{Z}^3 for n=1,…,200,{n = 1, \dots, 200,} solid, on logarithmic scales. Dashed: 1/πn,{1/\sqrt{\pi n},} 1/(πn),{1/(\pi n),} and for d=3{d = 3} the right-hand side of the last estimate.