The Lumenary · Advanced undergraduate
Markov chains
Name: ______________________
Date: ______________________
You will learn to
- Model processes with transition matrices and compute -step transition probabilities and distributions
- Compute hitting probabilities and expected hitting times by first-step analysis, including gambler's ruin
- Classify states into communicating classes, as recurrent or transient, and by period, and prove the recurrence criterion
- Prove that an irreducible finite chain has a unique stationary distribution, and use detailed balance to find it
- Prove convergence to equilibrium for irreducible aperiodic finite chains, with a geometric rate
- State Pólya's theorem and prove recurrence of simple random walk in dimensions one and two
- 1.
A Markov chain is often called memoryless. Which statement captures the Markov property?
- A. is independent of .
- B.Given , the next state is conditionally independent of .
- C.From every state, all next states are equally likely.
- D.The distribution of does not change with .
- 2.
A weather chain on (dry, cloudy, rainy) has transition matrix . Today is dry. What is the probability, in percent, that the day after tomorrow is dry?
- 3.
Find the stationary distribution of .
- A.
- B.
- C.
- D.
- 4.
In the fair gambler's ruin game you start with coins and play one-coin fair bets until you have or coins. What is the expected number of bets?
- 5.
A chain on has ; ; ; . Which statements are true? (Choose all that apply.)
- A. is a closed class, and its states are recurrent.
- B.States and are transient.
- C.State has period .
- D.The chain is irreducible.
- E.The stationary distribution gives positive probability to state .
- 6.
The lesson proves uniqueness of the stationary distribution by showing that every harmonic function () is constant. Where exactly is irreducibility used?
- A.To show that attains a maximum.
- B.To pass from " for every reachable in one step from a maximiser" to " for every state ".
- C.To show that is an average of the values .
- D.To show that and its transpose have the same rank.
- 7.
A walker moves on the vertices of a hexagon, stepping to each of the two neighbouring vertices with probability . What is the period of the chain?
- 8.
Which statement about simple random walk is correct?
- A.On the walk returns to the origin with probability , but the expected return time is infinite.
- B.On the expected number of returns to the origin is infinite, so the walk returns with probability .
- C.On the walk has a stationary distribution, because it is recurrent.
- D.Computing in proves the series diverges.
- 9.
Which Lean statement formalises "detailed balance implies stationarity"? (
π ᵥ* Pis the row vector .)- A.
(hrow : ∀ i, ∑ j, P i j = 1) (hdb : ∀ i j, π i * P i j = π j * P j i) : π ᵥ* P = π - B.
(hrow : ∀ i, ∑ j, P i j = 1) (hst : π ᵥ* P = π) : ∀ i j, π i * P i j = π j * P j i - C.
(hdb : ∀ i j, π i * P i j = π j * P j i) : π ᵥ* P = π - D.
(hrow : ∀ i, ∑ j, P i j = 1) (hdb : ∀ i j, π i * P i j = π j * P j i) : P *ᵥ π = π
- A.
- 10.
Write
step(mu, P)returning the row vector (lists ofFractions), andpower_iterate(mu, P, n)applyingsteptimes. Then writeis_stationary(pi, P). The tests use the two-state chain with , and check that approaches at the rate .Computational — Practice