CSE 150 Lecture Notes - Lecture 14: Forward Pass, Bayes Estimator, Dynamic Programming

40 views2 pages
How to compute most likely “hidden” states?
(S1*,..., ST*) = argmaxS1,...,ST P(S1,...,ST|O1,...,OT)
Define: ℓ*it = maxS1,...,St-1 log P(S1,...,St-1,St = i, O1,...,Ot)
Recursive Algorithm
Base Case (t = 1) leftmost column
ℓ*i1 = log P(S1 = 1, O1) = log[P(S1 = i) P(O1|S1 = i)]
= log [πi bi(O1)]
How do we “advance” from one column to the next?
Recursive step from time t
to t+1
:
ℓ*j,t+1 = maxS1,..,St log P(S1,...,St+1 = j, O1,...,Ot+1)
= maxS1,...,St-1 maxi log P(S1,...,St = i, St+1 = j, O1,...,Ot+1)
= maxS1,...,St-1 maxi log[P(S1,...,St-1,St = i,O1,...,Ot) P(St+1 = j|St = i,S1,...,St-1,O1,..,Ot)
P(Ot+1|St+1 = j,S1,...,St,O1,...,Ot)
= maxS1,...,St-1 maxi logP(S1,...,St-1,St = i,O1,...,Ot) + log P(St+1 = j|St = i) + log P(Ot+1|St+1 = j)
NOTE: last 2 terms do not depend on S1,...,St-1!!!
ℓ*j,t+1 = maxi {[maxS1,...,St-1 log P(S1,...,St = i,O1,...,Ot)] + log P(St+1 = j|St = i)}
= maxi { ℓ*it + log aij } + log bj(Ot+1)
“Forward pass” for times t = 1 to T
How to denote (S1*,...,ST*) = argmaxS1,...,ST P(S1,...,ST|O1,...,OT) from the matrix ℓ*i1 ?
ɸj,t+1 (where ɸ is a nxT matrix) = argmaxi [ℓ*i1 + log aij]
If I must end up in state j
at time t+1
, based on observations O1,...,Ot, what was the most likely
hidden state St = i at time t
?
- Compute (S1*,..., ST*) by “backtracking”:
- At time T: ST* = argmaxi [ℓ*i1]
- Just look at which of the numbers in the rightmost column is the biggest!
For times t = T-1 to 1: St* = ɸS*t+1,t+1
Jargon:
(S1*,..., ST*) known as the Vterbi sequence
- Vterbi algorithm is an example of dynamic programming
3) Belief Updating
How to “monitor” hidden state in real time based on incoming evidence?
Key quantity: qjt = P(St = j|O1,...,Ot)
= P(St = j|Ot,O1,...,Ot-1) ← treat as “background evidence”
qjt = P(Ot|St = j,O1,...,Ot-1) P(St = j|O1,...,Ot-1) [Bayes Rule]
P(Ot|O1,...,Ot-1)
= bj(Ot) P(St = j|O1,...,Ot-1)
Unlock document

This preview shows half of the first page of the document.
Unlock all 2 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents