Exercises

ch17-ex01

Easy

A DTMC on {1,2}\{1, 2\} has transition matrix P=(0.60.40.20.8)\mathbf{P} = \begin{pmatrix} 0.6 & 0.4 \\ 0.2 & 0.8 \end{pmatrix}. Compute P2\mathbf{P}^{2} and find p12(2)p_{12}^{(2)}.

ch17-ex02

Easy

Find the stationary distribution of the chain in Exercise 1.

ch17-ex03

Easy

A DTMC on {A,B,C}\{A, B, C\} has pAB=1p_{AB} = 1, pBA=0.5p_{BA} = 0.5, pBC=0.5p_{BC} = 0.5, pCA=1p_{CA} = 1, and all other transitions are zero. Draw the transition diagram and determine whether the chain is irreducible.

ch17-ex04

Easy

For the chain in Exercise 3, determine the period of each state.

ch17-ex05

Easy

Verify that Ο€=(1/4,1/4,1/4,1/4)\boldsymbol{\pi} = (1/4, 1/4, 1/4, 1/4) is the stationary distribution of the doubly stochastic matrix P=(0.50.50000.50.50000.50.50.5000.5)\mathbf{P} = \begin{pmatrix} 0.5 & 0.5 & 0 & 0 \\ 0 & 0.5 & 0.5 & 0 \\ 0 & 0 & 0.5 & 0.5 \\ 0.5 & 0 & 0 & 0.5 \end{pmatrix}.

ch17-ex06

Medium

A DTMC on {0,1,2}\{0, 1, 2\} has transition matrix P=(0100.250.50.25010).\mathbf{P} = \begin{pmatrix} 0 & 1 & 0 \\ 0.25 & 0.5 & 0.25 \\ 0 & 1 & 0 \end{pmatrix}. Find the stationary distribution and verify your answer.

ch17-ex07

Medium

Prove that the product of two stochastic matrices is stochastic.

ch17-ex08

Medium

A particle moves on the integers {0,1,2,…}\{0, 1, 2, \ldots\} as follows: from state i>0i > 0, it moves to i+1i+1 with probability pp and to iβˆ’1i-1 with probability q=1βˆ’pq = 1-p. From state 0, it moves to 1 with probability 1 (reflecting barrier). For which values of pp is this chain positive recurrent?

ch17-ex09

Medium

Show that if a DTMC is irreducible and has a finite state space, then it is positive recurrent.

ch17-ex10

Medium

Consider the Ehrenfest model with N=4N = 4 particles. Write the full 5Γ—55 \times 5 transition matrix and find the stationary distribution. Verify by detailed balance.

ch17-ex11

Medium

A Gilbert-Elliott channel has b=0.05b = 0.05, g=0.2g = 0.2, Ο΅G=0\epsilon_G = 0, Ο΅B=0.5\epsilon_B = 0.5. Find: (a) the steady-state BER, (b) the expected length of a burst of errors.

ch17-ex12

Medium

Prove that if a Markov chain satisfies detailed balance with respect to a distribution Ο€\boldsymbol{\pi}, then the chain is reversible: the time-reversed chain has the same transition matrix.

ch17-ex13

Hard

(Gambler's ruin with unfair coin) In the gambler's ruin with p≠1/2p \neq 1/2, show that the ruin probability starting from fortune ii with target NN is

ri=(q/p)iβˆ’(q/p)N1βˆ’(q/p)N,whereΒ q=1βˆ’p.r_i = \frac{(q/p)^i - (q/p)^N}{1 - (q/p)^N}, \quad \text{where } q = 1 - p.

ch17-ex14

Hard

Let {Xn}\{X_n\} be an irreducible, positive recurrent DTMC with stationary distribution π\boldsymbol{\pi}. Prove the ergodic theorem (time-average form): for any bounded function f:S→Rf : \mathcal{S} \to \mathbb{R},

1nβˆ‘k=0nβˆ’1f(Xk)β†’βˆ‘i∈SΟ€if(i)a.s.Β asΒ nβ†’βˆž.\frac{1}{n} \sum_{k=0}^{n-1} f(X_k) \to \sum_{i \in \mathcal{S}} \pi_i f(i) \quad \text{a.s. as } n \to \infty.

ch17-ex15

Hard

(Metropolis-Hastings) Design a Metropolis-Hastings chain on S={1,2,3,4}\mathcal{S} = \{1, 2, 3, 4\} to sample from Ο€=(0.1,0.2,0.3,0.4)\boldsymbol{\pi} = (0.1, 0.2, 0.3, 0.4) using a uniform proposal (qij=1/4q_{ij} = 1/4 for all i,ji, j). Write the full transition matrix.

ch17-ex16

Hard

A web surfer follows links on a 4-page internet modeled by the link matrix L=(01/21/2000101/31/301/30010).\mathbf{L} = \begin{pmatrix} 0 & 1/2 & 1/2 & 0 \\ 0 & 0 & 1 & 0 \\ 1/3 & 1/3 & 0 & 1/3 \\ 0 & 0 & 1 & 0 \end{pmatrix}. The Google PageRank model adds a "teleportation" probability Ξ±=0.15\alpha = 0.15: P=(1βˆ’Ξ±)L+Ξ±4J\mathbf{P} = (1 - \alpha) \mathbf{L} + \frac{\alpha}{4} \mathbf{J}, where J\mathbf{J} is the 4Γ—44 \times 4 all-ones matrix. Find the PageRank (stationary distribution) of this chain.

ch17-ex17

Hard

Prove that periodicity is a class property: if i↔ji \leftrightarrow j in an irreducible chain, then d(i)=d(j)d(i) = d(j).

ch17-ex18

Challenge

(Coupling and total variation convergence) For an ergodic chain on a finite state space S\mathcal{S} with ∣S∣=M|\mathcal{S}| = M, define the mixing time

tmix(Ο΅)=min⁑{n:max⁑iβˆ₯Pn(i,β‹…)βˆ’Ο€βˆ₯TV≀ϡ}.t_{\text{mix}}(\epsilon) = \min\left\{n : \max_i \|\mathbf{P}^{n}(i, \cdot) - \boldsymbol{\pi}\|_{\text{TV}} \leq \epsilon\right\}.

Show that βˆ₯Pn(i,β‹…)βˆ’Ο€βˆ₯TV≀(1βˆ’p⋆)n\|\mathbf{P}^{n}(i, \cdot) - \boldsymbol{\pi}\|_{\text{TV}} \leq (1 - p_\star)^n where p⋆=min⁑i,jpij(1)p_\star = \min_{i,j} p_{ij}^{(1)} (assuming p⋆>0p_\star > 0).

ch17-ex19

Challenge

(Random walk on a graph) Let G=(V,E)G = (V, E) be a connected undirected graph with ∣V∣=M|V| = M vertices. The simple random walk on GG moves from vertex vv to a uniformly random neighbor. Let dvd_v denote the degree of vertex vv.

(a) Show that Ο€v=dv/(2∣E∣)\pi_v = d_v / (2|E|) is the stationary distribution.

(b) Show that this chain is reversible.

(c) For the cycle graph CMC_M (each vertex has degree 2), what is the period?

ch17-ex20

Challenge

(Convergence rate and spectral gap) For an ergodic chain on {1,…,M}\{1, \ldots, M\} with transition matrix P\mathbf{P}, let 1=Ξ»1>∣λ2∣β‰₯β‹―β‰₯∣λM∣1 = \lambda_1 > |\lambda_2| \geq \cdots \geq |\lambda_M| be the eigenvalues ordered by magnitude. Define the spectral gap Ξ³=1βˆ’βˆ£Ξ»2∣\gamma = 1 - |\lambda_2|.

(a) Show that βˆ₯pi(n)βˆ’Ο€βˆ₯22≀Ci(1βˆ’Ξ³)2n\|p_i^{(n)} - \boldsymbol{\pi}\|_2^2 \leq C_i (1 - \gamma)^{2n} for some constant CiC_i depending on the initial state.

(b) For the lazy random walk on the complete graph KMK_M (stay with probability 1/2, move to a uniform random vertex with probability 1/2), compute Ξ³\gamma and the mixing time up to constants.