/chaos-theory:chaos-detection-control-applications-and-computationfrom chaos-theory
Detects chaos in real data using Takens' embedding theorem, surrogate testing, and noise analysis. Controls and synchronizes chaotic systems. Computes chaotic trajectories with correct integrator choice and shadowing.
Ships in chaos-theory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 4 of 5 of the Chaos Theory reference (plugin
chaos-theory), covering §12–§15. Sibling skills:chaos-foundations-dynamical-systems-and-bifurcations(§0–§4),chaos-logistic-map-lyapunov-and-attractors(§5–§8),chaos-fractals-poincare-and-hamiltonian-chaos(§9–§11),chaos-reference(§16–§20). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: Settled mathematics — Poincare 1890, Lorenz 1963, Smale 1967, Ruelle-Takens 1971, Feigenbaum 1978, Takens 1981. Nothing here has changed.
Scope. Complements a Newtonian-mechanics reference (§13 there introduces chaos from the physics side) and a weather-science reference (§14 there, predictability limits). ⚠️ This is the mathematics itself.
⚠️ GOTCHA boxes mark the misconceptions — and chaos theory is the most misappropriated area of mathematics in general discourse, so there are many. §16 →
chaos-referenceconsolidates them.The three ideas that matter most:
- ⚠️ Chaos is deterministic. No randomness anywhere. The equations are exact, the trajectory is unique, and the behaviour is still unpredictable in practice. That combination is the entire subject (§1 →
chaos-foundations-dynamical-systems-and-bifurcations).- ⚠️ Nonlinearity is necessary but nowhere near sufficient. Most nonlinear systems are not chaotic. Chaos needs stretching and folding — divergence to separate nearby states, confinement to keep them bounded (§1.3 →
chaos-foundations-dynamical-systems-and-bifurcations, §7 →chaos-logistic-map-lyapunov-and-attractors).- ⚠️ Chaos is generic, not exotic. Poincaré found it in the three-body problem in 1890. The integrable, solvable systems in textbooks are the rare special cases, and they trained everyone's intuition wrong (§11 →
chaos-fractals-poincare-and-hamiltonian-chaos).
⚠️ This is where the field's biggest credibility problem lives, and it deserves candour.
Takens' embedding theorem (1981) — ⚠️ a remarkable result: you can reconstruct the attractor's topology from a single scalar time series by delay embedding:
X(t) = [x(t), x(t+τ), x(t+2τ), ..., x(t+(m−1)τ)]
Given sufficient embedding dimension m > 2D, the reconstruction is diffeomorphic to the
original attractor. ⚠️ You do not need to measure every state variable.
Choosing τ — first minimum of mutual information; choosing m — false nearest
neighbours.
Diagnostics: correlation dimension (Grassberger-Procaccia), largest Lyapunov exponent (Rosenstein, Wolf), recurrence plots, 0-1 test for chaos, surrogate data testing.
⚠️ GOTCHA — most published claims of "chaos" in real-world data have not held up, and you should be a hard sceptic by default. ⚠️ The core problem: correlation dimension estimators return low, finite, non-integer values for coloured noise. A low estimated dimension is NOT evidence of chaos. Compounding it:
- Data length. ⚠️ Reliable dimension estimation needs an amount of data that grows exponentially with dimension. Real records are almost always too short.
- Noise destroys the fine fractal structure the methods look for.
- ⚠️ Non-stationarity mimics chaos convincingly.
- Filtering can create spurious low-dimensional structure.
⚠️ The mandatory control is surrogate data testing: generate surrogates with the same power spectrum and amplitude distribution but randomized phases, and check your statistic distinguishes them from the original. If it doesn't, you have found a linear stochastic process. ⚠️ Claims of chaos in economics, EEG, and heart rate variability have repeatedly failed this test.
⚠️ The honest position: low-dimensional deterministic chaos is well established in controlled physical experiments (fluid convection, laser dynamics, chemical reactions, electronic circuits) and is much harder to establish in field data from complex systems. "It looks irregular" is not evidence.
⚠️ Chaos control exploits property 3 of §1.1 → chaos-foundations-dynamical-systems-and-bifurcations — the dense set of unstable periodic
orbits. OGY control (Ott-Grebogi-Yorke, 1990): wait until the trajectory comes near
a desired unstable periodic orbit, then apply tiny parameter perturbations to keep it
there. ⚠️ The counterintuitive win: sensitivity, which makes chaos hard to predict, makes
it cheap to control — small nudges have large effects. Delayed feedback (Pyragas) is
the practical alternative.
⚠️ Targeting uses the same sensitivity: you can steer a chaotic system to a distant target state with far less energy than a non-chaotic one — exploited in spacecraft trajectory design.
Synchronization — ⚠️ counterintuitive but real: coupled chaotic systems can synchronize exactly. Identical, generalized, phase, and lag synchronization all exist. ⚠️ This underlies chaos-based communication schemes, though their cryptographic security has generally not survived analysis.
⚠️ Well-established in controlled settings: fluid turbulence onset, Rayleigh-Bénard
convection, lasers, nonlinear circuits (Chua), the Belousov-Zhabotinsky reaction, driven
pendulums, celestial mechanics (§11 → chaos-fractals-poincare-and-hamiltonian-chaos), plasma dynamics.
⚠️ Established at the level of models rather than confirmed in data: population dynamics (⚠️ May's 1976 paper on the logistic map in ecology was field-defining, and whether real populations are chaotic remains debated), epidemiology, cardiac arrhythmia, neural dynamics.
⚠️ Where claims should be treated with real suspicion: economics and financial markets
(⚠️ decades of failed low-dimensional chaos claims; markets are high-dimensional and
non-stationary), climate prediction as opposed to weather (⚠️ different problem —
boundary-value, not initial-value; see a weather-science reference §16), and anything
invoking "the butterfly effect" as a causal mechanism (§16 → chaos-reference).
⚠️ GOTCHA — every computed chaotic trajectory is wrong, and the honest question is why the results mean anything. ⚠️ Floating-point error is amplified exponentially, exactly like any other perturbation. After a few dozen Lyapunov times your numerical trajectory has no relationship to the true trajectory from your stated initial condition.
⚠️ The answer is the shadowing lemma: for hyperbolic systems, a numerically computed pseudo-trajectory is closely shadowed by a TRUE trajectory of the system from a slightly different initial condition. ⚠️ So your computed orbit is a real orbit of the real system — just not the one you asked for. Which is fine, because what you want is the statistics of the attractor, and those are robust.
⚠️ The caveat that matters: shadowing is proven for uniformly hyperbolic systems, and most systems of interest are not uniformly hyperbolic. In practice it's assumed to hold approximately. Be aware you are relying on it.
Practical rules: ⚠️ compare individual trajectories only over short times; compare statistics over long ones. Use a good integrator and verify with a smaller timestep (⚠️ and see a Newtonian-mechanics reference §14 — for Hamiltonian chaos, use a symplectic integrator, because energy drift will corrupt exactly the phase-space structure you're studying). Discard transients before measuring anything. Compute Lyapunov exponents with repeated Gram-Schmidt renormalization to avoid overflow. ⚠️ Ensembles, not single runs — this is precisely why weather forecasting uses ensembles.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/chaos-foundations-dynamical-systems-and-bifurcationsUse when establishing whether a system can be chaotic at all: the definition of chaos and what chaos is not, the stretch-and-fold mechanism that produces it, dynamical systems as flows and maps, stability and linearization around fixed points, and bifurcations — saddle-node, transcritical, pitchfork and Hopf — as the routes by which behaviour changes qualitatively. Includes the router for the whole chaos-theory reference./chaos-fractals-poincare-and-hamiltonian-chaosUse when analyzing the geometry or the conservative case: fractals and the several distinct notions of dimension, Poincare sections and symbolic dynamics as tools for reducing a continuous flow to something tractable, and Hamiltonian chaos including KAM theory, invariant tori and why conservative systems behave differently from dissipative ones./chaos-logistic-map-lyapunov-and-attractorsUse when quantifying or classifying chaotic behaviour: the logistic map as the canonical example, Feigenbaum universality and why the constant is universal, the precise content of 'period three implies chaos', Lyapunov exponents and how they are computed and misread, strange attractors and their structure, and the recognized routes to chaos./chaos-referenceUse when correcting a chaos misconception — including the butterfly effect stated properly — looking up a constant or characteristic value, finding the canon, or needing a method picker and a sceptic's checklist for evaluating a claim that some system is chaotic. Companion to the other chaos-theory skills.npx claudepluginhub the-vibey-project/vibey --plugin chaos-theory