Serving the Quantitative Finance Community

 
User avatar
MartinGale7
Topic Author
Posts: 70
Joined: April 1st, 2011, 7:42 am

Hidden Markov - Inferring the transition and emission matrices as well as state?

July 9th, 2013, 12:55 pm

I've been spending a bit of time looking into using Forward-Backward algorithms to solve Hidden Markov problems. All of the examples I've seen assume that transition and emission matrices are known in advance. Given these two matrices, boundary conditions and a time series of observations, we can estimate the probability of the 'hidden' state at each point in time.My question is, if we don't have the transition and emission matrices in advance, can we infer them from the data too?
 
User avatar
Alan
Posts: 3050
Joined: December 19th, 2001, 4:01 am
Location: California
Contact:

Hidden Markov - Inferring the transition and emission matrices as well as state?

July 9th, 2013, 2:05 pm

Generally, the right order of things is:1. Parameterize the HMM 2. Estimate the parameters via maximum likelihood3. Finally, estimate the states using the forward-backward relations.Since you already have done 3, you've coded the likelihood, as it follows immediately from the forward recursion.Google some intro on HMM's for details.
 
User avatar
acastaldo
Posts: 14
Joined: October 11th, 2002, 11:24 pm

Hidden Markov - Inferring the transition and emission matrices as well as state?

July 9th, 2013, 8:30 pm

Quote if we don't have the transition and emission matrices in advance, can we infer them from the data too?In voice recognition applications, the matrices are estimated by analzying a "corpus" of utterances and determining for example how often the sound "ph-" is followed by "-ish" or "-one" or "-uck" and so forth and assigning probabilities accordingly.
 
User avatar
rusti999
Posts: 0
Joined: October 4th, 2007, 8:19 pm

Hidden Markov - Inferring the transition and emission matrices as well as state?

July 17th, 2013, 5:57 pm

QuoteMy question is, if we don't have the transition and emission matrices in advance, can we infer them from the data too?Yes, use Baum-Welch algorithm. It's basically a type of EM (expectation maximization) algorithm, so you'll get the maximum likelihood estimates of the transition and emission matrices.