Tutorials › Stochastic Processes › Random Walks with Holding Probabilities

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

Random Walks with Holding Probabilities

Build and verify transition rules for random walks that can move left, move right, or hold at their current state.

Beginner 9 min read

What You'll Learn

  • Define a nearest-neighbor walk with separate left, right, and holding probabilities.
  • Construct its transition probabilities from independent increments.
  • Check that each transition row sums to one, including on a finite cycle.
  • Interpret how holding changes the one-step displacement.
  • Recognize why boundary rules must be specified for a finite interval.

Adding a Hold to a Random Walk

A simple random walk changes location at every step. In some models, however, a step may represent a fixed time interval during which the walker does not move: a patient’s status may remain unchanged, a particle may wait, or a system may have no event in a given time period. A holding probability adds this possibility without changing the basic nearest-neighbor structure. The essential modelling task is to assign the probabilities of moving left, moving right, and staying in place so that they form a valid transition rule.

Let \((\Omega,\mathcal{F},\mathbb{P})\) be a probability space. Take the state space to be \(S=\mathbb{Z}\) and the time index to be discrete, \(n\ge 0\). Let \(p\) be the probability of a step to the right, \(q\) the probability of a step to the left, and \(r\) the probability of holding. These probabilities must satisfy \(p\ge 0\), \(q\ge 0\), \(r\ge 0\), and \(p+q+r=1\). A genuine walk that permits movement in both directions has \(p>0\) and \(q>0\); zero values are still allowed when modelling one-sided or immobile cases.

Definition: A nearest-neighbor random walk with holding probabilities is a process \((X_n)_{n\ge0}\) on \(S=\mathbb{Z}\) for which, from every state \(i\), the next state is \(i+1\) with probability \(p\), \(i-1\) with probability \(q\), and \(i\) with probability \(r\). Its transition probabilities are \(p_{i,i+1}=p\), \(p_{i,i-1}=q\), and \(p_{ii}=r\); all other \(p_{ij}\) are zero.

The convention is that transition matrices are row-stochastic: entries in row \(i\) describe the next state given current state \(i\), and each row sums to one. Here the row for any state \(i\) has exactly three potentially nonzero entries. Their sum is \(q+r+p=1\), so the transition rule is valid. The fact that the state space is infinite does not change the row-wise check.

Constructing the Walk from Independent Increments

A direct construction makes both the probabilities and the Markov property precise. Let \(Y_1,Y_2,\ldots\) be independent and identically distributed random variables with values in \(\{-1,0,1\}\), where \(\mathbb{P}(Y_k=1)=p\), \(\mathbb{P}(Y_k=-1)=q\), and \(\mathbb{P}(Y_k=0)=r\). Let \(X_0\) be a \(\mathbb{Z}\)-valued random variable independent of these increments, and define \(X_n=X_0+\sum_{k=1}^nY_k\). The information through time \(n\) is \(\mathcal{F}_n=\sigma(X_0,Y_1,\ldots,Y_n)\). The next increment \(Y_{n+1}\) is independent of this information.

Theorem: Under this construction, \((X_n)_{n\ge0}\) is a time-homogeneous Markov chain with the transition probabilities in the definition. For every \(n\ge0\), \(i,j\in\mathbb{Z}\), and event \(A\in\mathcal{F}_n\) with \(\mathbb{P}(A\cap\{X_n=i\})>0\), the conditional probability of \(X_{n+1}=j\), given \(A\) and \(X_n=i\), depends only on whether \(j=i+1\), \(i-1\), or \(i\).

Proof. By construction, \(X_{n+1}=X_n+Y_{n+1}\). The increment \(Y_{n+1}\) is independent of \(\mathcal{F}_n\), and \(X_n\) is measurable with respect to \(\mathcal{F}_n\). Therefore, conditional on any positive-probability event \(A\cap\{X_n=i\}\), the next state is \(i+Y_{n+1}\), with probabilities \(p\), \(q\), and \(r\) for values \(i+1\), \(i-1\), and \(i\), respectively. If \(j\) is not one of these three states, the conditional probability is zero. None of these probabilities depends on \(A\) or \(n\), which is the Markov property with time-homogeneous transition probabilities. \(\square\)

The construction also shows what the holding probability does: it gives the increment a positive probability of being zero. The transition law does not require \(p=q\). Equal left and right probabilities describe a symmetric walk; unequal probabilities describe a biased one. In either case, the sum \(p+q\) is the probability that a step changes the state.

Proposition: For one step of this walk, the displacement \(X_{n+1}-X_n\) has mean \(p-q\) and variance \(p+q-(p-q)^2\).

Proof. The displacement is \(Y_{n+1}\). Its mean is \(1\cdot p+(-1)\cdot q+0\cdot r=p-q\). Its second moment is \(1^2\cdot p+(-1)^2\cdot q+0^2\cdot r=p+q\). By the definition of variance, \(\operatorname{Var}(Y_{n+1})=\mathbb{E}[Y_{n+1}^2]-(\mathbb{E}[Y_{n+1}])^2=p+q-(p-q)^2\). \(\square\)

Worked Transition Rules

Worked Example: A Biased Walk on the Integer Line

Suppose the walk moves right with probability \(p=\tfrac13\), left with probability \(q=\tfrac12\), and holds with probability \(r=\tfrac16\). Find the possible next states and their transition probabilities from state \(i\), and check the row.

Starting at \(i\), the three possible next states are \(i-1\), \(i\), and \(i+1\). Thus \(p_{i,i-1}=\tfrac12\), \(p_{ii}=\tfrac16\), and \(p_{i,i+1}=\tfrac13\); every other entry in row \(i\) is zero. The row sum is \(\tfrac12+\tfrac16+\tfrac13=\tfrac36+\tfrac16+\tfrac26=\tfrac96=1\).

As a further check on the interpretation, the one-step mean displacement is \(p-q=\tfrac13-\tfrac12=\tfrac26-\tfrac36=-\tfrac16\). The negative sign reflects the larger probability of a left step. The hold contributes no displacement, but its probability is included in the row sum.

Worked Example: A Symmetric Walk with Frequent Holds

Let \(p=q=\tfrac14\) and \(r=\tfrac12\), and suppose \(X_0=2\). Compute the one-step distribution of \(X_1\) and the mean and variance of the displacement.

The possible next states are \(1\), \(2\), and \(3\). The walk moves from \(2\) to \(1\) with probability \(\tfrac14\), stays at \(2\) with probability \(\tfrac12\), and moves to \(3\) with probability \(\tfrac14\). These probabilities sum to \(\tfrac14+\tfrac12+\tfrac14=1\), so \(\mathbb{P}(X_1=1)=\tfrac14\), \(\mathbb{P}(X_1=2)=\tfrac12\), and \(\mathbb{P}(X_1=3)=\tfrac14\).

The mean displacement is \(p-q=\tfrac14-\tfrac14=0\). Its variance is \(p+q-(p-q)^2=\tfrac14+\tfrac14-0^2=\tfrac12\). Directly, the displacement is \(-1,0,1\) with probabilities \(\tfrac14,\tfrac12,\tfrac14\); its second moment is \(\tfrac14+\tfrac14=\tfrac12\), and its mean is zero. This independently confirms the variance calculation.

On \(\mathbb{Z}\), every state has a left neighbor, a right neighbor, and itself, so the same rule applies in every row. A finite interval needs additional modelling choices: at an endpoint, a proposed move might be reflected, suppressed, or sent to an absorbing state. Those choices change the endpoint rows and must be specified rather than inferred from the interior rule.

Worked Example: A Walk on a Four-State Cycle

Consider the state space \(S=\{0,1,2,3\}\), arranged cyclically. From state \(i\), the walk moves one place clockwise with probability \(p=\tfrac12\), one place counterclockwise with probability \(q=\tfrac14\), or holds with probability \(r=\tfrac14\). Indices are interpreted modulo \(4\). Write the transition matrix in the state order \(0,1,2,3\).

From state \(0\), a clockwise move goes to \(1\), a counterclockwise move goes to \(3\), and a hold stays at \(0\). The first row is therefore \((\tfrac14,\tfrac12,0,\tfrac14)\). Applying the same rule to the other states gives

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

Each row sums to one: the first is \(\tfrac14+\tfrac12+0+\tfrac14=1\); the second is \(\tfrac14+\tfrac14+\tfrac12+0=1\); the third is \(0+\tfrac14+\tfrac14+\tfrac12=1\); and the fourth is \(\tfrac12+0+\tfrac14+\tfrac14=1\). In particular, the last row uses the cyclic rule: from state \(3\), clockwise means \(0\), not a state outside the space. This verifies that the displayed matrix matches the verbal model and is row-stochastic.

What Holding Probabilities Change—and What They Do Not

A hold is a genuine transition in discrete time: the chain takes one time step even though its state stays the same. It is not the same as deleting that time step or observing the chain only when it moves. For the integer-line model, the probability of a move on a given step is \(p+q=1-r\), while the probability of no change is \(r\). If a problem describes probabilities conditional on a move occurring, those conditional probabilities must be converted to unconditional step probabilities before writing the transition matrix. For example, if the probability of moving right conditional on moving is \(a\), then the unconditional right-step probability is \((1-r)a\), not \(a\).

The state space matters as much as the probabilities. The formula \(p_{i,i+1}=p\), \(p_{i,i-1}=q\), \(p_{ii}=r\) is directly valid on \(\mathbb{Z}\). On a cycle, the neighbors are interpreted modulo the cycle size. On a finite interval, one must replace the formula at the boundary according to an explicitly chosen rule. In every case, the final check is that each possible destination has been included and each row sums to one.

Common mistake. Suppose \(p=\tfrac13\), \(q=\tfrac12\), and \(r=\tfrac16\), as in the first example. Omitting the hold entry and writing only left and right transitions gives a row sum of \(\tfrac12+\tfrac13=\tfrac56\), not \(1\). That row would assign no destination to the remaining probability \(\tfrac16\), so it is not a transition row. The correction is to include \(p_{ii}=r=\tfrac16\), giving \(\tfrac12+\tfrac16+\tfrac13=1\). Another frequent error is to place \(p\) in the left-neighbor column; by definition here \(p\) is the right-step probability and \(q\) is the left-step probability.

Check Your Understanding

For each question, state the transition probabilities clearly and check any row you construct by summing its entries.

  1. On \(\mathbb{Z}\), let \(p=\tfrac25\), \(q=\tfrac25\), and \(r=\tfrac15\). From state \(6\), list all possible next states and their probabilities.
  2. For \(p=\tfrac12\), \(q=\tfrac14\), and \(r=\tfrac14\), calculate the one-step mean displacement using the formula in the proposition.
  3. A model gives right probability \(\tfrac34\) conditional on a move and has hold probability \(\tfrac13\). Find the unconditional right-step probability, assuming the remaining moving probability is assigned to a left step.
  4. On the four-state cycle, which state is reached by a clockwise move from state \(3\), and which matrix entry records that transition?
  5. Why is it not enough to copy the interior transition rule unchanged at the endpoint of a finite interval?