Tutorials › Linear Algebra › Stationary Distributions as Eigenvectors

Applications of Diagonalization · Tutorial 589 of 1000

Stationary Distributions as Eigenvectors

Solve for stationary probability vectors by combining the eigenvalue-one equation with nonnegativity and normalization, then test whether the answer is unique.

Intermediate 9 min read

What You'll Learn

  • State the column-stochastic convention for a finite Markov transition matrix
  • Translate stationarity into the equation \(\mathbf{P}\mathbf{p}=\mathbf{p}\)
  • Normalize an eigenvector and check that its entries are nonnegative
  • Use the eigenspace for eigenvalue one to establish uniqueness
  • Distinguish a unique stationary distribution from a family of them

From a Transition Matrix to a Stationary Distribution

A Markov transition matrix describes how a probability state changes in one step. A stationary distribution is a probability state that is unchanged by that step. Finding one is therefore an eigenvector problem, but with an extra requirement: an eigenvector must be converted into a vector of probabilities. Solving the eigenvalue equation without checking nonnegativity and normalization can produce a vector that is not a probability distribution.

We use the column-vector convention. For a finite state space with \(n\) states, a probability state is a column vector \(\mathbf{p}\in\mathbb{R}^n\). Its entries give the probabilities of the individual states. A transition matrix \(\mathbf{P}\in\mathbb{R}^{n\times n}\) is column-stochastic when its entries are nonnegative and the entries in each column sum to \(1\). The \(j\)-th column records the probabilities of moving to each state when the current state is \(j\). The update rule is \(\mathbf{p}_{\text{new}}=\mathbf{P}\mathbf{p}_{\text{old}}\).

Definition: A probability vector is a vector \(\mathbf{p}\in\mathbb{R}^n\) whose entries are nonnegative and sum to \(1\). For a column-stochastic transition matrix \(\mathbf{P}\), a stationary distribution is a probability vector \(\mathbf{p}\) satisfying \(\mathbf{P}\mathbf{p}=\mathbf{p}\). Thus it is an eigenvector for eigenvalue \(1\), with the additional conditions that its entries are nonnegative and sum to \(1\).

Let \(\mathbf{1}\in\mathbb{R}^n\) denote the column vector whose entries are all \(1\). The normalization condition is \(\mathbf{1}^{\top}\mathbf{p}=1\). Nonnegativity is a separate condition: it is not implied by either the eigenvector equation or normalization alone. A nonzero eigenvector can have negative entries, and even an eigenvector with positive entries might not yet be normalized.

Why Eigenvalue One Is the Right Equation

Under the column-vector convention, stationarity means that applying the transition matrix leaves the state exactly unchanged. This is precisely the equation \(\mathbf{P}\mathbf{p}=\mathbf{p}\), or equivalently \((\mathbf{P}-\mathbf{I}_n)\mathbf{p}=\mathbf{0}\). The solution vectors of the latter homogeneous system form the eigenspace for eigenvalue \(1\). To find stationary distributions, solve that system and then retain only the solutions that satisfy the probability conditions.

Theorem: Let \(\mathbf{P}\in\mathbb{R}^{n\times n}\) be column-stochastic. A vector \(\mathbf{p}\in\mathbb{R}^n\) is a stationary distribution for \(\mathbf{P}\) if and only if it satisfies all three conditions: \((\mathbf{P}-\mathbf{I}_n)\mathbf{p}=\mathbf{0}\), \(\mathbf{1}^{\top}\mathbf{p}=1\), and \(p_i\geq 0\) for every \(i\).

Proof. Suppose \(\mathbf{p}\) is a stationary distribution. By definition it is a probability vector and \(\mathbf{P}\mathbf{p}=\mathbf{p}\). Rearranging the latter equality gives \((\mathbf{P}-\mathbf{I}_n)\mathbf{p}=\mathbf{0}\), while being a probability vector gives \(\mathbf{1}^{\top}\mathbf{p}=1\) and \(p_i\geq0\) for every \(i\). Conversely, suppose all three displayed conditions hold. The first gives \(\mathbf{P}\mathbf{p}=\mathbf{p}\). The second and third say exactly that \(\mathbf{p}\) is a probability vector. Therefore \(\mathbf{p}\) is a stationary distribution. \(\square\)

The theorem gives a direct calculation strategy: row-reduce \(\mathbf{P}-\mathbf{I}_n\), describe its null space, and impose the sum and sign conditions. A convenient uniqueness test is available when that null space is one-dimensional.

Theorem: Suppose \(\mathbf{P}\in\mathbb{R}^{n\times n}\) is column-stochastic and \(\operatorname{Nul}(\mathbf{P}-\mathbf{I}_n)\) has dimension \(1\). If \(\mathbf{P}\) has a stationary distribution, that distribution is unique.

Proof. Let \(\mathbf{p}\) and \(\mathbf{q}\) be stationary distributions. Both satisfy \((\mathbf{P}-\mathbf{I}_n)\mathbf{x}=\mathbf{0}\), so both lie in the one-dimensional null space. Since each is a probability vector, neither is zero. In a one-dimensional space, one nonzero vector is a scalar multiple of any other, so \(\mathbf{q}=c\mathbf{p}\) for some real \(c\). Taking sums of entries gives \(1=\mathbf{1}^{\top}\mathbf{q}=c\mathbf{1}^{\top}\mathbf{p}=c\). Hence \(\mathbf{q}=\mathbf{p}\), proving uniqueness. \(\square\)

This is a sufficient uniqueness test: a one-dimensional eigenspace for eigenvalue \(1\), together with an existing stationary distribution, guarantees uniqueness. If the eigenspace has larger dimension, that test does not decide uniqueness by itself. Instead, impose the probability conditions and determine whether they leave one solution or several.

Solving and Checking the Equations

Worked Example: A Two-State Chain with a Unique Stationary Distribution

Find the stationary distribution of the column-stochastic matrix

$$ \mathbf{P}= \begin{bmatrix} \frac{3}{4}&\frac{1}{4}\\ \frac{1}{4}&\frac{3}{4} \end{bmatrix}. $$

Each column has nonnegative entries that sum to \(1\). Subtract the identity matrix to form the eigenvalue-one system:

$$ \mathbf{P}-\mathbf{I}_2= \begin{bmatrix} -\frac{1}{4}&\frac{1}{4}\\ \frac{1}{4}&-\frac{1}{4} \end{bmatrix}. $$

Row-reduce. First multiply \(R_1\) by \(-4\), then replace \(R_2\) by \(R_2-\frac14R_1\), using the new first row:

$$ \begin{bmatrix} -\frac{1}{4}&\frac{1}{4}\\ \frac{1}{4}&-\frac{1}{4} \end{bmatrix} \sim \begin{bmatrix} 1&-1\\ \frac{1}{4}&-\frac{1}{4} \end{bmatrix} \sim \begin{bmatrix} 1&-1\\ 0&0 \end{bmatrix}. $$

The equation is \(p_1-p_2=0\), so \(p_1=p_2=t\). Normalization gives \(p_1+p_2=2t=1\), hence \(t=\frac12\). The entries are nonnegative, so the stationary distribution is \(\mathbf{p}=(\frac12,\frac12)^{\top}\). The reduced system has one free variable, so its null space is one-dimensional; the uniqueness theorem applies.

Check: Multiplying back gives

$$ \mathbf{P}\mathbf{p} = \begin{bmatrix} \frac{3}{4}\cdot\frac{1}{2}+\frac{1}{4}\cdot\frac{1}{2}\\ \frac{1}{4}\cdot\frac{1}{2}+\frac{3}{4}\cdot\frac{1}{2} \end{bmatrix} = \begin{bmatrix} \frac{1}{2}\\ \frac{1}{2} \end{bmatrix} =\mathbf{p}. $$

The normalization step is not merely a convenient final adjustment. It selects the scale of a nonzero eigenvector, while nonnegativity checks whether that scaled vector can represent probabilities. Both checks are needed even after the eigenvalue equation has been solved.

Worked Example: A Three-State Chain with a Unique Stationary Distribution

Find the stationary distribution for

$$ \mathbf{P}= \begin{bmatrix} \frac{1}{2}&\frac{1}{4}&\frac{1}{4}\\ \frac{1}{4}&\frac{1}{2}&\frac{1}{4}\\ \frac{1}{4}&\frac{1}{4}&\frac{1}{2} \end{bmatrix}. $$

Every column sums to \(1\), and all entries are nonnegative. The equation \((\mathbf{P}-\mathbf{I}_3)\mathbf{p}=\mathbf{0}\), after multiplying every row by \(4\), becomes

$$ \begin{bmatrix} -2&1&1\\ 1&-2&1\\ 1&1&-2 \end{bmatrix} \begin{bmatrix}p_1\\p_2\\p_3\end{bmatrix} =\mathbf{0}. $$

Swap \(R_1\) and \(R_2\), then use \(R_2\to R_2+2R_1\) and \(R_3\to R_3-R_1\):

$$ \begin{bmatrix} -2&1&1\\ 1&-2&1\\ 1&1&-2 \end{bmatrix} \sim \begin{bmatrix} 1&-2&1\\ -2&1&1\\ 1&1&-2 \end{bmatrix} \sim \begin{bmatrix} 1&-2&1\\ 0&-3&3\\ 0&3&-3 \end{bmatrix}. $$

Now multiply \(R_2\) by \(-\frac13\), replace \(R_1\) by \(R_1+2R_2\), and replace \(R_3\) by \(R_3-3R_2\):

$$ \begin{bmatrix} 1&-2&1\\ 0&-3&3\\ 0&3&-3 \end{bmatrix} \sim \begin{bmatrix} 1&-2&1\\ 0&1&-1\\ 0&3&-3 \end{bmatrix} \sim \begin{bmatrix} 1&0&-1\\ 0&1&-1\\ 0&0&0 \end{bmatrix}. $$

Thus \(p_1=p_3\) and \(p_2=p_3\), so all three entries are equal. Normalization gives \(3p_3=1\), hence \(p_1=p_2=p_3=\frac13\). This vector is nonnegative, and the null space has one free variable, so the stationary distribution is unique.

Check: Each entry of \(\mathbf{P}\mathbf{p}\) is \(\frac12\cdot\frac13+\frac14\cdot\frac13+\frac14\cdot\frac13=\frac13\). Therefore \(\mathbf{P}\mathbf{p}=(\frac13,\frac13,\frac13)^{\top}=\mathbf{p}\), and the entries sum to \(1\).

When There Is More Than One Stationary Distribution

The eigenvalue-one equation need not determine a single probability vector. If its solution space contains several directions, the probability constraints can leave a whole family of stationary distributions. The following example makes this distinction explicit.

Worked Example: A Family of Stationary Distributions

For the identity transition matrix

$$ \mathbf{P}=\mathbf{I}_2= \begin{bmatrix} 1&0\\ 0&1 \end{bmatrix}, $$

the eigenvalue-one equation is \((\mathbf{P}-\mathbf{I}_2)\mathbf{p}=\mathbf{0}\), which reduces to \(\mathbf{O}\mathbf{p}=\mathbf{0}\). Every vector is an eigenvector for eigenvalue \(1\), except that the zero vector is not an eigenvector. To find the stationary distributions, impose the probability conditions: \(p_1+p_2=1\), \(p_1\geq0\), and \(p_2\geq0\). Taking \(p_1=t\) gives \(p_2=1-t\), with \(0\leq t\leq1\). Thus every vector \((t,1-t)^{\top}\) in this range is stationary.

Check: Since \(\mathbf{P}=\mathbf{I}_2\), \(\mathbf{P}(t,1-t)^{\top}=(t,1-t)^{\top}\) for every \(t\). The entries are nonnegative exactly when \(0\leq t\leq1\), and their sum is \(t+(1-t)=1\). For example, \(t=0\) and \(t=1\) give two distinct stationary distributions, so the distribution is not unique.

This example also shows why finding one valid eigenvector does not settle uniqueness. To check uniqueness in a particular problem, identify the full solution set of the eigenvalue-one system and then apply the probability restrictions to that set. If the null space is one-dimensional and a stationary distribution has been found, the uniqueness theorem gives a quick conclusion. If it has more than one dimension, inspect the normalized, nonnegative solutions rather than assuming either uniqueness or nonuniqueness.

Common Mistake: Switching the Probability Convention

With column probability states, the stationary equation is \(\mathbf{P}\mathbf{p}=\mathbf{p}\), not \(\mathbf{p}^{\top}\mathbf{P}=\mathbf{p}^{\top}\). Confusing these conventions can give an answer that satisfies the wrong equation. For instance, consider the column-stochastic matrix

$$ \mathbf{P}= \begin{bmatrix} 1&\frac{1}{2}\\ 0&\frac{1}{2} \end{bmatrix}. $$

A mistaken row-vector calculation gives \((\frac12,\frac12)\mathbf{P}=(\frac12,\frac12)\), which might seem to make \((\frac12,\frac12)^{\top}\) stationary. But under the column convention the required product is

$$ \mathbf{P} \begin{bmatrix}\frac12\\\frac12\end{bmatrix} = \begin{bmatrix}\frac34\\\frac14\end{bmatrix} \ne \begin{bmatrix}\frac12\\\frac12\end{bmatrix}. $$

The correct equation gives \(p_1+\frac12p_2=p_1\), so \(p_2=0\). Normalization then gives \(p_1=1\). Indeed, \(\mathbf{P}(1,0)^{\top}=(1,0)^{\top}\). Always match the multiplication order to the stated convention before interpreting a solution as stationary.

What the Calculation Establishes

A stationary distribution records a probability state that one transition leaves unchanged; finding it is not a claim that every starting state will approach it. The equation \(\mathbf{P}\mathbf{p}=\mathbf{p}\) answers the fixed-state question, while questions about repeated transitions and long-term convergence require additional analysis. For the present calculation, keep three checks together: the vector solves the eigenvalue-one equation, its entries sum to \(1\), and none of its entries is negative. Then check uniqueness by analyzing the full set of solutions, not just one candidate.

Check Your Understanding

For each problem, write the stationary equation and use the probability conditions where appropriate.

  1. For \(\mathbf{P}=\begin{bmatrix}\frac{2}{3}&\frac{1}{3}\\\frac{1}{3}&\frac{2}{3}\end{bmatrix}\), find the stationary distribution and verify it by multiplication.
  2. Explain why an eigenvector for eigenvalue \(1\) with entries summing to \(1\) is not necessarily a stationary distribution.
  3. For \(\mathbf{P}=\mathbf{I}_3\), describe all stationary distributions and state whether one is unique.
  4. State the dimension condition on \(\operatorname{Nul}(\mathbf{P}-\mathbf{I}_n)\) that guarantees uniqueness when a stationary distribution exists, and justify why.
  5. For the column-stochastic matrix \(\begin{bmatrix}1&\frac12\\0&\frac12\end{bmatrix}\), find its stationary distribution using column vectors.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon