Skip to content
The Lumenary

Practice · Advanced undergraduate

Markov chains

Markov chains

Warm-upHuman

A Markov chain X0,X1,…X_0, X_1, \dots is often called memoryless. Which statement captures the Markov property?

Choose one

Markov chains

Warm-upHuman

A weather chain on (dry, cloudy, rainy) has transition matrix P=(0.60.30.10.30.40.30.20.30.5)P = \begin{pmatrix} 0.6 & 0.3 & 0.1 \\ 0.3 & 0.4 & 0.3 \\ 0.2 & 0.3 & 0.5 \end{pmatrix}. Today is dry. What is the probability, in percent, that the day after tomorrow is dry?

Markov chains

CoreHuman

Find the stationary distribution of P=(0.90.10.50.5)P = \begin{pmatrix} 0.9 & 0.1 \\ 0.5 & 0.5 \end{pmatrix}.

Choose one

Markov chains

CoreHuman

In the fair gambler's ruin game you start with 33 coins and play one-coin fair bets until you have 00 or 1010 coins. What is the expected number of bets?

Markov chains

CoreHuman

A chain on {1,2,3,4}\{1, 2, 3, 4\} has p12=1p_{12} = 1; p21=p23=12p_{21} = p_{23} = \tfrac12; p33=p34=12p_{33} = p_{34} = \tfrac12; p43=1p_{43} = 1. Which statements are true? (Choose all that apply.)

Choose all that apply

Markov chains

CoreHuman

The lesson proves uniqueness of the stationary distribution by showing that every harmonic function (Ph=hPh = h) is constant. Where exactly is irreducibility used?

Choose one

Markov chains

CoreHuman

A walker moves on the 66 vertices of a hexagon, stepping to each of the two neighbouring vertices with probability 12\tfrac12. What is the period of the chain?

Markov chains

StretchHuman

Which statement about simple random walk is correct?

Choose one

Markov chains

CoreFormal

Which Lean statement formalises "detailed balance implies stationarity"? (π ᵥ* P is the row vector πP\pi P.)

Choose one

Markov chains

StretchComputational

Write step(mu, P) returning the row vector μP\mu P (lists of Fractions), and power_iterate(mu, P, n) applying step nn times. Then write is_stationary(pi, P). The tests use the two-state chain with a=14a = \tfrac14, b=12b = \tfrac12 and check that μPn\mu P^n approaches π=(23,13)\pi = (\tfrac23, \tfrac13) at the rate ∣1−a−b∣n=4−n|1 - a - b|^n = 4^{-n}.

Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.