Clear Filters
Clear Filters

How to programme in Matlab to obtain transition probability matrix from sequence of data?

3 views (last 30 days)
Suppose I have a sequence of states like 5,5,1,5,4,1,2,3,5,5,1,5. How to programme in Matlab to obtain Transition probability matrix.

Answers (1)

Steven Lord
Steven Lord on 3 May 2016
Look at the Hidden Markov Models functions in Statistics and Machine Learning Toolbox.
  1 Comment
Ram k
Ram k on 4 May 2016
Edited: Ram k on 4 May 2016
But this Markov chain follows 1-step transition probabilities i.e. probability distribution of next state depends only on current state and not on previous state, so I don't want to go HMM.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!