Estimate Markov Chain Transition Matrix in MATLAB With Different State Sequence Lengths

前端 未结 2 1391
被撕碎了的回忆
被撕碎了的回忆 2020-12-15 14:51

I\'m trying to build the transition matrix for a Markov Chain in MATLAB; I have several different observation sequences (all of varying lengths) and I need to generate the t

2条回答
  •  春和景丽
    2020-12-15 15:16

    This maybe an easier way for calculating the transition probability matrix (TPM) for a given sequence of data (one vector) like this:

    myS = {S1,S2,S1,S3,...} with as many states as you have;

    TPM = hmmestimate(myS,myS);

    hmmestimate function is defined under hidden markov models in MATLAB.

提交回复
热议问题