Skip to content

MackeyGlass

Systems / DDEs / Delayed systems

A single delayed feedback loop modeling blood-cell production — the canonical high-dimensional delay chaos.

delay · DDE1 dimensionchaotic

Start here

Python
import tsdynamics as ts

system = ts.systems.MackeyGlass()
traj = system.run(final_time=500.0, dt=0.5, seed=0)
ts.plot(traj)

traj.t contains the sample times and traj.y the state array; system.info shows the defaults. In a notebook the last line displays the plot. In a Python script, call .show() on it to open a window, or .save("trajectory.svg") to export it.

A delay system needs a past history, not just its present state. This example uses the model's default history; pass history= to describe a different past.

delay embedding (x(t), x(t − τ)); playback follows arc length, not physical speed. Interactive: drag to rotate; use the play/pause control in the viewer.

This finite simulation illustrates one initial condition and view. The diagnostics below report their own inputs and observation windows.

Dynamics at the default parameters

Lyapunov exponents measure separation rates along an orbit. The Kaplan–Yorke dimension is derived from those rates, not a direct geometric measurement. Finite runs depend on the initial condition, transient and observation window; a value near zero needs a convergence check.

Lyapunov spectrum
Finite-time / numerical estimate
$+0.00607,\; +0.0008544,\; -0.04108,\; -0.05225,\; -0.06831,\; -0.08426$
per time unit
leading exponents only
Method and evidence

history-space Benettin QR

Finite-time estimate, not a convergence certificate. Only the leading directions were computed.

Settings

{
  "backend": "jit",
  "k": 6,
  "final_time": 2000.0,
  "transient": 400.0,
  "dt": 0.1,
  "ic": [
    1.0542863215336904
  ]
}

Preparation

{
  "final_time": 400.0,
  "dt": 0.1,
  "history": "each coordinate: 1.0 + 0.1*sin(0.2*t), t <= 0",
  "note": "The estimator starts with constant past at the warm-up endpoint; its own transient discards that history reset."
}

Estimator runtime in the recorded environment: 1.3296 s.

Reference target and the library's check configuration, separate from the measurement above. The source identifies the target; kwargs, ic and atol describe the local validation run. They are not published confidence intervals or a claim that the source used those solver settings.

{
  "status": "reference",
  "n_positive": 1,
  "kwargs": {
    "k": 1,
    "dt": 0.5,
    "transient": 100.0,
    "final_time": 1000.0,
    "rtol": 0.0001,
    "atol": 0.0001
  },
  "source": "chaotic at tau = 17",
  "citation": "Mackey & Glass (1977), Science 197, 287-289"
}
Kaplan–Yorke dimension
Finite-time / numerical estimate
$D_{KY} = 2.169$
Method and evidence

Kaplan–Yorke interpolation of the recorded spectrum

Lyapunov dimension estimate; equality with a fractal or information dimension requires additional dynamical assumptions.

Settings

{
  "backend": "jit",
  "k": 6,
  "final_time": 2000.0,
  "transient": 400.0,
  "dt": 0.1,
  "ic": [
    1.0542863215336904
  ]
}
Instantaneous Jacobian trace
Symbolic
$\nabla\!\cdot f = - \gamma$
constant in the state
Method and evidence

Instantaneous-state trace only; this is not the divergence of the infinite-dimensional history flow.

Equilibria / fixed points
Not computed: Delay-equation equilibria and their history-space stability are not implemented by fixed_points.
Recorded parameters and software
{
  "parameters": {
    "beta": 0.2,
    "gamma": 0.1,
    "tau": 17.0,
    "n": 10.0
  },
  "parameter_expressions": {},
  "state_dimension": 1,
  "explicit_time": false,
  "library_version": "6.0.3",
  "python": "3.14.8",
  "numpy": "2.4.4",
  "scipy": "1.17.1",
  "protocol_version": 1
}

Definition

\[ \begin{aligned} \dot{x} &= \frac{\beta x{\left(t - \tau \right)}}{x^{n}{\left(t - \tau \right)} + 1.0} - \gamma x \end{aligned} \]

Parameters

Symbol Default Role
beta 0.2 production gain
gamma 0.1 decay rate
tau 17 feedback delay (raise it to climb the period-doubling cascade into chaos)
n 10 Hill exponent

State variables: x

Explore further

Reference

Mackey & Glass (1977), Science 197, 287-289
doi:10.1126/science.267326

BibTeX
BibTeX
@misc{mackeyglass,
  title = {MackeyGlass system},
  note = {Mackey & Glass (1977), Science 197, 287-289},
  doi = {10.1126/science.267326}
}