Math 2.0

Statistics Definition

Baum–Welch algorithm

Builds on Hidden Markov modelExpectation–maximization algorithmLikelihood functionConditional probability

Definition

Consider a hidden Markov model with hidden states {1,…,N}\set{1, \dots, N} and observation symbols {1,…,M}\set{1, \dots, M}. Its parameter θ=(π,A,B)\theta = (\pi, A, B) consists of an initial distribution πi\pi_i, a transition matrix aija_{ij} and emission probabilities bi(k)b_i(k). Let y1,…,yTy_1, \dots, y_T with T≥2T \ge 2 be an observed sequence.

For the current θ\theta, the forward and backward variables are αt(i)=Pθ(Y1=y1,…,Yt=yt,Xt=i),βt(i)=Pθ(Yt+1=yt+1,…,YT=yT∣Xt=i),\alpha_t(i) = P_\theta(Y_1 = y_1, \dots, Y_t = y_t, X_t = i), \qquad \beta_t(i) = P_\theta(Y_{t+1} = y_{t+1}, \dots, Y_T = y_T \mid X_t = i), computed by α1(i)=πibi(y1)\alpha_1(i) = \pi_i b_i(y_1), αt+1(j)=∑iαt(i)aijbj(yt+1)\alpha_{t+1}(j) = \sum_i \alpha_t(i) a_{ij} b_j(y_{t+1}), βT(i)=1\beta_T(i) = 1 and βt(i)=∑jaijbj(yt+1)βt+1(j)\beta_t(i) = \sum_j a_{ij} b_j(y_{t+1}) \beta_{t+1}(j). With L=∑iαT(i)L = \sum_i \alpha_T(i), set γt(i)=αt(i)βt(i)L,ξt(i,j)=αt(i)aijbj(yt+1)βt+1(j)L.\gamma_t(i) = \frac{\alpha_t(i) \beta_t(i)}{L}, \qquad \xi_t(i, j) = \frac{\alpha_t(i) a_{ij} b_j(y_{t+1}) \beta_{t+1}(j)}{L}. The Baum–Welch algorithm repeats the following update until the likelihood LL stops changing: πi←γ1(i),aij←∑t=1T−1ξt(i,j)∑t=1T−1γt(i),bi(k)←∑t : yt=kγt(i)∑t=1Tγt(i).\pi_i \leftarrow \gamma_1(i), \qquad a_{ij} \leftarrow \frac{\sum_{t=1}^{T-1} \xi_t(i, j)}{\sum_{t=1}^{T-1} \gamma_t(i)}, \qquad b_i(k) \leftarrow \frac{\sum_{t \,:\, y_t = k} \gamma_t(i)}{\sum_{t=1}^{T} \gamma_t(i)}.

Remarks

Here γt(i)\gamma_t(i) is the conditional probability that Xt=iX_t = i given the observations, and ξt(i,j)\xi_t(i, j) is the conditional probability that Xt=iX_t = i and Xt+1=jX_{t+1} = j. The update is one step of the expectation–maximization algorithm, so the likelihood never decreases from one iteration to the next. It may converge to a local maximum rather than to the global maximum, so several starting points are often used.

Example: with N=1N = 1 every γt(1)\gamma_t(1) equals 11, and the update gives b1(k)=#{t:yt=k}/Tb_1(k) = \#\set{t : y_t = k} / T. This is the observed frequency of symbol kk, which is the maximum likelihood estimate in that case.

Non-example: the Viterbi algorithm uses the same model but returns the single most likely hidden path for fixed parameters. It does not update θ\theta, so it is not the Baum–Welch algorithm.

Reading path

To understand this page from the ground up, read these 5 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Conditional probability concept
  2. Expectation–maximization algorithm concept
  3. Hidden Markov model concept
  4. Likelihood function concept
  5. Baum–Welch algorithm definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Baum–Welch_algorithm
About this page
TagT5TJRYZPFX
URIm2://T5TJRYZPFX
Kinddefinition
WritingW0 stub
MSC62M05, 62F10
DefinesBaum–Welch algorithm
UsesHidden Markov model, Expectation–maximization algorithm, Likelihood function, Conditional probability

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.