ArticleslgStudy

science

Hidden Markov model

Hidden 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 Hidden Markov model rather than just read about it. In short: In probability theory, a hidden Markov model (HMM) is a Markov model in which the observations are dependent on a latent (or hidden) Markov process (referred to as X {\displaystyle X} ). An HMM requires that there be an observable process Y {\displaystyle Y} whose outcomes depend on the outcomes of X {\displaystyle X} in a known way.

Hidden Markov model — main illustration
Hidden Markov model — illustration

Key takeaways

  • Hidden 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 Hidden Markov model to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Hidden Markov model from memory before moving on to harder problems.

Reference excerpt

In probability theory, a hidden Markov model (HMM) is a Markov model in which the observations are dependent on a latent (or hidden) Markov process (referred to as X {\displaystyle X} ). An HMM requires that there be an observable process Y {\displaystyle Y} whose outcomes depend on the outcomes of X {\displaystyle X} in a known way. Since X {\displaystyle X} cannot be observed directly, the goal is to learn about state of X {\displaystyle X} by observing Y {\displaystyle Y} . By definition of being a Markov model, an HMM has an additional requirement that the outcome of Y {\displaystyle Y} at time t = t 0 {\displaystyle t=t_{0}} must be "influenced" exclusively by the outcome of X {\displaystyle X} at t = t 0 {\displaystyle t=t_{0}} and that the outcomes of X {\displaystyle X} and Y {\displaystyle Y} at t < t 0 {\displaystyle t<t_{0}} must be conditionally independent of Y {\displaystyle Y} at t = t 0 {\displaystyle t=t_{0}} given X {\displaystyle X} at time t = t 0 {\displaystyle t=t_{0}} . Estimation of the parameters in an HMM can be performed using maximum likelihood estimation. For linear chain HMMs, the Baum–Welch algorithm can be used to estimate parameters. Hidden Markov models are known for their applications to thermodynamics, statistical mechanics, physics, chemistry, economics, finance, signal processing, information theory, pattern recognition—such as speech recognition, handwriting recognition, gesture recognition, part-of-speech tagging, musical score following, partial discharges and bioinformatics.

Definition Let X n {\displaystyle X_{n}} and Y n {\displaystyle Y_{n}} be discrete-time stochastic processes and n ≥ 1 {\displaystyle n\geq 1} . The pair ( X n , Y n ) {\displaystyle (X_{n},Y_{n})} is a hidden Markov model if

X n {\displaystyle X_{n}} is a Markov process whose behavior is not directly observable ("hidden");

P ⁡ ( Y n ∈ A | X 1 = x 1 , … , X n = x n ) = P ⁡ ( Y n ∈ A | X n = x n ) {\displaystyle \operatorname {\mathbf {P} } {\bigl (}Y_{n}\in A\ {\bigl |}\ X_{1}=x_{1},\ldots ,X_{n}=x_{n}{\bigr )}=\operatorname {\mathbf {P} } {\bigl (}Y_{n}\in A\ {\bigl |}\ X_{n}=x_{n}{\bigr )}} , for every n ≥ 1 {\displaystyle n\geq 1} , x 1 , … , x n {\displaystyle x_{1},\ldots ,x_{n}} , and every Borel set A {\displaystyle A} . Let X t {\displaystyle X_{t}} and Y t {\displaystyle Y_{t}} be continuous-time stochastic processes. The pair ( X t , Y t ) {\displaystyle (X_{t},Y_{t})} is a hidden Markov model if

X t {\displaystyle X_{t}} is a Markov process whose behavior is not directly observable ("hidden");

… excerpt ends here. Continue reading the full article.

Illustrations

Hidden Markov model: Graphical representation of the given HMM
Graphical representation of the given HMM
Hidden Markov model: Temporal evolution of a hidden Markov model
Temporal evolution of a hidden Markov model
Hidden Markov model: The state transition and output probabilities of an HMM are indicated by the line opacity in the upper part of the diagram. Given that the output sequence is observed in the lower part of the diagram, interest occurs in the most likely sequence of states that could have produced it. Based on the arrows that are present in the diagram, the following state sequences are candidates:
5 3 2 5 3 2
4 3 2 5 3 2
3 1 2 5 3 2
The most likely sequence can be found by evaluating the joint probability of both the state sequence and the observations for each case (simply by multiplying the probability values, which here correspond to the opacities of the arrows involved). In general, this type of problem (i.e., finding the most likely explanation for an observation sequence) can be solved efficiently using the Viterbi algorithm.
The state transition and output probabilities of an HMM are indicated by the line opacity in the upper part of the diagram. Given that the output sequence is observed in the lower part of the diagram, interest occurs in the most likely sequence of states that could have produced it. Based on the arrows that are present in the diagram, the following state sequences are candidates: 5 3 2 5 3 2 4 3 2 5 3 2 3 1 2 5 3 2 The most likely sequence can be found by evaluating the joint probability of both the state sequence and the observations for each case (simply by multiplying the probability values, which here correspond to the opacities of the arrows involved). In general, this type of problem (i.e., finding the most likely explanation for an observation sequence) can be solved efficiently using the Viterbi algorithm.
Hidden Markov model: A profile HMM modelling a multiple sequence alignment of proteins in Pfam
A profile HMM modelling a multiple sequence alignment of proteins in Pfam
Hidden Markov model: The hidden part of a hidden Markov model, whose observable states is non-Markovian
The hidden part of a hidden Markov model, whose observable states is non-Markovian

Worked examples

Example 1 — a first encounter with Hidden Markov model

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

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

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

Frequently asked questions

What is Hidden Markov model in simple terms?

In probability theory, a hidden Markov model (HMM) is a Markov model in which the observations are dependent on a latent (or hidden) Markov process (referred to as X {\displaystyle X} ). An HMM requires that there be an observable process Y {\displaystyle Y} whose outcomes depend on the outcomes of…

Why does Hidden 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 Hidden 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 Hidden Markov model.

Tags

  • Bioinformatics
  • Hidden Markov models
  • Markov models

Keep exploring