Tutorials › Stochastic Processes › Random-Map Constructions of Markov Chains

Markov Chains: Definitions and Transition Matrices · Tutorial 98 of 994

Random-Map Constructions of Markov Chains

Represent each step of a Markov chain by an independent random map, then read off and verify the resulting transition probabilities.

Beginner 10 min read

What You'll Learn

  • Define a random map and use it to update a chain at each discrete time.
  • Derive transition probabilities by summing the probabilities of maps with a given image.
  • Prove that independent, identically distributed maps generate a time-homogeneous Markov chain.
  • Construct a random map with prescribed transition probabilities.
  • Calculate distributions and path probabilities from map-based models.
  • Recognize how shared maps can link the updates of different starting states.

From Random Functions to a Markov Chain

A transition matrix describes the probabilities of moving from each state to each other state. A random-map construction gives another way to specify the same evolution: at each step, draw a random function on the state space and apply it to the current state. The function chosen at a step determines the update for every possible starting state, even though the chain follows only the update from its current state.

Let \((\Omega,\mathcal{F},\mathbb{P})\) be a probability space, let \(S\) be a nonempty finite state space, and let \((F_n)_{n\ge1}\) be independent, identically distributed random maps from \(S\) to \(S\). A random map means that for each \(i\in S\), \(F_n(i)\) is an \(S\)-valued random variable, and the map \(F_n\) itself takes values among functions \(S\to S\). Let \(X_0\) be an \(S\)-valued random variable independent of all the maps. Define \(X_n=F_n(X_{n-1})\) for \(n\ge1\). The filtration used below is \(\mathcal{F}_n=\sigma(X_0,F_1,\ldots,F_n)\).

Definition: The transition matrix induced by a random map \(F\) is \(P=(p_{ij})_{i,j\in S}\), where \(p_{ij}=\mathbb{P}(F(i)=j)\). Equivalently, if the map has finitely many possible values \(f\), then \(p_{ij}=\sum_f\mathbb{P}(F=f)\mathbf{1}_{\{f(i)=j\}}\). The entries in row \(i\) are the probabilities of the possible images of \(i\).

For each fixed \(i\), the events \(\{F(i)=j\}\), as \(j\) ranges over \(S\), are disjoint and have union \(\Omega\). Therefore \(p_{ij}\ge0\) and \(\sum_{j\in S}p_{ij}=1\): the induced matrix is row-stochastic. The key condition for a chain construction is that each new map is independent of the past and has the same distribution at every time.

Theorem: Under the assumptions above, \((X_n)_{n\ge0}\) is a time-homogeneous Markov chain with transition matrix \(P\). In particular, for every \(n\ge0\) and \(i,j\in S\), \(\mathbb{P}(X_{n+1}=j\mid\mathcal{F}_n)=p_{X_nj}\) almost surely. Consequently, whenever \(\mathbb{P}(X_n=i)>0\), \(\mathbb{P}(X_{n+1}=j\mid X_n=i)=p_{ij}\).

Proof. Fix \(n\ge0\) and \(j\in S\). The random variable \(X_n\) is \(\mathcal{F}_n\)-measurable, and \(F_{n+1}\) is independent of \(\mathcal{F}_n\), with the same distribution as \(F\). On the event \(\{X_n=i\}\), the event \(\{X_{n+1}=j\}\) is \(\{F_{n+1}(i)=j\}\). Thus its conditional probability given \(\mathcal{F}_n\), on that event, is \(\mathbb{P}(F(i)=j)=p_{ij}\). Since the events \(\{X_n=i\}\) partition \(\Omega\), this gives \(\mathbb{P}(X_{n+1}=j\mid\mathcal{F}_n)=p_{X_nj}\) almost surely. The right-hand side depends on the past only through \(X_n\), which is the Markov property, and it does not depend on \(n\), which is time homogeneity. Conditioning further on \(\{X_n=i\}\) gives the stated conditional probability when that event has positive probability. \(\square\)

The conditional statement given \(X_n=i\) requires positive probability for that event; the formula given \(\mathcal{F}_n\) holds almost surely and does not require every state to have positive probability at time \(n\). Notice also that the construction does not require the values \(F(i)\) and \(F(k)\) to be independent for different states \(i\) and \(k\). Their dependence is part of the distribution of the random map.

Worked Example: A Two-State Chain from Three Maps

Let \(S=\{0,1\}\). At each step, independently choose one of three maps: the identity map \(I\), with probability \(\tfrac12\); the flip map \(R\), where \(R(0)=1\) and \(R(1)=0\), with probability \(\tfrac14\); or the constant map \(C_0\), where \(C_0(0)=C_0(1)=0\), with probability \(\tfrac14\). These probabilities sum to \(\tfrac12+\tfrac14+\tfrac14=1\).

From state \(0\), the identity and constant maps send the chain to \(0\), with total probability \(\tfrac12+\tfrac14=\tfrac34\); the flip sends it to \(1\), with probability \(\tfrac14\). From state \(1\), the flip and constant maps send it to \(0\), with total probability \(\tfrac14+\tfrac14=\tfrac12\); the identity sends it to \(1\), with probability \(\tfrac12\). Thus

$$ P= \begin{bmatrix} \tfrac34&\tfrac14\\ \tfrac12&\tfrac12 \end{bmatrix}. $$

Check the rows before using the matrix: \(\tfrac34+\tfrac14=1\) and \(\tfrac12+\tfrac12=1\). If the initial distribution is \(\mu_0=(\tfrac12,\tfrac12)\), then the row-vector convention gives

$$ \mu_1=\mu_0P =\left(\tfrac12\cdot\tfrac34+\tfrac12\cdot\tfrac12,\ \tfrac12\cdot\tfrac14+\tfrac12\cdot\tfrac12\right) =\left(\tfrac58,\tfrac38\right). $$

Taking one more step,

$$ \mu_2=\mu_1P =\left(\tfrac58\cdot\tfrac34+\tfrac38\cdot\tfrac12,\ \tfrac58\cdot\tfrac14+\tfrac38\cdot\tfrac12\right) =\left(\tfrac{21}{32},\tfrac{11}{32}\right). $$

Check: the entries of \(\mu_1\) sum to \(\tfrac58+\tfrac38=1\), and those of \(\mu_2\) sum to \(\tfrac{21}{32}+\tfrac{11}{32}=1\). Starting from state \(0\), the probability of the two-step path \(0,0,1\) is \(\tfrac34\cdot\tfrac14=\tfrac3{16}\). In the map construction this path requires a map sending \(0\) to \(0\) at the first step, followed by a map sending \(0\) to \(1\); independence gives the same product \(\tfrac34\cdot\tfrac14\).

Prescribing a Transition Matrix

The construction works in reverse as well. For a finite state space, any row-stochastic matrix can be obtained from a random map. One convenient choice is to choose the image of each state independently according to its row of the matrix. This independence across states is a design choice, not a requirement of the random-map theorem.

Theorem: Let \(P=(p_{ij})\) be a row-stochastic matrix on a finite state space \(S\). There exists a random map \(F:S\to S\) such that \(\mathbb{P}(F(i)=j)=p_{ij}\) for every \(i,j\in S\). Independent copies of this map, applied successively to an independent initial state, construct a Markov chain with transition matrix \(P\).

Proof. For each \(i\in S\), choose an \(S\)-valued random variable \(Y_i\) with \(\mathbb{P}(Y_i=j)=p_{ij}\), and make the variables \((Y_i)_{i\in S}\) independent. These variables can be defined on the finite product of their categorical probability spaces. Set \(F(i)=Y_i\) for each \(i\); this defines a random function \(F:S\to S\). For every \(i,j\), \(\mathbb{P}(F(i)=j)=\mathbb{P}(Y_i=j)=p_{ij}\). Hence the induced transition matrix is \(P\). Taking independent, identically distributed copies of \(F\), independent also of \(X_0\), and applying the first theorem proves the final assertion. \(\square\)

Worked Example: Building Maps for a Three-State Matrix

Consider \(S=\{1,2,3\}\) and the proposed transition matrix

$$ P= \begin{bmatrix} \tfrac12&\tfrac13&\tfrac16\\ \tfrac14&\tfrac12&\tfrac14\\ \tfrac13&\tfrac13&\tfrac13 \end{bmatrix}. $$

Check each row: \(\tfrac12+\tfrac13+\tfrac16=1\), \(\tfrac14+\tfrac12+\tfrac14=1\), and \(\tfrac13+\tfrac13+\tfrac13=1\). Choose \(F(1),F(2),F(3)\) independently, with their respective distributions given by rows one, two, and three. A random map is then a triple \((F(1),F(2),F(3))\). For example, the probability of the particular map \((2,1,3)\) is

$$ \mathbb{P}(F(1)=2,F(2)=1,F(3)=3) =\tfrac13\cdot\tfrac14\cdot\tfrac13 =\tfrac1{36}. $$

To check the induced first row, sum the probabilities of all maps whose first coordinate is \(1\), \(2\), or \(3\). Those totals are respectively \(\mathbb{P}(F(1)=1)=\tfrac12\), \(\mathbb{P}(F(1)=2)=\tfrac13\), and \(\mathbb{P}(F(1)=3)=\tfrac16\); the other two map coordinates sum out to probability \(1\), since their distributions are normalized. The same coordinate check gives row two \((\tfrac14,\tfrac12,\tfrac14)\) and row three \((\tfrac13,\tfrac13,\tfrac13)\). Thus the construction recovers every entry of \(P\), not merely the probability of one selected map.

For a numerical check of one update, start at state \(1\). The first-step distribution is the first row \((\tfrac12,\tfrac13,\tfrac16)\), whose entries sum to \(1\). After a second step, the probability of state \(1\) is

$$ \tfrac12\cdot\tfrac12+\tfrac13\cdot\tfrac14+\tfrac16\cdot\tfrac13 =\tfrac14+\tfrac1{12}+\tfrac1{18} =\tfrac{9+3+2}{36} =\tfrac7{18}. $$

The probability of state \(2\) is \(\tfrac12\cdot\tfrac13+\tfrac13\cdot\tfrac12+\tfrac16\cdot\tfrac13=\tfrac16+\tfrac16+\tfrac1{18}=\tfrac7{18}\). The probability of state \(3\) is \(\tfrac12\cdot\tfrac16+\tfrac13\cdot\tfrac14+\tfrac16\cdot\tfrac13=\tfrac1{12}+\tfrac1{12}+\tfrac1{18}=\tfrac29\). These values sum to \(\tfrac7{18}+\tfrac7{18}+\tfrac29=1\). They are the entries of the first row of \(P^2\), as obtained by multiplying the initial row distribution by \(P\).

What the Map View Adds

A transition matrix records the distribution of the next state separately for each current state. A random map records a joint update for all states at once. This can matter when comparing two chains that use the same maps but start at different states: their next states may be dependent because both are updated by the same random function. For instance, a constant map sends every starting state to the same destination, while a bijective map preserves the distinction between different starting states. Neither feature is visible in the individual rows alone.

For one chain, however, only the current state's image determines the next transition. The map construction therefore provides a realization of the chain without changing its one-step transition probabilities. Once the maps are independent and identically distributed, the theorem shows exactly why the chain has one-step memory and a transition law that does not vary with time.

Common mistake: treating map probabilities as separate transition probabilities without accounting for the map. In the two-state example, it would be wrong to say that the probability of moving from \(1\) to \(0\) is just the probability of choosing the flip map, \(\tfrac14\). From state \(1\), the constant map \(C_0\) also sends the chain to \(0\). The correct calculation is \(\mathbb{P}(F(1)=0)=\mathbb{P}(F=R)+\mathbb{P}(F=C_0)=\tfrac14+\tfrac14=\tfrac12\). Each transition probability must include every map that sends the specified current state to the specified destination.

When designing a construction, first verify that each row of the desired matrix is a probability distribution. Then specify a distribution on maps whose image at state \(i\) has that row's probabilities. Many different map distributions can induce the same matrix: the transition matrix fixes the marginal distribution of each \(F(i)\), but generally does not fix the dependence between images at distinct states.

Check Your Understanding

For each question, distinguish the distribution of a whole map from the transition probabilities it induces.

  1. On \(S=\{0,1\}\), choose the identity map and flip map with probability \(\tfrac12\) each. Write the induced transition matrix and check its row sums.
  2. On \(S=\{a,b\}\), a random map sends \(a\) to \(a\) with probability \(\tfrac25\), and sends \(b\) to \(a\) with probability \(\tfrac35\). Find the two rows of the induced transition matrix.
  3. In the two-state worked example, why does the probability of going from \(1\) to \(0\) include both the flip map and the constant map?
  4. State the independence assumptions needed for the random-map construction to give a time-homogeneous Markov chain.
  5. Explain why two random maps can induce the same transition matrix while having different dependence between their images at distinct states.