Dynamics

A threshold no average can see

Damp the random Fibonacci sequence — add or subtract β times the term before last, by a coin — and somewhere between β = 0.6 and β = 0.8 almost every run stops shrinking and starts growing. The switch is at β ≈ 0.70258. The average of the squares, which can be computed exactly, grows for every β there is, so the one number that decides the sequence's fate is invisible to the one number anybody can compute.

Worth reading first: A growth rate no step contains · How fast two orbits part.

The random Fibonacci sequence starts with 1,11, 1 and at each step either adds or subtracts the last two terms, choosing by a fair coin. It wanders, it shrinks, it passes near nought, and with probability one it grows in the long run like 1.13198824k1.13198824^k — a rate that no single step contains and that Divakar Viswanath computed exactly in 2000 by a method special to the matrices involved.

In 1999 Mark Embree and Nick Trefethen had asked what happens if the term before last is weakened. Their sequence is

tk+1=tk±β tk−1,t_{k+1} = t_k \pm \beta\, t_{k-1},

with the sign still chosen by a fair coin and β\beta a fixed number. At β=1\beta = 1 it is the random Fibonacci sequence. At β=0\beta = 0 it never changes. In between, the growth rate falls as β\beta falls, and at some value it must fall through one — the point where the sequence stops growing and starts to decay. Embree and Trefethen located that value at β∗≈0.70258\beta^* \approx 0.70258.

A random sequence that shrinks, grows or wanders, by one parameter. Runs of tₖ₊₁ = tₖ ± β·tₖ₋₁ at β = 0.6, 0.70258, 0.8 on a logarithmic scale: shrinking, wandering and growing.
Fig. 1 Five runs of tk+1=tk±βtk−1t_{k+1} = t_k \pm \beta t_{k-1} at each of three values of β\beta, the size of tkt_k on a scale of powers of ten. At 0.60.6 every run shrinks; at 0.80.8 every run grows; at the threshold 0.702580.70258 they wander with no drift. Measured over 600,000 steps, the typical factor per step is 0.96990.9699, 1.00001.0000 and 1.04221.0422.

The hero figure shows three values of β\beta and what they do. Below the threshold, at 0.60.6, every run shrinks — not steadily, since each step can add or subtract, but on average by about three per cent a step, so that after four hundred steps a typical run is a millionth of where it started. Above the threshold, at 0.80.8, every run grows by about four per cent a step. At the threshold the runs neither grow nor shrink; they wander up and down over many powers of ten with no tendency either way. The whole story turns on a parameter changing from 0.60.6 to 0.80.8, and the essay is about why the one number that decides it is so hard to see.

Two step matrices and a coin

The sequence is easiest to think about as a pair of numbers moving together. Write the current state as the vector (tk,tk−1)(t_k, t_{k-1}). One step takes it to (tk±βtk−1,  tk)(t_k \pm \beta t_{k-1},\; t_k), which is multiplication by one of two matrices,

P=(1β10)orM=(1−β10),P = \begin{pmatrix} 1 & \beta \\ 1 & 0 \end{pmatrix} \quad\text{or}\quad M = \begin{pmatrix} 1 & -\beta \\ 1 & 0 \end{pmatrix},

each chosen with probability one half. After kk steps the state is the product of kk randomly chosen matrices applied to the start. So the question is how fast a random product of two fixed matrices grows.

For a single matrix multiplied by itself the answer is its largest eigenvalue: a matrix with eigenvalue 1.21.2 stretches long vectors by 1.21.2 per step in the long run. For a random product there is no single eigenvalue to consult. Hillel Furstenberg and Harry Kesten proved in 1960 that the product still has a definite growth rate, the same for almost every sequence of coin tosses — a Lyapunov exponent, the logarithm of the factor per step — and Furstenberg proved later that it is positive under conditions these matrices satisfy. What neither theorem supplies is the value.

Why a minus sign shrinks things

It helps to see, before measuring anything, why a minus step is the dangerous one. A plus step tk+1=tk+βtk−1t_{k+1} = t_k + \beta t_{k-1}, applied when the last two terms have the same sign, adds them: the sequence grows the way Fibonacci’s does. A minus step applied to the same pair subtracts them, and if tkt_k and βtk−1\beta t_{k-1} are close, the result is small — a cancellation. After a cancellation the next step starts from a pair in which one term is much smaller than the other, and whatever sign comes next, the pair has lost most of its size.

So the sequence’s fate is a race between steady modest growth from the plus steps and occasional deep cancellations from the minus steps. Lowering β\beta weakens both — the plus steps add less, and the minus steps cancel less exactly — but it weakens the growth more, and below β∗\beta^* the cancellations win on average. The first essay on this subject watched two orbits of a deterministic map separate from a starting difference too small to draw; here a single sequence’s size is pushed up and down by a coin, and the question is only which way the push tends.

The cancellations also explain why the average is misleading. A run that happens to avoid cancellations for a long stretch grows like the plus-only sequence, at nearly 1.481.48 per step at the threshold, and although such stretches are rare, they are not exponentially rare enough to stop dominating the average of the squares. The average is a statement about the luckiest runs, and the typical rate is a statement about all of them.

The rate, measured, and the average, computed

The figure below measures the growth factor at seventeen values of β\beta, each from four hundred thousand steps, and sets beside it a second quantity that can be computed exactly.

The typical rate crosses one; the average never does. Measured typical growth factors of the damped random Fibonacci sequence against β, crossing one at 0.70258, and the exact root-mean-square rate, above one throughout.
Fig. 2 The factor by which a typical run grows per step (dots, each measured from 400,000 seeded steps), against β\beta. It crosses one at Embree and Trefethen’s threshold, β∗≈0.70258\beta^* \approx 0.70258, and reaches Viswanath’s 1.131991.13199 at β=1\beta = 1. The line is the exact growth of the root-mean-square of tkt_k, which is above one for every β\beta.

The measured rate rises smoothly with β\beta and crosses one between 0.700.70 and 0.710.71. The exact line above it is the growth of the root-mean-square, the square root of the average of tk2t_k^2 over all possible sequences of coin tosses, and its formula takes one line to derive. Square the recurrence and average over the coin:

E tk+12=E tk2±2β E tktk−1+β2 E tk−12.\mathbb{E}\,t_{k+1}^2 = \mathbb{E}\,t_k^2 \pm 2\beta\,\mathbb{E}\,t_k t_{k-1} + \beta^2\,\mathbb{E}\,t_{k-1}^2.

The middle term carries the sign of the newest coin, which is independent of everything before it, so it averages to nought. What is left, mk+1=mk+β2mk−1m_{k+1} = m_k + \beta^2 m_{k-1}, is a deterministic Fibonacci-like recurrence for the mean squares, and it grows like the larger root of x2=x+β2x^2 = x + \beta^2, which is (1+1+4β2)/2(1 + \sqrt{1 + 4\beta^2})/2. That root is bigger than one for every positive β\beta. The average of tk2t_k^2 grows without bound whatever β\beta is.

So there are two growth rates, and they disagree completely about where the threshold is. The rate of a typical run says 0.702580.70258. The rate of the average says there is no threshold at all. Only the first is right about what a run actually does.

The average grows while the runs decay

At β=0.6\beta = 0.6 the disagreement can be watched directly.

The average grows while the typical run decays. At β = 0.6, the median of |tₖ| over 20000 runs shrinking and the exact root-mean-square growing.
Fig. 3 Twenty thousand runs at β=0.6\beta = 0.6: the median size of tkt_k (dots) and the exact root-mean-square (line), with the sampled root-mean-square as open circles. By step 120 the median has shrunk to 0.0190.019 while the mean square has grown by a factor of about 6.6×10126.6 \times 10^{12}; the sampled average follows the exact line while there are runs enough to carry it and then starts to waver.

The median run — the run that half the runs are bigger than — shrinks steadily, to about two hundredths by step 120. The exact root-mean-square climbs by six orders of magnitude over the same steps. Both statements are true at once, and the reconciliation is in the tails. A very few runs, by an unusual excess of plus signs, grow enormously, and the average of the squares is dominated by them: a run a million times larger than the median contributes a trillion times more to the average of squares. The sampled root-mean-square, from twenty thousand runs, follows the exact line for a while and then begins to fall short of it, because twenty thousand samples no longer contain enough of the rare runs that carry the average.

That is a general lesson about growth under randomness, and it reaches well beyond this sequence — it is a cousin of the average that never settles, where rare enormous values keep moving the mean. Whenever quantities multiply rather than add, the average and the typical value obey different laws: the average follows the logarithm of the average factor, the typical value follows the average of the logarithm. A gamble that multiplies a stake by 1.51.5 or 0.60.6 with equal chance has an average factor of 1.051.05 and makes its expected value grow, while the average of the logarithms is negative and almost every player is ruined. The damped random Fibonacci sequence is the same phenomenon in two dimensions, with matrices in place of numbers, and the threshold β∗\beta^* is the point where the average logarithm changes sign — a point that no average of the quantities themselves can locate, because none of them change sign anywhere.

At the threshold, a random walk

Exactly at β∗\beta^* the typical growth is nil, and the figure below shows what is left.

At the threshold the size wanders like a random walk. Histograms of log₁₀|tₖ| across 4000 runs at β* after 100, 400, 1600 steps: centred near zero and widening like the square root of the step.
Fig. 4 Four thousand runs at the threshold: the distribution across runs of the size of tkt_k, as a power of ten, after 100, 400 and 1,600 steps. The centre stays near nought while the spread doubles each time the number of steps is quadrupled: at the threshold the logarithm of the sequence performs a random walk.

The logarithm of ∣tk∣|t_k| is a sum of the logarithms of the stretch factors at each step, and those are correlated only weakly and briefly — each step’s stretch depends on the direction the state vector happens to point in, and that direction forgets its past within a few steps. A sum of many such terms obeys a central limit theorem, proved for products of random matrices by Émile Le Page in 1982: the logarithm is approximately normally distributed, centred at kk times the exponent, with spread proportional to k\sqrt{k}. At the threshold the centre is fixed at nought and only the spread remains, so the runs fan out symmetrically on the logarithmic scale like a random walk — some growing for a while, some shrinking, none committed.

That gives the threshold an operational meaning. Slightly above it, a drift of ε\varepsilon per step eventually beats a spread of k\sqrt{k}, but only after about 1/ε21/\varepsilon^2 steps; below it, the same. Near β∗\beta^* the fate of a run is decided late, and any finite simulation that stops early will mistake a slow drift for none — which is exactly why the threshold is known to five decimal places and not to fifteen.

Fixed patterns grow; the mixture does not

The two matrices behave very differently when either is used alone. PP, all plus signs, has largest eigenvalue (1+1+4β2)/2(1 + \sqrt{1 + 4\beta^2})/2, about 1.481.48 at the threshold, and repeated alone it grows fast. MM, all minus signs, has eigenvalues of size β\sqrt\beta, about 0.840.84, and repeated alone it decays. Any fixed repeating pattern of signs is a single matrix product with its own largest eigenvalue, and it either grows or decays.

Which fixed patterns of signs grow at the threshold. For repeating sign patterns of length 1 to 10 at β = 0.70258, the share whose repetition grows: about 52% at length 10.
Fig. 5 Fixed repeating patterns of signs at the threshold: for each length, the share of the 2L2^L patterns whose repetition makes the sequence grow. About half do at every length — three quarters at length two — and the fastest is always all plus signs, at 1.476 per step. The fair coin, mixing the patterns, gives no growth at all.

At the threshold, roughly half of all repeating patterns grow when repeated, at every length from one to ten. The coin is not choosing between growing and decaying patterns in some balanced way; it is producing sequences that are not periodic at all, and their growth is not an average of the patterns’ growth rates. A random sequence of signs is a different object from every periodic one, and its exponent is a property of the mixing — of how the state vector’s direction is distributed when the signs are random — rather than of any pattern the mixing contains.

The same distinction appears in the joint spectral radius, the fastest growth any sequence of the two matrices can achieve. Among all the patterns the figure tries, the fastest is all plus signs every time, at 1.4761.476 per step at the threshold; choosing the signs at random gives exactly one. The random exponent sits somewhere strictly between the worst case and the best case, and no formula places it.

Every starting direction is forgotten

There is a second reason the damped sequence belongs beside the chaotic maps of this subject, and it points the other way. In a chaotic map, two nearby starting points separate; the system remembers the tiny difference and magnifies it. A random product of matrices does something close to the opposite with directions. Start two runs from different initial pairs — (1,1)(1, 1) and (1,−3)(1, -3), say — and feed them the same coin tosses. Their sizes may differ by a constant factor, but their directions converge: after a few dozen steps the two state vectors point the same way, and they stay aligned for ever.

The reason is that the random product stretches one direction more than the other, and repeated stretching aligns everything with the most-stretched direction, whatever the start. Oseledets’ theorem of 1968 makes this precise: almost every starting vector grows at the same rate, the top Lyapunov exponent, and the direction of the state forgets where it began exponentially fast, at a rate given by the gap between the two exponents — the same pair of stretching rates that sets a strange attractor’s dimension when the matrices come from a map’s derivative instead of a coin. A product of random matrices is sensitive to the coin and insensitive to the start. That loss of memory is what makes the exponent a single number rather than a number for each initial condition — and it is the same mechanism by which two chaotic systems, driven by a common signal, can be made to forget their differences, which is where this subject goes next.

The surprising connection: waves trapped by disorder

Products of random two-by-two matrices are not a curiosity of sequences. They are how a wave travels through a disordered medium.

A wave moving along a chain of sites, each with a slightly different random property — an electron in an impure crystal, light in a randomly layered material — obeys a recurrence that relates its amplitude at three neighbouring sites, and the step from one pair of sites to the next is multiplication by a random two-by-two matrix. Philip Anderson argued in 1958 that disorder can trap a wave: if the random product grows with a positive exponent, a wave that is to stay bounded must decay away from where it started, exponentially, with the exponent as its rate. Every state is localised. In one dimension the Furstenberg exponent of the transfer matrices is positive for any disorder, so every wave is trapped — Anderson localisation — and the localisation length is the reciprocal of the exponent.

So the number that decides whether the damped random Fibonacci sequence grows is, in a physical setting, the number that decides how far an electron can move through a disordered wire. And the lesson of the mean-square figure carries over intact: averaged quantities, which are what a calculation can most easily compute, can miss the localisation entirely, because they are dominated by rare configurations through which the wave happens to pass.

A threshold measured to four places and derived to none

The threshold’s value is measured, not derived. The dots in the rate figure are averages over long simulated runs, each with an error of a few parts in ten thousand, and the crossing at 0.702580.70258 is read from the measured curve. Embree and Trefethen located it by a more careful computation, and no closed form for β∗\beta^* is known. The figures establish that the crossing is between 0.700.70 and 0.710.71 and consistent with 0.702580.70258; the last digits are theirs.

The mean-square formula is exact; its sampled version is not. The line in the third figure is computed from the recurrence and is exact for every step. The open circles are averages over twenty thousand runs and become unreliable precisely where the figure says they do, so the visible gap between them and the line at late steps is a sampling effect, and it is the point of the figure rather than a defect in it.

The random-walk picture at the threshold is a limit theorem. The histograms show the spread doubling as the steps quadruple, as the central limit theorem predicts, but at a few thousand steps the distributions still carry visible traces of the start, and a figure at finite times cannot show that the limiting distribution is exactly normal.

Still open: a formula for the threshold

For β=1\beta = 1 the exponent is known to eight places by Viswanath’s method, which uses the fact that the two matrices then have integer entries and generate a group closely tied to the Stern–Brocot tree. For other β\beta that structure is absent, and the exponent is computed by simulation or by numerical approximation of the stationary distribution of the state vector’s direction, which for these matrices is singular and fractal. The value of β∗\beta^* is therefore a number defined by a clean condition — the exponent equals nought — with no known expression and no known proof of its irrationality.

More generally, no method is known that computes the Lyapunov exponent of a random product of two given matrices exactly, except in special families; it is not even known in general whether such exponents are rational when the matrices are. The theorems guarantee the number exists and say when it is positive. How fast two orbits part was a question with an answer once the derivative was known; for random products, knowing every matrix and every probability still leaves the answer to computation.

What links here

Computed from the collection, not written here: the essays that point at this one.

Reads more easily once this is understood

Essays that name this one as worth reading first.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

EigenvalueExpectationGrowth rateHeavy tailsLyapunov exponentMatrixRandom walkSensitive dependenceSimulationThreshold