ArticleslgStudy

science

Variable-order Markov model

Variable-order Markov model 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 Variable-order Markov model rather than just read about it. In short: In the mathematical theory of stochastic processes, variable-order Markov (VOM) models are an important class of models that extend the well known Markov chain models. In contrast to the Markov chain models, where each random variable in a sequence with a Markov property depends on a fixed number of random variables, in VOM models this number of conditioning random variables may vary based on the specific observed r…

Key takeaways

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

Reference excerpt

In the mathematical theory of stochastic processes, variable-order Markov (VOM) models are an important class of models that extend the well known Markov chain models. In contrast to the Markov chain models, where each random variable in a sequence with a Markov property depends on a fixed number of random variables, in VOM models this number of conditioning random variables may vary based on the specific observed realization. This realization sequence is often called the context; therefore the VOM models are also called context trees. VOM models are nicely rendered by colorized probabilistic suffix trees (PST). The flexibility in the number of conditioning random variables turns out to be of real advantage for many applications, such as statistical analysis, classification and prediction.

Example Consider for example a sequence of random variables, each of which takes a value from the ternary alphabet {a, b, c}. Specifically, consider the string constructed from infinite concatenations of the sub-string aaabc: aaabcaaabcaaabcaaabc…aaabc. The VOM model of maximal order 2 can approximate the above string using only the following five conditional probability components: Pr(a | aa) = 0.5, Pr(b | aa) = 0.5, Pr(c | b) = 1.0, Pr(a | c)= 1.0, Pr(a | ca) = 1.0. In this example, Pr(c | ab) = Pr(c | b) = 1.0; therefore, the shorter context b is sufficient to determine the next character. Similarly, the VOM model of maximal order 3 can generate the string exactly using only five conditional probability components, which are all equal to 1.0. To construct the Markov chain of order 1 for the next character in that string, one must estimate the following 9 conditional probability components: Pr(a | a), Pr(a | b), Pr(a | c), Pr(b | a), Pr(b | b), Pr(b | c), Pr(c | a), Pr(c | b), Pr(c | c). To construct the Markov chain of order 2 for the next character, one must estimate 27 conditional probability components: Pr(a | aa), Pr(a | ab), …, Pr(c | cc). And to construct the Markov chain of order three for the next character one must estimate the following 81 conditional probability components: Pr(a | aaa), Pr(a | aab), …, Pr(c | ccc). In practical settings there is seldom sufficient data to accurately estimate the exponentially increasing number of conditional probability components as the order of the Markov chain increases. The variable-order Markov model assumes that in realistic settings, there are certain realizations of states (represented by contexts) in which some past states are independent from the future states; accordingly, "a great reduction in the number of model parameters can be achieved."

Definition Let A be a state space (finite alphabet) of size | A | {\displaystyle |A|} . Consider a sequence with the Markov property x 1 n = x 1 x 2 … x n {\displaystyle x_{1}^{n}=x_{1}x_{2}\dots x_{n}} of n realizations of random variables, where x i ∈ A {\displaystyle x_{i}\in A} is the state (symbol) at position i ( 1 ≤ i ≤ n ) {\displaystyle \scriptstyle (1\leq i\leq n)} , and the concatenation of states x i {\displaystyle x_{i}} and x i + 1 {\displaystyle x_{i+1}} is denoted by x i x i + 1 {\displaystyle x_{i}x_{i+1}} . Given a training set of observed states, x 1 n {\displaystyle x_{1}^{n}} , the construction algorithm of the VOM models learns a model P that provides a probability assignment for each state in the sequence given its past (previously observed symbols) or future states. Specifically, the learner generates a conditional probability distribution P ( x i ∣ s ) {\displaystyle P(x_{i}\mid s)} for a symbol x i ∈ A {\displaystyle x_{i}\in A} given a context s ∈ A ∗ {\displaystyle s\in A^{*}} , where the * sign represents a sequence of states of any length, including the empty context. VOM models attempt to estimate conditional distributions of the form P ( x i ∣ s ) {\displaystyle P(x_{i}\mid s)} where the context length | s | ≤ D {\displaystyle |s|\leq D} varies depending on the available statistics. In contrast, conventional Markov models attempt to estimate these conditional distributions by assuming a fixed contexts' length | s | = D {\displaystyle |s|=D} and, hence, can be considered as special cases of the VOM models. Effectively, for a given training sequence, the VOM models are found to obtain better model parameterization than the fixed-order Markov models that leads to a better variance-bias tradeoff of the learned models.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Variable-order Markov model

Start with the simplest possible case. Write down what Variable-order Markov model 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 Variable-order Markov model 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 Variable-order Markov model 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 Variable-order Markov model

In research
Variable-order Markov model 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 Variable-order Markov model 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
Variable-order Markov model is common in secondary-school and first-year university syllabi. It links to neighbouring topics Markov models, so understanding it makes those chapters shorter.
In everyday life
Look for Variable-order Markov model 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.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Variable-order Markov model in 20 minutes

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

Frequently asked questions

What is Variable-order Markov model in simple terms?

In the mathematical theory of stochastic processes, variable-order Markov (VOM) models are an important class of models that extend the well known Markov chain models. In contrast to the Markov chain models, where each random variable in a sequence with a Markov property depends on a fixed number o…

Why does Variable-order Markov model 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 Variable-order Markov model?

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 Variable-order Markov model.

Tags

  • Markov models

Keep exploring