Professional Documents
Culture Documents
Ankur Jain
Y7073
What is Covered
Markov Models
Set of states:
Process moves from one state to another generating a
sequence of states :
Markov chain property: probability of each subsequent state
depends only on what was the previous state:
To define Markov model, the following probabilities have to be
specified: transition probabilities
and initial
probabilities
The output of the process is the set of states at each instant of
time
0.7
Rain
Dry
0.2
0.8
P({Dry,Dry,Rain,Rain} ) = ??.
HMM Assumptions
Markov assumption: the state transition depends only on
the origin and destination
Output-independent assumption: all observation frames
are dependent on the state that generated them, not on
neighbouring observation frames
0.7
Low
High
0.2
0.6
Rain
0.4
0.8
0.4
0.6
Dry
P(High|Low)=0.7 , P(Low|High)=0.2,
P(High|High)=0.8
Observation probabilities : P(Rain|Low)=0.6 ,
P(Dry|Low)=0.4 , P(Rain|High)=0.4 ,
P(Dry|High)=0.3 .
Initial probabilities: say P(Low)=0.4 , P(High)=0.6 .
P({Dry,Rain} , {Low,Low})=
P({Dry,Rain} | {Low,Low}) P({Low,Low}) = ??
M=(A, B, )
and the
0.5
0.03
0.005
z 0.31
Hidden state
Observation
Buffalo
0.5
0.03
0.4
0.6
o
b
Evaluation Problem.
Evaluation problem. Given the HMM
M=(A, B, )
and the
P(o1 o2 ... oT ) =
P(S) =
P(o1 o2 ... oT /S ) =
{Markov property}
{Output independent assumption}
ok
ok+1
s1
s1
s2
a1j
oK =
Observations
s1
s2
s2
sj
si
a2j
si
si
aij
aNj
Time=
sN
sN
sN
sN
k+1
Forward recursion:
Termination:
Complexity :
N2K operations.
K(i)= 1 , 1<=i<=N.
Backward recursion:
Termination:
Decoding problem
We want to find the state sequence Q= q1qK which maximizes
General idea:
s1
si
qk
a1j
aij
aNj
sj
sN
k(i) = max P(q1 qk-1 , qk= sj , o1 o2 ... ok) =
maxi [ aij bj (ok ) max P(q1 qk-1= si , o1 o2 ... ok-1) ]
To backtrack best path keep info that predecessor of sj was si.
Initialization:
Forward recursion:
Learning problem
The most difficult of the three problems, because there is
no known analytical method that maximizes the joint
probability of the training data
Solved by the Baum-Welch (known as forward backward)
algorithm and EM (Expectation maximization) algorithm
Questions
Thank You