HHM(直接计算法求观察序列的概率)

UTF8gbsn

After we known the HMM λ = ( A , B , π ) \lambda=(A,B,\pi) λ=(A,B,π) and
O = ( o 1 , o 2 , ⋯   , o T ) O=\left( o_1, o_2, \cdots, o_T \right) O=(o1,o2,,oT), the probability P ( O ∣ λ ) P(O|\lambda) P(Oλ)
can be computed directly. We illustrate possible state sequences of
I = ( i 1 , i 2 , ⋯   , i T ) I=\left( i_1, i_2, \cdots, i_T \right) I=(i1,i2,,iT) and compute P ( O ∣ λ ) P(O|\lambda) P(Oλ) by
the sum of all joint probabilities P ( O , I ∣ λ ) P(O,I|\lambda) P(O,Iλ).
For a given state sequence I = ( i 1 , i 2 , ⋯   , i T ) I=\left( i_1, i_2, \cdots, i_T \right) I=(i1,i2,,iT), the
probability of this sequence is:
P ( I ∣ λ ) = π i 1 a i 1 i 2 a i 2 i 3 ⋯ a i T − 1 i T P(I|\lambda)=\pi_{i_1}a_{i_1 i_2}a_{i_2 i_3}\cdots a_{i_{T-1}i_T} P(Iλ)=πi1ai1i2ai2i3aiT1iT

Fixed I = ( i 1 , i 2 , ⋯   , i T ) I=\left( i_1, i_2, \cdots, i_T \right) I=(i1,i2,,iT) and
O = ( o 1 , o 2 , ⋯   , o T ) O=\left( o_1, o_2, \cdots, o_T \right) O=(o1,o2,,oT) have fixed conditional
probability P ( O ∣ I , λ ) P(O|I, \lambda) P(OI,λ):
P ( O ∣ I , λ ) = b i 1 ( o 1 ) b i 2 ( o 2 ) ⋯ b i T ( o T ) P(O|I,\lambda)=b_{i_1}(o_1)b_{i_2}(o_2)\cdots b_{i_T}(o_T) P(OI,λ)=bi1(o1)bi2(o2)biT(oT)

P ( O , I ∣ λ ) = P ( O ∣ I , λ ) P ( I ∣ λ ) = π i 1 b i 1 ( o 1 ) a i 1 i 2 b i 1 ( o 2 ) ⋯ a i T − 1 i T b i T ( o T ) \left. \begin{aligned} P(O,I|\lambda)&=P(O|I,\lambda)P(I|\lambda)\\ &=\pi_{i_1}b_{i_1}(o_1)a_{i_1i_2}b_{i_1}(o_2)\cdots a_{i_{T-1}i_T}b_{i_T}(o_T) \end{aligned} \right. P(O,Iλ)=P(OI,λ)P(Iλ)=πi1bi1(o1)ai1i2bi1(o2)aiT1iTbiT(oT)

Now, we can sum all the P ( O , I ∣ λ ) P(O,I|\lambda) P(O,Iλ) together: P ( O ∣ λ ) = ∑ I P ( O ∣ I , λ ) P ( I ∣ λ ) = ∑ i 1 , i 2 , ⋯   , i T π i 1 b i 1 ( o 1 ) a i 1 i 2 b i 2 ( o 2 ) ⋯ a i T − 1 i T b i T ( o T ) \left. \begin{aligned} P(O|\lambda)&=\sum_{I}P(O|I,\lambda)P(I|\lambda)\\ &=\sum_{i_1,i_2,\cdots, i_T}\pi_{i_1}b_{i_1}(o_1)a_{i_1i_2}b_{i_2}(o_2)\cdots a_{i_{T-1}i_T}b_{i_T}(o_T) \end{aligned} \right. P(Oλ)=IP(OI,λ)P(Iλ)=i1,i2,,iTπi1bi1(o1)ai1i2bi2(o2)aiT1iTbiT(oT)

The complexity of this direct method is O ( N T T ) O(N^TT) O(NTT) , and it’s a costly
algorithm of computing P ( O ∣ λ ) P(O|\lambda) P(Oλ)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值