Read Rabiner (1987) which will be given.
You may find it helpful to start experimenting with my HMM Mini-Toolkit at this stage.
Consider a state machine with N states:
Suppose that it regularly undergoes a state-change at multiples of a certain constant period of time according to a set of probabilities associated with its current state.
Let's denote the times at which state changes take place by
and denote the state at time t by qt.
It is reasonable to suppose that
P(qt = Sj) depends upon the
history of the system before reaching qt, i.e.
(Consider the weather example).
But an analysis of this kind is too tedious (intractable).
So we simplify our model and consider a discrete first order
Markov chain instead which says that P(qt) only depends upon
P(qt-1), i.e.
Also, we only consider those processes in which the state transition probabilities do not change with time, i.e. P(qt = Sj | qt-1 = Si) = aij = the probability of transiting from State i to State j at any time.
Obviously we can make other assumptions that are true of probabilities
in general, for instance,
and
To completely specify the MM we also need to specify the probabilities
of originating in each state - the initial probabilities. Let
be the set of initial state
probabilities. Then the MM is defined by
.
(PS:
Assume that N is implicitly specified in A)
Assume you are modeling the weather and that the weather on any particular day can be represented by one of three possible states: S1 = Rainy, S2 = Cloudy and S3 = Fine.
You are now given the following State Transition matrix representative of a 1st order Markov Model:
and asked to find the probability that the next 7 days will be, in exact order, fine, fine, rainy, rainy, fine, cloudy, fine, given that today is a fine day.
We want to determine the probability of the observation sequence
O =
S3, S3, S3, S1, S1, S3, S2, S3. Thus
What is the probability that we will have a full January of fine days given that New Year's day is fine (p3(30))? What if we specify in addition that Feb 1 is not a fine day?
What is the expected number of consecutive fine days? Rainy days?
Cloudy days? The expected duration di in state i is given by:
Prove that this is equal to 1/(1-aii)