Almost all examples I can found on Markov chain and python are giving the transition matrix as known. Is there any library that can fit the transition matrix from the series of state observations?
-
1$\begingroup$ question answered here The code in the answer is written in R language but it is short and I think easily re-coded in python. $\endgroup$ – John L Feb 19 at 17:00