ArticleslgStudy

science

Discrete-time Markov chain

Discrete-time Markov chain is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Discrete-time Markov chain rather than just read about it. In short: 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.

Discrete-time Markov chain — main illustration
Discrete-time Markov chain — illustration

Key takeaways

  • Discrete-time Markov chain belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Discrete-time Markov chain to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Discrete-time Markov chain from memory before moving on to harder problems.

Reference excerpt

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.

Illustrations

Discrete-time Markov chain: A Markov chain with two states, A and E.
A Markov chain with two states, A and E.
Discrete-time Markov chain: Simple Markov chain.
Simple Markov chain.
Discrete-time Markov chain illustration
Discrete-time Markov chain illustration

Worked examples

Example 1 — a first encounter with Discrete-time Markov chain

Start with the simplest possible case. Write down what Discrete-time Markov chain claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Discrete-time Markov chain before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Discrete-time Markov chain ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Discrete-time Markov chain

In research
Discrete-time Markov chain appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Discrete-time Markov chain in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Discrete-time Markov chain is common in secondary-school and first-year university syllabi. It links to neighbouring topics Markov processes, so understanding it makes those chapters shorter.
In everyday life
Look for Discrete-time Markov chain outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Discrete-time Markov chain” →

How to study Discrete-time Markov chain in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Discrete-time Markov chain means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Discrete-time Markov chain out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Discrete-time Markov chain in simple terms?

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.

Why does Discrete-time Markov chain matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Discrete-time Markov chain?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Discrete-time Markov chain.

Tags

  • Markov processes

Keep exploring