Answers · The mathematics underneath
Why does a Markov chain eventually forget which state it started in?
In shortA finite Markov chain forgets its starting point when it has one closed class and no cycle, because two runs from different starts share chance that the rule cannot separate again.
A finite Markov chain forgets its starting point when it has one closed class and no cycle. The reason is not that the start is overwritten by an average: two copies run from different starts share a portion of their chance, the rule keeps that shared portion identical for ever, and only the shrinking remainder can still differ.
Here is half the sum of the absolute differences between the chance of each situation after hops and its resting share. It runs from nought, when the two distributions are identical, to one, when they have no overlap at all. The bound on the right has the shape that matters: a constant that absorbs the first hop or two, multiplied by a factor below one raised to . The constant changes when the decay begins; the factor sets how fast it goes, and the factor is read off the transition table, not off the starting distribution.
The shrinking gap
Take a chain whose distance from resting shrinks by four fifths each hop, which is the slow factor of the three-state machine chain. If the distance is one at some hop, then five hops later it is , ten hops later it is , and twenty hops later it is . The ratio from five to ten hops is , the same factor again. That is the whole content of forgetting: not that the start is moved along, but that the difference between the start and the rest is multiplied by a number below one, repeatedly. A gap of one becomes after ten hops, after twenty, and after thirty.
Why the start does not just shift
The natural guess is that the initial distribution survives as a moving copy, so the chain at time is the start shifted places. That is true of a deterministic rotation and false here. If the chain alternates certainly between A and B, the distribution after hops is for even and for odd , so no limit exists and the parity of the start is never lost. That is a cycle. If there are two closed classes with no movement between them, a chain started in one never puts any chance in the other, so the class of the start is retained for ever. That is a second closed class. One closed class rules out the second failure, and for a finite chain with no transient states that is irreducibility. No cycle rules out the first, which is aperiodicity.
The rate is in the table
Once both conditions hold, the bound has equal to the slowest factor. The machine chain has two modes, four fifths and one tenth. After three hops the fast mode is , while the slow mode is ; by then the fast mode is already a thousandth of its starting size. After ten hops the fast mode is , and the slow mode is . That is why the observed gap falls by four fifths per hop after the first few hops: the fast mode has vanished. The mixing time is the hop count at which this slow factor has brought every start within a stated accuracy, so it is a property of the table and the accuracy, not of the starting distribution.
The conclusion is finite-state and depends on both conditions. With infinitely many states one closed class need not force convergence; a chain can drift away and return too rarely, so recurrence has to be checked separately. A cycle breaks it even when the resting distribution is unique, as the alternating chain shows. Two closed classes break it because the start chooses a class that no hop can leave. The mixing time also carries its accuracy: a chain within one per cent after twenty hops need not be close in a stronger sense, so the one per cent belongs to the number.
Worth keeping
- One closed class and no cycle are jointly what make a finite chain converge to a single resting distribution from every start.
- The rate of forgetting is fixed by the transition table, usually by its slowest mode, not by the starting distribution.
- A periodic chain or a chain with two closed classes can keep a trace of its start for ever.
Where this goes next
This question is one step of Markov Chains, a course that works through its subject from the beginning. The page that teaches this part of it is Why the Chain Forgets Where It Started, and it reads the whole way through whether or not you have an account.
What an account changes is the practice: problems standing under every idea, marked with a reason rather than a tick, in a copy of the course that is yours.
Read that pageThe whole courseOther questions people ask about this
- What's the difference between a state the chain keeps returning to and one it eventually leaves forever?A state the chain keeps returning to is in a closed group it cannot leave; any other state is left forever after finitely many visits.
- How do you build a random walk whose long-run distribution is a distribution you choose?Propose a symmetric random move; accept moves to heavier target weight outright and moves to lighter weight with probability equal to the weight ratio, then run the chain.
- What is the difference between variance and standard deviation?They measure the same spread: variance is the average squared distance from the mean, standard deviation is its square root, so you report the standard deviation and calculate with the variance.
- How do you make a vague claim precise enough to tell whether it's true?Fix what is being talked about, what is asserted, which cases are covered and the cut-off, then name an observation that would prove it false.
- How do you find the parabola that best fits a function near a point?Match the function's height, slope and bending at the chosen point; those three conditions single out exactly one parabola.
- Why does a test for a rare disease give so many false positives if the test is accurate?A positive result means the test fired, not that you are likely to be ill; when the disease is rare, healthy people vastly outnumber ill ones, so a small false-alarm rate on them swamps the few true cases.