A Markov Chain is a stochastic process that satisfies the Markov Property: the future state depends only on the current state, and not on the sequence of events that preceded it. This "memoryless" property allows for the modeling of complex systems through the lens of linear algebra and high-dimensional geometry.
A discrete-time Markov chain is defined by a state space S and a Transition Matrix P.
If P_{ij} is the probability of moving from state i to state j:
Every row of P must sum to 1 (it is a right-stochastic matrix).
To find the probability distribution after k steps, we take the initial distribution vector \pi_0 and multiply by the k-th power of the transition matrix:
All possible probability distributions for a system with n states live on an (n-1)-dimensional unit simplex.
The steady state (stationary distribution) is the vector \pi that satisfies:
Linear Algebra Intuition: \pi is the left-eigenvector of P corresponding to the eigenvalue \lambda = 1.
On an undirected graph, a random walk is a Markov chain. The steady state probability of being at a node is geometrically proportional to its degree (number of connections):
Higher degree nodes act as "gravity wells" or "hubs" for the random walk.
In an HMM, the states are "hidden," and we only observe noisy emissions.
We visualize HMMs as a trellis diagram—a Directed Acyclic Graph (DAG) where time flows horizontally and states are vertical.
In speech recognition, phonemes are modeled as 3-state HMMs. Geometrically, these define a high-dimensional corridor in the acoustic feature space. If a speaker's audio trajectory stays within the "corridor" of a word's HMM, that word is triggered.
PageRank models the web as a massive Markov chain.
MCMC is used to sample from distributions that are too complex to integrate directly (e.g., in Bayesian physics or genetics).
Markov chains model the length of a queue.
| Concept | Matrix/Algebra View | Geometric Meaning |
|---|---|---|
| State Vector | \pi \in \mathbb{R}^n, \sum \pi_i = 1 | A point on the probability simplex. |
| Ergodicity | Irreducible + Aperiodic | Every state can eventually "see" every other. |
| Mixing Time | t_{mix} \approx 1/(1 - |\lambda_2|) | How fast the simplex collapses to a point. |
| Forward-Backward | \alpha_t(i) \beta_t(i) | The intersection of "past" and "future" information flows. |
| Bakis Model | Upper triangular P | A "one-way" path through time (common in speech). |
Consider a gambler with \10$ playing a game with \1$ stakes and a 50% win probability. The "house" has infinite money.