bayespy.nodes.CategoricalMarkovChain

class bayespy.nodes.CategoricalMarkovChain(pi, A, states=None, **kwargs)[source]

Node for categorical Markov chain random variables.

The node models a Markov chain which has a discrete set of K possible states and the next state depends only on the previous state and the state transition probabilities. The graphical model is shown below: