OrnsteinUhlenbeck¶
Systems / SDEs / Noise-driven systems
The canonical mean-reverting process — linear restoring drift plus additive noise, the Gaussian stationary benchmark.
Start here¶
import tsdynamics as ts
system = ts.systems.OrnsteinUhlenbeck()
traj = system.run(final_time=100.0, dt=0.01, 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.
seed=0 fixes the noise realization. For SDEs, dt controls both the numerical step and output spacing; compare smaller steps before interpreting a statistic.
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.
constant in the state
Method and evidence
Trace of the drift Jacobian; stochastic path contraction also depends on diffusion.
Recorded parameters and software
{
"parameters": {
"theta": 1.0,
"mu": 0.0,
"sigma": 0.3
},
"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¶
Parameters¶
| Symbol | Default | Role |
|---|---|---|
theta |
1 |
reversion rate |
mu |
0 |
long-run mean |
sigma |
0.3 |
noise amplitude |
State variables: x
Explore further¶
- Integration methods — choose a numerical scheme and compare seeded sample paths.
- Plotting and export — choose components, style a figure, or save it for a paper.
- Find a compatible analysis with
ts.analysis.find(system)orts.analysis.find(traj).
Reference¶
Uhlenbeck & Ornstein (1930), Phys. Rev. 36, 823-841
doi:10.1103/PhysRev.36.823