A long time ago (about 100 years back), there was a Russian mathematician named Andrey Markov (a serious man who loved puzzles more than PokΓ©mon).

People back then thought:
β€œIf events are independent (like rolling dice), you can do maths on them. But if they are dependent (like today’s weather affecting tomorrow’s), it is too messy.”

Markov was like:
β€œWait, what if I make a new kind of maths where the next thing can depend on the last thing β€” but only the last thing? Not the whole past.”

So he invented a system where you only need to look at where you are right now (that is enough to predict the chances of where you will be next). Enter the Markov chain. He tested his idea by looking at a really long poem (Pushkin’s Eugene Onegin). He counted how often vowels and consonants followed each other β€” like making a PokΓ©mon map, but with letters.

So instead of β€œPikachu β†’ Bulbasaur,” he had β€œVowel β†’ Consonant.”