Markov Chains

The next event may depend on what is happening now. A Markov chain describes that dependence using probabilities of moving from one state to another, while leaving earlier history out of the prediction.

15 sections · 14 questions · 4 coding challenges

1 / 15

Does the Previous Event Tell Us Anything About the Next One?

BOTIE

If we count vowels in a passage, we learn how common they are. We do not yet know how they are arranged. A vowel may be more likely after a consonant than after another vowel, so treating every letter as an independent draw would discard useful structure.

In 1913, Andrey Markov examined sequences of vowels and consonants in Pushkin's Eugene Onegin. This gave a concrete illustration of the dependent trials he had been studying: probabilities can describe a sequence even when successive outcomes are connected.

A first-order Markov chain keeps the current state and uses it to choose probabilities for the next state. We can organise those probabilities in a transition table and advance through it repeatedly. The simplification is that the current state stands in for the relevant past. That can be useful for a manageable model, but it does not mean real language or every physical process forgets everything beyond one step.

Sources for this history