Vector Spaces/Applications: Difference Equations and Markov Chains

Lesson 4.71,082 words

Applications: Difference Equations and Markov Chains

The solutions of an nth-order linear difference equation form an nn-dimensional vector space, so finding nn independent solutions gives them all. A Markov chain evolves a probability distribution by repeated multiplication by a stochastic matrix, and a regular chain converges to a unique steady-state vector fixed by that matrix.

╌╌╌╌

Two recurring processes illustrate the vector-space theory. A linear difference equation governs a signal sampled over time, and its solution set is a subspace whose dimension is known in advance, so a basis of solutions describes every solution. A Markov chain advances a probability distribution one step at a time by a fixed matrix, and its long-run behavior is a fixed point of that matrix. In both cases a process becomes a question about subspaces and bases.12

Signals and their independence

The space of discrete-time signals — doubly infinite sequences — was one of the first examples of an abstract vector space. Three basic signals are the geometric sequences , , and , which decay, hold, and alternate.

Testing independence in uses a determinant built from consecutive samples. If for all , then the same holds at , , , giving a system.

The three geometric signals , , and as stem plots: one holds constant, one alternates while growing, one grows monotonically. They are linearly independent.

Linear difference equations

Solutions of a homogeneous equation are often geometric, . Substituting and factoring out shows that is a solution exactly when solves the auxiliary equation

For , the auxiliary equation factors as , so , , and are all solutions.

The solution set is a subspace of known dimension

Define by . This map is linear, so the solution set of the homogeneous equation is the kernel of , a subspace of . Two theorems fix its size.

The map sending a solution to its first values is an isomorphism by the existence-and-uniqueness theorem, so . The consequence is decisive: any independent solutions automatically span , by the basis theorem. A basis for is called a fundamental set of solutions.

Spanning never has to be checked directly; it follows from the dimension count. Complex roots of the auxiliary equation give solutions and , and a repeated root is handled separately.

Nonhomogeneous equations and first-order form

The general solution of a nonhomogeneous equation is a particular solution plus the general homogeneous solution, exactly as for versus , because the map is linear. For , the signal is a particular solution, and the homogeneous equation has roots , so

A modern treatment rewrites an th-order equation as a first-order system using the companion matrix. Stacking consecutive values into turns the recurrence into a single matrix multiplication, which is the form a Markov chain also takes and which discrete dynamical systems analyze through eigenvalues.

Markov chains

A Markov chain models a process observed repeatedly, where the next state depends only on the current one. The state is a distribution over finitely many possibilities.

Each is a state vector: its entries are the probabilities of the possible states at step . For a metropolitan region split into city and suburb, with of the city moving to the suburb and of the suburb moving to the city each year, the migration matrix and one year's update are

The two-state chain for an urban core and its suburb: each year of the urban population moves to the suburb and of the suburb moves back, and the arrows leaving each state sum to .

A transition among more states is read off a labelled graph: an edge from state to state carries the probability that becomes , and the edges leaving each state sum to .

A three-state transition graph for voting Democratic, Republican, or Libertarian; each edge shows the probability of moving between blocs, and the probabilities leaving each state sum to 1.

Steady-state vectors

The long-run behavior of a chain is governed by a distribution the matrix leaves unchanged.

Every stochastic matrix has one. Finding it is an eigenvector computation at eigenvalue : rewrite as and solve the homogeneous system, then rescale the solution to sum to .

Algorithm:SteadyState(P)\textsc{SteadyState}(P) — the equilibrium distribution of a stochastic matrix
  1. 1
    form the matrix PIP - I
  2. 2
    solve (PI)x=0(P - I)x = 0 by row reduction
    the eigenspace for eigenvalue 1
  3. 3
    choose a basis vector ww with integer or simple entries
  4. 4
    ss \gets sum of the entries of ww
  5. 5
    return qw/sq \gets w / s
    rescale to a probability vector

The initial distribution has no effect on the limit. The city-suburb matrix has all positive entries, so it is regular; its steady-state vector is , meaning the region tends toward city and suburb no matter where it starts.

State-vector entries of a regular chain converge to the steady-state values regardless of the start; here the three components settle to , , and .

The reason distinct starting points converge to the same is that is the dominant eigenvalue of a regular stochastic matrix, with every other eigenvalue smaller in magnitude, so the other components of decay under repeated multiplication. That explanation is developed in eigenvalues and eigenvectors, and the rate of convergence is governed by the ratio of the two largest eigenvalues, the same quantity that drives the power method.

Footnotes

  1. Lay, Linear Algebra and Its Applications, §4.8 — Applications to Difference Equations: the space , the Casorati test, the auxiliary equation, Theorem 16 (existence/uniqueness), and Theorem 17 (the solution space is -dimensional).
  2. Lay, Linear Algebra and Its Applications, §4.9 — Applications to Markov Chains: probability vectors, stochastic matrices, state vectors, steady-state vectors via , regular matrices, and Theorem 18 (convergence to a unique steady state).

╌╌ END ╌╌