In probability, a discrete-time Markov chain (DTMC) is a sequence of random variables, known as a stochastic process, in which the value of the next variable depends only on the value of the current variable, and not any variables in the past. For instance, a machine may have two states, A and E. When it is in state A, there is a 40% chance of it moving to state E and a 60% chance of it remaining in state A. When it is in state E, there is a 70% chance of it moving to A and a 30% chance of it staying in E. The sequence of states of the machine is a Markov chain. If we denote the chain by X0,X1,X2,... then X0 is the state which the machine starts in and X10 is the random variable describing its state after 10 transitions. The process continues forever, indexed by the natural numbers. An example of a stochastic process which is not a Markov chain is the model of a machine which has states A and E and moves to A from either state with 50% chance if it has ever visited A before, and 20% chance if it has never visited A before (leaving a 50% or 80% chance that the machine moves to E). This is because the behavior of the machine depends on the whole history—if the machine is in E, it may have a 50% or 20% chance of moving to A, depending on its past values. Hence, it does not have the Markov property. A Markov chain can be described by a stochastic matrix, which lists the probabilities of moving to each state from any individual state. From this matrix, the probability of being in a particular state n steps in the future can be calculated. A Markov chain's state space can be partitioned into communicating classes that describe which states are reachable from each other (in one transition or in many). Each state can be described as transient or recurrent, depending on the probability of the chain ever returning to that state. Markov chains can have properties including periodicity, reversibility and stationarity. A continuous-time Markov chain is like a discrete-time Markov chain, but it moves states continuously through time rather than as discrete time steps. Other stochastic processes can satisfy the Markov property, the property that past behavior does not affect the process, only the present state.
Definition A discrete-time Markov chain is a sequence of random variables X0,X1,X2,... with the Markov property, namely that the probability of moving to the next state depends only on the present state and not on the previous states:
Pr(Xn+1=x∣X1=x1,X2=x2,…,Xn=xn)=Pr(Xn+1=x∣Xn=xn), if both conditional probabilities are well defined, that is, if Pr(X1=x1,…,Xn=xn)>0. The possible values of Xi form a countable set S called the state space of the chain. Markov chains are often described by a sequence of directed graphs, where the edges of graph n are labeled by the probabilities of going from one state at time n to the other states at time n + 1, Pr(Xn+1=x∣Xn=xn). The same information is represented by the transition matrix from time n to time n + 1. However, Markov chains are frequently assumed to be time-homogeneous (see variations below), in which case the graph and matrix are independent of n and are thus not presented as sequences. These descriptions highlight the structure of the Markov chain that is independent of the initial distribution Pr(X1=x1). When time-homogeneous, the chain can be interpreted as a state machine assigning a probability of hopping from each vertex or state to an adjacent one. The probability Pr(Xn=x∣X1=x1) of the machine's state can be analyzed as the statistical behavior of the machine with an element x1 of the state space as input, or as the behavior of the machine with the initial distribution Pr(X1=y)=[x1=y] of states as input, where [P] is the Iverson bracket.
Variations Time-homogeneous Markov chains (or stationary Markov chains) are processes where Pr(Xn+1=x∣Xn=y)=Pr(Xn=x∣Xn−1=y) for all n. The probability of the transition is independent of n. A Markov chain with memory (or a Markov chain of order m) where m is finite, is a process satisfying Pr(Xn=xn∣Xn−1=xn−1,Xn−2=xn−2,…,X1=x1)=Pr(Xn=xn∣Xn−1=xn−1,Xn−2=xn−2,…,Xn−m=xn−m) for n>m In other words, the future state depends on the past m states. It is possible to construct a chain (Yn) from (Xn) which has the 'classical' Markov property by taking as state space the ordered m-tuples of X values, ie. Yn=(Xn,Xn−1,…,Xn−m+1).
n-step transitions The probability of going from state i to state j in n time steps is
pij(n)=Pr(Xn=j∣X0=i) and the single-step transition is
pij=Pr(X1=j∣X0=i). For a time-homogeneous Markov chain:
pij(n)=Pr(Xk+n=j∣Xk=i) and
pij=Pr(Xk+1=j∣Xk=i). The n-step transition probabilities satisfy the Chapman–Kolmogorov equation, that for any k such that 0 < k < n,
pij(n)=∑r∈Spir(k)prj(n−k) where S is the state space of the Markov chain. The marginal distribution Pr(Xn = x) is the distribution over states at time n. The initial distribution is Pr(X0 = x). The evolution of the process through one time step is described by
Pr(Xn=j)=∑r∈SprjPr(Xn−1=r)=∑r∈Sprj(n)Pr(X0=r). (The superscript (n) is an index, and not an exponent).
Communicating classes and properties A state j is said to be accessible from a state i (written i → j) if a system started in state i has a non-zero probability of transitioning into state j at some point. Formally, state j is accessible from state i if there exists an integer nij ≥ 0 such that
Pr(Xnij=j∣X0=i)=pij(nij)>0. A state i is said to communicate with state j (written i ↔ j) if both i → j and j → i. A communicating class is a maximal set of states C such that every pair of states in C communicates with each other. Communication is an equivalence relation, and communicating classes are the equivalence classes of this relation. A communicating class is closed if the probability of leaving the class is zero, namely if i is in C but j is not, then j is not accessible from i. The set of communicating classes forms a directed, acyclic graph by inheriting the arrows from the original state space. A communicating class is closed if and only if it has no outgoing arrows in this graph. A state i is said to be essential or final if for all j such that i → j it is also true that j → i. A state i is inessential if it is not essential. A state is final if and only if its communicating class is closed. A Markov chain is said to be irreducible if its state space is a single communicating class; in other words, if it is possible to get to any state from any state.
… excerpt ends here. Continue reading the full article.




