A distribution is stationary for a transition matrix if the chain doesn't change its distribution after one step:
(treating as a row vector). Once the chain's distribution is , it stays forever.
For a finite irreducible aperiodic chain, the stationary distribution exists, is unique, and equals the long-run fraction of time spent in each state. It's also the limit of as , regardless of where you started.
Computing is a linear algebra problem: solve subject to and . Equivalently, find the left eigenvector of with eigenvalue , then normalize.
Stationary distributions show up everywhere — equilibrium portfolio weights under rebalancing, long-run market share in a competitive game, the score distribution PageRank assigns to web pages.