ABC
Analysis · Concept hubDeep story

Markov Chains

1906 CE20th-century Russia (Markov)

Concept

A stochastic process where the next state depends only on the present. Foundation of PageRank, GPT, speech recognition.

Understand it in one breath

"The current state contains the information needed for the distribution of the next state." Markov formalized the theory in 1906 and in 1913 analyzed vowel–consonant transitions in Pushkin. Not every chain converges. A finite irreducible, aperiodic chain converges to a unique stationary distribution regardless of its starting state. This structure appears in PageRank, speech recognition, and reinforcement learning.

At a glance

→ Next

Sunny

Cloudy

Rainy

Sunny

0.7

0.2

0.1

Cloudy

0.3

0.4

0.3

Rainy

0.2

0.3

0.5

Stationary distribution (convergence)

0.46

0.28

0.26

Repeated multiplication by the transition matrix reaches the same stationary distribution ≈ (0.46, 0.28, 0.26) regardless of the starting state — the ergodic theorem. PageRank performs exactly this calculation.

Key formula

P(Xn+1=jXn=i,,X0)=P(Xn+1=jXn=i)P(X_{n+1} = j \mid X_n = i,\, \ldots,\, X_0) = P(X_{n+1} = j \mid X_n = i)

Key moments

1906 CE

From literature to probability — Pushkin’s verse

Andrey Markov analyzed sequences of vowels and consonants in Pushkin’s Eugene Onegin, demonstrating a probability model with dependence only on the current state.

1953 CE

MCMC — the Metropolis algorithm

Work at Los Alamos introduced Markov chain Monte Carlo, making it possible to draw samples from distributions too difficult to handle directly.

1998 CE

PageRank — a Markov chain on the web

Google’s random-surfer model treated hyperlinks as transition probabilities, using a Markov chain to rank pages across the web.

Modern applications

Token prediction, reinforcement learning, MCMC Bayesian inference, and analysis of how thoroughly a deck of cards has been shuffled.

Beyond MathVoyage

Loading…