Markov Chains
Markov Property
A sequence of random variables \(\left\{X_n\right\}\) is a Markov process with state space \(S\) and transition probabilities \(P\) if for all \(n\ge 0\) and all sequences \(x_0,\ldots,x_n,x_{n+1}\in S\), we have that
-
the conditional probability is \(P(x,y)\), no matter what sequence \(x_0,\cdots,x_{n-1}\) of states proceeds the current state \(x\)
-
the transition matrix \(P\) is a stochastic matrix, i.e. \(P(x,y)\ge 0\) and \(\sum_{y\in S}P(x,y)=1\) for all \(x\in S\).
Ergodic theorem
Theorem Let \(f\) be a real-valued function defined on \(S\). If \(\left\{X_n\right\}\) is an irreducible Markov chain with stationary distribution \(\pi\), then for any starting distribution \(\mu\), we have
Theorem Suppose that \(P\) is irreducible, aperiodic, with stationary distribution \(\pi\). Then there exist constants \(\alpha \in (0,1)\) and \(C > 0\) such that
In particular, for any state \(y\), we have
A transition matrix \(P\) is called irreducible if for any two states \(x,y\in S\), there exists an integer \(n\ge 0\) such that \(P^n(x,y)>0\). For any \(x\in S\), define \(T(x)=\left\{n\ge 1:P^n(x,x)>0\right\}\), the period of \(x\) is the greatest common divisor of \(T(x)\), denote by \(gcd(T(x))\).
Lemma If \(P\) is irreducible, then \(gcd(T(x)) = gcd(T(y))\) for all \(x,y \in S\). We define this common number to be the period of the chain.
For an irreducible chain, the chain is aperiodic if all states have period one.
Simple random walk on a cycle
For the simple random walk on the \(N\)-cycle:
- the chain is irreducible;
- if \(N\) is odd, it is aperiodic;
- if \(N\) is even, it has period \(2\).
Stationary Measure
Consider a Markov chain \((X_n)_{n\ge0}\) with state space \(S\) and transition matrix \(P\). Let
- \(\mu_0\) be the distribution of \(X_0\);
- \(\mu_n\) be the distribution of \(X_n\).
Then
For a function \(f:S\to\mathbb R\), define
Then
A probability measure \(\pi\) on \(S\) is called a stationary distribution if
Equivalently, for every \(y\in S\),
If \(X_0\sim\pi\), then
Indeed,
Time Reversal and Detailed Balance
A probability distribution \(\pi\) satisfies the detailed balance equations if
Any probability distribution satisfying the detailed balance equations is stationary. In fact,
Suppose \(X_0\sim\pi\). For every sequence \(x_0,\ldots,x_n\),
Thus the chain has the same law when time is reversed.
A Markov chain satisfying the detailed balance equations is called reversible.
Birth-and-Death Chains
A birth-and-death chain has state space
From state \(k\), the chain can only move to \(k-1\), \(k\), or \(k+1\). Write
where
Assume the chain is irreducible. The detailed balance equations are
Hence
Starting from \(\pi(0)\),
Define
After normalization,
Therefore every finite irreducible birth-and-death chain is reversible.
Hitting and Return Times
For \(x\in S\), define
and
The random variable \(\tau_x\) is the hitting time of \(x\), while \(\tau_x^+\) is the first return time when \(X_0=x\).
Theorem. Suppose that \(S\) is finite and \(P\) is irreducible. Then there exists a unique stationary distribution \(\pi\). Moreover,
In particular,
The formula has the following interpretation:
For every \(x,y\in S\),
This follows from finiteness and irreducibility: there exist \(m\ge1\) and \(c>0\) such that, from every state, the chain reaches \(y\) within \(m\) steps with probability at least \(c\). Hence
and consequently
Harmonic Functions
A function \(f:S\to\mathbb R\) is called harmonic if
that is,
Lemma. If \(S\) is finite and \(P\) is irreducible, then every harmonic function is constant.
Proof. Let \(x_0\) be a point where \(f\) attains its maximum. Since
is a convex combination of values not exceeding \(f(x_0)\), every state \(y\) with \(P(x_0,y)>0\) must satisfy
Repeating this argument and using irreducibility shows that every state has the same value.
Ergodic Theorem
Theorem. Let \(f:S\to\mathbb R\). If \((X_n)\) is a finite irreducible Markov chain with stationary distribution \(\pi\), then for every starting distribution \(\mu\),
where
In particular, take
Then
Thus \(\pi(x)\) is the long-run proportion of time spent at state \(x\).
Aperiodicity is not required for this time-average result.
Total Variation Distance
For two probability measures \(\mu\) and \(\nu\) on \(S\), their total variation distance is
For a finite or countable state space,
The total variation distance satisfies the triangle inequality:
For every \(y\in S\),
Convergence Theorem
Theorem. Suppose that \(S\) is finite and \(P\) is irreducible and aperiodic, with stationary distribution \(\pi\). Then there exist constants
such that
In particular, for every \(x,y\in S\),
The ergodic theorem and the convergence theorem are different:
- irreducibility is sufficient for convergence of time averages;
- aperiodicity is additionally required for convergence of the distribution at a fixed time.
Recurrence and Transience
For \(x\in S\), recall
A state \(x\) is called recurrent if
Otherwise, \(x\) is called transient.
Lemma. Suppose \(P\) is irreducible. The following are equivalent:
- there exists \(x\in S\) such that
$$ \mathbb P_x(\tau_x^+<\infty)=1; $$
- for every \(x,y\in S\),
$$ \mathbb P_x(\tau_y<\infty)=1. $$
Thus an irreducible Markov chain is either recurrent or transient.
If \(S\) is finite and \(P\) is irreducible, then every state is recurrent.
Positive Recurrence
A recurrent state \(x\) is called positive recurrent if
If \(x\) is recurrent but
then \(x\) is called null recurrent.
For an irreducible chain, positive recurrence is a class property: if one state is positive recurrent, then every state is positive recurrent.
Theorem. An irreducible Markov chain is positive recurrent if and only if there exists a stationary probability distribution \(\pi\).
In this case, the stationary distribution is unique and
Ergodic Theorem: Countable State Space
Theorem. Let \(f:S\to\mathbb R\) satisfy
If \((X_n)\) is irreducible and positive recurrent with stationary distribution \(\pi\), then for every starting distribution \(\mu\),
In particular,
Convergence Theorem: Countable State Space
Theorem. Suppose that the Markov chain is irreducible, aperiodic and positive recurrent. Then
In particular,
For an infinite state space, the theorem does not in general give a uniform exponential estimate of the form
Simple Random Walk
Let \((S_n)\) be a simple random walk on \(\mathbb Z^d\) starting from the origin. Define successive return times by
and
The following statements are equivalent:
- the random walk is recurrent;
- the walk returns to the origin almost surely:
$$ \mathbb P(\tau_1<\infty)=1; $$
- the expected total number of visits to the origin is infinite:
$$ \sum_{m=0}^\infty\mathbb P(S_m=0)=\infty. $$
Let
For \(d=1\),
For \(d=2\),
For \(d=3\),
Therefore,
Hence
Galton--Watson Tree
A tree is a connected graph with no cycles. A rooted tree has a distinguished vertex called the root.
The depth of a vertex is its graph distance from the root. Vertices at depth \(n\) form the \(n\)-th generation.
In a regular rooted tree, every vertex has exactly \(m\) offspring, so the number of vertices in generation \(n\) is
In a Galton--Watson tree, the number of offspring is random.
Start with one ancestor:
Each individual independently produces a random number of offspring with distribution
If \(\xi_{n,i}\) denotes the number of offspring produced by individual \(i\) in generation \(n\), then
The state \(0\) is absorbing.
Define the extinction time
and the extinction probability
Reproduction Law
The reproduction law is
Assume
so the reproduction law is nontrivial.
The mean number of offspring is
Conditioning on \(Z_n\),
Taking expectations,
Since \(Z_0=1\),
Generating Function
Define the generating function
Then
The function \(f\) is increasing and convex.
Conditioning on \(Z_n\),
Let \(f_n\) denote the \(n\)-fold composition of \(f\). Then
In particular,
Extinction Probability
Set
Since extinction is permanent,
Also,
Taking limits gives
If \(s\in[0,1]\) satisfies \(f(s)=s\), then \(q_0=0\le s\), and by induction,
Hence \(q\le s\). Therefore,
The shape of the generating function gives
Thus:
- \(R_0<1\): extinction occurs almost surely;
- \(R_0=1\): extinction occurs almost surely;
- \(R_0>1\): survival has positive probability \(1-q\).
Subcritical Case
Suppose
and
Then there exists \(C>0\) such that
Thus the survival probability decays exponentially.
Critical Case
Suppose
and
Then
Extinction still occurs almost surely, but the survival probability decays only at rate \(1/n\).
Supercritical Case
Suppose
Then the survival probability is
Define
Let \(\mathcal F_n\) be the information up to generation \(n\). Since
we have
Thus \((W_n)\) is a nonnegative martingale. By the martingale convergence theorem,
The Kesten--Stigum theorem states that
where
Under this condition, on the survival event,
so the population grows exponentially.