# ofxMarkovChain

Posted on December 4, 2014

If the system is in the state $$A$$, then the probability to stay in that state is $$0.3$$ and the probability to be in state $$B$$ is $$0.7$$. Now, this system can be represented as a matrix:
$P = \begin{bmatrix} 0.3 & 0.7 \\ 0.9 & 0.1 \end{bmatrix}$
You can notice that in order for the Markov chain to be consistent, the sum of the coefficients of each row of the matrix must be equal to $$1$$.