Markov chains
Warm-upHumanA Markov chain is often called memoryless. Which statement captures the Markov property?
A Markov chain is often called memoryless. Which statement captures the Markov property?
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?
Find the stationary distribution of .
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?
A chain on has ; ; ; . Which statements are true? (Choose all that apply.)
The lesson proves uniqueness of the stationary distribution by showing that every harmonic function () is constant. Where exactly is irreducibility used?
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?
Which statement about simple random walk is correct?
Which Lean statement formalises "detailed balance implies stationarity"? (π ᵥ* P is the row vector .)
Write step(mu, P) returning the row vector (lists of Fractions), and power_iterate(mu, P, n) applying step times. Then write is_stationary(pi, P). The tests use the two-state chain with , and check that approaches at the rate .