Knowledge Sprint SeriesMT24 Learning

Phase 12 · Sprint 36/90 · The Complexity LensPoincaré · Lorenz · May · Feigenbaum · Palmer

Dynamics and Chaos

Chaos is a rule, not dice. A tiny error in the start grows until the forecast is lost.

In short. Deterministic rules, sensitivity to the start, period doubling and Feigenbaum's constant, and what the butterfly really asked.

Sprint 36 of 90 infographic: Dynamics and Chaos. Chaos is a rule, not dice. A tiny error in the start grows until the forecast is lost. The full text of the image is on this page.
Full resolution2160 × 2700 PNGPhase summary

The part of the image you are reading lights up. Tap a part to jump to its text.

Fig. 1 in words

Lorenz (1963) simulated + a real laser · same data as code 05

  1. 1 Twin runs

    • x(t) of two runs from t 14.5 to 22.5: one line until the dashed line at t 20.0, then they part
    • x(t): starts 10⁻⁸ apart
    • dashed line: gap reaches 1
  2. 2 Horizon

    • t when the twins differ by 1 (axis 10 to 30) against the first error, -2 to -12: points on one dashed straight line, from 4.4 to 29.3
    • +2.54 per digit
    • log₁₀ of the first error →
    • y: t when the twins differ by 1
  3. 3 Real laser

    • five pulses: the measured values (solid) and the closest past stretch (dashed)
    • worst error per pulse, on top: 10 · 20 · 37 · 72 · 108
    • next 40 values: measured (solid line)
    • closest past stretch (dashed line)
    • top: worst error per pulse
  4. 4 Period doubling

    • long-run x for r from 2.8 to 4.0: one branch splits again and again, then fills a band from the dashed line at 3.57
    • x → rx(1 − x), long run
    • gaps shrink by δ → 4.669

01 A Rule, Not Dice Determinism

  • Lorenz (1963): three equations, no dice; σ 10 · r 28 · b 8/3
  • Same start, same end: two runs agree to the last bit at t = 50
  • Poincaré (1908): “small differences in the initial conditions produce very great ones in the final phenomena”

Chaos: a fixed rule, no repeats, a sensitive start.

02 Sensitivity Horizon

  • A small error grows like eλt; for Lorenz, λ = 0.906 (Sprott)
  • Mean of 24 starts: twins differ by 1 at t 4.4 from a 10⁻² error, at t 29.3 from 10⁻¹²
  • So each 10× sharper start buys ln 10 ÷ λ = 2.54 time units

A start 10¹⁰ times sharper lasted only 29.3 ÷ 4.4 = 6.7 times longer.

03 Period Doubling Route

  • May (1976): x → rx(1 − x) doubles its cycle 1 → 2 → 4 → 8 ..., then turns chaotic near r 3.57
  • The ratio of successive gaps tends to δ = 4.669 (Feigenbaum 1978)
  • The sine map (r/4) sin πx gives 4.669 too

Universality: the number belongs to the route, not to one model.

04 The Butterfly Misreading

  • Lorenz’s 1972 title is a question, and he left it “unanswered”
  • A flap that can set off a tornado “can equally well” prevent one, he added
  • Palmer (2024): the real butterfly effect (Lorenz 1969b) is a limit smaller errors cannot extend in many-scale flows

In the 1963 model, sharper starts still buy time (card 02).

05 Try It Yourself PYTHON 3.13.16 · NUMPY 2.5.3

sprint36_dynamics_and_chaos.py

import numpy as np
def f(s, sg=10., r=28., b=8/3):  # Lorenz (1963)
    x, y, z = s[..., 0], s[..., 1], s[..., 2]
    return np.stack([sg*(y-x), x*(r-z)-y, x*y-b*z], -1)
def step(s, h=.002):  # one Runge-Kutta 4 step
    k1 = f(s); k2 = f(s + h/2*k1); k3 = f(s + h/2*k2)
    return s + h/6*(k1 + 2*k2 + 2*k3 + f(s + h*k3))
def run(s, t):
    for _ in range(round(t / .002)): s = step(s)
    return s
a, b = run(np.ones(3), 50), run(np.ones(3), 50)
print("same start, same end:", np.array_equal(a, b))
base = run(np.ones((24, 3)) + np.arange(24)[:, None], 30)
d0 = 10.0 ** -np.arange(2, 13, 2)  # first errors
s = np.repeat(base, 7, 0)
s[:, 0] += np.tile(np.r_[0, d0], 24)  # nudge x only
T, t = np.full(len(s), np.nan), 0.0
while np.isnan(T).any() and t < 60:
    s, t = step(s), t + .002
    e = np.linalg.norm(s - s[::7].repeat(7, 0), axis=1)
    T[np.isnan(T) & (e > 1)] = t  # forecast lost
H = T.reshape(24, 7)[:, 1:].mean(0)  # mean of 24 starts
print("lost at t =", " ".join(f"{h:.1f}" for h in H))
k = np.polyfit(np.log10(d0), H, 1)[0]
print(f"each 10x sharper start buys {-k:.2f} time units")
x = np.loadtxt("laser_a.txt")  # Santa Fe set A, real
nxt = np.loadtxt("laser_a_next.txt")  # the hidden 100
W = np.lib.stride_tricks.sliding_window_view(x, 6)[:-100]
j = np.linalg.norm(W - x[-6:], axis=1).argmin()
err = abs(x[j+6:j+46] - nxt[:40])  # follow the analogue
print("laser analogue, worst error per pulse:",
      *err.reshape(5, 8).max(1).astype(int))
def g(r, n):  # 2^n-fold logistic map at x = 1/2, - 1/2
    x = .5
    for _ in range(2**n): x = r*x*(1 - x)
    return x - .5
R = [2.0, 1 + 5**.5]  # superstable r, cycles 1 and 2
for n in range(2, 9):  # Newton's method for cycle 2^n
    r = R[-1] + (R[-1] - R[-2]) / 4.7  # first guess
    for _ in range(40):
        r -= g(r, n) * 1e-9 / (g(r + 1e-9, n) - g(r, n))
    R.append(r)
D = [(R[i]-R[i-1]) / (R[i+1]-R[i]) for i in range(1, 8)]
print("delta:", " ".join(f"{d:.3f}" for d in D))

Output, as printed on the image

Output printed on the image:
same start, same end: True
lost at t = 4.4 8.6 14.1 19.3 24.7 29.3
each 10x sharper start buys 2.54 time units
laser analogue, worst error per pulse: 10 20 37 72 108
delta: 4.709 4.681 4.663 4.668 4.669 4.669 4.669

Run it. sprint36_dynamics_and_chaos.py · versions, data and steps

Check: ln 10 ÷ 0.906 = 2.54 a digit · 29.3 − 4.4 = 24.9 · 37 ÷ 20 = 1.9 · 72 ÷ 37 = 1.9 · 108 ÷ 72 = 1.5

06 General Notes Practice

  • Forecasters run ensembles: ECMWF runs 50 perturbed forecasts plus a control
  • A widening spread says when to stop trusting the forecast
  • Real laser: the worst error about doubles over four pulses (10 → 20 → 37 → 72), then 108

“Chaos can’t be predicted”: false short range, true past a horizon.

07 Mini Project Hands-on

  • Call the forecast lost at 5 instead of 1: the slope barely moves (2.56 vs 2.54)
  • Rerun the laser with other windows (4 · 12 · 24); past data picked 6
  • Estimate λ by Benettin’s rescaling; I get 0.903

Check: ln 10 ÷ 2.54 = 0.91, close to Sprott’s λ of 0.906.

R Trusted Sources

  1. Poincaré (1908) Science and Method, trans. Maitland, p. 68
  2. Lorenz (1963) Deterministic Nonperiodic Flow, J. Atmos. Sci. 20, 130–141
  3. Lorenz (1969a) J. Atmos. Sci. 26, 636–646 (analogues)
  4. Lorenz (1969b) Tellus 21(3), 289–307 (many scales)
  5. Lorenz (1972) Predictability: Does the Flap...? AAAS talk
  6. May (1976) Nature 261, 459–467
  7. Feigenbaum (1978) J. Stat. Phys. 19(1), 25–52
  8. Palmer (2024) The Real Butterfly Effect and Maggoty Apples, Physics Today 77(5), 30–35
  9. Sprott, Lyapunov Exponent Spectrum (UW)
  10. Weigend & Gershenfeld, eds. (1994) Time Series Prediction, Addison-Wesley (set A)
  11. Hübner, Abraham & Weiss (1989) Phys. Rev. A 40, 6354
  12. ECMWF, Generation of the Ensemble

Cite this phase

Tahri, M. (2026). MT24 Learning — Knowledge Sprint Series, Phase 12: The Complexity Lens (Version 1.0) [Educational resource]. Zenodo. https://doi.org/10.5281/zenodo.23694200

Version DOI 10.5281/zenodo.23694200 · all versions 10.5281/zenodo.23694199 · first published 20 October 2026