Hidden Markov Models
Hidden Markov Models
concept.
x1, x2, x3 = hidden/unknown states
a12, a21, a23, a32 = transition probabilities
y1, y2, y3 = observable states
e1, e2, e3 = emission probabilities
The key point of the figure above is that only the blue circles are seen,
but you suspect or know that these observable states are directly related
or dependent on some hidden state. These hidden states (the red
circles) are what actually dictates the outcome of the observable states.
The challenge is to figure out the hidden states, the emission
probabilities and transition probabilities.
For example, say you have a data acquisition program that continuously
records the outlet temperature of your product stream which you are
heating up through a heat exchanger. The heat exchanger provides a
constant supply of heat. You observe that the temperature has some
step disturbances and is not always constant. The temperature is the
observable parameter, but the cause of its deviations/states is actually
the stream's flowrate. When the flowrate fluctuates, the outlet
temperature also fluctuates since the heat exchanger is providing the
same amount of heat to the stream. So, the stream flowrate is the
hidden parameter (since you do not have access to this measured
variable) and the probability that the flowrates switches from say 100 to
150 to 300 L/h are the transition probabilities. The emission probability
Using the basic diagram above that show the emission and transition
properties, conditioned statements in Excel can be used to model the
probability that a loaded die is being used. Please refer to example two
for the hidden Markov model Excel sheet.
HHMs can be modeled using Matlab. Follow the link to the site which
contains information in installing the HHM toolbox in Matlab:
HHMs in Matlab
Solution
Since the last day was a blizzard you use a matrix expressing a 100%
chance in the past, and multiply this by the probabilities of each weather
type.
This means that there is a 60% chance of sun, a 25% chance of rain
and a 15% chance of a blizzard. This is because a Markov process
works based on the probability of the immediately previous event. Thus,
you decide that is a low enough risk and happily decide to wear your
best new outfit AND wash your hair.