Jump to content

Linear algebra (Osnabrück 2024-2025)/Part II/Lecture 54/refcontrol

From Wikiversity



Stochastic matrices

A real square matrix

M=(aij)1i,jn

is called a column stochastic matrix if all entries

aij0,

and every column sum (that is, for every j), is

i=1naij=1.

The basic interpretation for a column stochastic matrix is the following: There is a set of n possible places, spots, positions, vertices in a network, web pages, etc., where someone or something can be with a certain probability (a distribution, a weighting). Such a distribution is described by an n-tuple (v1v2vn) with real non-negative numbers vi satisfying i=1nvi=1. This is also called a distribution vector. A column stochastic matrix describes the transition probability in the given network in a certain time segment. The entry aij is the probability that an object being at the vertex j (a visitor of the web page j) moves to the position i (goes to the webpage i). The j-th standard vector corresponds to the distribution where everything is in the vertex j.The j-th column of the matrix describes the image of this standard vector under the matrix. In general, for a given distribution v, applying the matrix computes the image distribution Mv; see Exercise 54.1 . A natural question is whether there are distributions that are stationary (stationary distribution, or fixed distribution, or eigendistribution), that is, they are transformed to themselves, or whether there exist periodic distributions, or whether there exist limit distributions, and how to compute them.


== Example Example 54.2

change==

A column stochasticMDLD/column stochastic 2×2-matrixMDLD/matrix has the form

(p1p21p11p2)

wit

0p1,p21.

The characteristic polynomialMDLD/characteristic polynomial is

(Xp1)(X1+p2)(1p1)p2=X2+(p2p11)X+p1(1p2)p2(1p1)=X2+(p2p11)X+p1p2=(X1)(X+p2p1).

Eigenvalues are 1 and p1p2. A stationary distribution is (exclude the cases p1=1 and p2=0 for the following computation) given by (p2p2p1+11p1p2p1+1), because of

(p1p21p11p2)(p2p2p1+11p1p2p1+1)=(p1p2p2p1+1+p21p1p2p1+1(1p1)p2p2p1+1+(1p2)1p1p2p1+1)=(p1p2+p2(1p1)p2p1+1(1p1)p2+(1p2)(1p1)p2p1+1)=(p2p2p1+11p1p2p1+1).

The column stochasticMDLD/column stochastic 2×2-matrixMDLD/matrix

(0110)

transforms the distribution (p1p) into the distribution (1pp). The contribution (1212) is transformed to itself, that is, it is a stationary distribution.MDLD/stationary distribution The distribution (10) is transformed into (01), and vice versa. It is a periodic distribution, the period length is 2.


The column stochasticMDLD/column stochastic n×n-matrixMDLD/matrix

(111000000)

transforms the distribution (v1vn) into the distribution

(111000000)(v1v2vn)=(i=1nvi00)=(100).

The first standard vector is an eigenvector of the eigenvalue 1; every other standard vector, and in fact every distribution vector, is transformed into the first standard vector. The kernel is generated by the vectors e1ej, j2, and does not contain any distribution vector.


== Example Example 54.5

change==

Let N be a network (a "directed graph“), consisting in a set K of vertices, and a set of directed edges, which can exist between the vertices. For example, K is the set of all web pages, and there exists an arrow from jK to iK, if the web page j has a link to the web page i. The linking structure can be expressed by the adjacency matrix

A=(aij),

where

aij:={1,there exists a link from j to i,0, else,,

or by the column stochastic matrixMDLD/column stochastic matrix

B=(bij),

where

bij=aijdj,

and dj is the number of links starting at the vertex j. This division ensures that the column sum equals 1 (we suppose that there is at least one link starting at any vertex).

The adjacency matrix, and the column stochastic version of the adjacency matrix of the graph on the right (where we add always self links) are

(1000011000101001111010111) and (1500001512000150130015121312015013121).



Powers of a stochastic matrix

We investigate now the powers of a stochastic matrix with the help of the sum norm and the results of the last lecture.


CorollaryCreate referencenumber

Proof  

For an arbitrary vector vV, we have

Mvsum=i=1n|(Mv)i|=i=1n|j=1naijvj|i=1n(j=1naij|vj|)=j=1n|vj|(i=1naij)=j=1n|vj|=vsum.

Iterative application of this observation shows that Theorem 53.10   (2) is satisfied.



LemmaCreate referencenumber

Let

M=(aij)1i,jn

be a real square matrix with non-negative entries. Then M is column stochasticMDLD/column stochastic if and only if M is isometric with respect to the sum normMDLD/sum norm for vectors with non-negative entries, that is,

Mvsum=vsum

holds for all

v0n.

Proof  

Let M be a column stochastic matrix, and

v=(v1vn)

be a vector with non-negative entries. Then

Mvsum=i=1n(Mv)i=i=1n(j=1naijvj)=j=1nvj(i=1naij)=j=1nvj=vsum

holds. If the described isometric property holds, then it holds in particular for the images of the standard vectors. That means that their sum norm equals 1. These images are the corresponding columns of the matrix; therefore, all column sums are 1.



LemmaLemma 54.8 change

Let M be a

column stochastic matrix.MDLD/column stochastic matrix Then the following statements hold.
  1. There exists eigenvectorsMDLD/eigenvectors to the eigenvalueMDLD/eigenvalue 1.
  2. If there exists a row such that all its entries are positive, then for every vector vV that has a positive and also a negative entry, the estimate
    Mvsum<vsum

    holds.

  3. If there exists a row such that all its entries are positive, then the eigenspace of the eigenvalue 1 is one-dimensional. There exists an eigenvector where all entries are no-negative; in particular, there is a uniquely determined stationary distribution.MDLD/stationary distribution

Proof  

  1. The transposed matrixMDLD/transposed matrix is row stochastic;MDLD/row stochastic therefore, it has an eigenvectorMDLD/eigenvector (111) to the eigenvalue 1. Due to Theorem 23.2 , the characteristic polynomialMDLD/characteristic polynomial of the transposed matrix has a zero at 1. Because of Exercise 23.19 , this also holds for the characteristic polynomial of the matrix we have started with. Hence, M has an eigenvector to the eigenvalue 1.
  2. We now assume also that all entries of the k-th row are positive, and let vV denote a vector with (at least) a positive and a negative entry. Then
    Mvsum=i=1n|(Mv)i|=i=1n|j=1naijvj|=ik|j=1naijvj|+|j=1nakjvj|<ikj=1naij|vj|+j=1n|akjvj|=i=1nj=1naij|vj|=j=1n|vj|(i=1naij)=j=1n|vj|=vsum
    holds.
  3. As in the proof of (2), let all entries of the k-th row be positive. For any eigenvector v to the eigenvalue 1, according to (2), either all entries are non-negative, or non-positive. Hence, for such a vector, because of Mv=v, its k-th entry is not 0. Let v,w be such eigenvectors. Then wkvkvw belongs to the fixed space. However, the k-th component of this vector equals 0; therefore, it is the zero vector. This means that v and w are linearly dependent.MDLD/linearly dependent Therefore, this eigenspace is one-dimensional. Because of (2), there exists an eigenvector to the eigenvalue 1 with non-negative entries. By normalizing, we get a stationary distribution.



We consider the column stochasticMDLD/column stochastic 3×3-matrixMDLD/matrix

(1313131223016023);

here, all entries of the first row are positive. Due to Lemma 54.8 , there exists a unique eigendistribution. In order to determine this distribution, we compute the kernel of

(100010001)(1313131223016023)=(2313131213016013).

This kernel is generated by (231), and the stationary distribution is

(263616)=(131216).

For the column stochasticMDLD/column stochastic 3×3-matrixMDLD/matrix

(101301130013),

the eigenspace to the eigenvalue 1 equals e1,e2;, it is two-dimensional. This shows that the conclusion of Lemma 54.8 does not hold even when there exists a column (but not a row) with strictly positive entries.


TheoremTheorem 54.11 change

Let M be a column stochastic matrix,MDLD/column stochastic matrix fulfilling the property that there exists a row in which all entries are positive. Then for every distribution vectorMDLD/distribution vector v0n with i=1nvi=1, the sequence Mnv converges to the uniquely determined stationary distributionMDLD/stationary distribution

of M.

Proof  

Let wn be the stationary distribution, which is uniquely determined because of Lemma 54.8   (3). We set

U={(u1un)i=1nui=0}n.

This is a linear subspace of n of dimension n1. Due to Lemma 54.8   (2), w has only non-negative entries; therefore, it does not belong to U. Because of

i=1n(Mu)i=i=1n(j=1naijuj)=j=1nuj(i=1naij)=j=1nuj,

U is invariant under the matrix M. Hence,

V=wU

is a direct sum decompositionMDLD/direct sum decomposition into invariant linear subspaces. For every uU with usum=1, we have

Musum<1

due to Lemma 54.8   (2). The sphere of radius 1 is compactMDLD/compact with respect to every norm; therefore, the induced maximum norm of M|U is smaller than 1. Because of Lemma 53.8 and Theorem 53.6 , the sequence Mnu converges for every uU to the zero vector.

Let now vV be a distribution vector; because of

i=1nvi=1=i=1nwi,

we can write

v=w+u

with uU. Because of

Mmv=Mm(w+u)=Mmw+Mmu=w+Mmu,

and the reasoning before, this sequence converges to w.



In the situation of Lemma 54.8 , we can find the eigendistribution by solving a system of linear equations. If we are dealing with a huge matrix (think about 109 vertices), then such a computation time-consuming. Often, it is not necessary to know the eigendistribution precisely; it is enough to know a good approximation. For this, we may start with an arbitrary distribution, and we compute finitely many iterations. Because of Theorem 54.11 , we know that this method gives arbitrarily good approximations of the eigendistribution. For example, a search engine for the web generates for search item an ordered list of web pages where this search item occurs. How does this ordering arise? The true answer is, at least for the first entries, that it depends on how much someone has paid. Despite of this, it is a natural approach, and this is also the basis for the Page ranks, to consider the numerical ordering in the eigendistribution. The first entry is the one where most people would "finally“ end up when they follow with the same probability any possible link. This movement is modelled[1] by the stochastic matrix described in Example 54.5 .

The numerical difference between finding an exact solution of a system of linear equations to determine an eigenvector, and the power method, can be grasped in the following way. Let an n×n-matrix be given. The elimination process needs in order to eliminate the first variable in n1 equations, n(n1)n2 multiplications (here, we do not consider the easier additions); therefore, the seize of the multiplications in the complete elimination process is

n2+(n1)2+(n2)2++116n3.

For the evaluation of the matrix at a vector, n2 multiplications are necessary. If we want to compute k iterations, we need kn2 operations. Hence, if k is substantially smaller than n, then thetotal expenditure is substantially smaller.



Footnotes
  1. Modelling means in (in particular, applied) mathematics the process to understand phenomena of the real world with mathematical tools. We model physical processes, weather phenomena, transactions in finance, etc.


<< | Linear algebra (Osnabrück 2024-2025)/Part II | >>
PDF-version of this lecture
Exercise sheet for this lecture (PDF)