Stochastic matrix

Stochastic matrix
For a matrix whose elements are stochastic, see Random matrix

In mathematics, a stochastic matrix (also termed probability matrix, transition matrix, substitution matrix, or Markov matrix) is a matrix used to describe the transitions of a Markov chain. It has found use in probability theory, statistics and linear algebra, as well as computer science. There are several different definitions and types of stochastic matrices;

A right stochastic matrix is a square matrix each of whose rows consists of nonnegative real numbers, with each row summing to 1.
A left stochastic matrix is a square matrix each of whose columns consist of nonnegative real numbers, with each column summing to 1.
A doubly stochastic matrix is a square matrix where all entries are nonnegative and all rows and all columns sum to 1.

In the same vein, one may define a stochastic vector as a vector whose elements consist of nonnegative real numbers which sum to 1. Thus, each row (or column) of a stochastic matrix is a probability vector, which are sometimes called stochastic vectors.

A common convention in English language mathematics literature is to use the right stochastic matrix; this article follows that convention.

Contents

Definition and properties

A stochastic matrix describes a Markov chain \boldsymbol{X}_{t} over a finite state space S.

If the probability of moving from i to j in one time step is Pr(j | i) = Pi,j, the stochastic matrix P is given by using Pi,j as the ith row and jth column element, e.g.,

P=\left(\begin{matrix}p_{1,1}&p_{1,2}&\dots&p_{1,j}&\dots\\
p_{2,1}&p_{2,2}&\dots&p_{2,j}&\dots\\
\vdots&\vdots&\ddots&\vdots&\ddots\\
p_{i,1}&p_{i,2}&\dots&p_{i,j}&\dots\\
\vdots&\vdots&\ddots&\vdots&\ddots
\end{matrix}\right).

Since the probability of transitioning from state i to some state must be 1, we have that this matrix is a right stochastic matrix, so that

\sum_j P_{i,j}=1.\,

The probability of transitioning from i to j in two steps is then given by the (i,j)th element of the square of P:

\left(P ^{2}\right)_{i,j}.

In general the probability transition of going from any state to another state in a finite Markov chain given by the matrix P in k steps is given by Pk.

An initial distribution is given as a row vector.

A stationary probability vector \boldsymbol{\pi} is defined as a vector that does not change under application of the transition matrix; that is, it is defined as a left eigenvector of the probability matrix, associated with eigenvalue 1:

\boldsymbol{\pi}P=\boldsymbol{\pi}.

The Perron–Frobenius theorem ensures that every stochastic matrix has such a vector, and that the largest absolute value of an eigenvalue is always 1. In general, there may be several such vectors. However, for a matrix with strictly positive entries, this vector is unique and can be computed by observing that for any i we have the following limit,

\lim_{k\rightarrow\infty}\left(P^k \right)_{i,j}=\boldsymbol{\pi}_j,

where \boldsymbol{\pi}_{j} is the jth element of the row vector \boldsymbol{\pi}. This implies that the long-term probability of being in a state j is independent of the initial state i. That either of these two computations give one and the same stationary vector is a form of an ergodic theorem, which is generally true in a wide variety of dissipative dynamical systems: the system evolves, over time, to a stationary state.

Example: the cat and mouse

Suppose you have a timer and a row of five adjacent boxes, with a cat in the first box and a mouse in the fifth box at time zero. The cat and the mouse both jump to a random adjacent box when the timer advances. E.g. if the cat is in the second box and the mouse in the fourth one, the probability is one fourth that the cat will be in the first box and the mouse in the fifth after the timer advances. If the cat is in the first box and the mouse in the fifth one, the probability is one that the cat will be in box two and the mouse will be in box four after the timer advances. The cat eats the mouse if both end up in the same box, at which time the game ends. The random variable K gives the number of time steps the mouse stays in the game.

The Markov chain that represents this game contains the following five states:

  • State 1: cat in the first box, mouse in the third box: (1, 3)
  • State 2: cat in the first box, mouse in the fifth box: (1, 5)
  • State 3: cat in the second box, mouse in the fourth box: (2, 4)
  • State 4: cat in the third box, mouse in the fifth box: (3, 5)
  • State 5: the cat ate the mouse and the game ended: F.

We use a stochastic matrix to represent the transition probabilities of this system,

 P = 
\begin{bmatrix}
    0      & 0    & 1/2    &   0      & 1/2 \\
    0      & 0    & 1    &   0      & 0 \\
  1/4      & 1/4    &   0    & 1/4      & 1/4 \\
    0      & 0    & 1/2    &   0      & 1/2 \\
  0      & 0    & 0    & 0      & 1
\end{bmatrix}.

Long-term averages

As state 5 is an absorbing state the long-term average vector \boldsymbol{\pi}=(0,0,0,0,1). Regardless of the initial conditions the cat will eventually catch the mouse.

Phase-type representation

The survival function of the mouse. Note the mouse will survive at least the first time step.

As the game has an absorbing state 5 the distribution of time to absorption is discrete phase-type distributed. Suppose the system starts in state 2, represented by the vector [0,1,0,0,0]. To simplify the calculations, state five can be ignored. Let

\boldsymbol{\tau}=[0,1,0,0]

and remove state five to make a sub-stochastic matrix,

T=\begin{bmatrix}
    0      & 0    & 1/2    &   0\\
    0      & 0    & 1    &   0\\
  1/4      & 1/4    &   0    & 1/4\\
    0      & 0    & 1/2    &   0\\
\end{bmatrix}\,, with (I-T)^{-1}\boldsymbol{1}
=\begin{bmatrix}2.75 \\ 4.5 \\ 3.5 \\ 2.75\end{bmatrix}\,,

where I is the identity matrix, and \mathbf{1} represents a column matrix of all ones. The expected time of the mouse's survival is given by

E[K]=\boldsymbol{\tau}(I-T)^{-1}\boldsymbol{1}=4.5.

Higher order moments are given by

E[K(K-1)\dots(K-n+1)]=n!\boldsymbol{\tau}(I-{T})^{-n}{T}^{n-1}\mathbf{1}\,.

See also

References

  • G. Latouche, V. Ramaswami. Introduction to Matrix Analytic Methods in Stochastic Modeling, 1st edition. Chapter 2: PH Distributions; ASA SIAM, 1999.

Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • stochastic matrix — Math. a square matrix with positive entries totaling 1 in each row. * * * …   Universalium

  • stochastic matrix — noun A matrix having the property that the entries in each column are non negative, real and sum to 1 …   Wiktionary

  • stochastic matrix — Math. a square matrix with positive entries totaling 1 in each row …   Useful english dictionary

  • Doubly stochastic matrix — In mathematics, especially in probability and combinatorics, a doubly stochastic matrix (also called bistochastic), is a square matrix of nonnegative real numbers, each of whose rows and columns sums to 1. Thus, a doubly stochastic matrix is both …   Wikipedia

  • right stochastic matrix — adjective a square matrix whose rows consist of nonnegative real numbers, with each row summing to . Used to describe the transitions of a Markov chain; its element in the th row and th column describes the probability of moving from state to… …   Wiktionary

  • Matrix theory — is a branch of mathematics which focuses on the study of matrices. Initially a sub branch of linear algebra, it has grown to cover subjects related to graph theory, algebra, combinatorics, and statistics as well.HistoryThe term matrix was first… …   Wikipedia

  • Stochastic — (from the Greek Στόχος for aim or guess ) means random.A stochastic process is one whose behavior is non deterministic in that a state s next state is determined both by the process s predictable actions and by a random element. Stochastic crafts …   Wikipedia

  • Matrix (mathematics) — Specific elements of a matrix are often denoted by a variable with two subscripts. For instance, a2,1 represents the element at the second row and first column of a matrix A. In mathematics, a matrix (plural matrices, or less commonly matrixes)… …   Wikipedia

  • Stochastic control — is a subfield of control theory which deals with the existence of uncertainty in the data. The designer assumes, in a Bayesian probability driven fashion, that a random noise with known probability distribution affects the state evolution and the …   Wikipedia

  • Stochastic processes and boundary value problems — In mathematics, some boundary value problems can be solved using the methods of stochastic analysis. Perhaps the most celebrated example is Shizuo Kakutani s 1944 solution of the Dirichlet problem for the Laplace operator using Brownian motion.… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”