ArticleslgStudy

mathematics

Examples of Markov chains

Examples of Markov chains is a mathematics 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 Examples of Markov chains rather than just read about it. In short: This article contains examples of Markov chains and Markov processes in action. All examples are in the countable state space.

Examples of Markov chains — main illustration
Examples of Markov chains — illustration

Key takeaways

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

Reference excerpt

This article contains examples of Markov chains and Markov processes in action. All examples are in the countable state space. For an overview of Markov chains in general state space, see Markov chains on a measurable state space.

Discrete-time

Board games played with dice A game of snakes and ladders or any other game whose moves are determined entirely by dice is a Markov chain, indeed, an absorbing Markov chain. This is in contrast to card games such as blackjack, where the cards represent a 'memory' of the past moves. To see the difference, consider the probability for a certain event in the game. In the above-mentioned dice games, the only thing that matters is the current state of the board. The next state of the board depends on the current state, and the next roll of the dice. It does not depend on how things got to their current state. In a game such as blackjack, a player can gain an advantage by remembering which cards have already been shown (and hence which cards are no longer in the deck), so the next state (or hand) of the game is not independent of the past states.

Random walk Markov chains

A center-biased random walk Consider a random walk on the number line where, at each step, the position (call it x) may change by +1 (to the right) or −1 (to the left) with probabilities:

Pmove left=12+12(xc+|x|) Pmove right=1−Pmove left (where c is a constant greater than 0) For example, if the constant, c, equals 1, the probabilities of a move to the left at positions x = −2,−1,0,1,2 are given by 16,14,12,34,56 respectively. The random walk has a centering effect that weakens as c increases. Since the probabilities depend only on the current position (value of x) and not on any prior positions, this biased random walk satisfies the definition of a Markov chain.

Gambling

Suppose that one starts with $10, and one wagers $1 on an unending, fair, coin toss indefinitely, or until all of the money is lost. If Xn represents the number of dollars one has after n tosses, with X0=10, then the sequence {Xn:n∈ℕ} is a Markov process. If one knows that one has $12 now, then it would be expected that with even odds, one will either have $11 or $13 after the next toss. This guess is not improved by the added knowledge that one started with $10, then went up to $11, down to $10, up to $11, and then to $12. The fact that the guess is not improved by the knowledge of earlier tosses showcases the Markov property, the memoryless property of a stochastic process.

A model of language This example came from Markov himself. Markov chose 20,000 letters from Pushkin’s Eugene Onegin, classified them into vowels and consonants, and counted the transition probabilities.vowelconsonantvowel.128.872consonant.663.337 The stationary distribution is 43.2 percent vowels and 56.8 percent consonants, which is close to the actual count in the book.

A simple weather model The probabilities of weather conditions (modeled as either rainy or sunny), given the weather on the preceding day, can be represented by a transition matrix:

P=[0.90.10.50.5] The matrix P represents the weather model in which a sunny day is 90% likely to be followed by another sunny day, and a rainy day is 50% likely to be followed by another rainy day. The columns can be labelled "sunny" and "rainy", and the rows can be labelled in the same order.

(P)i j is the probability that, if a given day is of type i, it will be followed by a day of type j. Notice that the rows of P sum to 1: this is because P is a stochastic matrix.

Predicting the weather The weather on day 0 (today) is known to be sunny. This is represented by an initial state vector in which the "sunny" entry is 100%, and the "rainy" entry is 0%:

𝐱(0)=[10] The weather on day 1 (tomorrow) can be predicted by multiplying the state vector from day 0 by the transition matrix:

𝐱(1)=𝐱(0)P=[10][0.90.10.50.5]=[0.90.1] Thus, there is a 90% chance that day 1 will also be sunny. The weather on day 2 (the day after tomorrow) can be predicted in the same way, from the state vector we computed for day 1:

𝐱(2)=𝐱(1)P=𝐱(0)P2=[10][0.90.10.50.5]2=[0.860.14] or

𝐱(2)=𝐱(1)P=[0.90.1][0.90.10.50.5]=[0.860.14] General rules for day n are:

𝐱(n)=𝐱(n−1)P 𝐱(n)=𝐱(0)Pn

Steady state of the weather In this example, predictions for the weather on more distant days change less and less on each subsequent day and tend towards a steady state vector. This vector represents the probabilities of sunny and rainy weather on all days, and is independent of the initial weather. The steady state vector is defined as:

𝐪=limn→∞𝐱(n) but converges to a strictly positive vector only if P is a regular transition matrix (that is, there is at least one Pn with all non-zero entries). Since q is independent from initial conditions, it must be unchanged when transformed by P. This makes it an eigenvector (with eigenvalue 1), and means it can be derived from P. In layman's terms, the steady-state vector is the vector that, when we multiply it by P, we get the exact same vector back. For the weather example, we can use this to set up a matrix equation:

P=[0.90.10.50.5]𝐪P=𝐪(𝐪 is unchanged by P.)=𝐪I𝐪(P−I)=𝟎𝐪([0.90.10.50.5]−[1001])=𝟎𝐪[−0.10.10.5−0.5]=𝟎[q1q2][−0.10.10.5−0.5]=[00]−0.1q1+0.5q2=0 and since they are a probability vector we know that

q1+q2=1. Solving this pair of simultaneous equations gives the steady state vector:

[q1q2]=[0.8330.167] In conclusion, in the long term about 83.3% of days are sunny. Not all Markov processes have a steady state vector. In particular, the transition matrix must be regular. Otherwise, the state vectors will oscillate over time without converging.

Stock market

A state diagram for a simple example is shown in the figure on the right, using a directed graph to picture the state transitions. The states represent whether a hypothetical stock market is exhibiting a bull market, bear market, or stagnant market trend during a given week. According to the figure, a bull week is followed by another bull week 90% of the time, a bear week 7.5% of the time, and a stagnant week the other 2.5% of the time. Labeling the state space {1 = bull, 2 = bear, 3 = stagnant} the transition matrix for this example is

P=[0.90.0750.0250.150.80.050.250.250.5]. The distribution over states can be written as a stochastic row vector x with the relation x(n + 1) = x(n)P. So if at time n the system is in state x(n), then three time periods later, at time n + 3 the distribution is

… excerpt ends here. Continue reading the full article.

Illustrations

Examples of Markov chains: Using a directed graph, the probabilities of the possible states a hypothetical stock market can exhibit is represented. The matrix on the left shows how probabilities corresponding to different states can be arranged in matrix form.
Using a directed graph, the probabilities of the possible states a hypothetical stock market can exhibit is represented. The matrix on the left shows how probabilities corresponding to different states can be arranged in matrix form.

Worked examples

Example 1 — a first encounter with Examples of Markov chains

Start with the simplest possible case. Write down what Examples of Markov chains claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, 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 Examples of Markov chains 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 Examples of Markov chains 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 Examples of Markov chains

In research
Examples of Markov chains appears in mathematics 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 Examples of Markov chains 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
Examples of Markov chains is common in secondary-school and first-year university syllabi. It links to neighbouring topics Markov models, Mathematical examples, so understanding it makes those chapters shorter.
In everyday life
Look for Examples of Markov chains 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 “Examples of Markov chains” →

How to study Examples of Markov chains in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Examples of Markov chains 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 Examples of Markov chains out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Examples of Markov chains in simple terms?

This article contains examples of Markov chains and Markov processes in action. All examples are in the countable state space.

Why does Examples of Markov chains matter?

Because it connects several mathematics 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 Examples of Markov chains?

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 Examples of Markov chains.

Tags

  • Markov models
  • Mathematical examples

Keep exploring