Construct a model of a scenario involving transitions between two states using matrices.
Apply matrix models to predict future and past states for n transition steps.